The present invention relates to light emitting diode (LED) driving technology, and more particularly to an LED driving method and an LED driving circuit.
Display panel of a non-self-luminous display (such as, a liquid crystal display) cannot emit light; a backlight is thus needed to provide backlighting for the display panel. Currently, backlights can include Cold Cathode Fluorescent Lamps (CCFL), Hot Cathode Fluorescent Lamps (HCFL), Light Emitting Diodes (LED), and other electroluminescence (ELC) components. LEDs are prevalently used as backlights of liquid crystal display (LCD), for high color saturation, no mercury, long life, low energy consumption, and adjustable color temperature according to driving current.
Currently, in order to reduce power consumption of LED backlight of the LCD and/or enhance the display contrast, PWM dimming mode is proposed to use PWM signal to drive LEDs and thus dynamically adjust backlight brightness of LED backlight. However, the current LED driving mode has the following disadvantages: (a) driving current of the LED is a fixed value and cannot be automatically adjusted according to usage of the LED; (b) the driving current of the LED is fixed to the current at the maximum gray-scale brightness, while driven at non-maximum gray-scale brightness by use of the fixed current 1, the LED will work in a low efficiency area.
Therefore, the present invention relates to a LED driving method which can adjust the current value and duty cycle of the LED driving current, in order to effectively improve the driving efficiency of the LED.
The present invention further relates to a LED driving circuit which can automatically adjust the current value and duty cycle of the LED driving current according to usage of the LED, in order to effectively improve the driving efficiency of the LED.
Specially, a LED driving method according to an embodiment of the present invention comprises: providing a first pulse width modulation signal to determine brightness of a LED; obtaining a duty cycle of the first pulse width modulation signal; and selectively enabling the LED to work with a pulse width modulation dimming mode or a direct current dimming mode according to a relative relationship between a magnitude of the duty cycle and a preset threshold value. Preferably, the preset threshold value is 25%.
In an embodiment of the present invention, the step of selectively enabling the LED to work with the pulse width modulation dimming mode or a direct current dimming mode according to a relative relationship between a magnitude of the duty cycle and a preset threshold value comprises: enabling the LED to work with the pulse width modulation dimming mode when the duty cycle is less than the preset threshold value; and enabling the LED to work with the direct current dimming mode when the duty cycle is no less than the preset threshold value.
In an embodiment of the present invention, when the LED works with the pulse width modulation dimming mode, the duty cycle of the LED driving current is determined by the duty cycle of the first pulse width modulation signal and the preset threshold value, and the current value of the driving current in the duty cycle of the LED driving current is determined by a maximum gray-scale current value of the LED and the preset threshold value. The current value of the LED driving current is determined by the maximum gray-scale current value of the LED and the duty cycle of the first pulse width modulation signal, when the LED works with the direct current dimming mode.
In an embodiment of the present invention, the step of obtaining the duty cycle of the first pulse width modulation signal comprises: counting during a frequency cycle of the first pulse width modulation signal to obtain a frequency cycle count and a duty cycle count of the first pulse width modulation signal; and calculating the duty cycle of the first pulse width modulation signal during the frequency cycle according to the frequency cycle count and the duty cycle count. The step of obtaining the duty cycle of the first pulse width modulation signal further comprises: directly setting the duty cycle in the subsequent frequency cycle to be 100% until a rising edge of the first pulse width modulation signal is detected, after the duty cycle of the first pulse width modulation signal is maintained to be 100% in two consecutive frequency cycles.
In an embodiment of the present invention, the LED driving method further comprises: closing the LED, if a rising edge of the first pulse width modulation signal is not detected in two consecutive frequency cycles after the falling edge of the first pulse width modulation signal.
In an embodiment of the present invention, the step of enabling the LED to work with the pulse width modulation dimming mode when the duty cycle is less than the preset threshold value comprises: generating a digital signal according to the preset threshold value; implementing an algorithm according to the frequency cycle count and the duty cycle count to generate a second pulse width modulation signal; and respectively setting the duty cycle of a LED driving current and the current value of the driving current in the set duty cycle, according to the digital signal of the second pulse width modulation signal; wherein the implementation of the algorithm is to make the duty cycle of the second pulse width modulation signal to be the quotient of the duty cycle of the first pulse width modulation signal divided by the preset threshold value. The step of enabling the LED to work with the direct current dimming mode when the duty cycle is no less than the preset threshold value comprises: generating a digital signal according to the duty cycle; and setting the current value of the driving current provided to the LED, according to the digital signal.
A LED driving circuit according to another embodiment of the present invention comprises: a counting circuit, a calculating circuit, a pulse width modulation signal generating circuit, a driving current setting circuit, and a dimming mode selecting circuit. The counting circuit receives the first pulse width modulation signal and counting during a frequency cycle of the first pulse width modulation signal to generate a frequency cycle count and a duty cycle count of the first pulse width modulation signal, and the first pulse width modulation signal determines brightness of the LED. The calculating circuit calculates a duty cycle of the first pulse width modulation signal during the frequency cycle, according to the frequency cycle count and the duty cycle count. The pulse width modulation signal generating circuit generates a second pulse width modulation signal by implementing an algorithm according to the frequency cycle count and the duty cycle count. The driving current setting circuit is electrically coupled to the calculating circuit and the pulse width modulation signal generating circuit. The dimming mode selecting circuit determines relative relationship of magnitude of the duty cycle of the first pulse width modulation signal and a preset threshold value, and determines whether the second pulse width modulation signal is provided to the driving current setting circuit according to the relative relationship to selectively enable the LED to work with: a pulse width modulation dimming mode with which a duty cycle of a LED driving current is set according to the second pulse width modulation signal, or a direct current dimming mode.
In an embodiment of the present embodiment, the driving current setting circuit comprises: a first digital signal generating circuit and a second digital signal generating circuit. The first digital signal generating circuit generates a first digital signal according to a preset threshold value. The second digital signal generating circuit generates a second digital signal according to the duty cycle. When the LED is driven by the driving current setting circuit to work with the pulse width modulation dimming mode, the driving current setting circuit is controlled by the dimming mode selecting circuit to select the first digital signal to set the current value of the driving current during the duty cycle. When the LED is driven by the driving current setting circuit to work with the direct current dimming mode, the driving current setting circuit is controlled by the dimming mode selecting circuit to select the first digital signal to set the current value of the driving current.
In an embodiment of the present embodiment, the driving current setting circuit further comprises: a digital/analog converting circuit, a current generating circuit and a comparator circuit. The digital/analog converting circuit converts the selected one of the first digital signal and the second digital signal to an analog signal. The current generating circuit generates the current value of the driving current according to the analog signal and a reference current. The comparator circuit determines the lighting time of the LED and comprises a controlling end, a first input and a second input. The controlling end is electrically coupled to the pulse width modulation signal generating circuit to determine which one of the pulse width modulation dimming mode and the direct current dimming mode the LED driven by the driving current setting circuit works with, and the first input receives the current value outputted by the current generating circuit, and the second input receives a feedback current from the LED.
A LED driving method according to a further embodiment of the present invention comprises steps of: obtaining a duty cycle of an initial pulse width modulation signal to determine brightness of the LED; respectively setting a duty cycle of a LED driving current and a current value of the driving current during the set duty cycle to be D%/T and Iset×T, when the duty cycle of the initial pulse width modulation signal is less than a preset threshold value, wherein D% is the value of the duty cycle of the driving current, T is the threshold value, 0<T<1, Iset is a preset maximum gray-scale current of the LED; and respectively setting the duty cycle of the driving current and the current value of the driving current during the duty cycle of the driving current to be 100/5 and Iset×D%, when the duty cycle of the initial pulse width modulation signal is no less than the preset threshold value. Preferably, the threshold value is 25%.
In the LED driving method and circuit according to the embodiments of the present invention, the LED is performed with a two stage brightness control by use of mixed dimming mode. The current value and the duty cycle of the LED driving current can be automatically adjusted according to usage of the LED; the driving efficiency of the LED can thus be improved.
The above objects and advantages of the present invention will become more readily apparent to those ordinarily skilled in the art after reviewing the following detailed description and accompanying drawings, in which:
The present invention will now be described more specifically with reference to the following embodiments. It is to be noted that the following descriptions of preferred embodiments of this invention are presented herein for purpose of illustration and description only. It is not intended to be exhaustive or to be limited to the precise form disclosed.
Please referring to
Specifically, the LED driving method of the present embodiment may include steps of: providing a pulse width modulation signal PWMB to determine the brightness of the LED, obtaining a duty cycle of the pulse width modulation signal PWMB, and selectively enabling the LED to work with a PWM dimming mode or a direct current (DC) dimming mode according to a relative relationship between a magnitude of the obtained duty cycle and a preset threshold value. In this embodiment, the preset threshold value is set to be 25%, according to the actual measured best pin rate curve of driving LED. Of course, different products may have different best pin rate curve of driving LED, so the preset threshold value can have a proper adjustment based on the actual application.
As shown in
In short, in the LED driving method of this embodiment: (a) when the duty cycle of the PWM signal PWMB is greater than and equal to the preset threshold value, and less than and equal to 100%, the LED works with the DC dimming mode, and employs the duty cycle of the pulse width modulation signal PWMB to modulate the amplitude of the LED driving current ILED; (b) when the duty cycle of the pulse width modulation signal PWMB is less than the preset threshold value, the LED works with the PWM dimming mode, and the current value of the LED driving current is fixed to the product of the preset threshold value and the preset maximum gray-scale current Iset, and the duty cycle of the driving current ILED is set to the quotient of the duty cycle of the pulse width modulation signal divided by the preset threshold value
Please referring to
Specifically, as shown in
The counting circuit 110 receives the initial pulse width modulation signal PWMB and counts during the frequency cycle of the initial pulse width modulation signals PWMB to generate a frequency cycle count TP and a duty cycle count TD of the initial pulse width modulation signal PWMB. In this embodiment, the counting circuit 100 may include a counter 111, a frequency cycle register 113 and a duty cycle register 115. At the rising edge of the initial pulse width modulation signal PWMB, the frequency cycle register 113 and the duty cycle register 115 are reset and the counter 111 is triggered to write counts in the frequency cycle counter register 113 and the duty cycle count register 115. Then, when the falling edge of the initial pulse width modulation signal PWMB comes, the counter 111 stops to write counts in the duty cycle register 115 to thereby obtain the duty cycle count TD and continues to write counts in the frequency cycle register 113. Next, when the next rising edge of the initial pulse width modulation signal PWMB arrives, the frequency cycle register 113 outputs the frequency cycle and resets the TP, and the duty cycle register 115 outputs the duty cycle count TD and resets the TD.
The calculating circuit 130 receives the frequency cycle count TP and the duty cycle count TD outputted by the counting circuit 110, and calculates the duty cycle of the initial pulse width modulation signal PWMB during the frequency cycle as an output, based on the frequency cycle count TP and the duty cycle count TD. Here, the calculating circuit 130 may comprise a divider to obtain the quotient of the frequency cycle count TP and the duty cycle count TD as the duty cycle of the initial pulse width modulation signal PWMB, and the duty cycle can be presented in digital format.
The PWM signal generating circuit 150 receives the frequency cycle count TP and the duty cycle count TD outputted by the counting circuit 110, and implements an algorithm according to the frequency cycle count TP and the duty cycle count TD to generate a new pulse width modulation signal. The implementation of the algorithm is to make the duty cycle of the new pulse width modulation signal to be the quotient of the duty cycle of the initial pulse width modulation signal PWMB divided by the preset threshold value. The preset threshold value is as a boundary line of the duty cycle of the initial pulse width modulation signal PWMB, to drive the LED to selectively work with the DC dimming mode or the PWM dimming mode. In this embodiment, the duty cycle is presented in digital format; therefore, a preferred preset threshold value is 25%, but not limited to the value in the present invention. The preset threshold value can also be 12.5% or 50%. If the duty cycle is presented in analog format, the preset threshold value can be any value.
The driving current setting circuit 170 is electrically coupled to the calculating circuit 130, and coupled to the PWM signal generating circuit 150 through a switch S1-a to set the duty cycle of the LED driving current and the current value. In this embodiment, the driving current setting circuit 170 may comprise a first digital signal generating circuit 171, a second digital signal generating circuit 173, a digital/analog converting circuit 175, a current generating circuit 177 and comparator circuit CMP. Among them, the first digital signal generating circuit 171 generates a first digital signal according to the preset threshold value, for example, the digital value of the preset threshold value. The second digital signal generating circuit 173 generates a second digital signal according to the duty cycle outputted by the calculating circuit 130, for example, the digital value of the duty cycle outputted by the calculating circuit 130. The digital/analog converting circuit 175, respectively through the switches S1-b and S2, is electrically coupled to the first digital signal generating circuit 171 and the second digital signal generating circuit 173 to receive the first and second digital signals and convert the digital signals into analog signals. The current generating circuit 177 is electrically coupled to the digital/analog converting circuit 175, to receive the analog signals and generate the current value of the LED driving current ILED with reference to the preset maximum gray-scale current Iset. The comparator circuit CMP has its controlling end to receive control signal of the new PWM signal generated by the PWM signal generating circuit 150, through the switch S1-a. That is, when the switch S1-a is turned on, the duration that the output of the comparator circuit CMP is at a high level is determined by the duty cycle of the new PWM signal, and the LED works in the PWM dimming mode. Whereas, when the switch S1-a is turned off, the output of the comparator circuit CMP is continuously maintained at the high level (the corresponding duty cycle of the driving current ILED duty cycle being 100%) to make the driving transistor T1 conducted, and the LED works in the DC dimming mode. Furthermore, the non-inverting input of the comparator circuit CMP receives the driving current ILED provided by the current generating circuit 177, while the inverting input of the comparator circuit CMP is electrically coupled to the source/drain of the driving transistor T1 to receive a feedback current IFB from the LED. The drain/source of the driving transistor T1 is electrically connected to LED.
The dimming mode selecting circuit 190 is electrically coupled to the calculating circuit 130, the switches S1-a, S1-b and S2. The relative relationship between a magnitude of the duty cycle of the initial pulse width modulation signal PWMB outputted by the calculating circuit 130 and the preset threshold value is determined by the dimming mode selecting circuit 190. It is determined according to the relative relationship whether the switch S1-a is opened to provide a new PWM signal to the comparator circuit CMP, so that to determine which one of the PWM dimming mode and the DC dimming mode the LED works with. Specifically, when the duty cycles outputted by the calculating circuit 130 is less than the preset threshold value, the dimming mode selecting circuit 190 enables the switches S1-a and S1-b and turns off the switch S2, so that the LED works with the PWM dimming mode. On the other hand, when the duty cycles outputted by the calculating circuit 130 is no less than preset threshold value, the dimming mode selecting circuit 190 enables the switch S2 and turns off the switches S1-a and S1-b, so that the LED works with the DC dimming mode.
Please referring to
Similar to
In
Specifically, as shown in
It is worth to be mentioned, in
Additionally, it also can be found in
Summarily, in the embodiments of the present invention, the LED is performed with a two stage brightness control by use of mixed dimming mode according to the best pin rate curve of driving LED, so that the duty cycle and the current value of the LED driving current are adjusted according to usage of the LED. Therefore, it can enable the LED works with the best operating current, and the driving efficiency of the LED can be effectively improved.
While the invention has been described in terms of what is presently considered to be the most practical and preferred embodiments, it is to be understood that the invention needs not be limited to the disclosed embodiment. On the contrary, it is intended to cover various modifications and similar arrangements included within the spirit and scope of the appended claims which are to be accorded with the broadest interpretation so as to encompass all such modifications and similar structures.
Number | Date | Country | Kind |
---|---|---|---|
099124381 | Jul 2010 | TW | national |