1. Field of the Invention
The present invention relates to an LED driver circuit.
2. Description of the Related Art
Hitherto, as LED driver circuit of this type, there is known an LED driver circuit that controls voltages to be applied to a plurality of LEDs, on the basis of a minimum voltage of cathode voltages of the LEDs (for example, U.S. Pat. No. 6,690,146).
In the above-mentioned LED driver circuit, the plurality of diodes are employed. In a case where a diode is realized on a substrate, there is a structural problem that a parasitic transistor will be formed. For example, as shown in
As shown in
However, the structure shown in
Moreover, in the structure described in the above-mentioned patent, when the plurality of LEDs are minimized to the same degree, electric current is distributed to the plurality of diodes connected to the LEDs in which voltages are minimized, and flows through the diodes, so that forward voltages (VF) are minimized. In this case, inaccurate voltages are inputted to the OPAMP, resulting in raising-voltage voltages being unsuitably controlled.
The present invention has been made with a view to overcoming the foregoing problems of the prior art LED driver circuits.
It is therefore an object of the present invention to provide an LED driver circuit that can suitably detect the minimum voltage and be made at low cost.
In order to attain the above object, in accordance with the present invention, there is provided an LED driver circuit formed on a semiconductor substrate. The LED driver circuit comprises a plurality of LEDs, a constant current circuit for supplying arbitrary current to the plurality of LEDs, a minimum voltage selecting circuit for detecting a minimum voltage from inputted cathode voltages of the plurality of LEDs, the minimum voltage selecting circuit comprising at least one selector circuit which is comprised of a comparator and an analogue switch, and a boost-converter circuit for supplying to the LEDs voltages based on the minimum voltage detected in the minimum voltage selecting circuit.
When the LED driver circuit is to be constructed as discussed above, the LED driver circuit is formed on the semiconductor substrate. The constant current circuit supplies the arbitrary current to the plurality of LEDs. The minimum voltage selecting circuit outputs the lowest voltage of a plurality of inputted estimation voltages to the exterior. The minimum voltage selecting circuit is provided with at least one selector circuit. The above selector circuit is comprised of the comparator and the analogue switch. The magnitude of the cathode voltages of the LEDs can be judged by the comparator. The analogue switch can carry out switching in such a manner to output a lower cathode voltage of the cathode voltage according to judging results obtained by the comparator.
Various comparison methods for comparing cathode voltages of three or more LEDs can be employed. Examples of the comparison methods to be carried out in a case where four LEDs are employed will be discussed hereinafter. Incidentally, cathode voltage signals of the four LEDs are respectively referred to as a signal A, a signal B, a signal C and a signal D in the following.
Comparison Method 1:
Three selector circuits which can output a lower voltage of two voltage signals by the comparator and the analogue switch are prepared.
In a first selector circuit, a lower voltage signal of the signals A, B is outputted.
In a second selector circuit, a lower voltage signal of the signals C, D is outputted.
In a third selector circuit, comparison is made between the output signal of the first selector circuit and the output signal of the second selector circuit, and a lower voltage signal of them is outputted.
In this way, the lower voltage signals are compared with each other, whereby the minimum voltage can be selected from the four cathode voltages and then outputted.
Comparison method 2:
Like the comparison method 1, three selector circuits which can output a lower voltage of two voltage signals by the comparator and the analogue switch are prepared.
In a first selector circuit, a lower voltage signal of the signals A, B is outputted.
In a second selector circuit, a lower voltage signal of the output signal of the first selector circuit and the signal C is outputted.
In a third selector circuit, a lower voltage signal of the output signal of the second selector circuit and the signal D is outputted.
In this way, it is possible to finally output the minimum voltage by causing the lower voltage signals to be synthetically compared with other voltage signals in order. Incidentally, in either of the comparison methods 1, 2, the number of the LEDs is not limited to four. That is, when the number of the LEDs in which cathode voltages are compared with each other is increased, the number of the selector circuits to be employed may be increased according to the number of the LEDs. Incidentally, the order of the signals A, B, C, D is in disorder in the above example.
In a preferred embodiment, the minimum voltage selecting circuit comprises active devices that comprise a p-MOSFET and an n-MOSFET.
In the structure described above, the active devices that are employed in the minimum voltage selecting circuit comprise the p-MOSFET and the n-MOSFET. The MOSFET facilitate the formation of a depletion layer between the devices and the substrate, and ensures insulation between adjacent devices, so that it is unnecessary to take the effect of a parasitic transistor into consideration. Concretely, the above-mentioned p-MOSFET and n-MOSFET can be realized by a so-called single WELL structure in which a WELL is not formed in another WELL. Therefore, the parasitic transistor is not a problem, and the minimum voltage selecting circuit that is simple in structure can be formed at low cost.
In another preferred embodiment, the comparator is designed so as to output results of comparison between a pair of the cathode voltages as switching signals of the analogue switch. When the LED driver circuit is constructed as described above, it is possible to cause the analogue switch to be operated according to the magnitude of the pair of cathode voltages, and possible to cause a lower cathode voltage of the cathode voltages to be outputted from the analogue switch.
In still another preferred embodiment, the analogue switch is comprised of at least one pair of MOSFETs that are inverted due to receive the switching signals through their gates, the cathode voltages being adapted to be inputted to their sources. When the LED driver circuit is constructed as described above, it is possible to cause the pair of MOSFETs which receive the cathode voltages through the sources, to be inverted each other by the switching signals according to the comparison between the magnitudes of the pair of cathode voltages. That is, when one of the above MOSFET becomes ON, the other of the MOSFET becomes OFF. The cathode voltages are inputted to the sources of the MOSFETs, so that the inversion of the MOSFETs allows a lower voltage of the cathode voltages to be outputted from respective drains of the MOSFETs.
In yet another preferred embodiment, the one pair of MOSFETs are the same channels and the switching signal is adapted to be inputted to a gate of one of the MOSFETs through an inverter. In this way, the input of the switching signal to the gate of the one of the MOSFETs is inverted, so that even if the MOSFETs are the same channels, they can realize the inverting operation.
The above and other objects and many of the attendant advantages of the present invention will be readily appreciated as the same becomes better understood by reference to the following detailed description when considered in conjunction with the accompanying drawings, in which like reference numerals designate the same parts through the Figures and wherein;
Preferred embodiments according to the present invention will be discussed hereinafter in the following order.
(1) Structure of an LED driver circuit;
(2) Structure of a minimum voltage selecting circuit;
(3) Variants; and
(4) Summary.
(1) Structure of an LED driver circuit:
Cathode voltages V1-V4 of the LEDs Dl-D4 are adapted to be inputted to a minimum voltage selecting circuit 22 as estimation voltages V1-V4. The minimum voltage selecting circuit 22 is adapted to detect a minimum voltage Vmin from the estimation voltages V1-V4 and output the minimum voltage Vmin to an OPAMP 14 at a following section. The OPAMP 14 is adapted to always receive a constant reference voltage Vref from a reference voltage generating circuit 13, determine an output voltage according to a voltage difference between the minimum voltage Vmin and the reference voltage Vref, and output the output voltage to the boost-converter circuit 11.
A mode switching circuit 15 is adapted to obtain information from a supply voltage, a raising-voltage voltage, the minimum voltage Vmin and the reference voltage Vref, and send a switch signal Vmod to the boost-converter circuit 11 in such a manner that the boost-converter circuit 11 can be operated in suitable mode. The boost-converter circuit 11 receives the switch signal Vmod from the mode switching circuit 15 and is then operated in the suitable mode according to the switch signal Vmod. The boost-converter circuit 11 is so operated, whereby voltages required to supply electric current to the LEDs D1-D4 can be outputted. Now, the mode operation which is carried out by the boost-converter circuit 11 will be discussed hereinafter.
For example, in a case where the minimum voltage Vmin is sufficiently high and is not required to be pressed up, the mode switching circuit 15 outputs to the boost-converter circuit 11 a switch signal Vmod for causing the boost-converter circuit 11 to be operated in a single mode. The boost-converter circuit 11 which receives the switch signal Vmod is then operated in the single mode and supplies to the respective LEDs D1-D4 voltages approximately equal to the supply voltage. On the other hand, in a case where the minimum voltage Vmin is lowered and required to be pressed up, the mode switching circuit 15 outputs to the boost-converter circuit 11 a switch signal Vmod for causing the boost-converter circuit 11 to be operated in a half time or a double mode. According to this, the boost-converter circuit 11 which receives the switch signal Vmod is operated in the half time or the double mode, presses up the supply voltage according to the magnification, and then supplies voltages to the respective LEDs D1-D4. The above-mentioned feedback control is successively performed, whereby the minimum voltage Vmin can be finally converged to the reference voltage Vref.
(2) Structure of the minimum voltage selecting circuit:
The inverter I is a circuit that inverts the switching signal and outputs it. The inverter I is adapted to receive the switching signal R inputted from the output terminal of the comparator C, inverts the switching signal R and then outputs the inverted switching signal RI. Incidentally, the switching signal R that has been inverted by the inverter I shall be hereinafter referred to as an “inverted switching signal RI”. The analogue switch S1 is comprised of an n-MOSFET Tn1. The output terminal of the comparator C is connected through the inverter I to a gate G of the n-MOSFET Tn2. The estimation voltage V1 is inputted to a source S of the n-MOSFET Tn1. The input terminal of the selector circuit 20c at the following section is connected to a drain D. On the other hand, the analogue switch S2 is comprised of an n-MOSFET Tn2 that is an n-channel like the n-MOSFET Tn1. The output terminal of the comparator C is connected to a gate G of the n-MOSFET Tn2. The estimation voltage V2 is inputted to a source of the n-MOSFET Tn2. The input terminal of the selector circuit 20c at the following section is connected to a drain D.
The analogue switches S1, S2 are both comprised of the n-MOSFETs, so that when high level voltage signals are inputted to the gates G, they become ON-conditions and an electric current is applied between the sources S and the drains D. Conversely, when low level voltage signals are inputted to the gates G, the analogue switches S1, S2 become OFF-conditions and the energizing between the sources S and the drains D is cut off.
The operation of the selector circuit 20a constructed as discussed above which is carried out in a case where the estimation voltage V1 is higher than the estimation voltage V2 will be discussed hereinafter. In the case where the estimation voltage V1 is higher than the estimation voltage V2, the comparator C outputs the high level switching signal R and the inverter I outputs the inverted low level switching signal RI. At this time, the inverted low level switching signal RI is inputted to the gate G of the n-MOSFET Tn1 constituting the analogue switch S1 and the high level switching signal R is inputted to the gate G of the n-MOSFET Tn2 constituting the analogue switch S2, so that the analogue switch S1 becomes OFF, whereas the analogue switch S2 becomes ON. Therefore, the estimation voltage V1 is interrupted by the analogue switch S1 and the estimation voltage V2 is outputted to the exterior through the source S and drain D of the n-MOSFET Tn2 constituting the analogue switch S2. That is, it is possible output the lower estimation voltage V2 to the exterior.
Next, the operation of the selector circuit 20a that is carried out in a case where the estimation voltage V2 is higher than the estimation voltage V1 will be discussed hereinafter. In the case where the estimation voltage V2 is higher than the estimation voltage V1, the comparator C outputs the low level switching signal R and the inverter I outputs the inverted high level switching signal RI. At this time, the inverted high level switching signal RI is inputted to the gate G of the n-MOSFET Tn1 constituting the analogue switch S1, and the low level switching signal is inputted to the gate G of the n-MOSFET Tn2 constituting the analogue switch S2, so that the analogue switch S1 becomes ON, whereas the analogue switch S2 becomes OFF. Therefore, the estimation voltage V1 is outputted to the exterior through the source S and drain D of the n-MOSFET Tn1 constituting the analogue switch S1, whereas the estimation voltage v2 is interrupted by the analogue switch S2. That is, in the case where the estimation voltage V2 is higher than the estimation voltage V1, it is possible to also output the lower estimation voltage V1 to the exterior.
The minimum voltage selecting circuit 20 that is comprised of the plurality of the selector circuit 20a, 20b, 20c as discussed above comprises only the p-MOSFETs and the p-MOSFETs as the semiconductor active devices. According to the MOSFETs, a depletion layer can be formed around a periphery by the voltages applied to the gates G, so that it is unnecessary to provide insulation between the devices and take a parasitic device in account. Therefore, a p-MOSFET Tp1 and an n-MOSFET Tn1 which constitute the selector circuit 20a can be constructed, for example, in such a manner as to be illustrated in
(3) Variants:
As discussed above, the selector circuit 20a can output the lower estimation voltage of the estimation voltages V1, V2. Incidentally, the analogue switches S1, S2 may be able to carry out the switching using the MOSFETs and the p-MOSFETs may be employed by changing logic of the switching signal. Moreover, the analogue switches may be realized as transmission-type switches in which p-MOSFETs and n-MOSFETs are paired up.
The estimation voltage V1 is inputted to the source S of the p-MOSFET Tp1 and the source S of the n-MOSFET Tn1. The estimation voltage V2 is inputted to the source S of the p-MOSFET Tp2 and the source of the n-MOSFET Tn2. The drains D of the p-MOSFETs Tp1, Tp2 and the drains D of the n-MOSFETs Tn1, Tn2 are connected to the exterior. Voltage can be outputted from the drains D to the exterior of the selector circuit 20a. The switching signal R that is outputted from the comparator C is inputted to the inverter I in which the voltage level of the switching signal R is inverted.
The switching signal R that is outputted from the comparator C is inputted to the gate G of the p-MOSFET Tp1 receiving the estimation voltage V1 through the source S thereof, and the gate G of the n-MOSFET Tn2 receiving the estimation voltage V2 through the source S thereof. On the other hand, the inverted switching signal RI that is outputted from the inverter I is inputted to the gate G of the n-MOSFET Tn1 receiving the estimation voltage V1 through the source S thereof, and the gate G of the p-MOSFET Tp2 receiving the estimation voltage V2 through the source S thereof.
The operation of the selector circuit 20a constructed as discussed above that is performed in a case where the estimation voltage V1 is higher than the estimation voltage V2 will be discussed hereinafter. In the case where the estimation voltage V1 is higher than the estimation voltage V2, the high level switching signal R is outputted from the comparator C and the inverted low level switching signal RI is outputted from the inverter I. The high level switching signal R is inputted to the gate G of the p-MOSFET Tp1, so that the p-MOSFET Tp1 becomes OFF. The inverted low level switching signal RI is inputted to the gate G of the n-MOSFET Tn1, so that the n-MOSFET Tn1 also becomes OFF. That is, the p-MOSFET Tp1 and the n-MOSFET Tn1 in which their sources S are connected to each other and their drains D are connected to each other become OFF, and the analogue switch S1 becomes OFF as a whole. Therefore, the estimation voltages V1 that are inputted to the source of the p-MOSFET Tp1 and the source of the n-MOSFET Tn1 are interrupted.
On the other hand, the inverted low level switching signal R is inputted to the gate G of the p-MOSFET Tp2, so that the p-MOSFET Tp2 becomes ON. Also, the high level switching signal R is inputted to the gate G of the n-MOSFET Tn2, so that the n-MOSFET Tn2 also becomes ON. That is, the p-MOSFET Tp2 and the n-MOSFET Tn2 in which their sources S are connected to each other and their drains D are connected to each other become ON and the analogue switch S2 becomes ON as a whole. Therefore, the estimation voltages V2 that are inputted to the source S of the p-MOSFET Tp2 and the source S of the n-MOSFET Tn2 are outputted from the drains D to the exterior. As discussed above, when the estimation voltage V1 is higher than the estimation voltage V2, the lower estimation voltage can be outputted to the exterior.
Next, the operation of the selector circuit 20a that is performed in a case where the estimation voltage V2 is higher than the estimation voltage V1 will be discussed hereinafter. In the case where the estimation voltage V2 is higher than the estimation voltage V1, the low level switching signal R is outputted from the comparator C and the inverted high level switching signal RI is outputted from the inverter I. The low level switching signal R is inputted to the gate G of the p-MOSFET Tp1, so that the p-MOSFET Tp1 becomes ON. Also, the inverted high level switching signal R1 is inputted to the gate G of the n-MOSFET Tn1, so that the n-MOSFET Tn1 also becomes ON and the analogue switch S1 becomes ON as a whole. That is, the p-MOSFET Tp1 and the n-MOSFET Tn1 in which their sources S are connected to each other and their drains D are connected to each other become ON, so that the estimation voltages V1 inputted to the sources S are outputted to the exterior from the drains D.
On the other hand, the inverted high level switching signal RI is inputted to the gate G of the p-MOSFET Tp2, so that the p-MOSFET Tp2 becomes OFF. Also, the low level switching signal R is inputted to the gate G of the n-MOSFET Tn2, so that the n-MOSFET Tn2 also becomes OFF and the analogue switch S2 becomes OFF as a whole. That is, the both of the p-MOSFET Tp2 and the n-MOSFET Tn2 in which their sources S are connected to each other and their drains D are connected to each other become OFF, so that the estimation voltages V2 inputted to the sources S are interrupted. As discussed above, when the estimation voltage V2 is higher than the estimation voltage V1, the lower estimation voltage V1 can be outputted to the exterior.
While the minimum voltage selecting circuit 20 in which the minimum voltage Vmin is selected from the cathode voltages of the four LEDs in the above mentioned embodiments is discussed above, it is possible to select the minimum voltage from an increased number of the cathode voltages by increasing connection sections in the selector circuit 20a. Moreover, while the comparison method in which lower voltage signals are in order compared with each other is discussed above, another comparison method may be employed.
The above-mentioned operation is carried out in the same manner in a selector circuit 20a5 at a final sixth section. It is possible to finally output the lowest voltage of the estimation voltages V1-V6 to the exterior, as the minimum voltage Vmin. When the circuit structure for the minimum voltage detecting circuit 20 is constructed in the same manner as the structure of
(4) Summary:
According to the present invention, the selector circuit 20a is comprised of the comparator C, the inverter I and the analogue switches S1, S2. The minimum voltage selecting circuit 20 can be constructed by causing the selector circuit 20a and another circuit that is constructed in the same manner as the selector circuit 20a is done, to be combined with each other. Therefore, the minimum voltage selecting circuit 20 can be constructed by the active devices which comprise only the p-MOSFET and the n-MOSFET. Moreover, as a structure of the semiconductor, there may be employed a so-called single WELL structure in which a WELL is not formed in another WELL. Therefore, it can be produced at low cost.
While the invention has been particularly shown and described with respect to preferred embodiments thereof, it should be understood by those skilled in the art that the foregoing and other changes in form and detail may be made therein without departing from the spirit and scope of the invention as defined in the appended claims.