This disclosure relates to drivers, and more particular, to techniques and circuits associated with light emitting diode (LED) drivers.
A light-emitting diode (LED) is a two-lead semiconductor pn-junction (diode) that also a emits light. When the anode lead of an LED has a voltage that is positive relative to the cathode of the LED by more than the LED's forward voltage drop, current flows through the LED. LEDs exhibit electroluminescence, which is an optical phenomenon and electrical phenomenon in which a material emits light in response to the passage of an electric current or to a strong electric field.
Generally, a resistor may be used to regulate current through an LED. However, this may waste power because as current flows through the resistor and the LED the resistor will generally dissipate some of the energy of the current flow as heat. In order to avoid some of the losses in the resistor, an LED may be powered by an LED driver. The LED driver may provide current to the LED using, for example, a switched mode power supply, such as a buck converter, or other power source.
In general, techniques and circuits are described that may improve a spread of an output light emitting diode (LED) current by introducing a variable gain at a VCOMP amplifier. In some examples, the gain of the VCOMP amplifier may be dependent on the on time, tON, of a power transistor. When the on time, tON, of the power transistor is short, the propagation delay will become a larger proportion of the tON. As a result, the measured output LED current may be higher than the actual LED current. Hence, when tON is short, the gain may be higher to compensate for the propagation delay.
In one example, the disclosure is directed to a device including a peak detector, a variable gain amplifier coupled to the peak detector and configured to amplify an output of the peak detector, and a gain selector, coupled to the variable gain amplifier and configured to control the variable gain amplifier by varying the gain of the variable gain amplifier based on an on time of a signal.
In another example, the disclosure is directed to a system including an LED coupled, a power transistor coupled to the LED and configured to provide power to the LED, a device coupled to the power transistor, the device including a peak detector, a variable gain amplifier coupled to the peak detector and configured to amplify an output of the peak detector, and a gain selector, coupled to the variable gain amplifier and configured to control the variable gain amplifier by varying the gain of the variable gain amplifier based on an on time of the LED.
In another example, the disclosure is directed to a system including a device for controlling a current to an LED comprising means for detecting a peak of a signal, means for selecting a gain for a variable gain amplifier based on an on-time signal, and means amplifying the detected peak of the signal.
In another example, the disclosure is directed to a system including a method of controlling a current to an LED including detecting a peak of a signal, selecting a gain for a variable gain amplifier based on an on-time signal, and amplifying the detected peak of the signal.
The details of one or more examples are set forth in the accompanying drawings and the description below. Other features, objects, and advantages of the disclosure will be apparent from the description and drawings, and from the claims.
This disclosure describes systems, methods, and devices for improving the spread of an output current of a light source. An example light source includes a semiconductor light sources such as a light emitting diode (LED). In an example, the spread of an output light source current may be improved by introducing a variable gain at a VCOMP amplifier. In some examples, the gain of the VCOMP amplifier may be dependent on the on time, tON, of a power transistor. When the on time, tON, of the power transistor is short, the propagation delay will become a larger proportion of the tON. As a result, the measured output current may be higher than the actual current. For example, if the light source is a semiconductor light source such as an LED, the measured output LED current may be higher than the actual LED current. Hence, when tON is short, the gain may be higher to compensate for the propagation delay.
Some examples may include a peak detector, a variable gain amplifier coupled to the peak detector and configured to amplify an output of the peak detector, and a gain selector, coupled to the variable gain amplifier and configured to control the variable gain amplifier by varying the gain of the variable gain amplifier based on an on time of a signal.
In some examples, the gain selector may include analog circuitry. In some examples, the gain selector includes digital circuitry. In some examples, the gain selector includes analog circuitry and digital circuitry. The device may include an on-time detector configured to measure the on time of the signal. A gain selector may increase the gain of the variable gain amplifier when the on time is short. The short on time, in one example, may be a range of from 0 to 5.4 microseconds.
The floating buck LED driver 100 topology includes circuitry to regulate the current, ISYSTEM, through LED 102. As part of regulating the current sense the current flowing through LED 102, ISYSTEM, is sensed to determine the current flow. Circuitry to perform the current flow determination includes integrated circuit (IC) 106, resistor RSENSE, and capacitors CCOMP and CVCC. The current flowing through the LED may be sensed using resistor RSENSE. The current flowing through resistor RSENSE will cause a voltage at IC 106 input CS. Peak detector 150 measures the peak voltage at CS and holds that value. The value of the detected peak may be held for approximately 0.8 us to 44 us, for example, however a wide range of hold times may be used. The VCOMP amplifier may then amplify the peak voltage held.
Capacitor VCOMP may smooth out the voltage output from VCOMP amplifier 164 and a comparator circuit may compare the voltage output from VCOMP amplifier 164 to a reference voltage. In the illustrated example of
When the voltage VCOMP is greater than the reference voltage the on time, tON is or will be decreased. When the voltage VCOMP is less than the reference voltage the on time, tON is or will be increased. For example, as illustrated in
Increasing the on time, tON, will increase LED 102 current. Decreasing the on time, tON, will decrease LED 102 current. In some examples, the LED current may be the average current through the LED. The LED may be powered by turning the current on and off. Generally, the longer the current is on the brighter the LED and the shorter the current is on the more dim the LED will be. It will be understood that, at some point, the LED current may be on for such a short duration that the light from the LED may not be visible to the human eye. It will further be understood that, at some point, the LED current may be on for such a long duration that the LED may be damaged. Valley Detector 162 may determine when the voltage across a power transistor such as external power MOSFET 308 is at its lowest voltage level based on the voltage input at the drain input pin of IC 106. This may be used to determine when to turn the current through LED 102 on. For examples, tON may be dependent on the voltage across the external power MOSFET 308 such that when the voltage across external power MOSFET 308 is at its lowest voltage level, e.g., 0.0V. When the voltage across external power MOSFET 308 is at its lowest voltage the current across inductor L1 is zero.
In some examples, a constant average may be obtained, or approximately obtained, trying to average the charging up and the discharging of inductor L1. In some examples, the tON may depend on the input voltage, the inductance L1, and the number of LEDs used. When input voltage is high, tON may be shorter, when output voltage is high, tON may be longer. When inductor, L1, is large, tON may be longer.
One issue that may sometimes arise in systems such as the system illustrated in
For the first contributing factor, the internal propagation delay at IC 106, when circuitry internal to IC 106 turns off the gate of the internal power MOSFET 152, peak detector 150 may stop sampling the peak. However, there is a propagation delay between the internal power MOSFET 152 turn off and when the peak detector 150 stops sampling. This propagation delay may cause the peak sampled to be lower than the actual value because the peak detector 150 may take one or more samples as or after internal power MOSFET 152 is turning off when it is disconnecting or no longer connected to a valid voltage source. This incorrect voltage reading caused by the internal propagation delay at IC 106 may regulate the output current to a higher value than is actually intended.
The second contributing factor affecting the output current is the propagation delay from external power MOSFET 108 turn off to when inductor L1 current starts to discharge. The delay from external power MOSFET 108 turn off to when inductor L1 current starts to discharge may be due to the time taken for the drain of external power MOSFET 108 to rise the diode forward voltage above the input voltage. The diode forward voltage is commonly referred to as the “diode drop.” A typical value for the diode forward voltage for a silicon diode is 0.7 volts. Other semiconductor materials may have different diode forward voltages.
Referring back to
The illustrated example also includes input voltage 304, IC 306, external power MOSFET 308. IC 306 includes peak detector 350, internal power MOSFET 352, tON Generator 360, Valley Detector 362, and a variable gain VCOMP amplifier 354. The variable gain VCOMP amplifier 354 may be part of circuitry 364 that may include a buffer between peak detector 350 and variable gain VCOMP amplifier 354.
Valley detector 362 may be used to determine a minimum value for the current through inductor L1, which may, in turn be used, in conjunction with the tON Generator 360 output to control internal power MOSFET 352 (through a SR latch and buffer circuitry). As illustrated in
The example floating buck LED driver 300 topology of
Thus, some examples in accordance with the systems and methods described herein may improve the spread of the output LED current by introducing a variable gain at VCOMP amplifier 354. In the illustrated example of
The gain of variable gain VCOMP amplifier 354 may be dependent on the “on time” of the gate of internal power MOSFET 352, i.e., the time when the voltage on the gate is sufficient to turn on the transistor, internal power MOSFET 352. When the on time is short, the propagation delay will become a larger proportion of tON. As a result, the measured output LED current is higher than the actual LED output current. Hence, in some examples of the systems and methods described herein, when tON is short, the gain may be higher to compensate for the propagation delay.
Additionally, as illustrated in
In some examples, the spread in the output current may also be reduced by reducing the value of the C1. In the example of
In some examples no additional bill of materials cost is incurred. In some cases, no additional parts are needed. Rather, additional functionality may be implemented on a single die of a single chip, e.g., IC 306. The spread of the output current can be adjusted by slightly adjusting the value of the C1. This adjustment to C1 may be made to compensate for an overall system propagation delay that might be lower than the built in propagation delay compensation. However, generally, there will be no need for large reduction in the C1 value because of the gain changes used. Hence, there is no impact on valley detection and VCC in some examples. Additionally, some examples may allow the use of low choke inductance value.
As described herein some examples may use an analog approach and some examples may use a digital approach.
In the illustrated example of
Accordingly, the on time, tON signal may be to the gate signal of the transistor 502, e.g., through inverter 504. For example, the systems and methods described herein may measure the on time, tON, using an analog approach. An analog timer, e.g., a resistor and capacitor circuit (R5 and C5), may perform timing measurements to determine how long the gate of internal power MOSFET 352 is turned on. When the gate of internal power MOSFET 352 has been on for a predetermined amount of time, as determined by the R-C circuit, this information may be sent to the compensation logic block. In some examples, the information generated by the analog timer may be sent digitally. As illustrated in
As described above,
As illustrated in
As described above, there may be a spread between the actual output current and the measured output current. The output current spread between the measured current and the actual current may be worse when tON is short. When tON is small, the spread may be larger and the actual output current may be higher than the measured output current. When tON is longer, the actual output current may be nearer to the measured output current. Hence, there is a need to reduce the output current as tON reduces. In the illustrated example, the output current is directly proportional to the peak VCS voltage. The peak VCS voltage may be reduced by increasing the gain of VCOMP amplifier 354. When the gain of VCOMP amplifier 354 is increased, a lower VCS peak voltage is required to ensure that the VCOMP voltage reaches 1.5V. As tON reduces, the output current will start to increase due to the external and internal propagation delay.
As illustrated in
As described herein, some examples introduce a variable gain for VCOMP amplifier 354. This gain may be dependent on the tON. When the on time is short, the propagation delay may become a larger proportion of tON. As a result, the output current may be higher than expected. The gain is designed to increase when tON reduces. In this way, the error due to propagation delay is compensated. As described herein, in some examples, little or no additional bill of materials cost is incurred. (In some examples, the cost of IC 306 may be greater than the cost of IC 106.) Additionally, in some examples, the spread of the output current can be adjusted externally by slightly adjusting the value of the C1.
Gain selector 356 selects a gain for variable gain VCOMP amplifier 354 based on the on-time signal (1002). In some examples, gain selector 356 may increase the gain of the variable gain amplifier for a short on time. Furthermore, as described herein some examples may use an analog approach and some examples may use a digital approach. For example, in order to select a gain for variable gain VCOMP amplifier 354 based on the on-time signal, tON, may be sensed to measure input voltage 304. For example, the systems and methods described herein may measure the on time, tON, using an analog approach. An analog timer, e.g., a resistor and capacitor circuit (R5 and C5), may perform timing measurements to determine how long the gate of internal power MOSFET 352 is turned on. When the gate of internal power MOSFET 352 has been on for a predetermined amount of time, as determined by the R-C circuit, this information may be sent to the compensation logic block.
In some examples, a digital approach may be used in accordance with one or more aspects of the present disclosure. The digital approach may use tON generation digital bits to determine on time, tON. In the illustrated example, the signal on the VCOMP pin of IC 306, which is output of the variable gain VCOMP amplifier 354 is an input to an Up/Down Counter 602, which counts up or down based on the voltage at the VCOMP pin of IC 306. Up/Down Counter 602 outputs a tON Select signal 604 that is an input to logic control for gain select 606 and circuitry 608. Logic control for gain select 606 may use the tON Select signal 604 to generate a gain select signal 610 that may be used to select the gain of the variable gain VCOMP amplifier 354. The tON Select signal 604 may also be an input to circuitry 608 that is similar to the circuitry used in the analog approach discussed with respect to
Variable gain VCOMP amplifier 354 amplifies the detected peak of the signal (1004). By increasing the gain of VCOMP amplifier 354, the output of the variable gain VCOMP amplifier 354, i.e., the amplified detected peak value) may reach the reference voltage sooner, i.e., for a lower voltage input on the input of the variable gain VCOMP amplifier 354. This translates to a lower output current value for a given comparison. Accordingly, the average output current will be lower for a shorter tON. Generally, in a system without variable gain for the VCOMP amplifier (e.g., VCOMP amplifier 164), a lower value for tON will generally have a higher output current than measured. As is discussed in more detail with respect to
A computer-readable storage medium may form part of a computer program product, which may include packaging materials. A computer-readable storage medium may comprise a computer data storage medium such as random access memory (RAM), synchronous dynamic random access memory (SDRAM), read-only memory (ROM), non-volatile random access memory (NVRAM), electrically erasable programmable read-only memory (EEPROM), FLASH memory, magnetic or optical data storage media, and the like. A computer-readable storage medium may comprise a non-transitory computer data storage medium. The techniques additionally, or alternatively, may be realized at least in part by a computer-readable communication medium that carries or communicates code in the form of instructions or data structures and that can be accessed, read, and/or executed by a computer. The computer readable storage medium may store instructions that upon execution by one or more processors cause the one or more processors to perform one or more aspects of this disclosure.
The code or instructions may be executed by one or more processors, such as one or more DSPs, general purpose microprocessors, ASICs, field programmable logic arrays (FPGAs), or other equivalent integrated or discrete logic circuitry. Accordingly, the term “processor,” as used herein may refer to any of the foregoing structure or any other structure suitable for implementation of the techniques described herein. In addition, in some aspects, the functionality described herein may be provided within dedicated software modules or hardware modules. The disclosure also contemplates any of a variety of integrated circuit devices that include circuitry to implement one or more of the techniques described in this disclosure. Such circuitry may be provided in a single integrated circuit chip or in multiple, interoperable integrated circuit chips in a so-called chipset. Such integrated circuit devices may be used in a variety of applications.
Various examples have been described. These and other examples are within the scope of the following claims.