CN105263209B - controller and method for dimming light emitting diode - Google Patents
controller and method for dimming light emitting diode Download PDFInfo
- Publication number
- CN105263209B CN105263209B CN201410270531.2A CN201410270531A CN105263209B CN 105263209 B CN105263209 B CN 105263209B CN 201410270531 A CN201410270531 A CN 201410270531A CN 105263209 B CN105263209 B CN 105263209B
- Authority
- CN
- China
- Prior art keywords
- pulse width
- width modulation
- switch
- modulation signal
- controller
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Circuit Arrangement For Electric Light Sources In General (AREA)
Abstract
本发明公开了一种用以调光发光二极管的控制器及方法。所述控制器包括脉冲宽度调变接脚、低通滤波器、频率侦测单元及控制信号产生模块。所述低通滤波器根据微控制器产生的脉冲宽度调变信号,产生直流信号。所述频率侦测单元根据临界值和所述脉冲宽度调变信号,产生逻辑值。所述控制信号产生模块根据所述直流信号、所述逻辑值、参考电压及所述脉冲宽度调变信号,产生开关控制信号至串联所述发光二极管的第一开关。当所述脉冲宽度调变信号的频率低于所述临界值时,所述控制器进入数字调光模式;当所述脉冲宽度调变信号的频率高于所述临界值时,所述控制器进入模拟调光模式。因此,本发明不须对应地修改印刷电路板,以及本发明不会增加额外的负担。
The present invention discloses a controller and method for dimming a light emitting diode. The controller includes a pulse width modulation pin, a low-pass filter, a frequency detection unit and a control signal generation module. The low-pass filter generates a DC signal according to a pulse width modulation signal generated by a microcontroller. The frequency detection unit generates a logic value according to a critical value and the pulse width modulation signal. The control signal generation module generates a switch control signal to a first switch connected in series with the light emitting diode according to the DC signal, the logic value, a reference voltage and the pulse width modulation signal. When the frequency of the pulse width modulation signal is lower than the critical value, the controller enters a digital dimming mode; when the frequency of the pulse width modulation signal is higher than the critical value, the controller enters an analog dimming mode. Therefore, the present invention does not need to modify the printed circuit board accordingly, and the present invention does not add additional burden.
Description
技术领域technical field
本发明涉及用以调光发光二极管的控制器及方法,尤其涉及一种可根据脉冲宽度调变信号的频率在同一接脚实现数字调光模式与模拟调光模式的用以调光发光二极管的控制器及方法。The present invention relates to a controller and method for dimming light-emitting diodes, in particular to a controller and method for dimming light-emitting diodes that can realize digital dimming mode and analog dimming mode on the same pin according to the frequency of pulse width modulation signals controller and method.
背景技术Background technique
应用于发光二极管调光的数字调光模式与模拟调光模式分别具有各自的优点。例如,模拟调光模式具有下列优点:第一、模拟调光模式较好的色彩饱和度;第二、模拟调光模式的功耗比较好,所以模拟调光模式对于新能源法规(level-6),有较大产品设计空间;第三、模拟调光模式不会产生水波纹,所以模拟调光模式对人眼较友善,也就是说具有营销题材;第四、模拟调光模式所产生的电磁波的频率是落在瑞典专业雇员协会(SwedishFederation of Professional Employees,TCO)所规范的范围(1Hz-30kHz);而数字调光模式具有下列优点:第一、数字调光模式具有较好的对比度;第二、数字调光模式较容易控制色温及色徧;第三、根据数字调光模式所产生的发光二极管的亮度和驱动电流是成线性变化。The digital dimming mode and the analog dimming mode applied to light-emitting diode dimming have their own advantages. For example, the analog dimming mode has the following advantages: first, better color saturation in the analog dimming mode; ), there is a large product design space; third, the analog dimming mode will not produce water ripples, so the analog dimming mode is more friendly to the human eye, that is to say, it has a marketing theme; fourth, the analog dimming mode produces The frequency of electromagnetic waves falls within the range (1Hz-30kHz) regulated by the Swedish Federation of Professional Employees (TCO); and the digital dimming mode has the following advantages: First, the digital dimming mode has better contrast; Second, the digital dimming mode is easier to control the color temperature and color gamut; third, the brightness and driving current of the light-emitting diodes generated by the digital dimming mode change linearly.
在现有技术中,因为应用于发光二极管调光的数字调光模式与模拟调光模式分别具有各自的优点,所以虽然用户可通过外部信号设定发光二极管的驱动电路操作在数字调光模式或模拟调光模式,但发光二极管的驱动电路必须有不同接脚接收对应于数字调光模式与模拟调光模式的外部信号或是印刷电路板作对应地修改,导致现有技术对于使用者而言并非是一个好的选择。In the prior art, because the digital dimming mode and the analog dimming mode applied to light-emitting diode dimming have their own advantages, although the user can set the driving circuit of the light-emitting diode to operate in digital dimming mode or Analog dimming mode, but the driving circuit of the light emitting diode must have different pins to receive the external signal corresponding to the digital dimming mode and the analog dimming mode, or the printed circuit board should be modified accordingly, causing the existing technology to be difficult for users Not a good choice.
发明内容Contents of the invention
本发明的第一实施例公开一种用以调光发光二极管的控制器。所述控制器包括一脉冲宽度调变接脚、一低通滤波器、一频率侦测单元及一控制信号产生模块。所述脉冲宽度调变接脚是用以接收一微控制器产生的脉冲宽度调变信号。所述低通滤波器是用以根据所述脉冲宽度调变信号,产生一直流信号。所述频率侦测单元是用以根据一临界值和所述脉冲宽度调变信号,产生一逻辑值。所述控制信号产生模块是耦接于所述低通滤波器与所述频率侦测单元,用以根据所述直流信号、所述逻辑值、一参考电压及所述脉冲宽度调变信号,产生一开关控制信号至串联所述发光二极管的第一开关,其中所述第一开关是根据所述开关控制信号开启与关闭。当所述脉冲宽度调变信号的频率低于所述临界值时,所述控制器是进入一数字调光模式,以及当所述脉冲宽度调变信号的频率高于所述临界值时,所述控制器是进入一模拟调光模式。The first embodiment of the present invention discloses a controller for dimming LEDs. The controller includes a pulse width modulation pin, a low-pass filter, a frequency detection unit and a control signal generation module. The PWM pin is used for receiving a PWM signal generated by a microcontroller. The low-pass filter is used to generate a DC signal according to the PWM signal. The frequency detection unit is used for generating a logic value according to a threshold value and the PWM signal. The control signal generation module is coupled to the low-pass filter and the frequency detection unit, and is used to generate A switch control signal is sent to the first switch connected in series with the LEDs, wherein the first switch is turned on and off according to the switch control signal. When the frequency of the PWM signal is lower than the threshold, the controller enters a digital dimming mode, and when the frequency of the PWM signal is higher than the threshold, the The controller is in an analog dimming mode.
本发明的第二实施例公开一种用以调光发光二极管的方法,其中应用于所述方法的一控制器包括一脉冲宽度调变接脚、一低通滤波器、一频率侦测单元及一控制信号产生模块。所述方法包括所述脉冲宽度调变接脚接收一微控制器产生的脉冲宽度调变信号;所述低通滤波器根据所述脉冲宽度调变信号,产生一直流信号;所述频率侦测单元根据一临界值和所述脉冲宽度调变信号,产生一逻辑值;所述控制信号产生模块根据所述直流信号、所述逻辑值、一参考电压及所述脉冲宽度调变信号,产生一开关控制信号至串联所述发光二极管的第一开关,其中所述第一开关是根据所述开关控制信号开启与关闭;当所述脉冲宽度调变信号的频率低于所述临界值时,所述控制器是进入一数字调光模式,以及当所述脉冲宽度调变信号的频率高于所述临界值时,所述控制器是进入一模拟调光模式。The second embodiment of the present invention discloses a method for dimming a light-emitting diode, wherein a controller applied to the method includes a pulse width modulation pin, a low-pass filter, a frequency detection unit and A control signal generation module. The method comprises that the pulse width modulation pin receives a pulse width modulation signal generated by a microcontroller; the low-pass filter generates a DC signal according to the pulse width modulation signal; the frequency detection The unit generates a logic value according to a critical value and the pulse width modulation signal; the control signal generation module generates a logic value according to the DC signal, the logic value, a reference voltage and the pulse width modulation signal switch control signal to the first switch connected in series with the light emitting diodes, wherein the first switch is turned on and off according to the switch control signal; when the frequency of the pulse width modulation signal is lower than the critical value, the The controller enters a digital dimming mode, and when the frequency of the PWM signal is higher than the critical value, the controller enters an analog dimming mode.
本发明的第三实施例公开一种用以调光发光二极管的方法,其中所述发光二极管是应用于一液晶显示器,以及应用于所述方法的一控制器包括一脉冲宽度调变接脚、一低通滤波器、一频率侦测单元及一控制信号产生模块,其中所述控制信号产生模块包括一多任务器、一逻辑单元、一传输单元、一第二开关及一比较器。所述方法包括所述脉冲宽度调变接脚接收一微控制器根据所述液晶显示器接收的影像信号所产生的脉冲宽度调变信号;所述低通滤波器根据所述脉冲宽度调变信号,产生一直流信号;所述频率侦测单元根据一临界值和所述脉冲宽度调变信号,产生一逻辑值;所述控制信号产生模块根据所述直流信号、所述逻辑值、一参考电压及所述脉冲宽度调变信号,产生一开关控制信号至串联所述发光二极管的第一开关,其中所述第一开关是根据所述开关控制信号开启与关闭;当所述脉冲宽度调变信号的频率低于所述临界值时,所述控制器是进入一数字调光模式,以及当所述脉冲宽度调变信号的频率高于所述临界值时,所述控制器是进入一模拟调光模式。A third embodiment of the present invention discloses a method for dimming a light-emitting diode, wherein the light-emitting diode is applied to a liquid crystal display, and a controller applied to the method includes a pulse width modulation pin, A low-pass filter, a frequency detection unit and a control signal generation module, wherein the control signal generation module includes a multiplexer, a logic unit, a transmission unit, a second switch and a comparator. The method comprises that the pulse width modulation pin receives a pulse width modulation signal generated by a microcontroller according to the image signal received by the liquid crystal display; the low-pass filter according to the pulse width modulation signal, generating a DC signal; the frequency detection unit generates a logic value according to a critical value and the pulse width modulation signal; the control signal generating module generates a logic value according to the DC signal, the logic value, a reference voltage and The pulse width modulation signal generates a switch control signal to the first switch connected in series with the LEDs, wherein the first switch is turned on and off according to the switch control signal; when the pulse width modulation signal When the frequency is lower than the threshold value, the controller is in a digital dimming mode, and when the frequency of the PWM signal is higher than the threshold value, the controller is in an analog dimming mode model.
本发明公开一种用以调光发光二极管的控制器及方法。所述控制器及所述方法是根据一微控制器产生的脉冲宽度调变信号和一临界值,决定所述控制器操作在一数字调光模式或一模拟调光模式,所以本发明只需一只接脚接收所述微控制器产生的脉冲宽度调变信号,即可使所述控制器在所述数字调光模式与所述模拟调光模式之间切换。因此,相较于现有技术,因为本发明是根据所述微控制器产生的脉冲宽度调变信号和所述临界值,决定所述控制器操作在所述数字调光模式或所述模拟调光模式,所以本发明不须对应地修改一印刷电路板。另外,本发明是根据所述微控制器产生的脉冲宽度调变信号和所述临界值,决定所述控制器操作在所述数字调光模式或所述模拟调光模式,所以本发明并不会增加额外的负担。The invention discloses a controller and method for dimming light-emitting diodes. The controller and the method determine whether the controller operates in a digital dimming mode or an analog dimming mode according to a pulse width modulation signal generated by a microcontroller and a threshold value, so the present invention only needs to One pin receives a pulse width modulation signal generated by the microcontroller, which enables the controller to switch between the digital dimming mode and the analog dimming mode. Therefore, compared with the prior art, the present invention determines whether the controller operates in the digital dimming mode or the analog dimming mode according to the pulse width modulation signal generated by the microcontroller and the critical value. light mode, so the present invention does not require a corresponding modification of a printed circuit board. In addition, the present invention determines whether the controller operates in the digital dimming mode or the analog dimming mode according to the pulse width modulation signal generated by the microcontroller and the critical value, so the present invention does not will add an additional burden.
附图说明Description of drawings
图1是本发明的第一实施例公开一种用以调光发光二极管的控制器的示意图。FIG. 1 is a schematic diagram of a controller for dimming LEDs according to the first embodiment of the present invention.
图2是说明脉冲宽度调变信号和流经发光二极管的驱动电流的关系示意图。图3A和图3B是本发明的第二实施例公开一种用以调光发光二极管的方法的流程图。FIG. 2 is a schematic diagram illustrating the relationship between the pulse width modulation signal and the driving current flowing through the LED. 3A and 3B are flowcharts of a method for dimming LEDs according to the second embodiment of the present invention.
图4A和图4B是本发明的第三实施例公开一种用以调光发光二极管的方法的流程图。4A and 4B are flowcharts of a method for dimming LEDs according to the third embodiment of the present invention.
其中,附图标记说明如下:Wherein, the reference signs are explained as follows:
100 发光二极管100 LEDs
200 控制器200 controllers
202 脉冲宽度调变接脚202 Pulse Width Modulation Pins
204 低通滤波器204 low pass filter
206 频率侦测单元206 frequency detection unit
208 控制信号产生模块208 control signal generation module
210 微控制器210 microcontroller
212 第一开关212 First switch
214 栅极接脚214 Gate pins
216 电源转换器216 power converter
2082 多任务器2082 Multiplexer
2084 逻辑单元2084 logical units
2086 传输单元2086 transfer unit
2088 第二开关2088 Second switch
2090 比较器2090 Comparator
DS 直流信号DS DC signal
ILED 驱动电流ILED drive current
ILEDMAX 最大驱动电流ILEDMAX maximum drive current
LV 逻辑值LV logical value
第一逻辑值 first logical value
PWMS 脉冲宽度调变信号PWMS pulse width modulation signal
反相脉冲宽度调变信号 Inverted PWM signal
SEC 二次侧SEC secondary side
SCS 开关控制信号SCS switch control signal
SV 感测电压SV sense voltage
VOUT 输出电压VOUT output voltage
VREF 参考电压VREF Reference voltage
300-328、400-428 步骤300-328, 400-428 steps
具体实施方式Detailed ways
请参照图1,图1是本发明的第一实施例公开一种用以调光发光二极管100的控制器200的示意图,其中一电源转换器216的二次侧SEC是用以产生一输出电压VOUT以驱动发光二极管100,且控制器200是位于电源转换器216的二次侧SEC。如图1所示,控制器200包括一脉冲宽度调变接脚202、一低通滤波器204、一频率侦测单元206及一控制信号产生模块208。如图1所示,脉冲宽度调变接脚202是用以接收一微控制器210产生的脉冲宽度调变信号PWMS。低通滤波器204是耦接于脉冲宽度调变接脚202,用以根据脉冲宽度调变信号PWMS,产生一直流信号DS。频率侦测单元206是耦接于脉冲宽度调变接脚202,用以根据一临界值和脉冲宽度调变信号PWMS,产生一逻辑值LV。例如,当脉冲宽度调变信号PWMS的频率低于临界值时,频率侦测单元206产生一逻辑值“0”,以及当脉冲宽度调变信号PWMS的频率高于临界值时,频率侦测单元206产生一逻辑值“1”。但本发明并不受限于当脉冲宽度调变信号PWMS的频率低于临界值时,频率侦测单元206产生逻辑值“0”,以及当脉冲宽度调变信号PWMS的频率高于临界值时,频率侦测单元206产生逻辑值“1”。控制信号产生模块208是耦接于低通滤波器204与频率侦测单元206,用以根据直流信号DS、逻辑值LV、一参考电压VREF及脉冲宽度调变信号PWMS,产生一开关控制信号SCS至串联发光二极管100的第一开关212,其中第一开关212是根据开关控制信号SCS开启与关闭,且开关控制信号SCS是通过一栅极接脚214传送至第一开关212。Please refer to FIG. 1. FIG. 1 is a schematic diagram of a controller 200 for dimming a light-emitting diode 100 according to a first embodiment of the present invention, wherein a secondary side SEC of a power converter 216 is used to generate an output voltage VOUT is used to drive the LED 100 , and the controller 200 is located at the secondary side SEC of the power converter 216 . As shown in FIG. 1 , the controller 200 includes a PWM pin 202 , a low-pass filter 204 , a frequency detection unit 206 and a control signal generation module 208 . As shown in FIG. 1 , the pulse width modulation pin 202 is used to receive a pulse width modulation signal PWMS generated by a microcontroller 210 . The low-pass filter 204 is coupled to the PWM pin 202 for generating a DC signal DS according to the PWM signal PWMS. The frequency detection unit 206 is coupled to the pulse width modulation pin 202 for generating a logic value LV according to a threshold value and the pulse width modulation signal PWMS. For example, when the frequency of the pulse width modulation signal PWMS is lower than the threshold value, the frequency detection unit 206 generates a logic value “0”, and when the frequency of the pulse width modulation signal PWMS is higher than the threshold value, the frequency detection unit 206 206 generates a logic value "1". But the present invention is not limited to when the frequency of the pulse width modulation signal PWMS is lower than the critical value, the frequency detection unit 206 generates a logic value "0", and when the frequency of the pulse width modulation signal PWMS is higher than the critical value , the frequency detection unit 206 generates a logic value “1”. The control signal generation module 208 is coupled to the low-pass filter 204 and the frequency detection unit 206, and is used to generate a switch control signal SCS according to the DC signal DS, the logic value LV, a reference voltage VREF and the pulse width modulation signal PWMS To the first switch 212 of the LEDs 100 connected in series, wherein the first switch 212 is turned on and off according to the switch control signal SCS, and the switch control signal SCS is transmitted to the first switch 212 through a gate pin 214 .
如图1所示,控制信号产生模块208包括一多任务器2082、一逻辑单元2084、一传输单元2086、一第二开关2088及一比较器2090。如图1所示,多任务器2082耦接于低通滤波器204与频率侦测单元206,用以根据逻辑值LV,输出参考电压VREF或直流信号DS,其中当脉冲宽度调变信号PWMS的频率低于临界值时,多任务器2082输出参考电压VREF,以及当脉冲宽度调变信号PWMS的频率高于临界值时,多任务器2082输出直流信号DS;逻辑单元2084耦接于频率侦测单元206,用以接收脉冲宽度调变信号PWMS与逻辑值LV,以及输出一反相脉冲宽度调变信号或与逻辑值LV反相的第一逻辑值其中当脉冲宽度调变信号PWMS的频率低于临界值时,逻辑单元2084输出反相脉冲宽度调变信号以及当脉冲宽度调变信号PWMS的频率高于临界值时,逻辑单元2084输出第一逻辑值传输单元2086耦接于多任务器2082与逻辑单元2084,用以输出参考电压VREF与直流信号DS其中之一,和输出反相脉冲宽度调变信号与第一逻辑值其中之一;第二开关2088耦接于传输单元2086,用以根据反相脉冲宽度调变信号或第一逻辑值执行一相对应动作,其中当第二开关2088开启(ON)时,第一开关212关闭(OFF),以及当第二开关2088关闭时,第一开关212开启;比较器2090耦接于传输单元2086,用以根据参考电压VREF与直流信号DS其中之一和一感测电压SV,产生开关控制信号SCS至第一开关212。As shown in FIG. 1 , the control signal generation module 208 includes a multiplexer 2082 , a logic unit 2084 , a transmission unit 2086 , a second switch 2088 and a comparator 2090 . As shown in FIG. 1, the multiplexer 2082 is coupled to the low-pass filter 204 and the frequency detection unit 206, and is used to output the reference voltage VREF or the DC signal DS according to the logic value LV, wherein when the pulse width modulation signal PWMS When the frequency is lower than the critical value, the multiplexer 2082 outputs the reference voltage VREF, and when the frequency of the pulse width modulation signal PWMS is higher than the critical value, the multiplexer 2082 outputs the DC signal DS; the logic unit 2084 is coupled to the frequency detection Unit 206, for receiving the pulse width modulation signal PWMS and the logic value LV, and outputting an inverted pulse width modulation signal or the first logical value that is the inverse of logical value LV Wherein when the frequency of the pulse width modulation signal PWMS is lower than the critical value, the logic unit 2084 outputs an inverted pulse width modulation signal And when the frequency of the pulse width modulation signal PWMS is higher than the critical value, the logic unit 2084 outputs the first logic value The transmission unit 2086 is coupled to the multiplexer 2082 and the logic unit 2084 for outputting one of the reference voltage VREF and the DC signal DS, and outputting an inverted pulse width modulation signal with the first logical value One of them; the second switch 2088 is coupled to the transmission unit 2086 for modulating the signal according to the inverted pulse width or the first logical value Execute a corresponding action, wherein when the second switch 2088 is turned on (ON), the first switch 212 is turned off (OFF), and when the second switch 2088 is turned off, the first switch 212 is turned on; the comparator 2090 is coupled to the transmission unit 2086, for generating a switch control signal SCS to the first switch 212 according to one of the reference voltage VREF and the DC signal DS and a sensing voltage SV.
如图1所示,当脉冲宽度调变信号PWMS的频率低于临界值时,多任务器2082输出参考电压VREF,以及频率侦测单元206根据临界值和脉冲宽度调变信号PWMS的频率,产生逻辑值“0”。逻辑单元2084根据逻辑值“0”和脉冲宽度调变信号PWMS,输出反相脉冲宽度调变信号传输单元2086输出参考电压VREF,和输出反相脉冲宽度调变信号第二开关2088根据反相脉冲宽度调变信号开启与关闭,其中当第二开关2088开启时,第一开关212关闭,以及当第二开关2088关闭时,第一开关212开启;比较器2090根据参考电压VREF和感测电压SV,产生开关控制信号SCS至第一开关212。因为第二开关2088是根据反相脉冲宽度调变信号开启与关闭,所以第一开关212也会根据反相脉冲宽度调变信号开启与关闭,导致控制器200进入一数字调光模式。因此,当脉冲宽度调变信号PWMS的频率低于临界值时,控制器200是进入数字调光模式,也就是说当比较器2090根据参考电压VREF和感测电压SV,产生开关控制信号SCS至第一开关212时,控制器200是进入数字调光模式。As shown in FIG. 1, when the frequency of the pulse width modulation signal PWMS is lower than the critical value, the multiplexer 2082 outputs the reference voltage VREF, and the frequency detection unit 206 generates Logical value "0". The logic unit 2084 outputs an inverted pulse width modulation signal according to the logic value "0" and the pulse width modulation signal PWMS The transmission unit 2086 outputs the reference voltage VREF, and outputs the inverted pulse width modulation signal The second switch 2088 modulates the signal according to the inverted pulse width On and off, wherein when the second switch 2088 is turned on, the first switch 212 is turned off, and when the second switch 2088 is turned off, the first switch 212 is turned on; the comparator 2090 generates switch control according to the reference voltage VREF and the sensing voltage SV The signal SCS is sent to the first switch 212 . Because the second switch 2088 is based on the inverted pulse width modulation signal is turned on and off, so the first switch 212 will also modulate the signal according to the inverted pulse width Turning on and off causes the controller 200 to enter a digital dimming mode. Therefore, when the frequency of the pulse width modulation signal PWMS is lower than the critical value, the controller 200 enters the digital dimming mode, that is, when the comparator 2090 generates the switch control signal SCS to When the first switch 212 is on, the controller 200 enters the digital dimming mode.
如图1所示,当脉冲宽度调变信号PWMS的频率高于临界值时,多任务器2082输出直流信号DS,以及频率侦测单元206根据临界值和脉冲宽度调变信号PWMS的频率,产生逻辑值“1”。逻辑单元2084根据逻辑值“1”和脉冲宽度调变信号PWMS,输出与逻辑值“1”反相的第一逻辑值“0”;传输单元2086输出直流信号DS,和输出第一逻辑值“0”;第二开关2088根据第一逻辑值“0”关闭,其中当第二开关2088关闭时,第一开关212开启;比较器2090根据直流信号DS和感测电压SV,产生开关控制信号SCS至第一开关212。因为第二开关2088根据第一逻辑值“0”持续关闭,所以第一开关212可持续根据开关控制信号SCS(对应于直流信号DS)开启,导致控制器200进入一模拟调光模式。因此,当脉冲宽度调变信号PWMS的频率高于临界值时,控制器200是进入模拟调光模式,也就是说当比较器2090根据直流信号DS和感测电压SV,产生开关控制信号SCS至第一开关212时,控制器200是进入模拟调光模式。As shown in FIG. 1, when the frequency of the pulse width modulation signal PWMS is higher than the critical value, the multiplexer 2082 outputs a DC signal DS, and the frequency detection unit 206 generates Logical value "1". The logic unit 2084 outputs the first logic value "0" which is the inversion of the logic value "1" according to the logic value "1" and the pulse width modulation signal PWMS; the transmission unit 2086 outputs the DC signal DS, and outputs the first logic value " 0"; the second switch 2088 is turned off according to the first logic value "0", wherein when the second switch 2088 is turned off, the first switch 212 is turned on; the comparator 2090 generates a switch control signal SCS according to the DC signal DS and the sensing voltage SV to the first switch 212 . Since the second switch 2088 is continuously turned off according to the first logic value “0”, the first switch 212 is continuously turned on according to the switch control signal SCS (corresponding to the DC signal DS), causing the controller 200 to enter an analog dimming mode. Therefore, when the frequency of the pulse width modulation signal PWMS is higher than the critical value, the controller 200 enters the analog dimming mode, that is, when the comparator 2090 generates the switch control signal SCS to When the first switch 212 is turned on, the controller 200 enters the analog dimming mode.
请参照图2,图2是说明脉冲宽度调变信号PWMS和流经发光二极管100的驱动电流ILED的关系示意图。如图2所示,当脉冲宽度调变信号PWMS的频率低于临界值时,控制器200进入数字调光模式。如果脉冲宽度调变信号PWMS的占空比(duty cycle)是50%,则驱动电流ILED的占空比也是50%;当脉冲宽度调变信号PWMS的频率高于临界值时,控制器200进入模拟调光模式。如果脉冲宽度调变信号PWMS的占空比是50%,则驱动电流ILED将是最大驱动电流ILEDMAX的50%Please refer to FIG. 2 . FIG. 2 is a schematic diagram illustrating the relationship between the pulse width modulation signal PWMS and the driving current ILED flowing through the light emitting diode 100 . As shown in FIG. 2 , when the frequency of the pulse width modulation signal PWMS is lower than a threshold value, the controller 200 enters the digital dimming mode. If the duty cycle (duty cycle) of the pulse width modulation signal PWMS is 50%, the duty cycle of the driving current ILED is also 50%; when the frequency of the pulse width modulation signal PWMS is higher than the critical value, the controller 200 enters Analog dimming mode. If the duty cycle of the pulse width modulation signal PWMS is 50%, the driving current ILED will be 50% of the maximum driving current ILEDMAX
另外,本发明并不受限于控制器200只有2种调光模式,也就是说频率侦测单元206可根据超过一以上的临界值和脉冲宽度调变信号PWMS的频率,产生对应的逻辑值。例如,当脉冲宽度调变信号PWMS的频率低于一第一临界值时,频率侦测单元206可产生一逻辑值“00”;当脉冲宽度调变信号PWMS的频率介于第一临界值与第二临界值之间时,频率侦测单元206可产生一逻辑值“01”;以及当脉冲宽度调变信号PWMS的频率高于一第二临界值时,频率侦测单元206可产生一逻辑值“10”。此时,多任务器2082和逻辑单元2084可根据频率侦测单元206所产生的逻辑值(“00”、“01”、“10”)对应地修改,以使控制器200具有三种调光模式。In addition, the present invention is not limited to the controller 200 having only two dimming modes, that is to say, the frequency detection unit 206 can generate a corresponding logic value according to more than one critical value and the frequency of the pulse width modulation signal PWMS . For example, when the frequency of the pulse width modulation signal PWMS is lower than a first critical value, the frequency detection unit 206 may generate a logic value “00”; when the frequency of the pulse width modulation signal PWMS is between the first critical value and When between the second critical value, the frequency detection unit 206 can generate a logic value “01”; and when the frequency of the pulse width modulation signal PWMS is higher than a second critical value, the frequency detection unit 206 can generate a logic value Value "10". At this time, the multiplexer 2082 and the logic unit 2084 can be correspondingly modified according to the logic values ("00", "01", "10") generated by the frequency detection unit 206, so that the controller 200 has three kinds of dimming model.
另外,本发明可在控制器200开机时,控制器200是默认进入数字调光模式或模拟调光模式,或当所述控制器200正常运作时,控制器200是根据脉冲宽度调变信号PWMS,切换数字调光模式至模拟调光模式,或切换模拟调光模式至数字调光模式。In addition, in the present invention, when the controller 200 is turned on, the controller 200 enters the digital dimming mode or the analog dimming mode by default, or when the controller 200 is in normal operation, the controller 200 is based on the pulse width modulation signal PWMS , switch from digital dimming mode to analog dimming mode, or switch from analog dimming mode to digital dimming mode.
请参照图1和图3A和图3B,图3A和图3B是本发明的第二实施例公开一种用以调光发光二极管的方法的流程图。图3A和图3B的方法是利用图1的控制器200说明,详细步骤如下:Please refer to FIG. 1 and FIG. 3A and FIG. 3B . FIG. 3A and FIG. 3B are flowcharts of a method for dimming a light emitting diode according to a second embodiment of the present invention. The method of FIG. 3A and FIG. 3B is illustrated by using the controller 200 of FIG. 1, and the detailed steps are as follows:
步骤300:开始;Step 300: start;
步骤302:脉冲宽度调变接脚202接收微控制器210产生的脉冲宽度调变信号PWMS;Step 302: the pulse width modulation pin 202 receives the pulse width modulation signal PWMS generated by the microcontroller 210;
步骤304:低通滤波器204根据脉冲宽度调变信号PWMS,产生一直流信号DS;Step 304: the low-pass filter 204 generates a DC signal DS according to the pulse width modulation signal PWMS;
步骤306:频率侦测单元206根据一临界值和脉冲宽度调变信号PWMS的频率,产生一逻辑值LV;Step 306: the frequency detection unit 206 generates a logic value LV according to a threshold value and the frequency of the pulse width modulation signal PWMS;
步骤308:脉冲宽度调变信号PWMS的频率是否低于临界值;如果是,进行步骤310;如果否,跳至步骤320;Step 308: Whether the frequency of the pulse width modulation signal PWMS is lower than a critical value; if yes, go to step 310; if not, go to step 320;
步骤310:多任务器2082输出一参考电压VREF;Step 310: the multiplexer 2082 outputs a reference voltage VREF;
步骤312:逻辑单元2084输出一反相脉冲宽度调变信号 Step 312: Logic unit 2084 outputs an inverted PWM signal
步骤314:传输单元2086输出参考电压VREF和反相脉冲宽度调变信号 Step 314: The transmission unit 2086 outputs the reference voltage VREF and the inverted PWM signal
步骤316:第二开关2088根据反相脉冲宽度调变信号开启与关闭;步骤318:比较器2090根据参考电压VREF和一感测电压SV,产生一开关控制信号SCS至第一开关212,跳至步骤308;Step 316: The second switch 2088 modulates the signal according to the inverted pulse width Turn on and off; step 318: the comparator 2090 generates a switch control signal SCS to the first switch 212 according to the reference voltage VREF and a sensing voltage SV, and jumps to step 308;
步骤320:多任务器2082输出直流信号DS;Step 320: the multiplexer 2082 outputs a DC signal DS;
步骤322:逻辑单元2084输出与逻辑值LV反相的第一逻辑值 Step 322: The logic unit 2084 outputs the first logic value which is inverted from the logic value LV
步骤324:传输单元2086输出直流信号DS和第一逻辑值 Step 324: The transmission unit 2086 outputs the DC signal DS and the first logic value
步骤326:第二开关2088根据第一逻辑值关闭;Step 326: The second switch 2088 according to the first logical value closure;
步骤328:比较器2090根据直流信号DS和感测电压SV,产生开关控制信号SCS至第一开关212,跳至步骤308。Step 328 : The comparator 2090 generates a switch control signal SCS to the first switch 212 according to the DC signal DS and the sensing voltage SV, and skips to step 308 .
在步骤306中,频率侦测单元206是根据一临界值和脉冲宽度调变信号PWMS,产生逻辑值LV。例如,当脉冲宽度调变信号PWMS的频率低于临界值时,频率侦测单元206产生逻辑值“0”,以及当脉冲宽度调变信号PWMS的频率高于临界值时,频率侦测单元206产生逻辑值“1”。但本发明并不受限于当脉冲宽度调变信号PWMS的频率低于临界值时,频率侦测单元206产生逻辑值“0”,以及当脉冲宽度调变信号PWMS的频率高于临界值时,频率侦测单元206产生逻辑值“1”。In step 306, the frequency detection unit 206 generates a logic value LV according to a threshold value and the pulse width modulation signal PWMS. For example, when the frequency of the pulse width modulation signal PWMS is lower than the threshold value, the frequency detection unit 206 generates a logic value “0”, and when the frequency of the pulse width modulation signal PWMS is higher than the threshold value, the frequency detection unit 206 yields a logical value "1". But the present invention is not limited to when the frequency of the pulse width modulation signal PWMS is lower than the critical value, the frequency detection unit 206 generates a logic value "0", and when the frequency of the pulse width modulation signal PWMS is higher than the critical value , the frequency detection unit 206 generates a logic value “1”.
在步骤310中,当脉冲宽度调变信号PWMS的频率低于临界值时,多任务器2082输出参考电压VREF,以及频率侦测单元206根据临界值和脉冲宽度调变信号PWMS,产生逻辑值“0”。在步骤312中,逻辑单元2084根据逻辑值“0”和脉冲宽度调变信号PWMS,输出反相脉冲宽度调变信号在步骤316中,第二开关2088根据反相脉冲宽度调变信号开启与关闭,其中当第二开关2088开启时,第一开关212关闭,以及当第二开关2088关闭时,第一开关212开启;在步骤318中,比较器2090根据参考电压VREF和感测电压SV,产生开关控制信号SCS至第一开关212。因为第二开关2088是根据反相脉冲宽度调变信号开启与关闭,所以第一开关212也会根据反相脉冲宽度调变信号开启与关闭,导致控制器200进入数字调光模式。因此,当脉冲宽度调变信号PWMS的频率低于临界值时,控制器200是进入数字调光模式,也就是说当比较器2090根据参考电压VREF和感测电压SV,产生开关控制信号SCS至第一开关212时,控制器200是进入数字调光模式。In step 310, when the frequency of the pulse width modulation signal PWMS is lower than the critical value, the multiplexer 2082 outputs the reference voltage VREF, and the frequency detection unit 206 generates a logic value "" according to the critical value and the pulse width modulation signal PWMS 0". In step 312, the logic unit 2084 outputs an inverted pulse width modulation signal according to the logic value "0" and the pulse width modulation signal PWMS In step 316, the second switch 2088 modulates the signal according to the inverted pulse width On and off, wherein when the second switch 2088 is turned on, the first switch 212 is turned off, and when the second switch 2088 is turned off, the first switch 212 is turned on; in step 318, the comparator 2090 is based on the reference voltage VREF and the sensing voltage SV, to generate a switch control signal SCS to the first switch 212 . Because the second switch 2088 is based on the inverted pulse width modulation signal is turned on and off, so the first switch 212 will also modulate the signal according to the inverted pulse width Turning on and off causes the controller 200 to enter the digital dimming mode. Therefore, when the frequency of the pulse width modulation signal PWMS is lower than the critical value, the controller 200 enters the digital dimming mode, that is, when the comparator 2090 generates the switch control signal SCS to When the first switch 212 is on, the controller 200 enters the digital dimming mode.
在步骤320中,当脉冲宽度调变信号PWMS的频率高于临界值时,多任务器2082输出直流信号DS,以及频率侦测单元206根据临界值和脉冲宽度调变信号PWMS的频率,产生逻辑值“1”。在步骤322中,逻辑单元2084根据逻辑值“1”和脉冲宽度调变信号PWMS,输出与逻辑值“1”反相的第一逻辑值“0”;在步骤326中,第二开关2088根据第一逻辑值“0”关闭,其中当第二开关2088关闭时,第一开关212开启;在步骤328中,比较器2090根据直流信号DS和感测电压SV,产生开关控制信号SCS至第一开关212。因为第二开关2088根据第一逻辑值“0”持续关闭,所以第一开关212可持续根据开关控制信号SCS(对应于直流信号DS)开启,导致控制器200进入模拟调光模式。因此,当脉冲宽度调变信号PWMS的频率高于临界值时,控制器200是进入模拟调光模式,也就是说当比较器2090根据直流信号DS和感测电压SV,产生开关控制信号SCS至第一开关212时,控制器200是进入模拟调光模式。In step 320, when the frequency of the pulse width modulation signal PWMS is higher than the threshold value, the multiplexer 2082 outputs the DC signal DS, and the frequency detection unit 206 generates logic according to the threshold value and the frequency of the pulse width modulation signal PWMS Value "1". In step 322, the logic unit 2084 outputs the first logic value "0" which is the inversion of the logic value "1" according to the logic value "1" and the pulse width modulation signal PWMS; in step 326, the second switch 2088 outputs The first logic value "0" is off, wherein when the second switch 2088 is off, the first switch 212 is on; in step 328, the comparator 2090 generates a switch control signal SCS to the first Switch 212. Since the second switch 2088 is kept closed according to the first logic value “0”, the first switch 212 is kept turned on according to the switch control signal SCS (corresponding to the DC signal DS), causing the controller 200 to enter the analog dimming mode. Therefore, when the frequency of the pulse width modulation signal PWMS is higher than the critical value, the controller 200 enters the analog dimming mode, that is, when the comparator 2090 generates the switch control signal SCS to When the first switch 212 is turned on, the controller 200 enters the analog dimming mode.
请参照图1和图4A和图4B,图4A和图4B是本发明的第三实施例公开一种用以调光发光二极管的方法的流程图。图4A和图4B的方法是利用图1的控制器200说明,详细步骤如下:Please refer to FIG. 1 and FIG. 4A and FIG. 4B . FIG. 4A and FIG. 4B are flowcharts of a method for dimming light emitting diodes according to a third embodiment of the present invention. The method of FIG. 4A and FIG. 4B is illustrated by using the controller 200 of FIG. 1, and the detailed steps are as follows:
步骤400:开始;Step 400: start;
步骤402:脉冲宽度调变接脚202接收微控制器210根据液晶显示器接收的影像信号所产生的脉冲宽度调变信号PWMS;Step 402: the pulse width modulation pin 202 receives the pulse width modulation signal PWMS generated by the microcontroller 210 according to the image signal received by the liquid crystal display;
步骤404:低通滤波器204根据脉冲宽度调变信号PWMS,产生一直流信号DS;Step 404: the low-pass filter 204 generates a DC signal DS according to the pulse width modulation signal PWMS;
步骤406:频率侦测单元206根据一临界值和脉冲宽度调变信号PWMS的频率,产生一逻辑值LV;Step 406: the frequency detection unit 206 generates a logic value LV according to a threshold value and the frequency of the pulse width modulation signal PWMS;
步骤408:脉冲宽度调变信号PWMS的频率是否低于临界值;如果是,进行步骤410;如果否,跳至步骤420;Step 408: Whether the frequency of the pulse width modulation signal PWMS is lower than a critical value; if yes, go to step 410; if not, go to step 420;
步骤410:多任务器2082输出一参考电压VREF;Step 410: the multiplexer 2082 outputs a reference voltage VREF;
步骤412:逻辑单元2084输出一反相脉冲宽度调变信号 Step 412: Logic unit 2084 outputs an inverted PWM signal
步骤414:传输单元2086输出参考电压VREF和反相脉冲宽度调变信号 Step 414: The transmission unit 2086 outputs the reference voltage VREF and the inverted PWM signal
步骤416:第二开关2088根据反相脉冲宽度调变信号开启与关闭;Step 416: The second switch 2088 modulates the signal according to the inverted pulse width on and off;
步骤418:比较器2090根据参考电压VREF和一感测电压SV,产生一开关控制信号SCS至第一开关212,跳至步骤408;Step 418: The comparator 2090 generates a switch control signal SCS to the first switch 212 according to the reference voltage VREF and a sensing voltage SV, and jumps to step 408;
步骤420:多任务器2082输出直流信号DS;Step 420: the multiplexer 2082 outputs a DC signal DS;
步骤422:逻辑单元2084输出与逻辑值LV反相的第一逻辑值 Step 422: The logic unit 2084 outputs the first logic value which is inverted from the logic value LV
步骤424:传输单元2086输出直流信号DS和第一逻辑值 Step 424: The transmission unit 2086 outputs the DC signal DS and the first logic value
步骤426:第二开关2088根据第一逻辑值关闭;Step 426: The second switch 2088 according to the first logical value closure;
步骤428:比较器2090根据直流信号DS和感测电压SV,产生开关控制信号SCS至第一开关212,跳至步骤408。Step 428 : The comparator 2090 generates a switch control signal SCS to the first switch 212 according to the DC signal DS and the sensing voltage SV, and then jumps to step 408 .
图4A和图4B的实施例和图3A和图3B的实施例的差别在于在步骤402中,微控制器210是根据液晶显示器所接收的影像信号,产生脉冲宽度调变信号PWMS,其中脉冲宽度调变信号PWMS是对应于液晶显示器所具有的各种播放模式、各种对比度或各种白平衡,且液晶显示器所具有的各种播放模式包括一电影模式、一电玩模式、一三维(3D)模式及一二维(2D)模式。在图4A和图4B的实施例中,微控制器210可根据液晶显示器所接收的影像信号,产生脉冲宽度调变信号PWMS,也就是说微控制器210可根据液晶显示器所接收的影像信号所对应的流经发光二极管100的驱动电流ILED,产生脉冲宽度调变信号PWMS。例如,当液晶显示器所接收的影像信号需要较大的驱动电流ILED时,微控制器210可产生低频的脉冲宽度调变信号PWMS。另外,图4A和图4B的实施例的其余操作原理皆和图3A和图3B的实施例相同,在此不再赘述。The difference between the embodiment of FIG. 4A and FIG. 4B and the embodiment of FIG. 3A and FIG. 3B is that in step 402, the microcontroller 210 generates a pulse width modulation signal PWMS according to the image signal received by the liquid crystal display, wherein the pulse width The modulating signal PWMS corresponds to various playback modes, various contrast ratios, or various white balances of the liquid crystal display, and the various playback modes of the liquid crystal display include a movie mode, a game mode, and a three-dimensional (3D) mode. mode and a two-dimensional (2D) mode. In the embodiment shown in FIG. 4A and FIG. 4B , the microcontroller 210 can generate the pulse width modulation signal PWMS according to the image signal received by the liquid crystal display, that is to say, the microcontroller 210 can generate the pulse width modulation signal PWMS according to the image signal received by the liquid crystal display. The corresponding driving current ILED flowing through the LED 100 generates a pulse width modulation signal PWMS. For example, when the image signal received by the liquid crystal display requires a large driving current ILED, the microcontroller 210 can generate a low-frequency pulse width modulation signal PWMS. In addition, the remaining operating principles of the embodiment of FIG. 4A and FIG. 4B are the same as those of the embodiment of FIG. 3A and FIG. 3B , and will not be repeated here.
综上所述,本发明所公开的用以调光发光二极管的控制器及方法是根据微控制器产生的脉冲宽度调变信号和一临界值,决定控制器操作在数字调光模式或模拟调光模式,所以本发明只需一只接脚接收微控制器产生的脉冲宽度调变信号,即可使控制器在数字调光模式与模拟调光模式之间切换。因此,相较于现有技术,因为本发明是根据微控制器产生的脉冲宽度调变信号和临界值,决定控制器操作在数字调光模式或模拟调光模式,所以本发明不须对应地修改印刷电路板。另外,本发明是根据微控制器产生的脉冲宽度调变信号和临界值,决定控制器操作在数字调光模式或模拟调光模式,所以本发明并不会增加额外的负担。In summary, the controller and method for dimming light-emitting diodes disclosed in the present invention determine whether the controller operates in digital dimming mode or analog dimming mode according to the pulse width modulation signal generated by the microcontroller and a threshold value. light mode, so the present invention only needs one pin to receive the pulse width modulation signal generated by the microcontroller, so that the controller can switch between the digital dimming mode and the analog dimming mode. Therefore, compared with the prior art, because the present invention determines whether the controller operates in the digital dimming mode or the analog dimming mode according to the pulse width modulation signal and the critical value generated by the microcontroller, the present invention does not need to correspondingly Modify the printed circuit board. In addition, the present invention determines whether the controller operates in the digital dimming mode or the analog dimming mode according to the pulse width modulation signal and the critical value generated by the microcontroller, so the present invention does not add additional burden.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.
Claims (12)
- It is 1. a kind of dimming the controller of light emitting diode, it is characterised in that including:One pulse width modulation pin, to receive the pulse width modulation signal of microcontroller generation;One low-pass filter, according to the pulse width modulation signal, to generate a direct current signal;One frequency detecting unit, according to a critical value and the pulse width modulation signal, to generate a logical value;AndOne control signal generator module, is coupled to the low-pass filter and the frequency detecting unit, to according to described straight Signal, the logical value, a reference voltage and the pulse width modulation signal are flowed, generates a switch control signal to connecting State the first switch of light emitting diode, wherein the first switch be according to the switch control signal open and close and The control signal generator module includes:One multiplexer is coupled to the low-pass filter and the frequency detecting unit, to according to the logical value, output The reference voltage or the direct current signal, wherein when the frequency of the pulse width modulation signal is less than the critical value, The multiplexer exports the reference voltage and when the frequency of the pulse width modulation signal is higher than the critical value When, the multiplexer exports the direct current signal;One logic unit is coupled to the frequency detecting unit, to receive the pulse width modulation signal and the logic Value and one rp pulse width modulation signal of output or the first logical value with the logical value reverse phase, wherein when the arteries and veins When rushing the frequency of width modulation signal less than the critical value, the logic unit exports the rp pulse width modulation letter Number and when the frequency of the pulse width modulation signal is higher than the critical value, logic unit output described first Logical value;One transmission unit is coupled to the multiplexer and the logic unit, to export the reference voltage with it is described straight Flow one of signal and output one of the rp pulse width modulation signal and first logical value;One second switch is coupled to the transmission unit, to according to the rp pulse width modulation signal or described first Logical value performs a corresponding action, wherein when the second switch is opened, the first switch closes and when described When second switch is closed, the first switch is opened;AndOne comparator is coupled to the transmission unit, to according to one of the reference voltage and the direct current signal and One sensing voltage generates the switch control signal to the first switch;Wherein when the comparator is according to the reference voltage and the sensing voltage, the switch control signal is generated to described During first switch, the controller be into a digital dimming mode and when the comparator according to the direct current signal with The sensing voltage,When generating the switch control signal to the first switch, the controller is to enter an analog dimming mode;Wherein when the frequency of the pulse width modulation signal is less than the critical value, the controller is to enter the number Light-modulating mode and when the pulse width modulation signal frequency be higher than the critical value when, the controller be enter institute State analog dimming mode.
- 2. controller as described in claim 1, it is characterised in that:When the controller is switched on, the controller is acquiescence Into the digital dimming mode or the analog dimming mode.
- 3. controller as described in claim 1, it is characterised in that:When the controller normal operation,The controller is according to the pulse width modulation signal and the critical value, switches the digital dimming mode to institute Analog dimming mode or the switching analog dimming mode are stated to the digital dimming mode.
- 4. controller as described in claim 1, it is characterised in that:The switch control signal is transmitted by a grid pin To the first switch.
- 5. it is a kind of to dim the method for light emitting diode, wherein the controller applied to the method includesOne pulse width modulation pin, a low-pass filter, a frequency detecting unit and a control signal generator module, wherein institute It states control signal generator module and includes a multiplexer, a logic unit, a transmission unit, a second switch and a comparator, The method is characterized in that including:The pulse width modulation pin receives the pulse width modulation signal that a microcontroller generates;The low-pass filter generates a direct current signal according to the pulse width modulation signal;The frequency detecting unit generates a logical value according to a critical value and the pulse width modulation signal;When the frequency of the pulse width modulation signal is less than the critical value, the multiplexer exports a reference voltage;When the frequency of the pulse width modulation signal is less than the critical value, it is wide that the logic unit exports a rp pulse Spend modulating signal;The transmission unit exports the reference voltage and the output rp pulse width modulation signal;The second switch opens and closes, according to the rp pulse width modulation signal wherein when the second switch is opened Qi Shi, the first switch for the light emitting diode of connecting are closed and when the second switch is closed, and the first switch is opened It opens;AndThe comparator generates a switch control signal to the first switch according to the reference voltage and a sensing voltage, Wherein described first switch is opened and closed according to the switch control signal;Wherein when the frequency of the pulse width modulation signal is less than the critical value, the controller is to enter a number to adjust Optical mode, when the frequency of the pulse width modulation signal is higher than the critical value, the controller is to enter a simulation to adjust Optical mode and when the comparator is according to the reference voltage and the sensing voltage, generates the switch control signal extremely During the first switch, the controller is to enter the digital dimming mode.
- 6. method as claimed in claim 5, it is characterised in that:When the controller is switched on, the controller be give tacit consent into Enter the digital dimming mode or the analog dimming mode.
- 7. method as claimed in claim 5, it is characterised in that:When the controller normal operation, the controller is root According to the pulse width modulation signal and the critical value, switch the digital dimming mode to the analog dimming mode or Switch the analog dimming mode to the digital dimming mode.
- 8. it is a kind of to dim the method for light emitting diode, wherein the controller applied to the method includesOne pulse width modulation pin, a low-pass filter, a frequency detecting unit and a control signal generator module, wherein institute It states control signal generator module and includes a multiplexer, a logic unit, a transmission unit, a second switch and a comparator, The method is characterized in that including:The pulse width modulation pin receives the pulse width modulation signal that a microcontroller generates;The low-pass filter generates a direct current signal according to the pulse width modulation signal;The frequency detecting unit generates a logical value according to a critical value and the pulse width modulation signal;When the frequency of the pulse width modulation signal is higher than the critical value, the multiplexer exports the direct current letter Number;When the frequency of the pulse width modulation signal is higher than the critical value, the logic unit output and the logical value First logical value of reverse phase;The transmission unit exports the direct current signal and output first logical value;The second switch is closed according to first logical value, wherein when the second switch is closed,Connect the light emitting diode first switch open;AndThe comparator generates a switch control signal to the first switch according to the direct current signal and a sensing voltage;Wherein when the comparator is according to the direct current signal and the sensing voltage, the switch control signal is generated to described During first switch, the controller is to enter an analog dimming mode, when the frequency of the pulse width modulation signal is less than institute When stating critical value, the controller is into a digital dimming mode and when the frequency of the pulse width modulation signal is high When the critical value, the controller is to enter the analog dimming mode.
- 9. it is a kind of to dim the method for light emitting diode, wherein the light emitting diode is to be applied to a liquid crystal display, with And the controller applied to the method includes a pulse width modulation pin, a low-pass filter, a frequency detecting unit And one control signal generator module, wherein it is described control signal generator module include a multiplexer, a logic unit, one transmission Unit, a second switch and a comparator, the method are characterized in that including:The pulse width modulation pin receives a microcontroller according to produced by the video signal that the liquid crystal display receives Pulse width modulation signal;The low-pass filter generates a direct current signal according to the pulse width modulation signal;The frequency detecting unit generates a logical value according to a critical value and the pulse width modulation signal;When the frequency of the pulse width modulation signal is less than the critical value, the multiplexer exports a reference voltage;When the frequency of the pulse width modulation signal is less than the critical value, it is wide that the logic unit exports a rp pulse Spend modulating signal;The transmission unit exports the reference voltage and the rp pulse width modulation signal;The second switch opens and closes, according to the rp pulse width modulation signal wherein when the second switch is opened Qi Shi, the first switch for the light emitting diode of connecting are closed and when the second switch is closed, and the first switch is opened It opens;AndThe comparator generates a switch control signal to the first switch according to the reference voltage and a sensing voltage, Wherein described first switch is opened and closed according to the switch control signal;Wherein when the comparator is according to the reference voltage and the sensing voltage, the switch control signal is generated to described During first switch, the controller is to enter a digital dimming mode, when the frequency of the pulse width modulation signal is less than institute When stating critical value, the controller is to enter the digital dimming mode and the frequency when the pulse width modulation signal During higher than the critical value, the controller is to enter an analog dimming mode.
- 10. method as claimed in claim 9, it is characterised in that:The pulse width modulation signal corresponds to the liquid crystal Various play mode, various contrasts or various white balances possessed by display.
- 11. method as claimed in claim 10, it is characterised in that:The various play mode include a film mode, an electricity Object for appreciation pattern, a three dimensional pattern and a two-dimensional model.
- 12. it is a kind of to dim the method for light emitting diode, wherein the light emitting diode is to be applied to a liquid crystal display, with And the controller applied to the method includes a pulse width modulation pin, a low-pass filter, a frequency detecting unit And one control signal generator module, wherein it is described control signal generator module include a multiplexer, a logic unit, one transmission Unit, a second switch and a comparator, the method are characterized in that including:The pulse width modulation pin receives a microcontroller according to produced by the video signal that the liquid crystal display receives Pulse width modulation signal;The low-pass filter generates a direct current signal according to the pulse width modulation signal;The frequency detecting unit generates a logical value according to a critical value and the pulse width modulation signal;When the frequency of the pulse width modulation signal is higher than the critical value, the multiplexer exports the direct current letter Number;When the frequency of the pulse width modulation signal is higher than the critical value, the logic unit output and the logical value First logical value of reverse phase;The transmission unit exports the direct current signal and first logical value;The second switch is closed according to first logical value, wherein when the second switch is closed,Connect the light emitting diode first switch open;AndThe comparator generates a switch control signal to the first switch according to the direct current signal and a sensing voltage;Wherein when the comparator is according to the direct current signal and the sensing voltage, the switch control signal is generated to described During first switch, the controller is to enter an analog dimming mode, when the frequency of the pulse width modulation signal is less than institute When stating critical value, the controller is into a digital dimming mode and when the frequency of the pulse width modulation signal is high When the critical value, the controller is to enter the analog dimming mode.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410270531.2A CN105263209B (en) | 2014-06-17 | 2014-06-17 | controller and method for dimming light emitting diode |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410270531.2A CN105263209B (en) | 2014-06-17 | 2014-06-17 | controller and method for dimming light emitting diode |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105263209A CN105263209A (en) | 2016-01-20 |
CN105263209B true CN105263209B (en) | 2018-06-19 |
Family
ID=55102665
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410270531.2A Active CN105263209B (en) | 2014-06-17 | 2014-06-17 | controller and method for dimming light emitting diode |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105263209B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101902861A (en) * | 2010-08-10 | 2010-12-01 | 友达光电股份有限公司 | Driving method and driving circuit of light emitting diode |
CN102196621A (en) * | 2010-03-19 | 2011-09-21 | 上海贝岭股份有限公司 | LED dimming circuit |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101289651B1 (en) * | 2010-12-08 | 2013-07-25 | 엘지디스플레이 주식회사 | Liquid crystal display and scanning back light driving method thereof |
-
2014
- 2014-06-17 CN CN201410270531.2A patent/CN105263209B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102196621A (en) * | 2010-03-19 | 2011-09-21 | 上海贝岭股份有限公司 | LED dimming circuit |
CN101902861A (en) * | 2010-08-10 | 2010-12-01 | 友达光电股份有限公司 | Driving method and driving circuit of light emitting diode |
Also Published As
Publication number | Publication date |
---|---|
CN105263209A (en) | 2016-01-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI543663B (en) | Controller and method for dimming light-emitting diodes | |
CN101902861B (en) | Light-emitting diode driving method and driving circuit | |
US7768216B2 (en) | Control circuit and method for controlling light emitting diodes | |
JP2015095347A (en) | LED driving circuit and LED lighting device | |
TWI600286B (en) | A visible light communication device and a driving method thereof | |
US20150223299A1 (en) | Circuits and methods for controlling current in a light emitting diode array | |
CN105263209B (en) | controller and method for dimming light emitting diode | |
TWI498051B (en) | Driving system of an illumination device | |
CN110621099A (en) | Multi-mode current control method and dimming circuit | |
CN113496672B (en) | Current drive device | |
US8259058B2 (en) | Method and device for controlling the backlighting of a flat screen | |
CN104378874B (en) | Electronic circuit, electronic system, light-dimming method and corresponding lamp system | |
CN202160308U (en) | Multi-color light-emitting element circuit | |
JP2017503351A5 (en) | ||
TWI406594B (en) | Adjusting method with constant hysteresis frequency for brightness of illuminating module and circuit thereof | |
CN105528998B (en) | Bias light drive module and electronic equipment | |
TWI396465B (en) | Light color mixing control system for light emitting diodes | |
TWI548303B (en) | Dimming control apparatus and dimming control method | |
TWI605437B (en) | Backlight module | |
TWI500356B (en) | Light-emitting diode controller capable of automatically switching dimming modes | |
TWI419604B (en) | Dimming control method and related light emitting device | |
CN204442789U (en) | A lighting device and its driving module | |
TWI734324B (en) | Light source adjustment system | |
CN104640259B (en) | The drive circuit and driving method of light emitting diode | |
TWI578846B (en) | Control system of light emitting device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |