TW201519695A - Light source driving circuit, color temperature controller and method for controlling color temperature of light source - Google Patents

Light source driving circuit, color temperature controller and method for controlling color temperature of light source Download PDF

Info

Publication number
TW201519695A
TW201519695A TW103139162A TW103139162A TW201519695A TW 201519695 A TW201519695 A TW 201519695A TW 103139162 A TW103139162 A TW 103139162A TW 103139162 A TW103139162 A TW 103139162A TW 201519695 A TW201519695 A TW 201519695A
Authority
TW
Taiwan
Prior art keywords
color temperature
light source
switch
signal
power
Prior art date
Application number
TW103139162A
Other languages
Chinese (zh)
Other versions
TWI568311B (en
Inventor
Ching-Chuan Kuo
Feng Lin
Ying-Chieh Su
Original Assignee
O2Micro Inc
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by O2Micro Inc filed Critical O2Micro Inc
Publication of TW201519695A publication Critical patent/TW201519695A/en
Application granted granted Critical
Publication of TWI568311B publication Critical patent/TWI568311B/en

Links

Abstract

The present disclosure describes a light source driving circuit, a color temperature controller and a method for controlling color temperature of a light source. The light source driving circuit is configured to drive the light source having an adjustable color temperature. The light source driving circuit includes a power converter coupled between a power source and the light source, and a color temperature controller coupled to the power converter. The power converter is configured to receive power from the power source and produce the adjusted power to the light source. The color temperature controller is configured to receive a switch monitor signal indicating the operation of a power switch coupled between the power source and the power converter, and adjust the color temperature of the light source based on the switch monitor signal. The present disclosure can adjust the color temperature of the light source by operating the power switch, therefore, extra apparatus for controlling, such as a specially designed switch with adjusting buttons, can be avoided and the cost can be reduced.

Description

光源驅動電路、色溫控制器及控制光源色溫的方法 Light source driving circuit, color temperature controller and method for controlling color temperature of light source

本發明係有關光源領域,特別係一種光源驅動電路、色溫控制器及控制光源色溫的方法。 The invention relates to the field of light sources, in particular to a light source driving circuit, a color temperature controller and a method for controlling the color temperature of the light source.

近年來,發光二極體(light-emitting diode,LED)等新型光源在材料和製造上都取得了進步。LED具有高效率,長壽命,顏色鮮豔等特點,可以應用於汽車,電腦,通信,軍事和日用品等領域。比如,LED燈可以替代傳統的白熾燈作為照明光源。 In recent years, new light sources such as light-emitting diodes (LEDs) have made advances in materials and manufacturing. LEDs are characterized by high efficiency, long life and bright colors, which can be applied to the fields of automobiles, computers, communications, military and daily necessities. For example, LED lights can replace traditional incandescent lamps as illumination sources.

圖1所示為一種傳統的LED驅動電路100的示意圖。LED驅動電路100利用LED鏈106作為光源。LED鏈106包含多個串聯的LED。電力轉換器102用於將直流輸入電壓Vin轉換成期望的直流輸出電壓Vout用於給LED鏈106供電。與LED驅動電路100相連的開關104能將LED鏈106與輸入電壓Vin連通或斷開從而打開或關閉LED燈。電力轉換器102接收來自電流偵測電阻Rsen的回饋信號並調節輸出電壓Vout以使LED鏈106產生期望的亮度。該傳統方案的缺點之一是,該期望亮度是預先設定好的,在使用過程中,使用者無法調節亮度。 FIG. 1 is a schematic diagram of a conventional LED driving circuit 100. The LED drive circuit 100 utilizes the LED chain 106 as a light source. LED chain 106 includes a plurality of LEDs in series. The power converter 102 is operative to convert the DC input voltage Vin to a desired DC output voltage Vout for powering the LED chain 106. The switch 104 connected to the LED drive circuit 100 can connect or disconnect the LED chain 106 with the input voltage Vin to turn the LED lamp on or off. Power converter 102 receives the feedback signal from current sense resistor Rsen and regulates output voltage Vout to cause LED chain 106 to produce the desired brightness. One of the disadvantages of this conventional solution is that the desired brightness is preset, and the user cannot adjust the brightness during use.

圖2所示為另一種傳統的LED驅動電路200的示意圖。電力 轉換器102用於將直流輸入電壓Vin轉換成期望的直流輸出電壓Vout用於給LED鏈106供電。與LED驅動電路100相連的開關104能將LED鏈106與輸入電壓Vin連通或斷開從而打開或關閉LED燈。LED鏈106與線性電流調節器208相連。線性電流調節器208中的運算放大器210比較參考信號REF和來自電流偵測電阻Rsen的電流監測信號,並產生控制信號,以線性的方式調節電晶體Q1的阻值,從而流經LED鏈106的電流可以得到相應的調節。應用該傳統方案,為控制LED鏈106的光輸出,使用者需要利用某種專用元件,比如一個專門設計的具有調節按鈕的開關或是能接收遙控信號的開關,來調節參考信號REF。 FIG. 2 shows a schematic diagram of another conventional LED drive circuit 200. electric power Converter 102 is operative to convert DC input voltage Vin to a desired DC output voltage Vout for powering LED chain 106. The switch 104 connected to the LED drive circuit 100 can connect or disconnect the LED chain 106 with the input voltage Vin to turn the LED lamp on or off. LED chain 106 is coupled to linear current regulator 208. The operational amplifier 210 in the linear current regulator 208 compares the reference signal REF with the current monitoring signal from the current detecting resistor Rsen and generates a control signal to linearly adjust the resistance of the transistor Q1 to flow through the LED chain 106. The current can be adjusted accordingly. Applying this conventional scheme, in order to control the light output of the LED chain 106, the user needs to adjust the reference signal REF by using a special component such as a specially designed switch with an adjustment button or a switch capable of receiving a remote control signal.

本發明要解決的技術問題在於提供一種光源驅動電路、色溫控制器及控制光源色溫的方法,能夠以簡單便捷的方式來實現對光源色溫的調節。 The technical problem to be solved by the present invention is to provide a light source driving circuit, a color temperature controller and a method for controlling the color temperature of the light source, which can realize the adjustment of the color temperature of the light source in a simple and convenient manner.

本發明提供了一種光源驅動電路,該光源驅動電路用於驅動具有可調色溫的一光源,該光源驅動電路包括:一電力轉換器,耦接在一電源與該光源之間,從該電源接收一電能並且向該光源提供一調節後的電能;以及一色溫控制器,耦接該電力轉換器,接收一指示耦接該電源與該電力轉換器之間的一電源開關的一操作的一開關監測信號,並且基於該開關監測信號調整該光源的一色溫。 The present invention provides a light source driving circuit for driving a light source having a color temperature, the light source driving circuit comprising: a power converter coupled between a power source and the light source, receiving from the power source An electrical energy and providing an adjusted electrical energy to the light source; and a color temperature controller coupled to the power converter to receive a switch indicating an operation of coupling a power switch between the power source and the power converter The signal is monitored and a color temperature of the light source is adjusted based on the switch monitoring signal.

本發明又提供了一種色溫控制器,該色溫控制器包括:一驅動單元,接收指示流經一光源的一電流值的一電流監測信號,並且根據 該電流監測信號產生一驅動信號控制一電力轉換器提供一調節後的電能給該光源;以及一控制單元,耦接該驅動單元,接收指示一電源開關的一操作的一開關監測信號,並且基於該開關監測信號調整該光源的一色溫,其中,該電源開關耦接在電源與該電力轉換器之間。 The invention further provides a color temperature controller, the color temperature controller comprising: a driving unit, receiving a current monitoring signal indicating a current value flowing through a light source, and according to The current monitoring signal generates a driving signal to control a power converter to provide an adjusted power to the light source; and a control unit coupled to the driving unit to receive a switch monitoring signal indicating an operation of a power switch, and based on The switch monitoring signal adjusts a color temperature of the light source, wherein the power switch is coupled between the power source and the power converter.

本發明還提供一種控制光源色溫的方法,該方法包括:從一電源接收一電能並且由一電力轉換器向一光源提供一調節後的電能;接收指示耦接在該電源與該電力轉換器之間的一電源開關的一操作的一開關監測信號;以及基於該開關監測信號調整該光源的一色溫。 The invention also provides a method for controlling the color temperature of a light source, the method comprising: receiving a power from a power source and providing a regulated power to a light source by a power converter; the receiving indication is coupled to the power source and the power converter a switch monitoring signal for an operation of a power switch; and adjusting a color temperature of the light source based on the switch monitoring signal.

與習知技術相比,本發明的光源驅動電路、色溫控制器及控制光源色溫的方法能夠藉由通過對電源開關的操作來實現對光源色溫的調節,且無需使用額外的專用元件,因此相當簡單便捷且節省了成本。 Compared with the prior art, the light source driving circuit, the color temperature controller and the method for controlling the color temperature of the light source of the present invention can realize the adjustment of the color temperature of the light source by operating the power switch without using an additional dedicated component. Simple and convenient, and cost savings.

100‧‧‧LED驅動電路 100‧‧‧LED drive circuit

102‧‧‧電力轉換器 102‧‧‧Power Converter

104‧‧‧開關 104‧‧‧ switch

106‧‧‧LED鏈 106‧‧‧LED chain

200‧‧‧LED驅動電路 200‧‧‧LED drive circuit

208‧‧‧線性電流調節器 208‧‧‧Linear current regulator

210‧‧‧運算放大器 210‧‧‧Operational Amplifier

300‧‧‧光源驅動電路 300‧‧‧Light source drive circuit

304‧‧‧電源開關 304‧‧‧Power switch

306‧‧‧交流/直流轉換器 306‧‧•AC/DC converter

308‧‧‧調光控制器 308‧‧‧ dimming controller

310‧‧‧電力轉換器 310‧‧‧Power Converter

312‧‧‧LED鏈 312‧‧‧LED chain

314‧‧‧電流監測器 314‧‧‧ Current monitor

400‧‧‧光源驅動電路 400‧‧‧Light source drive circuit

502‧‧‧調光器 502‧‧‧ dimmer

504‧‧‧脈衝信號產生器 504‧‧‧ pulse signal generator

506‧‧‧觸發監測單元 506‧‧‧Trigger monitoring unit

508‧‧‧啟動及低壓鎖定電路 508‧‧‧Starting and low voltage locking circuit

510‧‧‧運算放大器 510‧‧‧Operational Amplifier

512‧‧‧金屬氧化物半導體場效應電晶體 512‧‧‧Metal Oxide Semiconductor Field Effect Transistor

514‧‧‧金屬氧化物半導體場效應電晶體 514‧‧‧Metal Oxide Semiconductor Field Effect Transistor

515‧‧‧金屬氧化物半導體場效應電晶體 515‧‧‧Metal Oxide Semiconductor Field Effect Transistor

516‧‧‧比較器 516‧‧‧ comparator

518‧‧‧比較器 518‧‧‧ comparator

520‧‧‧SR觸發器 520‧‧‧SR trigger

522‧‧‧SR觸發器 522‧‧‧SR trigger

524‧‧‧及閘 524‧‧‧ and gate

526‧‧‧計數器 526‧‧‧ counter

528‧‧‧數模轉換器 528‧‧‧Digital-to-Analog Converter

530‧‧‧脈波寬度調變信號產生器 530‧‧‧ Pulse width modulation signal generator

532‧‧‧電流源 532‧‧‧current source

534‧‧‧比較器 534‧‧‧ comparator

536‧‧‧脈衝信號 536‧‧‧ pulse signal

538‧‧‧控制信號 538‧‧‧Control signal

540‧‧‧開關 540‧‧‧ switch

541‧‧‧開關 541‧‧‧ switch

542‧‧‧開關 542‧‧‧Switch

602‧‧‧電流 602‧‧‧ Current

1000‧‧‧光源驅動電路 1000‧‧‧Light source drive circuit

1008‧‧‧調光控制器 1008‧‧‧ dimming controller

1102‧‧‧調光器 1102‧‧‧Dimmer

1104‧‧‧時鐘產生器 1104‧‧‧clock generator

1106‧‧‧觸發監測單元 1106‧‧‧Trigger monitoring unit

1126‧‧‧計數器 1126‧‧‧ counter

1400‧‧‧光源驅動電路 1400‧‧‧Light source drive circuit

1408‧‧‧調光控制器 1408‧‧‧ dimming controller

1450‧‧‧開關監測信號 1450‧‧‧Switch monitoring signal

1452‧‧‧開關控制信號 1452‧‧‧Switch control signal

1454‧‧‧感應信號 1454‧‧‧Induction signal

1480‧‧‧元件 1480‧‧‧ components

1502‧‧‧調光器 1502‧‧‧Dimmer

1504‧‧‧計數器 1504‧‧‧ counter

1506‧‧‧參考信號產生器 1506‧‧‧Reference signal generator

1508‧‧‧PWM產生器 1508‧‧‧PWM generator

1510‧‧‧使能信號 1510‧‧‧Enable signal

1900‧‧‧光源驅動電路 1900‧‧‧Light source drive circuit

1908‧‧‧調光控制器 1908‧‧‧ dimming controller

1952‧‧‧脈衝信號 1952‧‧‧ pulse signal

1954‧‧‧控制信號 1954‧‧‧Control signal

2002‧‧‧調光器 2002‧‧‧Dimmer

2004‧‧‧模式選擇模組 2004‧‧‧Mode Selection Module

2006‧‧‧電流源 2006‧‧‧current source

2008‧‧‧開關 2008‧‧‧Switch

2010‧‧‧驅動器 2010‧‧‧ drive

2300‧‧‧光源驅動電路 2300‧‧‧Light source drive circuit

2302‧‧‧直流/直流轉換器 2302‧‧‧DC/DC Converter

2304‧‧‧變壓器 2304‧‧‧Transformers

2305‧‧‧一次側繞組 2305‧‧‧ primary winding

2306‧‧‧色溫控制器 2306‧‧‧Color temperature controller

2307‧‧‧二次側繞組 2307‧‧‧secondary winding

2308‧‧‧第一LED鏈 2308‧‧‧First LED chain

2309‧‧‧輔助繞組 2309‧‧‧Auxiliary winding

2310‧‧‧第二LED鏈 2310‧‧‧Second LED chain

2312‧‧‧第一控制開關 2312‧‧‧First control switch

2314‧‧‧第二控制開關 2314‧‧‧Second control switch

2316‧‧‧電流監測器 2316‧‧‧ Current monitor

2325‧‧‧磁芯 2325‧‧‧ magnetic core

2410‧‧‧驅動器 2410‧‧‧ drive

2411‧‧‧誤差放大器 2411‧‧‧Error amplifier

2413‧‧‧鋸齒波信號產生器 2413‧‧‧Sawtooth signal generator

2415‧‧‧比較器 2415‧‧‧ comparator

2417‧‧‧脈波寬度調變信號產生器 2417‧‧‧ Pulse width modulation signal generator

2420‧‧‧控制單元 2420‧‧‧Control unit

2421‧‧‧計時器 2421‧‧‧Timer

2423‧‧‧第一D型正反器 2423‧‧‧First D-type flip-flop

2425‧‧‧第二D型正反器 2425‧‧‧Second D-type flip-flop

2427‧‧‧第一及閘 2427‧‧‧First Gate

2429‧‧‧第二及閘 2429‧‧‧Second Gate

2431‧‧‧判定單元 2431‧‧‧Decision unit

2433‧‧‧反相器 2433‧‧‧Inverter

第1圖係一種傳統的LED驅動電路的電路圖。 Figure 1 is a circuit diagram of a conventional LED driving circuit.

第2圖係另一種傳統的LED驅動電路的電路圖。 Figure 2 is a circuit diagram of another conventional LED drive circuit.

第3圖係根據本發明實施例的光源驅動電路的示意圖。 Fig. 3 is a schematic view of a light source driving circuit according to an embodiment of the present invention.

第4圖係根據本發明實施例的光源驅動電路的電路圖。 Fig. 4 is a circuit diagram of a light source driving circuit according to an embodiment of the present invention.

第5圖係圖4中的調光控制器的結構示意圖。 Figure 5 is a schematic view showing the structure of the dimming controller of Figure 4.

第6圖係類比調光模式下的信號波形示意圖。 Figure 6 is a schematic diagram of signal waveforms in analog dimming mode.

第7圖係脈衝調光模式下的信號波形示意圖。 Figure 7 is a schematic diagram of signal waveforms in pulse dimming mode.

第8圖係根據本發明實施例的光源驅動電路的運作方式示 Figure 8 is a diagram showing the operation mode of a light source driving circuit according to an embodiment of the present invention.

意圖,該光源驅動電路包含有圖5中所示的調光控制器。 It is intended that the light source driving circuit includes the dimming controller shown in FIG.

第9圖係根據本發明實施例的對光源進行電能控制的方法流程圖。 Figure 9 is a flow chart of a method of power control of a light source in accordance with an embodiment of the present invention.

第10圖係根據本發明實施例的光源驅動電路的電路圖。 Fig. 10 is a circuit diagram of a light source driving circuit according to an embodiment of the present invention.

第11圖係圖10中的調光控制器的結構示意圖。 Figure 11 is a schematic view showing the structure of the dimming controller of Figure 10.

第12圖係根據本發明實施例的光源驅動電路的運作方式示意圖,該光源驅動電路包含有圖11中所示的調光控制器。 Figure 12 is a schematic diagram showing the operation of a light source driving circuit according to an embodiment of the present invention, the light source driving circuit including the dimming controller shown in Figure 11.

第13圖係根據本發明實施例的對光源進行電能控制的方法流程圖。 Figure 13 is a flow chart of a method of power control of a light source in accordance with an embodiment of the present invention.

第14A圖係根據本發明的實施例的光源驅動電路的電路圖。 Fig. 14A is a circuit diagram of a light source driving circuit according to an embodiment of the present invention.

第14B圖係圖14A中的電源開關的一個實施例的示意圖。 Figure 14B is a schematic diagram of one embodiment of the power switch of Figure 14A.

第15圖係根據本發明的實施例的圖14A中的調光控制器的結構示意圖。 Fig. 15 is a view showing the configuration of the dimming controller of Fig. 14A according to an embodiment of the present invention.

第16圖係根據本發明的實施例的包含圖15中的調光控制器的光源驅動電路的信號示意圖。 Figure 16 is a signal diagram of a light source driving circuit including the dimming controller of Figure 15 in accordance with an embodiment of the present invention.

第17圖係根據本發明的實施例的包含圖15中的調光控制器的光源驅動電路的另一信號示意圖。 Figure 17 is another signal diagram of a light source driving circuit including the dimming controller of Figure 15 in accordance with an embodiment of the present invention.

第18圖係根據本發明的實施例的控制LED光源的調光的方法流程圖。 Figure 18 is a flow diagram of a method of controlling dimming of an LED light source in accordance with an embodiment of the present invention.

第19圖係根據本發明的實施例的光源驅動電路的電路圖。 Fig. 19 is a circuit diagram of a light source driving circuit according to an embodiment of the present invention.

第20圖係根據本發明的實施例的圖19中的調光控制器的 結構示意圖。 Figure 20 is a diagram of the dimming controller of Figure 19 in accordance with an embodiment of the present invention. Schematic.

第21圖係根據本發明的實施例的包含圖19中的調光控制器的光源驅動電路的信號示意圖。 Figure 21 is a signal diagram of a light source driving circuit including the dimming controller of Figure 19, in accordance with an embodiment of the present invention.

第22圖係根據本發明的實施例的控制LED光源的調光的方法流程圖。 Figure 22 is a flow chart of a method of controlling dimming of an LED light source in accordance with an embodiment of the present invention.

第23A圖係根據本發明實施例的光源驅動電路的示意圖。 Fig. 23A is a schematic diagram of a light source driving circuit according to an embodiment of the present invention.

第23B圖係根據本發明實施例的光源驅動電路的電路圖。 Fig. 23B is a circuit diagram of a light source driving circuit according to an embodiment of the present invention.

第24圖係圖23B中的色溫控制器的結構示意圖。 Figure 24 is a schematic view showing the structure of the color temperature controller in Figure 23B.

第25圖係根據本發明實施例的包含圖24所示的色溫控制器的光源驅動電路的信號波形圖。 Fig. 25 is a signal waveform diagram of a light source driving circuit including the color temperature controller shown in Fig. 24 according to an embodiment of the present invention.

第26圖係為根據本發明另一實施例的包含圖24所示的色溫控制器的光源驅動電路的信號波形圖。 Figure 26 is a signal waveform diagram of a light source driving circuit including the color temperature controller shown in Figure 24 according to another embodiment of the present invention.

第27圖係根據本發明實施例的控制光源色溫的方法流程圖。 Figure 27 is a flow chart showing a method of controlling the color temperature of a light source according to an embodiment of the present invention.

以下將對本發明的實施例給出詳細的說明。儘管本發明透過這些實施方式進行闡述和說明,但需要注意的是本發明並不僅僅只局限於這些實施方式。相反地,本發明涵蓋後附申請專利範圍所定義的發明精神和發明範圍內的所有替代物、變體和等同物。在以下對本發明的詳細描述中,為了提供一個針對本發明的完全的理解,闡明瞭大量的具體細節。然而,本領域技術人員將理解,沒有這些具體細節,本發明同樣可以實施。在另外的一些實例中,對於大家熟知的方案、流程、元件和電路未作詳細 描述,以便於凸顯本發明的主旨。 A detailed description of the embodiments of the present invention will be given below. Although the invention has been illustrated and described with respect to the embodiments, it should be noted that the invention is not limited to the embodiments. Rather, the invention is to cover all modifications, alternatives and equivalents of the scope of the invention as defined by the appended claims. In the following detailed description of the invention, reference to the claims However, those skilled in the art will appreciate that the present invention may be practiced without these specific details. In other examples, the well-known schemes, procedures, components, and circuits are not detailed. Description is provided to highlight the gist of the present invention.

圖3所示為根據本發明一個實施例的光源驅動電路300的示意圖。在一個實施例中,電源開關304耦合於電源Vin和光源驅動電路300之間,用於有選擇性的將光源驅動電路300和電源Vin相連。光源驅動電路300包括用於將來自電源的交流輸入電壓Vin轉換為直流輸出電壓Vout的交流/直流轉換器306,與交流/直流轉換器306相連的用於為LED鏈312提供調節後電能的電力轉換器310,與電力轉換器310相連用於接收指示電源開關304動作的開關監測信號並根據該開關監測信號控制電力轉換器310輸出的調光控制器308,以及用於監測流經LED鏈312的電流的電流監測器314。在一個實施例中,電源開關304是置於牆面上的電源開關。 3 is a schematic diagram of a light source driving circuit 300 in accordance with one embodiment of the present invention. In one embodiment, power switch 304 is coupled between power source Vin and light source drive circuit 300 for selectively connecting light source drive circuit 300 to power source Vin. The light source driving circuit 300 includes an AC/DC converter 306 for converting an AC input voltage Vin from a power source into a DC output voltage Vout, and an electric power connected to the AC/DC converter 306 for supplying the adjusted energy to the LED chain 312. The converter 310 is connected to the power converter 310 for receiving a switch monitoring signal indicating the action of the power switch 304 and controlling the dimming controller 308 output by the power converter 310 according to the switch monitoring signal, and for monitoring the flow through the LED chain 312. The current monitor 314 of the current. In one embodiment, the power switch 304 is a power switch placed on the wall.

在操作中,交流/直流轉換器306將輸入交流電壓Vin轉換為直流輸出電壓Vout。電力轉換器310接收直流電壓Vout並為LED鏈312提供調節後的電壓。電流監測器314產生電流監測信號,該電流監測信號指示流經LED鏈312的電流的大小。調光控制器308監測電源開關304的動作,接收來自電流監測器314的電流監測信號,並根據電源開關304的動作控制電力轉換器310以調節LED鏈312的電能。在一個實施例中,調光控制器308工作於類比調光模式,通過調節一個決定LED電流峰值的參考信號來調節LED鏈312的電能。在另一個實施例中,調光控制器308工作於脈衝調光(burst dimming)模式,通過調節一脈波寬度調變信號(PWM信號)的責任週期來調節LED鏈312的電能。通過調節LED鏈312的電能,LED鏈312的亮度能夠得到對應地調節。 In operation, the AC/DC converter 306 converts the input AC voltage Vin into a DC output voltage Vout. Power converter 310 receives DC voltage Vout and provides an adjusted voltage to LED chain 312. Current monitor 314 generates a current monitoring signal that indicates the magnitude of the current flowing through LED chain 312. The dimming controller 308 monitors the action of the power switch 304, receives a current monitoring signal from the current monitor 314, and controls the power converter 310 to regulate the power of the LED chain 312 in accordance with the action of the power switch 304. In one embodiment, dimming controller 308 operates in analog dimming mode to adjust the power of LED chain 312 by adjusting a reference signal that determines the peak value of the LED current. In another embodiment, the dimming controller 308 operates in a burst dimming mode to adjust the power of the LED chain 312 by adjusting the duty cycle of a pulse width modulated signal (PWM signal). By adjusting the electrical energy of the LED chain 312, the brightness of the LED chain 312 can be adjusted accordingly.

圖4所示為根據本發明一個實施例的光源驅動電路400的電 路圖。圖4將結合圖3進行描述。圖4中與圖3圖號相同的部件具有類似的功能,為簡明起見在此不做重複描述。 4 shows the power of the light source driving circuit 400 according to an embodiment of the present invention. Road map. Figure 4 will be described in conjunction with Figure 3. The same components in FIG. 4 as those in FIG. 3 have similar functions, and will not be repeatedly described herein for the sake of brevity.

光源驅動電路400包括連接於電源和LED鏈312之間的電力轉換器310,用於接收來自電源的電能並為LED鏈312提供調節後的電能。在圖4的實施例中,電力轉換器310是包括電感L1,二極體D4和控制開關Q16的降壓轉換器。圖4中的實施例中,控制開關Q16位於調光控制器308的外部。在其他的實施例中,控制開關Q16也可以集成於調光控制器308的內部。 Light source drive circuit 400 includes a power converter 310 coupled between the power source and LED chain 312 for receiving power from the power source and providing regulated power to LED chain 312. In the embodiment of FIG. 4, power converter 310 is a buck converter that includes inductor L1, diode D4, and control switch Q16. In the embodiment of FIG. 4, control switch Q16 is external to dimming controller 308. In other embodiments, the control switch Q16 can also be integrated into the interior of the dimming controller 308.

調光控制器308接收開關監測信號並根據該開關監測信號控制與LED鏈312串聯的開關Q16,以調節電力轉換器310(包括電感L1,二極體D4和控制開關Q16)輸出的調節後的電能。該開關監測信號指示電源開關(如連接於電源和光源驅動電路之間的電源開關304)的動作。光源驅動電路400進一步包括交流/直流轉換器306,用於將交流輸入電壓Vin轉換成直流輸出電壓Vout。光源驅動電路400還包括電流監測器314,用於監測流經LED鏈312的電流。在圖4所示的實施例中,交流/直流轉換器306是包括二極體D1,二極體D2,二極體D7,二極體D8,二極體D10和電容C9的橋式整流器。電流監測器314包括電流偵測電阻R5。 The dimming controller 308 receives the switch monitoring signal and controls the switch Q16 in series with the LED chain 312 according to the switch monitoring signal to adjust the adjusted output of the power converter 310 (including the inductor L1, the diode D4 and the control switch Q16). Electrical energy. The switch monitor signal indicates the action of a power switch, such as a power switch 304 connected between the power source and the light source drive circuit. The light source driving circuit 400 further includes an AC/DC converter 306 for converting the AC input voltage Vin into a DC output voltage Vout. Light source drive circuit 400 also includes a current monitor 314 for monitoring current flow through LED chain 312. In the embodiment shown in FIG. 4, the AC/DC converter 306 is a bridge rectifier including a diode D1, a diode D2, a diode D7, a diode D8, a diode D10, and a capacitor C9. The current monitor 314 includes a current detecting resistor R5.

在一個實施例中,調光控制器308的埠包括:HV_GATE,SEL,CLK,RT,VDD,CTRL,MON和GND。埠HV_GATE通過電阻R15與開關Q27相連,用於控制與LED鏈312相連的開關Q27的導電狀態(如接通/斷開的狀態)。電容C11連接於埠HV_GATE和地之間,用於調整開關Q27的閘極電壓。 In one embodiment, the 埠 of the dimming controller 308 includes: HV_GATE, SEL, CLK, RT, VDD, CTRL, MON, and GND.埠HV_GATE is connected to the switch Q27 through a resistor R15 for controlling the conduction state (such as the on/off state) of the switch Q27 connected to the LED chain 312. Capacitor C11 is connected between 埠HV_GATE and ground for adjusting the gate voltage of switch Q27.

在實際使用時,使用者可以選擇將埠SEL通過電阻R4連接 到地,如圖4所示,或者將埠SEL直接連接到地,可以相應地選擇類比調光模式或是脈衝調光模式。 In actual use, the user can choose to connect 埠SEL through resistor R4. To the ground, as shown in Figure 4, or by connecting 埠SEL directly to ground, the analog dimming mode or the pulse dimming mode can be selected accordingly.

埠CLK通過電阻R3連接至交流/直流轉換器306,同時通過電阻R6連接到地。埠CLK接收一個開關監測信號,該開關監測信號指示電源開關304的動作。在一個實施例中,開關監測信號在電阻R3和電阻R6之間的一個節點上產生。電容C12與電阻R6並聯,用於濾除不必要的雜訊。埠RT通過電阻R7與地相連,用於確定由調光控制器308產生的脈衝信號的頻率。 埠CLK is connected to the AC/DC converter 306 through a resistor R3 while being connected to ground through a resistor R6.埠CLK receives a switch monitoring signal that indicates the action of power switch 304. In one embodiment, the switch monitor signal is generated at a node between resistor R3 and resistor R6. Capacitor C12 is connected in parallel with resistor R6 to filter out unwanted noise.埠RT is coupled to ground through resistor R7 for determining the frequency of the pulse signal generated by dimming controller 308.

埠VDD通過二極體D9與開關Q27相連,用於為調光控制器308供電。在一個實施例中,一個儲能單元,如電容C10,連接於埠VDD和地之間,在電源開關304斷開時為調光控制器308供電。在另一個實施例中,儲能單元還可以集成於調光控制器308內部。埠GND與地相連。 埠VDD is connected to switch Q27 through diode D9 for powering dimming controller 308. In one embodiment, an energy storage unit, such as capacitor C10, is coupled between 埠VDD and ground to power dimming controller 308 when power switch 304 is turned off. In another embodiment, the energy storage unit can also be integrated inside the dimming controller 308.埠 GND is connected to ground.

埠CTRL與開關Q16相連。開關Q16與LED鏈312以及開關Q27串聯,並通過電流監測電阻R5連接到地。調光控制器308通過在埠CTRL上輸出的控制信號控制開關Q16的導電狀態,以調整電力轉換器310輸出的調節後的電能。埠MON與電流監測電阻R5相連,用於接收指示流經LED鏈312的電流的電流監測信號。當開關Q27接通時,調光控制器308通過控制開關Q16來調節流經LED鏈312的電流。 埠 CTRL is connected to switch Q16. Switch Q16 is coupled in series with LED chain 312 and switch Q27 and is coupled to ground via current monitoring resistor R5. The dimming controller 308 controls the conductive state of the switch Q16 by a control signal outputted on the 埠CTRL to adjust the adjusted electrical energy output by the power converter 310.埠MON is coupled to current monitoring resistor R5 for receiving a current monitoring signal indicative of current flowing through LED chain 312. When switch Q27 is turned "on", dimming controller 308 regulates the current flowing through LED chain 312 by controlling switch Q16.

在操作中,當電源開關304接通時,交流/直流轉換器306將輸入的交流電壓Vin轉換為直流輸出電壓Vout。埠HV_GATE上具有預設電壓值的電壓通過電阻R15施加於開關Q27上,從而接通開關Q27。 In operation, when the power switch 304 is turned "on", the AC/DC converter 306 converts the input AC voltage Vin into a DC output voltage Vout. A voltage having a preset voltage value on 埠HV_GATE is applied to the switch Q27 through the resistor R15, thereby turning on the switch Q27.

如果調光控制器308接通開關Q16,直流電壓Vout會對LED 鏈312供電並對電感L1充電。電流流經電感L1、LED鏈312、開關Q27、開關Q16以及電阻R5到地。如果調光控制器308斷開開關Q16,則電流流經電感L1,LED鏈312和二極體D4。電感L1放電以給LED鏈312供電。因此,調光控制器308可以通過控制開關Q16,調整電力轉換器310輸出的調節後的電能。 If dimming controller 308 turns on switch Q16, DC voltage Vout will be LED Chain 312 supplies power and charges inductor L1. Current flows through inductor L1, LED chain 312, switch Q27, switch Q16, and resistor R5 to ground. If the dimming controller 308 turns off the switch Q16, current flows through the inductor L1, the LED chain 312, and the diode D4. Inductor L1 is discharged to power LED chain 312. Therefore, the dimming controller 308 can adjust the adjusted electrical energy output by the power converter 310 by controlling the switch Q16.

當電源開關304斷開,電容C10放電以為調光控制器308供電。電阻R6兩端的電壓下降到0,從而調光控制器308可以在埠CLK上監測到一個指示電源開關304斷開操作的開關監測信號。類似地,當電源開關304接通,電阻R6兩端的電壓升至一預設電壓值,從而調光控制器308可以在埠CLK上監測到一個指示電源開關304接通操作的開關監測信號。如果監測到斷開操作,調光控制器308可以把埠HV_GATE上的電壓下拉到0以斷開開關Q27,從而使得電感L1徹底放電後LED鏈312被斷電。監測到電源開關304的斷開操作後,調光控制器308調節一個參考信號,該參考信號指示LED鏈312的期望亮度。當電源開關304下次接通時,LED鏈312的亮度能夠根據調節後的期望亮度進行調整。換言之,LED鏈312的輸出亮度能夠由調光控制器308根據電源開關304的斷開操作進行調整。 When the power switch 304 is turned off, the capacitor C10 is discharged to supply power to the dimming controller 308. The voltage across resistor R6 drops to zero, so that dimming controller 308 can monitor a switch monitor signal indicating that power switch 304 is open on 埠CLK. Similarly, when the power switch 304 is turned "on", the voltage across the resistor R6 rises to a predetermined voltage value, so that the dimming controller 308 can monitor a switch monitor signal indicating that the power switch 304 is turned "on" on the 埠CLK. If a disconnect operation is detected, the dimming controller 308 can pull the voltage on 埠HV_GATE to 0 to turn off the switch Q27, causing the LED chain 312 to be powered down after the inductor L1 is completely discharged. After monitoring the disconnect operation of the power switch 304, the dimming controller 308 adjusts a reference signal indicative of the desired brightness of the LED chain 312. When the power switch 304 is turned on next time, the brightness of the LED chain 312 can be adjusted according to the adjusted desired brightness. In other words, the output brightness of the LED chain 312 can be adjusted by the dimming controller 308 according to the opening operation of the power switch 304.

圖5所示為圖4中的調光控制器308的結構示意圖。圖5將結合圖4進行描述。圖5中與圖4圖號相同的部件具有類似地功能,為簡明起見在此不做重複描述。 FIG. 5 is a schematic structural view of the dimming controller 308 of FIG. Figure 5 will be described in conjunction with Figure 4. The same components in Fig. 5 as those in Fig. 4 have similar functions, and will not be repeatedly described herein for the sake of brevity.

調光控制器308包含觸發監測單元506、調光器502和脈衝信號產生器504。觸發監測單元506通過齊納二極體ZD1連接到地。觸發監測單元506通過埠CLK接收開關監測信號,該開關監測信號指示外部電源開關 304的動作。外部電源開關304的動作被監測到時,觸發監測單元506產生驅動信號以驅動計數器526。觸發監測單元506還進一步控制開關Q27的導電狀態。調光器502產生參考信號REF,以類比調光的方式調節LED鏈312的電能。調光器502也可以產生控制信號538,通過調節脈波寬度調變信號PWM1的責任週期來調整LED鏈312的電能。脈衝信號產生器504產生脈衝信號用於接通開關Q16。調光控制器308還包括與埠VDD相連的啟動及低壓鎖定(UVL)電路508,用於根據不同的電能情況選擇性地啟動調光控制器308內部的一個或多個部件。 The dimming controller 308 includes a trigger monitoring unit 506, a dimmer 502, and a pulse signal generator 504. The trigger monitoring unit 506 is connected to ground through the Zener diode ZD1. The trigger monitoring unit 506 receives a switch monitoring signal through the 埠CLK, the switch monitoring signal indicating an external power switch The action of 304. When the action of the external power switch 304 is monitored, the trigger monitoring unit 506 generates a drive signal to drive the counter 526. The trigger monitoring unit 506 also further controls the conduction state of the switch Q27. The dimmer 502 generates a reference signal REF that adjusts the power of the LED chain 312 in an analog to dimming manner. The dimmer 502 can also generate a control signal 538 that adjusts the power of the LED chain 312 by adjusting the duty cycle of the pulse width modulation signal PWM1. The pulse signal generator 504 generates a pulse signal for turning on the switch Q16. The dimming controller 308 also includes a startup and low voltage lock (UVL) circuit 508 coupled to 埠 VDD for selectively activating one or more components within the dimming controller 308 based on different electrical conditions.

在一個實施例中,如果埠VDD上的電壓高於第一預設電壓,則啟動及低壓鎖定電路508將啟動調光控制器308中所有的部件。當電源開關304斷開,如果埠VDD上的電壓低於第二預設電壓,啟動及低壓鎖定電路508將關閉調光控制器308中除了觸發監測單元506和調光器502以外的其他部件以節省電能。如果埠VDD上的電壓低於第三預設電壓,啟動及低壓鎖定電路508將關閉觸發監測單元506和調光器502。在一個實施例中,第一預設電壓高於第二預設電壓,第二預設電壓高於第三預設電壓。因為調光控制器308能夠由電容C10經過埠VDD供電,所以即便是電源開關304斷開後,觸發監測單元506和調光器502還可以工作一段時間。 In one embodiment, if the voltage on 埠 VDD is higher than the first predetermined voltage, the startup and low voltage lockout circuit 508 will activate all of the components in the dimming controller 308. When the power switch 304 is turned off, if the voltage on 埠 VDD is lower than the second predetermined voltage, the startup and low voltage lockout circuit 508 will turn off the components of the dimming controller 308 other than the trigger monitoring unit 506 and the dimmer 502. Save energy. If the voltage on 埠 VDD is lower than the third predetermined voltage, the startup and low voltage lockout circuit 508 will turn off the trigger monitoring unit 506 and the dimmer 502. In one embodiment, the first preset voltage is higher than the second preset voltage, and the second preset voltage is higher than the third preset voltage. Since the dimming controller 308 can be powered by the capacitor C10 via 埠VDD, the trigger monitoring unit 506 and the dimmer 502 can operate for a period of time even after the power switch 304 is turned off.

在調光控制器308中,埠SEL與電流源532相連。使用者可以通過配置埠SEL來選擇調光模式,例如將埠SEL直接與地相連,或是將埠SEL通過一個電阻與地相連。在一個實施例中,調光模式通過測量埠SEL上的電壓來決定。如果埠SEL直接與地相連,則埠SEL上的電壓近似於0。一控制電路(圖中未示出)可以接通開關540,斷開開關541和開關542,從而調光 控制器308可以工作於類比調光模式,並且通過調整參考信號REF來調整LED鏈312的電能。在一個實施例中,如果埠SEL通過電阻R4連接到地(圖4中所示),且R4具有一個預設的阻值,那麼埠SEL上的電壓大於0。該控制電路斷開開關540、接通開關541和開關542。從而調光控制器308工作於脈衝調光模式,並通過調整脈波寬度調變信號PWM1的責任週期來調整LED鏈312的電能。換言之,通過控制開關540、開關541、及開關542的導電狀態,可以選擇不同的調光模式。而開關540、開關541、及開關542的導電狀態由埠SEL上的電壓決定。 In dimming controller 308, 埠SEL is coupled to current source 532. The user can select the dimming mode by configuring 埠SEL, such as connecting 埠SEL directly to ground or connecting 埠SEL to ground through a resistor. In one embodiment, the dimming mode is determined by measuring the voltage on the 埠SEL. If 埠SEL is directly connected to ground, the voltage on 埠SEL is approximately zero. A control circuit (not shown) can turn on the switch 540, turn off the switch 541 and the switch 542, thereby dimming Controller 308 can operate in analog dimming mode and adjust the power of LED chain 312 by adjusting reference signal REF. In one embodiment, if 埠SEL is coupled to ground through resistor R4 (shown in Figure 4) and R4 has a predetermined resistance, then the voltage on 埠SEL is greater than zero. The control circuit opens switch 540, turns on switch 541, and switches 542. Thus, the dimming controller 308 operates in the pulse dimming mode and adjusts the power of the LED chain 312 by adjusting the duty cycle of the pulse width modulation signal PWM1. In other words, by controlling the conduction states of the switch 540, the switch 541, and the switch 542, different dimming modes can be selected. The conduction state of switch 540, switch 541, and switch 542 is determined by the voltage on 埠SEL.

脈衝信號產生器504通過埠RT以及電阻R7連接到地,產生用於接通開關Q16的脈衝信號536。脈衝信號產生器504可以有不同的結構,並不限於圖5中所示的結構。 Pulse signal generator 504 is coupled to ground via 埠RT and resistor R7 to generate a pulse signal 536 for turning on switch Q16. The pulse signal generator 504 can have a different structure and is not limited to the structure shown in FIG.

在脈衝信號產生器504中,運算放大器510的非反相端接收預設電壓V1,因此運算放大器510的反相端電壓也為V1。電流IRT通過埠RT和電阻R7流到地。流經金屬氧化物半導體場效應電晶體(MOSFET)514和金屬氧化物半導體場效應電晶體515的電流I1與電流IRT具有同樣的大小。金屬氧化物半導體場效應電晶體514和金屬氧化物半導體場效應電晶體512構成電流鏡,因此流經金屬氧化物半導體場效應電晶體512的電流I2也與電流IRT具有相同的大小。比較器516的輸出和比較器518的輸出分別與SR觸發器520的S輸入端和R輸入端相連。比較器516的反相端接收預設電壓V2。比較器518的非反相端接收預設電壓V3。在一個實施例中,V2大於V3且V3大於0。電容C4連接於金屬氧化物半導體場效應電晶體512和地之間,一端與比較器516非反相端和比較器518反相端之間的節點相連。SR觸發器 520的Q輸出端與開關Q15相連,同時也與SR觸發器522的S輸入端相連。開關Q15與電容C4並聯。開關Q15的導電狀態由SR觸發器520的Q輸出端決定。 In the pulse signal generator 504, the non-inverting terminal of the operational amplifier 510 receives the preset voltage V1, and thus the inverting terminal voltage of the operational amplifier 510 is also V1. Current IRT flows to ground through 埠RT and resistor R7. The current I1 flowing through the metal oxide semiconductor field effect transistor (MOSFET) 514 and the metal oxide semiconductor field effect transistor 515 has the same magnitude as the current IRT. The metal oxide semiconductor field effect transistor 514 and the metal oxide semiconductor field effect transistor 512 constitute a current mirror, so the current I2 flowing through the metal oxide semiconductor field effect transistor 512 is also the same size as the current IRT. The output of comparator 516 and the output of comparator 518 are coupled to the S input and R input of SR flip flop 520, respectively. The inverting terminal of the comparator 516 receives the preset voltage V2. The non-inverting terminal of the comparator 518 receives the preset voltage V3. In one embodiment, V2 is greater than V3 and V3 is greater than zero. Capacitor C4 is coupled between metal oxide semiconductor field effect transistor 512 and ground, and is coupled at one end to a node between the non-inverting terminal of comparator 516 and the inverting terminal of comparator 518. SR trigger The Q output of 520 is coupled to switch Q15 and also to the S input of SR flip flop 522. Switch Q15 is connected in parallel with capacitor C4. The conduction state of switch Q15 is determined by the Q output of SR flip flop 520.

電容C4兩端的初始電壓近似為0,小於V3。因此SR觸發器520的R輸入端接收比較器518輸出的數位信號1。SR觸發器520的Q輸出端被置為數位信號0,從而斷開開關Q15。當開關Q15斷開,電容C4在電流I2的作用下充電,因此電容C4兩端的電壓升高。當C4兩端電壓大於V2,SR觸發器520的S輸入端接收比較器516輸出的數位信號1。SR觸發器520的Q輸出端被置為數位信號1,從而接通開關Q15。當開關Q15接通,電容C4通過開關Q15放電,從而兩端的電壓降低。當電容C4兩端的電壓下降到V3,比較器518輸出數位信號1,SR觸發器520的Q輸出端被置為數位信號0,從而斷開開關Q15。此後電容C4在電流I2的作用下又進行充電。如前所述,脈衝信號產生器504在SR觸發器520的Q輸出端產生脈衝信號536,該脈衝信號536包含有一系列的脈衝。脈衝信號536被傳送至SR觸發器522的S輸入端。 The initial voltage across capacitor C4 is approximately zero, less than V3. Therefore, the R input of the SR flip-flop 520 receives the digital signal 1 output by the comparator 518. The Q output of SR flip flop 520 is set to digital signal 0, thereby turning off switch Q15. When the switch Q15 is turned off, the capacitor C4 is charged by the current I2, so the voltage across the capacitor C4 rises. When the voltage across C4 is greater than V2, the S input of SR flip flop 520 receives the digital signal 1 output by comparator 516. The Q output of the SR flip-flop 520 is set to a digital signal 1, thereby turning on the switch Q15. When the switch Q15 is turned on, the capacitor C4 is discharged through the switch Q15, so that the voltage across the terminals is lowered. When the voltage across capacitor C4 drops to V3, comparator 518 outputs digital signal 1, and the Q output of SR flip-flop 520 is set to digital signal 0, thereby opening switch Q15. Capacitor C4 is then charged again by the action of current I2. As previously described, pulse signal generator 504 produces a pulse signal 536 at the Q output of SR flip flop 520, which includes a series of pulses. Pulse signal 536 is passed to the S input of SR flip flop 522.

觸發監測單元506通過埠CLK監測電源開關304的動作。如果電源開關304的動作在埠CLK被監測到,觸發監測單元506產生一個驅動信號以驅動計數器526。在一個實施例中,當電源開關304被接通,埠CLK上的電壓上升,該電壓等於電阻R6兩端的電壓,如圖4所示。當電源開關304被斷開,埠CLK上的電壓下降到0。因此,指示電源開關304動作的開關監測信號可以在埠CLK被監測到。在一個實施例中,當一個斷開動作在埠CLK被監測到時,觸發監測單元506產生驅動信號。 The trigger monitoring unit 506 monitors the action of the power switch 304 via 埠CLK. If the action of the power switch 304 is detected at 埠CLK, the trigger monitoring unit 506 generates a drive signal to drive the counter 526. In one embodiment, when power switch 304 is turned "on", the voltage on 埠CLK rises, which is equal to the voltage across resistor R6, as shown in FIG. When the power switch 304 is turned off, the voltage on 埠CLK drops to zero. Therefore, the switch monitoring signal indicating the action of the power switch 304 can be monitored at 埠CLK. In one embodiment, the trigger monitoring unit 506 generates a drive signal when a disconnect action is detected at 埠CLK.

觸發監測單元506還通過埠HV_GATE控制開關Q27的導電狀態。當電源開關304被接通,齊納二極體ZD1兩端的擊穿電壓通過電阻R15 施加至開關Q27,從而接通開關Q27。觸發監測單元506可以將埠HV_GATE的電壓下拉到0從而斷開開關Q27。在一個實施例中,當埠CLK上監測到電源開關304的斷開動作,觸發監測單元506斷開開關Q27。當埠CLK上監測到電源開關304的接通動作,觸發監測單元506接通開關Q27。 The trigger monitoring unit 506 also controls the conduction state of the switch Q27 by 埠HV_GATE. When the power switch 304 is turned on, the breakdown voltage across the Zener diode ZD1 passes through the resistor R15. It is applied to the switch Q27, thereby turning on the switch Q27. The trigger monitoring unit 506 can pull down the voltage of 埠HV_GATE to 0 to turn off the switch Q27. In one embodiment, when the disconnection action of the power switch 304 is detected on the 埠CLK, the trigger monitoring unit 506 turns off the switch Q27. When the turn-on action of the power switch 304 is detected on the 埠CLK, the trigger monitoring unit 506 turns on the switch Q27.

在一個實施例中,調光器502包含與觸發監測單元506相連的計數器526,用於對電源開關304的動作進行計數。調光器502還包括與計數器526相連的數模轉換器528,以及與數模轉換器528相連的脈波寬度調變信號產生器530。計數器526由觸發監測單元506產生的驅動信號所驅動。具體來講,當電源開關304斷開,觸發監測單元506在埠CLK上監測到一個下降沿,從而產生一個驅動信號。計數器526的計數值在該驅動信號的作用下遞增(比如加1)。數模轉換器528從計數器526中讀取計數值,並根據計數值產生調光信號(該調光信號可以是控制信號538或參考信號REF)。調光信號可以用來調整電力轉換器310的目標電能值,從而調整LED鏈312的亮度。 In one embodiment, dimmer 502 includes a counter 526 coupled to trigger monitoring unit 506 for counting the action of power switch 304. The dimmer 502 also includes a digital to analog converter 528 coupled to the counter 526 and a pulse width modulated signal generator 530 coupled to the digital to analog converter 528. Counter 526 is driven by a drive signal generated by trigger monitoring unit 506. Specifically, when the power switch 304 is turned off, the trigger monitoring unit 506 detects a falling edge on the 埠CLK, thereby generating a drive signal. The count value of counter 526 is incremented by the drive signal (e.g., incremented by one). The digital to analog converter 528 reads the count value from the counter 526 and generates a dimming signal based on the count value (the dimming signal can be the control signal 538 or the reference signal REF). The dimming signal can be used to adjust the target power value of power converter 310 to adjust the brightness of LED chain 312.

在脈衝調光模式下,開關540斷開、開關541和開關542接通。比較器534的反相端接收參考信號REF1。REF1是具有預設電壓值的直流信號。REF1的電壓決定了LED鏈312的電流峰值,從而也決定了LED鏈312的最大亮度。在這種脈衝調光模式下,調光信號即施加於脈波寬度調變信號產生器530上的控制信號538,該控制信號538可以調整脈波寬度調變信號PWM1的責任週期。通過調整PWM1的責任週期,使得LED鏈312的亮度等於或低於REF1決定的最大亮度。例如,如果PWM1的責任週期為100%,則LED鏈312具有最大亮度。如果PWM1的責任週期小於100%,則LED鏈312的亮度低於最大亮度。 In the pulse dimming mode, switch 540 is open, switch 541 and switch 542 are turned "on". The inverting terminal of comparator 534 receives reference signal REF1. REF1 is a DC signal with a preset voltage value. The voltage of REF1 determines the current peak of LED chain 312, which in turn determines the maximum brightness of LED chain 312. In this pulse dimming mode, the dimming signal is applied to a control signal 538 on the pulse width modulation signal generator 530, which can adjust the duty cycle of the pulse width modulation signal PWM1. By adjusting the duty cycle of PWM1, the brightness of LED chain 312 is equal to or lower than the maximum brightness determined by REF1. For example, if the duty cycle of PWM1 is 100%, then LED chain 312 has maximum brightness. If the duty cycle of PWM1 is less than 100%, the brightness of LED chain 312 is lower than the maximum brightness.

在類比調光模式下,開關540接通、開關541和開關542斷開。在這種類比調光模式下,調光信號即參考信號REF。該參考信號REF是一個類比信號,具有可調節的電壓。數模轉換器528根據計數器526的計數值調整REF的電壓。REF的電壓決定了LED鏈312的電流峰值,從而也決定了LED鏈312的最大亮度。因此,通過調整REF,LED鏈312的亮度可以得到相應地調整。 In the analog dimming mode, switch 540 is turned "on" and switch 541 and switch 542 are turned "off". In this analog dimming mode, the dimming signal is the reference signal REF. The reference signal REF is an analog signal with an adjustable voltage. Digital to analog converter 528 adjusts the voltage of REF based on the count value of counter 526. The voltage of REF determines the current peak of LED chain 312, which in turn determines the maximum brightness of LED chain 312. Therefore, by adjusting REF, the brightness of the LED chain 312 can be adjusted accordingly.

在一個實施例中,計數器的計數值增加使得數模轉換器528調低REF的電壓。例如,如果計數值為0,則數模轉換器528調整REF的電壓為V4。如果觸發監測單元506在埠CLK監測到電源開關304的斷開動作從而使得計數值增加到1,則數模轉換器528調整REF的電壓為V5,且V5小於V4。在另一個實施例中,計數器的計數值增加使得數模轉換器528調高REF的電壓。 In one embodiment, the count value of the counter is increased such that the digital to analog converter 528 lowers the voltage of REF. For example, if the count value is 0, the digital to analog converter 528 adjusts the voltage of REF to V4. If the trigger monitoring unit 506 monitors the turn-off action of the power switch 304 to cause the count value to increase to 1, the digital-to-analog converter 528 adjusts the voltage of REF to V5, and V5 is less than V4. In another embodiment, the count value of the counter is increased such that the digital to analog converter 528 boosts the voltage of REF.

在一個實施例中,當計數器526的計數值達到最大值時,計數值被重新置為0。如果計數器526是一個兩位元數目器,計數值將從0開始依次增加到1,2,3,然後在第四個斷開操作後回到0。相應地,LED鏈312的亮度從第一級被依次調整到第二級,第三級,第四級,然後又回到第一級。 In one embodiment, when the count value of counter 526 reaches a maximum value, the count value is reset to zero. If the counter 526 is a two-digit counter, the count value will increase from 0 to 1, 2, 3, and then return to 0 after the fourth disconnect operation. Accordingly, the brightness of the LED chain 312 is sequentially adjusted from the first stage to the second stage, the third stage, the fourth stage, and then back to the first stage.

比較器534的反相端可以選擇性的接收參考信號REF或是參考信號REF1。在類比調光模式下,比較器534的反相端通過開關540接收參考信號REF。在脈衝調光模式下,比較器534的反相端通過開關541接收參考信號REF1。比較器534的非反相端通過埠MON與電流監測電阻R5相連,以接收來自電流監測電阻R5的電流監測信號SEN。電流監測信號SEN的電壓 代表當開關Q27和Q16打開時流經LED鏈312的電流大小。 The inverting terminal of the comparator 534 can selectively receive the reference signal REF or the reference signal REF1. In analog dimming mode, the inverting terminal of comparator 534 receives reference signal REF through switch 540. In the pulse dimming mode, the inverting terminal of the comparator 534 receives the reference signal REF1 through the switch 541. The non-inverting terminal of comparator 534 is coupled to current monitoring resistor R5 via 埠MON to receive current monitoring signal SEN from current monitoring resistor R5. Current monitoring signal SEN voltage Represents the amount of current flowing through LED chain 312 when switches Q27 and Q16 are open.

比較器534的輸出端與SR觸發器522的R輸入端相連。SR觸發器522的Q輸出端和及閘524相連。脈波寬度調變信號產生器530產生的脈波寬度調變信號PWM1施加至及閘524。及閘524輸出控制信號,通過埠CTRL控制Q16。 The output of comparator 534 is coupled to the R input of SR flip flop 522. The Q output of SR flip flop 522 is coupled to AND gate 524. The pulse width modulation signal PWM1 generated by the pulse width modulation signal generator 530 is applied to the AND gate 524. The gate 524 outputs a control signal, and Q16 is controlled by 埠CTRL.

如果選擇了類比調光模式,開關540接通、開關541和542斷開。開關Q16由SR觸發器522控制。當電源開關304接通,齊納二極體ZD1兩端的擊穿電壓使得開關Q27接通。在脈衝信號產生器504產生的脈衝信號536的作用下,SR觸發器522在Q輸出端產生數位信號1,使得開關Q16接通。電流流經電感L1、LED鏈312、開關Q27、開關Q16、及電流監測電阻R5到地。由於電感L1阻止電流的跳變,因此該電流會逐漸增大。電流監測電阻R5兩端的電壓(即電流監測信號SEN的電壓)會隨之增大。當SEN的電壓大於參考信號REF的電壓,比較器534輸出數位信號1到SR觸發器522的R輸入端,從而SR觸發器522輸出數位信號0,使得開關Q16斷開。開關Q16斷開後,電感L1放電以對LED鏈312供電。流經電感L1、LED鏈312和二極體D4的電流逐漸減小。當SR觸發器522在S輸入端接收到一個脈衝時,開關Q16接通,LED鏈312的電流通過電流監測電阻R5流到地。當電流監測信號SEN的電壓大於參考信號REF的電壓,開關Q16再次被SR觸發器522斷開。如上該,參考信號REF決定了流經LED鏈312電流的峰值,也即決定了LED鏈312的亮度。通過調整REF,LED鏈312的亮度得以相應地調整。 If the analog dimming mode is selected, switch 540 is turned "on" and switches 541 and 542 are turned "off". Switch Q16 is controlled by SR flip flop 522. When the power switch 304 is turned on, the breakdown voltage across the Zener diode ZD1 causes the switch Q27 to be turned on. Under the action of the pulse signal 536 generated by the pulse signal generator 504, the SR flip-flop 522 produces a digital signal 1 at the Q output, causing the switch Q16 to turn "on". Current flows through inductor L1, LED chain 312, switch Q27, switch Q16, and current monitoring resistor R5 to ground. Since the inductor L1 blocks the jump of the current, the current gradually increases. The voltage across the current monitoring resistor R5 (ie, the voltage of the current monitoring signal SEN) will increase. When the voltage of SEN is greater than the voltage of the reference signal REF, the comparator 534 outputs the digital signal 1 to the R input of the SR flip-flop 522, so that the SR flip-flop 522 outputs the digital signal 0, causing the switch Q16 to open. After switch Q16 is turned off, inductor L1 is discharged to supply power to LED chain 312. The current flowing through the inductor L1, the LED chain 312, and the diode D4 is gradually reduced. When the SR flip-flop 522 receives a pulse at the S input, the switch Q16 is turned "on" and the current of the LED chain 312 flows through the current monitoring resistor R5 to ground. When the voltage of the current monitoring signal SEN is greater than the voltage of the reference signal REF, the switch Q16 is again turned off by the SR flip-flop 522. As described above, the reference signal REF determines the peak value of the current flowing through the LED chain 312, that is, determines the brightness of the LED chain 312. By adjusting REF, the brightness of LED chain 312 is adjusted accordingly.

在類比調光模式下,如果電源開關304被斷開,如圖4所示,電容C10放電以對調光控制器308供電。當觸發監測單元506在埠CLK監測到 電源開關304的斷開動作時,計數器526的計數值加1。電源開關304的斷開動作使得觸發監測單元506斷開開關Q27。計數值的改變使得數模轉換器528把參考信號REF的電壓從第一電壓值調整到第二電壓值。因此,當電源開關304再次接通時,LED鏈312的亮度因為參考信號REF的調整而得以調整。 In the analog dimming mode, if the power switch 304 is turned off, as shown in FIG. 4, the capacitor C10 is discharged to supply power to the dimming controller 308. When the trigger monitoring unit 506 monitors at 埠CLK When the power switch 304 is turned off, the count value of the counter 526 is incremented by one. The opening action of the power switch 304 causes the trigger monitoring unit 506 to open the switch Q27. The change in the count value causes the digital to analog converter 528 to adjust the voltage of the reference signal REF from the first voltage value to the second voltage value. Therefore, when the power switch 304 is turned on again, the brightness of the LED chain 312 is adjusted due to the adjustment of the reference signal REF.

如果選擇脈衝調光模式,開關540斷開,開關541和開關524接通。比較器534的反相端接收具有預設電壓值的參考信號REF1。開關Q16由SR觸發器522和脈波寬度調變信號PWM1通過及閘524共同控制。參考信號REF1決定了LED鏈312的峰值電流,也即決定了LED鏈312的最大亮度。脈波寬度調變信號PWM1的責任週期決定了開關Q16的接通/斷開時間。脈波寬度調變信號PWM1為數位信號1時,開關Q16的導電狀態由SR觸發器522的Q輸出端的輸出決定。當脈波寬度調變信號PWM1為數位信號0時,開關Q16斷開。通過調整脈波寬度調變信號PWM1的責任週期,可以相應的調整LED鏈312的電能。因此,參考信號REF1和脈波寬度調變信號PWM1共同決定LED鏈312的亮度。 If pulse dimming mode is selected, switch 540 is open and switch 541 and switch 524 are turned "on". The inverting terminal of the comparator 534 receives the reference signal REF1 having a preset voltage value. The switch Q16 is controlled by the SR flip-flop 522 and the pulse width modulation signal PWM1 and the gate 524. The reference signal REF1 determines the peak current of the LED chain 312, which determines the maximum brightness of the LED chain 312. The duty cycle of the pulse width modulation signal PWM1 determines the on/off time of the switch Q16. When the pulse width modulation signal PWM1 is the digital signal 1, the conduction state of the switch Q16 is determined by the output of the Q output terminal of the SR flip-flop 522. When the pulse width modulation signal PWM1 is a digital signal 0, the switch Q16 is turned off. By adjusting the duty cycle of the pulse width modulation signal PWM1, the power of the LED chain 312 can be adjusted accordingly. Therefore, the reference signal REF1 and the pulse width modulation signal PWM1 together determine the brightness of the LED chain 312.

在脈衝調光模式下,當電源開關304斷開,該斷開操作在埠CLK被觸發監測單元506監測到。觸發監測單元506斷開Q27並產生驅動信號。在驅動信號的作用下,計數器526的計數值增加,例如增加1。數模轉換器528產生控制信號538,使得脈波寬度調變信號PWM1的責任週期從第一級變為第二級。因此,當電源開關304再次接通,LED鏈312的亮度將以目標亮度值為目標進行調整。而該目標亮度值由參考信號REF1和脈波寬度調變信號PWM1共同決定。 In the pulse dimming mode, when the power switch 304 is turned off, the turn-off operation is monitored by the trigger monitoring unit 506 at 埠CLK. The trigger monitoring unit 506 turns off Q27 and generates a drive signal. Under the action of the drive signal, the count value of the counter 526 is increased, for example by one. The digital to analog converter 528 generates a control signal 538 such that the duty cycle of the pulse width modulation signal PWM1 changes from the first stage to the second stage. Therefore, when the power switch 304 is turned "on" again, the brightness of the LED chain 312 will be adjusted with the target brightness value as a target. The target luminance value is determined by the reference signal REF1 and the pulse width modulation signal PWM1.

圖6所示為類比調光模式下的信號波形示意圖。其中包括流 經LED鏈312的電流602、脈衝信號536、SR觸發器522的輸出V522、及閘524的輸出V524,以及開關Q16的接通/斷開狀態。圖6將結合圖4和圖5進行描述。 Figure 6 shows a schematic diagram of the signal waveform in the analog dimming mode. Which includes the flow The current 602 through the LED chain 312, the pulse signal 536, the output V522 of the SR flip-flop 522, and the output V524 of the gate 524, and the on/off state of the switch Q16. Figure 6 will be described in conjunction with Figures 4 and 5.

脈衝信號產生器504產生脈衝信號536。在脈衝信號536每個脈衝的作用下,SR觸發器522在Q輸出端產生數位信號1。而SR觸發器522在Q輸出端產生數位信號1會使得開關Q16接通。當開關Q16接通,電感L1充電,電流602增大。當電流602達到峰值Imax,也即電流監測信號SEN的電壓與參考信號REF的電壓相等時,比較器534輸出數位信號1至SR觸發器522的R輸入端,使得SR觸發器522在Q輸出端輸出數位信號0。SR觸發器522在Q輸出端輸出數位信號0會使得開關Q16斷開,而電感L1放電為LED鏈312供電,且電流602減小。在類比調光模式下,通過調整參考信號REF,流經LED鏈312的平均電流值得到相應地調整,從而LED鏈312的亮度也得到調整。 Pulse signal generator 504 generates pulse signal 536. Under the action of each pulse of pulse signal 536, SR flip-flop 522 produces a digital signal 1 at the Q output. The generation of the digital signal 1 by the SR flip-flop 522 at the Q output causes the switch Q16 to turn "on". When switch Q16 is turned on, inductor L1 is charged and current 602 is increased. When the current 602 reaches the peak Imax, that is, the voltage of the current monitoring signal SEN is equal to the voltage of the reference signal REF, the comparator 534 outputs the digital signal 1 to the R input of the SR flip-flop 522 such that the SR flip-flop 522 is at the Q output. The digital signal 0 is output. Outputting the digital signal 0 at the Q output of the SR flip-flop 522 causes the switch Q16 to open, while the discharge of the inductor L1 supplies power to the LED chain 312 and the current 602 decreases. In the analog dimming mode, by adjusting the reference signal REF, the average current value flowing through the LED chain 312 is adjusted accordingly, so that the brightness of the LED chain 312 is also adjusted.

圖7所示為脈衝調光模式下的信號波形示意圖。其中包括流經LED鏈312的電流602、脈衝信號536、SR觸發器522的輸出V522、及閘524的輸出V524、開關Q16的接通/斷開狀態、以及脈波寬度調變信號PWM1。圖7將結合圖4和圖5進行描述。 Figure 7 shows a schematic diagram of the signal waveform in pulse dimming mode. These include current 602 flowing through LED chain 312, pulse signal 536, output V522 of SR flip flop 522, and output V524 of gate 524, on/off state of switch Q16, and pulse width modulation signal PWM1. Figure 7 will be described in conjunction with Figures 4 and 5.

當PWM1為數位信號1時,流經LED鏈312的電流602,脈衝信號536,V522,V524和開關Q16的接通/斷開狀態之間的相互關係與圖6相似。當PWM1為數位信號0時,及閘524的輸出變為數位信號0。從而使得開關Q16斷開而電流602減小。如果PWM1保持數位信號0的狀態足夠久,電流602會減小到0。在脈衝調光模式下,通過調整PWM1的責任週期,流經LED鏈312的平均電流值得到相應的調整,從而LED鏈312的亮度也得到調整。 When PWM1 is a digital signal 1, the relationship between the current 602 flowing through the LED chain 312, the on/off states of the pulse signals 536, V522, V524 and the switch Q16 is similar to that of FIG. When PWM1 is a digital signal 0, the output of AND gate 524 becomes digital signal 0. Thereby the switch Q16 is turned off and the current 602 is decreased. If PWM1 maintains the state of digital signal 0 long enough, current 602 will decrease to zero. In the pulse dimming mode, by adjusting the duty cycle of PWM1, the average current value flowing through the LED chain 312 is adjusted accordingly, so that the brightness of the LED chain 312 is also adjusted.

圖8所示為根據本發明一個實施例的光源驅動電路的運作方式示意圖。圖8將結合圖5進行描述。 FIG. 8 is a schematic diagram showing the operation of a light source driving circuit according to an embodiment of the present invention. Figure 8 will be described in conjunction with Figure 5.

在圖8所示的實施例中,每當觸發監測單元506監測到電源開關304的斷開動作,計數器526的計數值就會加1。計數器526是一個兩位元數目器,最大計數值為3。 In the embodiment shown in FIG. 8, whenever the trigger monitoring unit 506 detects the opening action of the power switch 304, the counter 526 count value is incremented by one. Counter 526 is a two-digit counter with a maximum count of three.

在類比調光模式下,數模轉換器528從計數器526中讀取計數值。計數值的增加使得數模轉換器528調低參考信號REF的電壓。參考信號REF的電壓決定了LED鏈312電流的峰值Imax,也即決定了LED鏈312電流的平均值。在脈衝調光模式下,數模轉換器528從計數器526中讀取計數值。計數值的增加使得數模轉換器528調低脈波寬度調變信號PWM1的責任週期,例如每次調低25%。計數器526在達到最大計數值,例如3後被重置。 In analog dimming mode, digital to analog converter 528 reads the count value from counter 526. The increase in the count value causes the digital to analog converter 528 to turn down the voltage of the reference signal REF. The voltage of the reference signal REF determines the peak value Imax of the current of the LED chain 312, that is, the average value of the current of the LED chain 312. In the pulse dimming mode, digital to analog converter 528 reads the count value from counter 526. The increase in the count value causes the digital to analog converter 528 to turn down the duty cycle of the pulse width modulation signal PWM1, for example by 25% each time. Counter 526 is reset after reaching a maximum count value, such as 3.

圖9所示為根據本發明一個實施例的對光源進行電能控制的方法流程圖。圖9將結合圖4和圖5進行描述。 9 is a flow chart of a method of power control of a light source in accordance with one embodiment of the present invention. Figure 9 will be described in conjunction with Figures 4 and 5.

在步驟902中,電力轉換器,例如電力轉換器310,提供的調節後的電能對光源例如LED鏈312,進行供電。 In step 902, a power converter, such as power converter 310, provides regulated power to power a source, such as LED chain 312.

在步驟904中,接收開關監測信號,例如由調光控制器308接收開關監測信號。該開關監測信號指示位於電源和電力轉換器之間的電源開關,例如電源開關304,的動作。 In step 904, a switch monitoring signal is received, such as by a dimming controller 308. The switch monitor signal indicates the action of a power switch, such as power switch 304, located between the power source and the power converter.

在步驟906中,根據開關監測信號產生調光信號。 In step 906, a dimming signal is generated based on the switch monitoring signal.

在步驟908中,根據該調光信號控制與光源串聯的開關,例如開關Q16,以調整電力轉換器提供的調節後的電能。在一個採用類比調光模式的實施例中,通過比較調光信號和代表光源電流大小的電流監測信號 來調整電力轉換器。在另一個採用脈衝調光模式的實施例中,通過用該調光信號控制一個脈波寬度調變信號的責任週期來調整電力轉換器。 In step 908, a switch in series with the light source, such as switch Q16, is controlled in accordance with the dimming signal to adjust the regulated electrical energy provided by the power converter. In an embodiment employing an analog dimming mode, the dimming signal and a current monitoring signal representative of the magnitude of the source current are compared To adjust the power converter. In another embodiment employing a pulse dimming mode, the power converter is adjusted by controlling the duty cycle of a pulse width modulated signal with the dimming signal.

如前所述,本發明披露了一種光源驅動電路,該光源驅動電路根據指示電源開關例如固定在牆上的電源開關,動作的開關監測信號來調整光源的電能。該光源的電能由電力轉換器提供,並由調光控制器通過控制與光源串聯的開關來進行調整。 As described above, the present invention discloses a light source driving circuit that adjusts electric energy of a light source according to a switching signal indicating a power switch, such as a power switch fixed to a wall, and an action switch. The power of the source is provided by a power converter and is adjusted by a dimming controller by controlling a switch in series with the source.

使用者可以通過對普通電源開關的動作,例如斷開動作,來調節光源的亮度,而不必使用額外的元件,例如專門設計的具有調光按鈕的開關,從而節省成本。 The user can adjust the brightness of the light source by acting on a normal power switch, such as a disconnecting action, without having to use additional components, such as a specially designed switch with a dimming button, thereby saving cost.

圖10所示為根據本發明一個實施例的光源驅動電路1000的電路圖。圖10將結合圖3進行描述。圖10中與圖3及圖4圖號相同的部件具有類似的功能。 FIG. 10 is a circuit diagram of a light source driving circuit 1000 in accordance with one embodiment of the present invention. Figure 10 will be described in conjunction with Figure 3. The same components in Fig. 10 as those in Figs. 3 and 4 have similar functions.

光源驅動電路1000包括與電源和LED鏈312相連的電力轉換器310,用於接收來自電源的電能並為LED鏈312提供調節後的電能。調光控制器1008通過埠CLK上的電壓來監測位於電源和光源驅動電路1000之間的電源開關304的動作。調光控制器1008通過埠CLK接收調光請求信號和調光終止信號。該調光請求信號指示電源開關304的第一組動作,該調光終止信號指示電源開關304的第二組動作。如果接收到調光請求信號,調光控制器1008連續調整電力轉換器310輸出的調節後的電能。如果接收到調光終止信號,調光控制器1008停止調整電力轉換器310輸出的調節後的電能。換言之,如果監測到電源開關304的第一組動作,調光控制器1008開始連續調整電力轉換器310輸出的調節後的電能,直到監測到電源開關304的第二組 動作。在一個實施例中,調光控制器1008通過控制與LED鏈312串聯的控制開關Q16來調整電力轉換器310輸出的調節後的電能。 Light source drive circuit 1000 includes a power converter 310 coupled to a power source and LED chain 312 for receiving power from a power source and providing regulated power to LED chain 312. The dimming controller 1008 monitors the action of the power switch 304 between the power source and the light source driving circuit 1000 by the voltage on the 埠CLK. The dimming controller 1008 receives the dimming request signal and the dimming termination signal through the 埠CLK. The dimming request signal indicates a first set of actions of the power switch 304, the dimming termination signal indicating a second set of actions of the power switch 304. If the dimming request signal is received, the dimming controller 1008 continuously adjusts the adjusted electrical energy output by the power converter 310. If the dimming termination signal is received, the dimming controller 1008 stops adjusting the adjusted electrical energy output by the power converter 310. In other words, if the first set of actions of the power switch 304 is monitored, the dimming controller 1008 begins to continuously adjust the adjusted power output by the power converter 310 until the second set of power switches 304 is monitored. action. In one embodiment, dimming controller 1008 adjusts the regulated electrical energy output by power converter 310 by controlling control switch Q16 in series with LED chain 312.

圖11所示為圖10中調光控制器1008的結構示意圖,圖11將結合圖10進行描述。圖11中與圖4、圖5及圖10圖號相同的部件具有類似的功能。 FIG. 11 is a schematic structural view of the dimming controller 1008 of FIG. 10, which will be described in conjunction with FIG. The same components in Fig. 11 as those in Figs. 4, 5, and 10 have similar functions.

在圖11的實施例中,調光控制器1008的結構與圖5中調光控制器308的結構類似。不同之處在於調光器1102和觸發監測單元1106。在圖11中,觸發監測單元1106通過埠CLK接收調光請求信號和調光終止信號,並產生信號EN來啟動或關閉時鐘產生器1104。觸發監測單元1106還控制與LED鏈312相連的開關Q27的導電狀態。 In the embodiment of FIG. 11, the structure of the dimming controller 1008 is similar to that of the dimming controller 308 of FIG. The difference is in the dimmer 1102 and the trigger monitoring unit 1106. In FIG. 11, the trigger monitoring unit 1106 receives the dimming request signal and the dimming termination signal through 埠CLK, and generates a signal EN to turn the clock generator 1104 on or off. The trigger monitoring unit 1106 also controls the conduction state of the switch Q27 connected to the LED chain 312.

類比調光模式下,調光器1102產生參考信號REF來調整LED鏈312的電能。脈衝調光模式下,調光器1102產生控制信號538來調整脈波寬度調變信號PWM1的責任週期,從而調整LED鏈312的電能。在圖11的實施例中,調光器1102包括與觸發監測單元1106相連的用於產生時鐘信號的時鐘產生器1104,由時鐘信號驅動的計數器1126,以及與計數器1126相連的數模轉換器528。調光器1102還進一步包括與數模轉換器528相連的脈波寬度調變信號產生器530。 In analog dimming mode, dimmer 1102 generates reference signal REF to adjust the power of LED chain 312. In the pulse dimming mode, the dimmer 1102 generates a control signal 538 to adjust the duty cycle of the pulse width modulation signal PWM1 to adjust the power of the LED chain 312. In the embodiment of FIG. 11, dimmer 1102 includes a clock generator 1104 coupled to trigger monitoring unit 1106 for generating a clock signal, a counter 1126 driven by a clock signal, and a digital to analog converter 528 coupled to counter 1126. . The dimmer 1102 also further includes a pulse width modulation signal generator 530 coupled to the digital to analog converter 528.

當電源開關304接通或斷開,觸發監測單元1106能夠在埠CLK分別監測到電壓上升沿或者下降沿。例如,當電源開關304斷開,電容C10放電為調光控制器1108供電。電阻R6兩端的電壓下降到0,從而觸發監測單元1106可以在埠CLK上監測到一個電壓下降沿。類似地,當電源開關304接通,電阻R6兩端的電壓上升至一個預設的電壓,從而觸發監測單元 1106可以在埠CLK上監測到一個電壓上升沿。如前所述,通過埠CLK上的電壓,觸發監測單元1106可以監測到電源開關304的動作,例如接通動作或斷開動作。 When the power switch 304 is turned "on" or "off", the trigger monitoring unit 1106 can detect a voltage rising edge or a falling edge at 埠CLK, respectively. For example, when the power switch 304 is turned off, the capacitor C10 is discharged to power the dimming controller 1108. The voltage across resistor R6 drops to zero, so that the trigger monitoring unit 1106 can detect a voltage falling edge on 埠CLK. Similarly, when the power switch 304 is turned on, the voltage across the resistor R6 rises to a preset voltage, thereby triggering the monitoring unit. 1106 can detect a rising voltage on 埠CLK. As previously mentioned, the trigger monitoring unit 1106 can monitor the action of the power switch 304, such as a turn-on or turn-off action, by the voltage on the 埠CLK.

在一個實施例中,當電源開關304的第一組動作被監測到時,也就是觸發監測單元1106通過埠CLK接收到調光請求信號。當電源開關304的第二組動作被監測到時,也就是觸發監測單元1106通過埠CLK接收到調光終止信號。在一個實施例中,電源開關304的第一組動作包括第一個斷開動作和其後的第一個接通動作。在一個實施例中,電源開關304的第二組動作包括第二個斷開動作和其後的第二個接通動作。 In one embodiment, when the first set of actions of the power switch 304 is monitored, that is, the trigger monitoring unit 1106 receives the dimming request signal through the 埠CLK. When the second set of actions of the power switch 304 is monitored, that is, the trigger monitoring unit 1106 receives the dimming termination signal through the 埠CLK. In one embodiment, the first set of actions of the power switch 304 includes a first open action and a subsequent first turn-on action. In one embodiment, the second set of actions of the power switch 304 includes a second disconnect action and a second turn-on action thereafter.

如果觸發監測單元1106接收到調光請求信號,調光控制器1108開始連續調整電力轉換器310輸出的調節後的電能。在類比調光模式下,調光控制器1108通過調整參考信號REF的電壓來調整電力轉換器310輸出的調節後的電能。在脈衝調光模式下,調光控制器1108通過調整脈波寬度調變信號PWM1的責任週期來調整電力轉換器310輸出的調節後的電能。 If the trigger monitoring unit 1106 receives the dimming request signal, the dimming controller 1108 begins to continuously adjust the adjusted electrical energy output by the power converter 310. In the analog dimming mode, the dimming controller 1108 adjusts the adjusted electrical energy output by the power converter 310 by adjusting the voltage of the reference signal REF. In the pulse dimming mode, the dimming controller 1108 adjusts the adjusted electrical energy output by the power converter 310 by adjusting the duty cycle of the pulse width modulation signal PWM1.

如果觸發監測單元1106接收到調光終止信號,調光控制器1108停止調整電力轉換器310輸出的調節後的電能。 If the trigger monitoring unit 1106 receives the dimming termination signal, the dimming controller 1108 stops adjusting the adjusted electrical energy output by the power converter 310.

圖12所示為根據本發明一個實施例的光源驅動電路的運作方式示意圖,該光源驅動電路包含有圖11中所示的調光控制器1008。圖12將結合圖10以及圖11進行描述。 FIG. 12 is a schematic diagram showing the operation of a light source driving circuit including the dimming controller 1008 shown in FIG. 11 according to an embodiment of the present invention. FIG. 12 will be described in conjunction with FIG. 10 and FIG.

在一個實施例中,假設初始時刻電源開關304斷開。當電源開關304被使用者接通,電力轉換器310為LED鏈312供電,LED鏈312具有一個初始亮度。在類比調光模式下,該初始亮度由參考信號REF的初始電壓決 定。在脈衝調光模式下,該初始亮度由脈波寬度調變信號PWM1的初始責任週期,例如100%的責任週期決定。參考信號REF和脈波寬度調變信號PWM1由數模轉換器528根據計數器1126的計數值產生。因此,REF的初始電壓和PWM1的初始責任週期由計數器1126的初始計數值,例如0決定。 In one embodiment, assume that the power switch 304 is off at the initial moment. When the power switch 304 is turned on by the user, the power converter 310 supplies power to the LED chain 312, which has an initial brightness. In the analog dimming mode, the initial luminance is determined by the initial voltage of the reference signal REF. set. In the pulse dimming mode, the initial brightness is determined by the initial duty cycle of the pulse width modulation signal PWM1, such as a 100% duty cycle. The reference signal REF and the pulse width modulation signal PWM1 are generated by the digital to analog converter 528 based on the count value of the counter 1126. Therefore, the initial voltage of REF and the initial duty cycle of PWM1 are determined by the initial count value of counter 1126, such as zero.

為了調整LED鏈312的亮度,使用者可以對電源開關304施以第一組動作。在第一組動作的作用下產生調光請求信號。在一個實施例中,第一組動作包括第一個斷開動作和其後的第一個接通動作。其產生的結果是,觸發監測單元1106在埠CLK監測到電壓下降沿1204和其後的電壓上升沿1206。回應於調光請求信號,觸發監測單元1106產生具有高電位的EN信號,從而啟動時鐘產生器1104以產生時鐘信號。由時鐘信號驅動的計數器1126回應於時鐘信號的每個時鐘脈衝改變其計數值。在圖12的實施例中,計數值在時鐘信號的作用下遞增。在一個實施例中,當計數器1126達到其預設的最大計數值後,計數值被重置為0。在另一個實施例中,計數值遞增直到計數器1126達到預設最大計數值,然後計數值遞減直到計數器1126達到預設最小計數值。 To adjust the brightness of the LED chain 312, the user can apply a first set of actions to the power switch 304. A dimming request signal is generated under the action of the first set of actions. In one embodiment, the first set of actions includes a first break action and a subsequent first switch action. As a result of this, the trigger monitoring unit 1106 monitors the voltage falling edge 1204 and the subsequent voltage rising edge 1206 at 埠CLK. In response to the dimming request signal, the trigger monitoring unit 1106 generates an EN signal having a high potential, thereby activating the clock generator 1104 to generate a clock signal. A counter 1126 driven by a clock signal changes its count value in response to each clock pulse of the clock signal. In the embodiment of Figure 12, the count value is incremented by the action of the clock signal. In one embodiment, the counter value is reset to zero when the counter 1126 reaches its preset maximum count value. In another embodiment, the count value is incremented until the counter 1126 reaches the preset maximum count value, and then the count value is decremented until the counter 1126 reaches the preset minimum count value.

在類比調光模式下,數模轉換器528從計數器1126中讀取計數值,並回應於計數值的遞增調低參考信號REF的電壓。在脈衝調光模式下,數模轉換器528從計數器1126中讀取計數值,並隨著計數值的遞增逐漸調低脈波寬度調變信號PWM1的責任週期,例如每次調低10%。因為電力轉換器310輸出的調節後的電能由參考信號REF的電壓決定(類比調光模式下)或是由脈波寬度調變信號PWM1的責任週期決定(脈衝調光模式下),所以LED鏈312的亮度可以得到相應的調整。 In analog dimming mode, digital to analog converter 528 reads the count value from counter 1126 and lowers the voltage of reference signal REF in response to an increment of the count value. In the pulse dimming mode, the digital-to-analog converter 528 reads the count value from the counter 1126 and gradually decreases the duty cycle of the pulse width modulation signal PWM1 as the count value increases, for example, by 10% each time. Because the adjusted power output by the power converter 310 is determined by the voltage of the reference signal REF (in analog dimming mode) or by the duty cycle of the pulse width modulation signal PWM1 (in the pulse dimming mode), the LED chain The brightness of 312 can be adjusted accordingly.

一旦LED鏈312達到期望的亮度,使用者通過對電源開關304施以第二組動作來終止亮度調整。在第二組動作的作用下產生調光終止信號。在一個實施例中,第二組動作包括第二個斷開動作和其後的第二個接通動作。其產生的結果是,觸發監測單元1106在埠CLK監測到電壓下降沿1208和其後的電壓上升沿1210。在調光終止信號的作用下,觸發監測單元1106產生具有低電位的EN信號,從而關閉時鐘產生器1104。由時鐘信號驅動的計數器1126保持其計數值不變。在類比調光模式下,參考信號REF的電壓將保持不變。在脈衝調光模式下,脈波寬度調變信號PWM1的責任週期將保持不變。因此,LED鏈312將保持該期望的亮度不變。 Once the LED chain 312 reaches the desired brightness, the user terminates the brightness adjustment by applying a second set of actions to the power switch 304. A dimming termination signal is generated by the action of the second set of actions. In one embodiment, the second set of actions includes a second break action and a second turn-on action thereafter. As a result of this, the trigger monitoring unit 1106 monitors the voltage falling edge 1208 and the subsequent voltage rising edge 1210 at 埠CLK. Under the action of the dimming termination signal, the trigger monitoring unit 1106 generates an EN signal having a low potential, thereby turning off the clock generator 1104. The counter 1126 driven by the clock signal keeps its count value unchanged. In the analog dimming mode, the voltage of the reference signal REF will remain unchanged. In the pulse dimming mode, the duty cycle of the pulse width modulation signal PWM1 will remain unchanged. Therefore, the LED chain 312 will maintain the desired brightness unchanged.

圖13所示為根據本發明一個實施例的對光源進行電能控制的方法流程圖1300。圖13將結合圖10以及圖11進行描述。 13 is a flow chart 1300 of a method of power control of a light source in accordance with one embodiment of the present invention. FIG. 13 will be described in conjunction with FIG. 10 and FIG.

在步驟1302中,電力轉換器,例如電力轉換器310,輸出的調節後的電能對光源,例如LED鏈312進行供電。 In step 1302, the regulated electrical energy output by the power converter, such as power converter 310, supplies power to a light source, such as LED chain 312.

在步驟1304中,接收調光請求信號,例如由調光控制器1108接收調光請求信號。該調光請求信號指示連接於該電源和該電力轉換器之間的電源開關,例如電源開關304,的第一組動作。在一個實施例中,電源開關的第一組動作包括第一個斷開動作和其後的第一個接通動作。 In step 1304, a dimming request signal is received, such as by a dimming controller 1108. The dimming request signal indicates a first set of actions of a power switch, such as power switch 304, coupled between the power source and the power converter. In one embodiment, the first set of actions of the power switch includes a first open action and a subsequent first turn-on action.

在步驟1306中,連續調整電力轉換器輸出的調節後的電能,例如利用調光控制器1108進行調整。在一個實施例中,啟動時鐘產生器1104來驅動計數器1126。根據計數器1126的計數值產生調光信號,例如控制信號538或參考信號REF。在類比調光模式下,通過比較參考信號REF和指示流經光源的電流監測信號來調整該電力轉換器輸出的調節後的電能。 REF的電壓由計數值決定。在脈衝調光模式下,通過控制信號538調整脈波寬度調變信號PWM1的責任週期來該電力轉換器輸出的調節後的電能。PWM1的責任週期由計數值決定。 In step 1306, the adjusted electrical energy output by the power converter is continuously adjusted, for example, by dimming controller 1108. In one embodiment, clock generator 1104 is enabled to drive counter 1126. A dimming signal, such as control signal 538 or reference signal REF, is generated based on the count value of counter 1126. In the analog dimming mode, the adjusted electrical energy output by the power converter is adjusted by comparing the reference signal REF with a current monitoring signal indicative of a flow through the source. The voltage of REF is determined by the count value. In the pulse dimming mode, the duty cycle of the pulse width modulation signal PWM1 is adjusted by the control signal 538 to the regulated power output by the power converter. The duty cycle of PWM1 is determined by the count value.

在步驟1308中,接收調光終止信號,例如由調光控制器1108接收調光終止信號。該調光終止信號指示連接於該電源和該電力轉換器之間的電源開關,例如電源開關304,的第二組動作。在一個實施例中,電源開關的第二組動作包括第二個斷開動作和其後的第二個接通動作。 In step 1308, a dimming termination signal is received, such as by a dimming controller 1108. The dimming termination signal indicates a second set of actions of a power switch, such as power switch 304, coupled between the power source and the power converter. In one embodiment, the second set of actions of the power switch includes a second disconnect action and a second turn-on action thereafter.

在步驟1310中,如果接收到調光終止信號,則停止調整該電力轉換器輸出的調節後的電能。在一個實施例中,關閉時鐘產生器1104以使得計數器1126保持其計數值不變。其產生的結果是,在類比調光模式下,參考信號REF的電壓保持不變;在脈衝調光模式下,脈波寬度調變信號PWM1的責任週期保持不變。因此,光源能夠保持期望的亮度。 In step 1310, if the dimming termination signal is received, the adjustment of the adjusted electrical energy output by the power converter is stopped. In one embodiment, clock generator 1104 is turned off such that counter 1126 maintains its count value unchanged. As a result, in the analog dimming mode, the voltage of the reference signal REF remains unchanged; in the pulse dimming mode, the duty cycle of the pulse width modulation signal PWM1 remains unchanged. Therefore, the light source can maintain the desired brightness.

圖14A所示為根據本發明的實施例的光源驅動電路1400的電路圖。圖14A將結合圖4進行描述。圖14中與圖3和圖4圖號相同的部件具有類似的功能。光源驅動電路1400通過電源開關304耦合於電源VIN,例如:220伏交流電,50赫茲,並耦合於LED光源312。圖14B所示圖14A中的電源開關304的一個實施例的結構示意圖。在一個實施例中,電源開關304是置於牆面上的ON/OFF開關。通過將元件1480切換至ON端或OFF端,電源開關304的導電狀態可由使用者控制為閉合或斷開。 FIG. 14A is a circuit diagram of a light source driving circuit 1400 in accordance with an embodiment of the present invention. Figure 14A will be described in conjunction with Figure 4. The same components in Fig. 14 as those in Figs. 3 and 4 have similar functions. Light source drive circuit 1400 is coupled to power supply VIN through power switch 304, for example, 220 VAC, 50 Hz, and coupled to LED light source 312. Figure 14B is a block diagram showing the structure of an embodiment of the power switch 304 of Figure 14A. In one embodiment, the power switch 304 is an ON/OFF switch placed on the wall. By switching element 1480 to the ON or OFF terminal, the conductive state of power switch 304 can be controlled by the user to be closed or open.

如圖14A所示,光源驅動電路1400包括交流/直流轉換器306、電力轉換器310和調光控制器1408。交流/直流轉換器306將輸入交流電壓VIN轉換為輸出直流電壓VOUT。電力轉換器310耦合於交流/直流轉換器 306,用於接收輸出直流電壓VOUT,並提供輸出電能給LED光源312。調光控制器1408耦合於交流/直流轉換器306和電力轉換器310,用於監測電源開關304,並根據電源開關304的動作調節電力轉換器310的輸出電能,從而控制LED光源312的光亮度。 As shown in FIG. 14A, the light source driving circuit 1400 includes an AC/DC converter 306, a power converter 310, and a dimming controller 1408. The AC/DC converter 306 converts the input AC voltage VIN into an output DC voltage VOUT. Power converter 310 is coupled to an AC/DC converter 306, for receiving the output DC voltage VOUT, and providing output power to the LED light source 312. The dimming controller 1408 is coupled to the AC/DC converter 306 and the power converter 310 for monitoring the power switch 304 and adjusting the output power of the power converter 310 according to the action of the power switch 304, thereby controlling the brightness of the LED light source 312. .

在一個實施例中,電力轉換器310包括電感L1、二極體D4、控制開關Q16、開關Q27和電阻R5。調光控制器1408包括多個埠,例如:埠HV_GATE,埠CLK,埠VDD,埠CTRL,埠MON和埠GND。調光控制器1408的埠和圖4中描述的調光控制器308的對應埠具有類似的功能。 In one embodiment, power converter 310 includes an inductor L1, a diode D4, a control switch Q16, a switch Q27, and a resistor R5. The dimming controller 1408 includes a plurality of turns, such as: 埠 HV_GATE, 埠 CLK, 埠 VDD, 埠 CTRL, 埠 MON, and 埠 GND. The 埠 of the dimming controller 1408 has a similar function as the corresponding 埠 of the dimming controller 308 described in FIG.

在工作中,調光控制器1408的埠CLK接收開關監測信號1450,以監測電源開關304。開關監測信號1450表示電源開關304的導電狀態,例如:ON/OFF狀態。因此,調光控制器1408通過埠HV_GATE控制開關Q27,並通過埠CTRL控制開關Q16,從而控制LED光源312的調光。 In operation, 埠CLK of dimming controller 1408 receives switch monitor signal 1450 to monitor power switch 304. Switch monitoring signal 1450 represents the conductive state of power switch 304, such as an ON/OFF state. Therefore, the dimming controller 1408 controls the switch Q27 by 埠HV_GATE and controls the switch Q16 by 埠CTRL, thereby controlling the dimming of the LED light source 312.

更具體的說,在一個實施例中,當電源開關304閉合時,調光控制器1408在埠HV_GATE上產生信號,例如:邏輯高電位,以閉合開關Q27,並在埠CTRL產生開關控制信號1452,以閉合和斷開控制開關Q16。在一個實施例中,控制開關Q16工作在開關閉合狀態和開關斷開狀態。當控制開關Q16處於開關閉合狀態時,開關控制信號1452交替的閉合和斷開控制開關Q16。此外,調光控制器1408通過埠MON接收表示流經LED光源312的電流ILED的感應信號1454。當感應信號1454表示電流ILED的上升至電流臨限值ITH時,調光控制器1408斷開控制開關Q16。因此,當控制開關Q16閉合時,電流ILED逐漸變大;當控制開關Q16斷開時,電流ILED逐漸變小。以這種方式,調光控制器1408決定電流ILED的峰值,並由此控制電流ILED的平均值 IAVERAGE。當控制開關Q16處於開關斷開狀態時,開關控制信號1452維持控制開關Q16斷開,以切斷電流ILED。在一個實施例中,調光控制器1408決定開關閉合狀態和開關斷開狀態之間的時間比,以控制電流ILED的平均值IAVERAGEMore specifically, in one embodiment, when power switch 304 is closed, dimming controller 1408 generates a signal on 埠HV_GATE, such as: logic high to close switch Q27, and 开关CTRL to generate switch control signal 1452 To close and open the control switch Q16. In one embodiment, control switch Q16 operates in a switch closed state and a switch open state. When the control switch Q16 is in the switch closed state, the switch control signal 1452 alternately closes and opens the control switch Q16. In addition, dimming controller 1408 receives an inductive signal 1454 indicative of current I LED flowing through LED source 312 via 埠MON. When the sense signal 1454 indicates the rise of the current I LED to the current threshold I TH , the dimming controller 1408 turns off the control switch Q16. Therefore, when the control switch Q16 is closed, the current I LED gradually becomes larger; when the control switch Q16 is turned off, the current I LED gradually becomes smaller. In this manner, dimming controller 1408 determines the peak value of current I LED and thereby controls the average value I AVERAGE of current I LED . When control switch Q16 is in the switch open state, switch control signal 1452 maintains control switch Q16 open to shut off current I LED . In one embodiment, dimming controller 1408 determines the time ratio between the switch closed state and the switch open state to control the average value I AVERAGE of the current I LED .

在一個實施例中,當電源開關304斷開時,調光控制器1408在埠HV_GATE上產生信號,例如:邏輯低電位,以開關開關Q27。因此,流經LED光源312的電流ILED下降到大致為零安培,以使LED光源312熄滅。 In one embodiment, when power switch 304 is turned off, dimming controller 1408 generates a signal on 埠HV_GATE, such as a logic low to switch switch Q27. Therefore, the current I LED flowing through the LED light source 312 drops to substantially zero amps to extinguish the LED light source 312.

在一個實施例中,調光控制器1408通過埠CLK接收表示電源開關304的導電狀態的開關監測信號1450。據此,調光控制器1408識別電源開關304的動作,並提供表示該動作的調光請求信號。在一個實施例中,調光控制器1408在識別出電源開關304的斷開動作時提供調光請求信號;或者,調光控制器1408在識別出電源開關304的閉合動作時提供調光請求信號。作為對調光請求信號的回應,調光控制器1408工作在類比調光模式、脈衝調光模式(burst dimming mode)或者混合調光模式,以通過調整控制開關Q16的閉合/斷開來控制LED光源312的調光。例如,在類比調光模式中,調光控制器1408決定電流ILED的峰值,並保持開關閉合狀態和開關斷開狀態之間的時間比不變。在突發調光模式中,調光控制器1408決定開關閉合狀態和開關斷開狀態之間的時間比,並維持電流ILED的峰值不變。在混合調光模式中,調光控制器1408決定開關閉合狀態和開關斷開狀態之間的時間比,並決定電流ILED的峰值。因此,當開關Q27再次閉合時(即表示電源開關304再次閉合),調光控制器1408調整電流ILED的峰值和/或開關閉合狀態及開關斷開狀態的持續時間,進而調整了流經LED光源312的平均電流 IAVERAGE,以控制LED光源312的亮度。 In one embodiment, dimming controller 1408 receives a switch monitoring signal 1450 indicative of the conductive state of power switch 304 via 埠CLK. Accordingly, the dimming controller 1408 recognizes the action of the power switch 304 and provides a dimming request signal indicating the action. In one embodiment, the dimming controller 1408 provides a dimming request signal upon recognizing the opening action of the power switch 304; or the dimming controller 1408 provides a dimming request signal upon recognizing the closing action of the power switch 304. . In response to the dimming request signal, the dimming controller 1408 operates in an analog dimming mode, a burst dimming mode, or a hybrid dimming mode to control the LED by adjusting the closing/opening of the control switch Q16. Dimming of light source 312. For example, in analog dimming mode, dimming controller 1408 determines the peak value of current I LED and maintains the time ratio between the closed state of the switch and the open state of the switch. In the burst dimming mode, the dimming controller 1408 determines the time ratio between the switch closed state and the switch open state and maintains the peak value of the current I LED unchanged. In the hybrid dimming mode, the dimming controller 1408 determines the time ratio between the switch closed state and the switch open state and determines the peak value of the current I LED . Therefore, when the switch Q27 is closed again (ie, the power switch 304 is closed again), the dimming controller 1408 adjusts the peak value of the current I LED and/or the duration of the switch closed state and the switch open state, thereby adjusting the flow through the LED. The average current I AVERAGE of the light source 312 is used to control the brightness of the LED light source 312.

上述實施例的優點在於,通過調整電流ILED和開關閉合狀態和開關斷開狀態之間的持續時間,調光控制器1408可以在相對較寬的範圍內調整平均電流IAVERAGE。例如,如果IMAX表示IAVERAGE的最大值,則根據本發明的實施例,IAVERAGE可以在4%*IMAX至100%*IMAX的範圍內變化。而在現有技術中,IAVERAGE僅僅20%*IMAX至100%*IMAX的範圍內變化。因此,通過本發明實施例提供的技術方案,LED光源312可在更大範圍內實現調光,這樣,可應用於更節能的燈中,例如,小夜燈。 An advantage of the above embodiment is that the dimming controller 1408 can adjust the average current I AVERAGE over a relatively wide range by adjusting the duration of the current I LED and the switch closed state and the switch open state. For example, if the maximum value I MAX I AVERAGE represented, then according to embodiments of the present invention, may I AVERAGE I MAX. 4% * 100% * variations within the scope of I MAX. In the prior art, I AVERAGE only varies from 20%*I MAX to 100%*I MAX . Therefore, with the technical solution provided by the embodiment of the present invention, the LED light source 312 can realize dimming in a wider range, and thus can be applied to a more energy-saving lamp, for example, a night light.

圖15所示為圖14A中的調光控制器1408的結構示意圖。圖15將結合圖5、圖6、圖7和圖14A進行描述。圖15中與圖5和圖14A圖號相同的部件具有類似的功能。 FIG. 15 is a block diagram showing the structure of the dimming controller 1408 of FIG. 14A. Figure 15 will be described in conjunction with Figures 5, 6, 7, and 14A. The same components in Fig. 15 as those of Figs. 5 and 14A have similar functions.

在圖15所示的實施例中,調光控制器1408包括啟動及低壓鎖定(UVL)電路508、,脈衝信號產生器504、觸發監測單元506、調光器1502、比較器534、SR觸發器522和及閘524。調光器1502包括參考信號產生器1506,用於產生參考信號REF。調光器1502還包括脈波寬度調變信號產生器1508,用於產生脈波寬度調變信號PWM1。結合圖5的描述,比較器534比較感應信號1454和參考信號REF,以產生比較信號COMP。脈衝信號產生器504產生具有週期性脈衝波形的脈衝信號536。在一個實施例中,當脈衝信號536是邏輯1時,SR觸發器522將脈衝信號V522置1;當比較信號COMP是邏輯1時(即當感應信號1454上升至參考信號REF時),SR觸發器522將脈衝信號V522重定為0。及閘524接收脈衝信號V522和脈波寬度調變信號PWM1,並據此產生開關控制信號1452,以控制控制開關Q16。 In the embodiment shown in FIG. 15, the dimming controller 1408 includes a start and low voltage lock (UVL) circuit 508, a pulse signal generator 504, a trigger monitoring unit 506, a dimmer 1502, a comparator 534, and an SR flip-flop. 522 and 524. The dimmer 1502 includes a reference signal generator 1506 for generating a reference signal REF. The dimmer 1502 further includes a pulse width modulation signal generator 1508 for generating a pulse width modulation signal PWM1. In conjunction with the description of FIG. 5, comparator 534 compares sense signal 1454 with reference signal REF to produce comparison signal COMP. Pulse signal generator 504 generates pulse signal 536 having a periodic pulse waveform. In one embodiment, when the pulse signal 536 is a logic one, the SR flip-flop 522 sets the pulse signal V522 to one; when the comparison signal COMP is a logic one (ie, when the sense signal 1454 rises to the reference signal REF), the SR triggers The 522 resets the pulse signal V522 to zero. The gate 524 receives the pulse signal V522 and the pulse width modulation signal PWM1, and accordingly generates a switch control signal 1452 to control the control switch Q16.

假設開關Q27閉合,調光控制器1408以類似於圖6和圖7中描述的調光控制器308的工作方式控制電流ILED。在一個實施例中,當脈波寬度調變信號PWM1處於第一狀態時,例如:PWM1為邏輯1,及閘524根據脈衝信號V522交替閉合和斷開控制開關Q16。由此,控制開關Q16工作在開關閉合狀態。在開關閉合狀態中,電流ILED在控制開關Q16閉合時逐漸上升,並在控制開關Q16斷開時逐漸下降。由於控制開關Q16在感應信號1454上升至參考信號REF時斷開,參考信號REF決定了電流ILED的峰值。當脈波寬度調變信號PWM1處於第二狀態時,例如:PWM1為邏輯0,及閘524根據保持斷開控制開關Q16。此時,控制開關Q16工作在開關斷開狀態,以切斷電流ILEDAssuming switch Q27 is closed, dimming controller 1408 controls current I LED in a manner similar to that of dimming controller 308 described in Figures 6 and 7. In one embodiment, when the pulse width modulation signal PWM1 is in the first state, for example, PWM1 is logic 1, and the gate 524 alternately closes and opens the control switch Q16 according to the pulse signal V522. Thereby, the control switch Q16 operates in the switch closed state. In the switch closed state, the current ILED gradually rises when the control switch Q16 is closed, and gradually decreases when the control switch Q16 is turned off. Since the control switch Q16 is turned off when the sense signal 1454 rises to the reference signal REF, the reference signal REF determines the peak value of the current I LED . When the pulse width modulation signal PWM1 is in the second state, for example, PWM1 is logic 0, and the gate 524 is turned off according to the hold control switch Q16. At this time, the control switch Q16 operates in the switch off state to cut off the current I LED .

因此,參考信號REF用於決定電流ILED的峰值,且脈波寬度調變信號PWM1的責任週期用於決定開關閉合狀態和開關斷開狀態之間的時間比。也就是說,流經LED光源312的平均電流IAVERAGE根據參考信號REF和脈波寬度調變信號PWM1的責任週期發生變化。例如,當參考信號REF的電壓值VREF上升時,IAVERAGE增加;當VREF下降時,IAVERAGE減小。此外,當脈波寬度調變信號PWM1的責任週期DPWM1變大時,IAVERAGE增加;當DPWM1變小時,IAVERAGE減小。 Therefore, the reference signal REF is used to determine the peak value of the current I LED , and the duty cycle of the pulse width modulation signal PWM1 is used to determine the time ratio between the switch closed state and the switch open state. That is, the average current I AVERAGE flowing through the LED light source 312 varies according to the duty cycle of the reference signal REF and the pulse width modulation signal PWM1. For example, when the voltage value V REF of the reference signal REF rises, I AVERAGE increases; when V REF decreases, I AVERAGE decreases. Further, when the duty cycle D PWM1 of the pulse width modulation signal PWM1 becomes large, I AVERAGE increases; when D PWM1 becomes small, I AVERAGE decreases.

調光器1502還包括計數器1504,用於提供計數值VALUE_1504。在一個實施例中,參考信號產生器1506耦合於計數器1504,並根據計數值VALUE_1504決定參考信號REF的電壓值VREF。PWM產生器1508耦合於計數器1504,並根據計數值VALUE_1504決定脈波寬度調變信號PWM1的責任週期DPWM1The dimmer 1502 also includes a counter 1504 for providing a count value VALUE_1504. In one embodiment, reference signal generator 1506 is coupled to counter 1504 and determines the voltage value V REF of reference signal REF based on count value VALUE_1504. The PWM generator 1508 is coupled to the counter 1504 and determines the duty cycle D PWM1 of the pulse width modulation signal PWM1 based on the count value VALUE_1504.

上述表1和表2所示為計數值VALUE_1504、電壓VREF和責任週期DPWM1的實施例。在一個實施例中,計數器1504是2比特計數器,因此,計數值VALUE_1504可為0、1、2或3。VMAX表示參考信號REF的最大值。具體而言,如表1所示,當計數值VALUE_1504為0、1、2和3時,參考信號REF分別具有電壓值VMAX、50% * VMAX、20% * VMAX和20% * VMAX,且責任週期DPWM1分別為100%,100%,100%和20%。如表2所示,當計數值VALUE_1504為0、1、2和3時,參考信號REF分別具有電壓值VMAX、50% * VMAX、30% * VMAX和20% * VMAX,且責任週期DPWM1分別為100%,60%,40%和20%。計數值VALUE_1504、電壓VREF和責任週期DPWM1可具有其他關係,且不局限於表1和表2的實施例。 Tables 1 and 2 above show an embodiment of the count value VALUE_1504, the voltage V REF , and the duty cycle D PWM1 . In one embodiment, the counter 1504 is a 2-bit counter, and thus, the count value VALUE_1504 can be 0, 1, 2, or 3. V MAX represents the maximum value of the reference signal REF. Specifically, as shown in Table 1, when the count value VALUE_1504 is 0, 1, 2, and 3, the reference signal REF has voltage values V MAX , 50% * V MAX , 20% * V MAX , and 20% * V, respectively. MAX , and the duty cycle D PWM1 is 100%, 100%, 100%, and 20%, respectively. As shown in Table 2, when the count value VALUE_1504 is 0, 1, 2, and 3, the reference signal REF has voltage values V MA X, 50% * V MAX , 30% * V MAX , and 20% * V MAX , respectively, and The duty cycle D PWM1 is 100%, 60%, 40% and 20% respectively. The count value VALUE_1504, voltage V REF and duty cycle D PWM1 may have other relationships and are not limited to the embodiments of Tables 1 and 2.

在一個實施例中,如果接收到調光請求信號,例如:表示電源開關304執行了斷開操作,觸發監測單元506產生使能信號1510。計數器1504接收使能信號1510,並據此增加或減小計數值VALUE_1504。因此,參考信號產生器1506決定參考信號REF,例如:根據表1或表2的資料關係。 PWM產生器1508決定PWM1的責任週期,例如:根據表1或表2的資料關係。 In one embodiment, if a dimming request signal is received, for example, indicating that the power switch 304 has performed a disconnect operation, the trigger monitoring unit 506 generates an enable signal 1510. The counter 1504 receives the enable signal 1510 and accordingly increases or decreases the count value VALUE_1504. Therefore, the reference signal generator 1506 determines the reference signal REF, for example, according to the data relationship of Table 1 or Table 2. The PWM generator 1508 determines the duty cycle of the PWM1, for example, according to the data relationship of Table 1 or Table 2.

因此,調光控制器1408有選擇的工作於類比調光模式、突發調光模式和混合調光模式。在類比調光模式中,調光控制器1408根據計數器1504的計數值決定參考信號REF的值,以調整電流ILED的平均值IAVERAGE;此時,PWM1的責任週期保持不變。在突發調光模式中,調光控制器1408根據計數器1504的計數值決定PWM1的責任週期,以調整電流ILED的平均值IAVERAGE;此時,參考信號REF的值保持不變。在混合調光模式中,調光控制器1408根據計數器1504的計數值同時決定PWM1的責任週期和參考信號REF的值,以調整電流ILED的平均值IAVERAGE。由此,調整了LED光源312的亮度。調光控制器1408的操作將在圖16和圖17進一步描述。調光控制器1408可具有其他結構,且不局限於圖15所示的實施例。 Thus, dimming controller 1408 selectively operates in analog dimming mode, burst dimming mode, and mixed dimming mode. In the analog dimming mode, the dimming controller 1408 determines the value of the reference signal REF according to the count value of the counter 1504 to adjust the average value I AVERAGE of the current I LED ; at this time, the duty cycle of the PWM 1 remains unchanged. In the burst dimming mode, the dimming controller 1408 determines the duty cycle of the PWM1 according to the count value of the counter 1504 to adjust the average value I AVERAGE of the current I LED ; at this time, the value of the reference signal REF remains unchanged. In the mixed dimming mode, the dimming controller 1408 simultaneously determines the duty cycle of the PWM1 and the value of the reference signal REF according to the count value of the counter 1504 to adjust the average value I AVERAGE of the current I LED . Thereby, the brightness of the LED light source 312 is adjusted. The operation of dimming controller 1408 will be further described in Figures 16 and 17. The dimming controller 1408 can have other configurations and is not limited to the embodiment shown in FIG.

圖16所示為包含圖15中的調光控制器1408的光源驅動電路的信號示意圖。圖16將結合圖14 A和圖15進行描述。圖16描述了埠CLK上的電壓VCLK,、計數器1504計數值VALUE_1504、,脈波寬度調變信號PWM1的電壓VPWM1、脈波寬度調變信號PWM1的責任週期DPWM1、參考信號REF的電壓值VREF、感應信號1454的電壓VSENSE、及電流ILED的平均值IAVERAGE。在如圖16所示的實施例中,調光控制器1408根據上述表1中的實施例設置電壓值VREF和責任週期DPWM1FIG. 16 is a signal diagram showing the light source driving circuit including the dimming controller 1408 of FIG. Figure 16 will be described in conjunction with Figures 14A and 15. Figure 16 depicts the voltage V CLK onCLK , the count value VALUE_1504 of the counter 1504, the voltage V PWM1 of the pulse width modulation signal PWM1, the duty cycle D PWM1 of the pulse width modulation signal PWM1 , and the voltage of the reference signal REF. The value V REF , the voltage V SENSE of the sense signal 1454, and the average value I AVERAGE of the current I LED . In the embodiment shown in FIG. 16, the dimming controller 1408 sets the voltage value V REF and the duty cycle D PWM1 in accordance with the embodiment in Table 1 above.

在t0時刻,電源開關304斷開。計數值VALUE_1504為0。根據表1,責任週期DPWM1是100%,且電壓值VREF具有最大值VMAX。由於電源開關304和開關Q27都斷開,則切斷了電流ILED,因此平均電流IAVERAGE為零安培。 At time t0, the power switch 304 is turned off. The count value VALUE_1504 is 0. According to Table 1, the duty cycle D PWM1 is 100%, and the voltage value V REF has a maximum value V MAX . Since both the power switch 304 and the switch Q27 are turned off, the current I LED is turned off, so the average current I AVERAGE is zero amps.

在t1時刻,電壓VCLK的上升沿表示電源開關304的閉合動作。調光控制器1408閉合開關Q27。因此,根據控制開關Q16的導電狀態控制電流ILED。在t1至t2的時間間隔,責任週期DPWM1是100%,且電壓值VREF具有最大值VMAX。控制開關Q16工作在開關閉合狀態,以交替閉合和斷開。如圖16所示,當控制開關Q16閉合時,電壓VSENSE逐漸上升;當控制開關Q16斷開時,電壓VSENSE逐漸下降。由於電壓VSENSE的峰值等於參考信號REF的最大值VMAX,平均電流IAVERAGE具有最大值IMAXAt time t1, the rising edge of the voltage V CLK indicates the closing action of the power switch 304. The dimming controller 1408 closes the switch Q27. Therefore, the current I LED is controlled in accordance with the conduction state of the control switch Q16. At the time interval t1 to t2, the duty cycle D PWM1 is 100%, and the voltage value V REF has a maximum value V MAX . Control switch Q16 operates in a closed state of the switch to alternately close and open. As shown in FIG. 16, when the control switch Q16 is closed, the voltage V SENSE gradually rises; when the control switch Q16 is turned off, the voltage V SENSE gradually decreases. Since the peak value of the voltage V SENSE is equal to the maximum value V MAX of the reference signal REF, the average current I AVERAGE has a maximum value I MAX .

在t2時刻,電壓VCLK的下降沿表示電源開關304的斷開動作。開關Q27斷開,以切斷電流ILED。因此,在t2至t3的時間間隔中,電壓VSENSE下降至大致零伏特,且平均電流IAVERAGE下降至大致零安培。 At time t2, the falling edge of the voltage V CLK indicates the off operation of the power switch 304. Switch Q27 is turned off to cut off the current I LED . Thus, during the time interval from t2 to t3, the voltage V SENSE drops to approximately zero volts and the average current I AVERAGE drops to approximately zero amps.

在一個實施例中,由於在t2時刻檢測到電源開關304的斷開動作,則產生調光請求信號。計數值VALUE_1504從0增加為1。基於表1的實施例,調光控制器1408切換至類比調光模式,以將電壓VREF調節為50% * VMAX並保持責任週期DPWM1為100%。 In one embodiment, the dimming request signal is generated as the disconnection action of the power switch 304 is detected at time t2. The count value VALUE_1504 is increased from 0 to 1. Based on the embodiment of Table 1, dimming controller 1408 switches to analog dimming mode to adjust voltage V REF to 50% * V MAX and maintain duty cycle D PWM1 to 100%.

在t3時刻,開關Q27再次閉合。因此,在t3至t4的時間間隔,調光控制器1408根據參考信號REF和脈波寬度調變信號PWM1控制控制開關Q16的閉合和斷開。因此,將平均電流IAVERAGE調節為50% * IMAXAt time t3, switch Q27 is closed again. Therefore, at the time interval from t3 to t4, the dimming controller 1408 controls the closing and opening of the control switch Q16 in accordance with the reference signal REF and the pulse width modulation signal PWM1. Therefore, the average current I AVERAGE is adjusted to 50% * I MAX .

在t4時刻,電壓VCLK的下降沿表示電源開關304的斷開動作。計數值VALUE_1504從1增加為2。根據表1,調光控制器1408工作於類比調光模式,以將電壓VREF調節為20% * VMAX並保持責任週期DPWM1為100%。因此,在t5至t6的時間間隔中,平均電流IAVERAGE調節為20% * IMAXAt time t4, the falling edge of the voltage V CLK indicates the off operation of the power switch 304. The count value VALUE_1504 is increased from 1 to 2. According to Table 1, the dimming controller 1408 operates in analog dimming mode to adjust the voltage V REF to 20% * V MAX and maintain the duty cycle D PWM1 to 100%. Therefore, in the time interval from t5 to t6, the average current I AVERAGE is adjusted to 20% * I MAX .

在t6時刻,電壓VCLK的下降沿表示電源開關304的斷開動 作。計數值VALUE_1504從2增加為3。根據表1,調光控制器1408工作於突發調光模式,以保持電壓VREF為20% * VMAX並將責任週期DPWM1減小至20%。因此,在t7至t8的時間間隔中,電源開關304閉合。此時,當電壓VPWM1具有第一狀態,例如:邏輯高電位,電壓VSENSE斜線上升和斜線下降;當電壓VPWM1具有第二狀態,例如:邏輯低電位,電壓VSENSE下降至零伏特。因此,在t7至t8的時間間隔中,平均電流IAVERAGE調整為4% * IMAXAt time t6, the falling edge of the voltage V CLK indicates the off operation of the power switch 304. The count value VALUE_1504 is increased from 2 to 3. According to Table 1, dimming controller 1408 operates in burst dimming mode to maintain voltage V REF at 20% * V MAX and reduce duty cycle D PWM1 to 20%. Therefore, in the time interval from t7 to t8, the power switch 304 is closed. At this time, when the voltage V PWM1 has a first state, for example, a logic high potential, the voltage VSENSE ramps up and ramps down; when the voltage V PWM1 has a second state, for example, a logic low, the voltage V SENSE drops to zero volts. Therefore, in the time interval from t7 to t8, the average current I AVERAGE is adjusted to 4% * I MAX .

因此,在如圖16所示的實施例中,調光控制器1408先工作在類比調光模式中將平均電流IAVERAGE從100% * IMAX調整至20% * IMAX,然後工作在突發調光模式中將平均電流IAVERAGE從20% * IMAX調整至4% * IMAX。本發明實施例的優點在於,通過調節脈波寬度調變信號PWM1的責任週期DPWM1和參考信號REF的電壓值VREF,實現了平均電流IAVERAGE在100% * IMAX和4% * IMAX的範圍內調整。因此,實現了LED光源312在更寬範圍內調光。此外,在相對寬的範圍內調光的過程中,電壓VREF保持大於一個電壓臨限值,例如:15% * VMAX,責任週期DPWM1保持大於一個責任週期臨限值,例如:10%。由此,脈波寬度調變信號PWM1和參考信號REF的精度不會受到如雜訊之類的不利因素的影響,從而提高了光源驅動電路1400的調光精度。 Therefore, in the embodiment shown in FIG. 16, the dimming controller 1408 first operates to adjust the average current I AVERAGE from 100% * I MAX to 20% * I MAX in the analog dimming mode, and then operates in a burst. In the dimming mode, the average current I AVERAGE is adjusted from 20% * I MAX to 4% * I MAX . An advantage of the embodiment of the present invention is that the average current I AVERAGE is achieved at 100% * I MAX and 4% * I MAX by adjusting the duty cycle D PWM1 of the pulse width modulation signal PWM1 and the voltage value V REF of the reference signal REF. Adjustment within the scope. Thus, LED light source 312 is enabled to dim over a wider range. In addition, during a relatively wide range of dimming, the voltage V REF remains greater than a voltage threshold, for example: 15% * V MAX , the duty cycle D PWM1 remains greater than a duty cycle threshold, for example: 10% . Thereby, the accuracy of the pulse width modulation signal PWM1 and the reference signal REF is not affected by adverse factors such as noise, thereby improving the dimming accuracy of the light source driving circuit 1400.

圖17所示為包含圖15中的調光控制器1408的光源驅動電路的信號示意圖。圖17將結合圖14A至圖16進行描述。圖17描述了埠CLK上的電壓VCLK,計數器1504計數值VALUE_1504,脈波寬度調變信號PWM1的電壓VPWM1,脈波寬度調變信號PWM1的責任週期DPWM1,參考信號REF的電壓值VREF,感應信號1454的電壓VSENSE,電流ILED的平均值IAVERAGE。在 如圖17所示的實施例中,調光控制器1408根據表1中的實施例設置電壓值VREF和責任週期DPWM1Figure 17 is a signal diagram showing the light source driving circuit including the dimming controller 1408 of Figure 15. Figure 17 will be described in conjunction with Figures 14A through 16. Figure 17 depicts the voltage V CLK onCLK , counter 1504 count value VALUE_1504, pulse width modulation signal PWM1 voltage V PWM1 , pulse width modulation signal PWM1 duty cycle D PWM1 , reference signal REF voltage value V REF , the voltage of the sense signal 1454 V SENSE , the average value of the current I LED I AVERAGE . In the embodiment shown in FIG. 17, dimming controller 1408 sets voltage value V REF and duty cycle D PWM1 in accordance with the embodiment in Table 1.

在t0’和t2’之間的時間間隔中,調光控制器1408具有圖16中描述的在t0和t2之間類似的操作。例如,在t0’至t2’的時間間隔中,計數值VALUE_1504為0。根據表2,責任週期DPWM1是100%,且電壓值VREF具有最大值VMAX。因此,在t1’和t2’之間,電壓VSENSE的峰值等於參考信號REF的最大值VMAX,平均電流IAVERAGE具有最大值IMAXIn the time interval between t0' and t2', the dimming controller 1408 has a similar operation between t0 and t2 as described in FIG. For example, in the time interval of t0' to t2', the count value VALUE_1504 is 0. According to Table 2, the duty cycle D PWM1 is 100%, and the voltage value V REF has a maximum value V MAX . Therefore, between t1' and t2', the peak value of the voltage V SENSE is equal to the maximum value V MAX of the reference signal REF, and the average current I AVERAGE has a maximum value I MAX .

在t2’時刻,電壓VCLK的下降沿表示電源開關304的斷開動作。開關Q27斷開,以切斷電流ILED。因此,在t2’至t3’的時間間隔中,電壓VSENSE下降至大致零伏特,且平均電流IAVERAGE下降至大致零安培。 At time t2', the falling edge of the voltage V CLK indicates the off operation of the power switch 304. Switch Q27 is turned off to cut off the current I LED . Thus, during the time interval from t2' to t3', the voltage V SENSE drops to approximately zero volts and the average current I AVERAGE drops to approximately zero amps.

在一個實施例中,由於在t2’時刻檢測到電源開關304的斷開動作,則產生調光請求信號。計數值VALUE_1504從0增加為1。基於表2的實施例,調光控制器1408切換至混合調光模式,以將電壓VREF調節為50% * VMAX並將責任週期DPWM1調節為60%。因此,在t3’至t4’的時間間隔,當電壓VPWM1具有第一狀態,例如:邏輯高電位時,控制開關Q16工作在開關閉合狀態,以交替的閉合和斷開。電壓VSENSE的峰值等於參考信號REF的電壓值VREF,即50% * VMAX。此外,當電壓VPWM1具有第二狀態,例如:邏輯低電位時,控制開關Q16工作在開關斷開狀態,以切斷電流ILED。因此,電流ILED的平均值IAVERAGE等於30% * IMAXIn one embodiment, since the disconnection action of the power switch 304 is detected at time t2', a dimming request signal is generated. The count value VALUE_1504 is increased from 0 to 1. Based on the embodiment of Table 2, the dimming controller 1408 switches to the mixed dimming mode to adjust the voltage V REF to 50% * V MAX and adjust the duty cycle D PWM1 to 60%. Therefore, at the time interval t3' to t4', when the voltage VPWM1 has the first state, for example, the logic high potential, the control switch Q16 operates in the switch closed state to alternately close and open. The peak value of the voltage VSENSE is equal to the voltage value V REF of the reference signal REF , ie 50% * V MAX . Further, when the voltage V PWM1 has the second state, for example, a logic low level, the control switch Q16 operates in the switch off state to cut off the current I LED . Therefore, the average value I AVERAGE of the current I LED is equal to 30% * I MAX .

在t4’時刻,電壓VCLK的下降沿表示電源開關304的斷開動作,因此,產生了調光請求信號。計數值VALUE_1504從1增加為2。根據表2,調光控制器1408工作於混合調光模式,以將電壓VREF調節為30% * VMAX 並保持責任週期DPWM1為40%。因此,在t5’至t6’的時間間隔中,平均電流IAVERAGE調節為12% * IMAXAt the time t4', the falling edge of the voltage V CLK indicates the off operation of the power switch 304, and thus, the dimming request signal is generated. The count value VALUE_1504 is increased from 1 to 2. According to Table 2, the dimming controller 1408 operates in a mixed dimming mode to adjust the voltage V REF to 30% * V MAX and maintain the duty cycle D PWM1 at 40%. Therefore, in the time interval from t5' to t6', the average current I AVERAGE is adjusted to 12% * I MAX .

在t6’時刻,電壓VCLK的下降沿表示電源開關304的斷開動作,因此,產生了調光請求信號。計數值VALUE_1504從2增加為3。根據表2,調光控制器1408工作於混合調光模式,以調整電壓VREF為20% * VMAX並將責任週期DPWM1減小至20%。因此,在t7’至t8’的時間間隔中,平均電流IAVERAGE調整為4% * IMAXAt the time t6', the falling edge of the voltage V CLK indicates the off operation of the power switch 304, and thus, the dimming request signal is generated. The count value VALUE_1504 is increased from 2 to 3. According to Table 2, the dimming controller 1408 operates in a mixed dimming mode to adjust the voltage V REF to 20% * V MAX and reduce the duty cycle D PWM1 to 20%. Therefore, in the time interval from t7' to t8', the average current I AVERAGE is adjusted to 4% * I MAX .

因此,在t1’和t7’之間,當計數值VALUE_1504變化時,調光控制器1408工作在混合調光模式。優點在於,通過調節脈波寬度調變信號PWM1的責任週期DPWM1和參考信號REF的電壓值VREF,實現了平均電流IAVERAGE在100% * IMAX和4% * IMAX的範圍內調整。因此,實現了LED光源312在更寬範圍內調光。此外,在相對寬的範圍內調光的過程中,電壓VREF保持大於一個電壓臨限值,例如:15% * VMAX,責任週期DPWM1保持大於一個責任週期臨限值,例如:10%。由此,脈波寬度調變信號PWM1和參考信號REF的精度不會受到如雜訊之類的不利因素的影響,從而提高了光源驅動電路1400的調光精度。 Therefore, between t1' and t7', when the count value VALUE_1504 changes, the dimming controller 1408 operates in the mixed dimming mode. The advantage is that the average current I AVERAGE is adjusted in the range of 100% * I MAX and 4% * I MAX by adjusting the duty cycle D PWM1 of the pulse width modulation signal PWM1 and the voltage value V REF of the reference signal REF. Thus, LED light source 312 is enabled to dim over a wider range. In addition, during a relatively wide range of dimming, the voltage V REF remains greater than a voltage threshold, for example: 15% * V MAX , the duty cycle D PWM1 remains greater than a duty cycle threshold, for example: 10% . Thereby, the accuracy of the pulse width modulation signal PWM1 and the reference signal REF is not affected by adverse factors such as noise, thereby improving the dimming accuracy of the light source driving circuit 1400.

圖18所示為根據本發明的實施例的控制LED光源的調光的方法流程圖1800。圖18將結合圖14A至圖17進行描述。圖18所涵蓋的具體步驟僅僅作為示例。也就是說,本發明適用於其他合理的流程或對圖18進行改進的步驟。 Figure 18 is a flow chart 1800 of a method of controlling dimming of an LED light source in accordance with an embodiment of the present invention. FIG. 18 will be described in conjunction with FIGS. 14A through 17. The specific steps covered in Figure 18 are merely examples. That is, the present invention is applicable to other reasonable processes or steps for improving FIG.

在步驟1802中,比較表示流經LED光源的電流的感應信號(例如:感應信號1454)和參考信號(例如:參考信號REF),以產生脈衝信號, 例如:脈衝信號V522。 In step 1802, a sense signal (eg, sense signal 1454) and a reference signal (eg, reference signal REF) representing a current flowing through the LED light source are compared to generate a pulse signal, For example: pulse signal V522.

在步驟1804中,當脈波寬度調變信號(例如:PWM1)處於第一狀態時,根據脈衝信號控制流經LED光源的電流。 In step 1804, when the pulse width modulation signal (eg, PWM1) is in the first state, the current flowing through the LED light source is controlled according to the pulse signal.

在步驟1806中,當脈波寬度調變信號處於第二狀態時,切斷流經LED光源的電流。 In step 1806, when the pulse width modulation signal is in the second state, the current flowing through the LED source is turned off.

在步驟1808中,根據調光請求信號調節參考信號的值和脈波寬度調變信號的責任週期,以調節流經該LED光源的平均電流。 In step 1808, the value of the reference signal and the duty cycle of the pulse width modulation signal are adjusted according to the dimming request signal to adjust the average current flowing through the LED light source.

在一個實施例中,根據調光請求信號調節計數器的計數值。根據計數器的計數值決定參考信號的值和脈波寬度調變信號的責任週期。如果計數值從第一數值變為第二數值,則選擇第一模式(例如:類比調光模式)、第二模式(突發調光模式)或第三模式(混合調光模式)。在第一模式中,調節參考信號的值並保持脈波寬度調變信號的責任週期不變。在第二模式中,調節脈波寬度調變信號的責任週期並保持參考信號的值不變。在第三模式中,調節參考信號的值並調節脈波寬度調變信號的責任週期。 In one embodiment, the counter value of the counter is adjusted based on the dimming request signal. The duty cycle value and the duty cycle of the pulse width modulation signal are determined according to the count value of the counter. If the count value changes from the first value to the second value, the first mode (eg, analog dimming mode), the second mode (burst dimming mode), or the third mode (mixed dimming mode) is selected. In the first mode, the value of the reference signal is adjusted and the duty cycle of the pulse width modulation signal is maintained. In the second mode, the duty cycle of the pulse width modulation signal is adjusted and the value of the reference signal is kept constant. In the third mode, the value of the reference signal is adjusted and the duty cycle of the pulse width modulation signal is adjusted.

圖19所示為根據本發明實施例的光源驅動電路1900的電路圖。圖19中與圖3和圖4圖號相同的部件具有類似的功能。圖19將結合圖3和圖4進行描述。光源驅動電路1900通過電源開關304耦合於電源VIN(如110/120伏特,60赫茲的交流電),並提供輸出電能給LED光源312。在本發明的一個實施例中,電源開關304可以是如圖14B所示的置於牆面上的ON/OFF開關。電源開關304的導電狀態可由使用者控制為閉合或斷開。 FIG. 19 is a circuit diagram of a light source driving circuit 1900 in accordance with an embodiment of the present invention. The same components in Fig. 19 as those in Figs. 3 and 4 have similar functions. Figure 19 will be described in conjunction with Figures 3 and 4. Light source drive circuit 1900 is coupled to power supply V IN (e.g., 110/120 volts, 60 Hz AC) via power switch 304 and provides output power to LED source 312. In one embodiment of the invention, the power switch 304 can be an ON/OFF switch placed on the wall as shown in Figure 14B. The conductive state of the power switch 304 can be controlled by the user to be closed or open.

光源驅動電路1900包含AC/DC轉換器306、電力轉換器310 和調光控制器1908。AC/DC轉換器306將輸入交流電壓VIN轉換成輸出直流電壓VOUT。在圖19的例子中,AC/DC轉換器306包含具有二極體D1、D2、D7和D8的橋式整流器、還包含具有二極體D10和電容C9的濾波器。電力轉換器310耦合於AC/DC轉換器306,用於接收輸出直流電壓VOUT,並為LED光源312提供調節後的電能。在一個實施例中,電力轉換器310包含電感L1、二極體D4、開關Q27、控制開關Q16和電流感應器R5。調光控制器1908耦合於AC/DC轉換器306和電力轉換器310之間。調光控制器1908監測電源開關304的動作,如閉合或斷開,並相應的控制電力轉換器310提供給LED光源312的調節後的電能,以控制LED光源312的亮度。調光控制器1908包含多個埠,例如,埠HV_GATE、埠CLK、埠VDD、埠GND、電壓控制埠CTRL、埠RT、埠MON和電流控制埠CS。其中埠VDD、埠GND、埠RT和埠MON與圖14A中的調光控制器1408的相應埠的工作原理類似。 The light source driving circuit 1900 includes an AC/DC converter 306, a power converter 310, and a dimming controller 1908. The AC/DC converter 306 converts the input AC voltage VIN into an output DC voltage V OUT . In the example of FIG. 19, the AC/DC converter 306 includes a bridge rectifier having diodes D1, D2, D7, and D8, and further includes a filter having a diode D10 and a capacitor C9. Power converter 310 is coupled to AC/DC converter 306 for receiving an output DC voltage V OUT and providing regulated power to LED source 312. In one embodiment, power converter 310 includes an inductor L1, a diode D4, a switch Q27, a control switch Q16, and a current inductor R5. Dimming controller 1908 is coupled between AC/DC converter 306 and power converter 310. The dimming controller 1908 monitors the action of the power switch 304, such as closing or opening, and correspondingly controls the regulated power supplied by the power converter 310 to the LED source 312 to control the brightness of the LED source 312. The dimming controller 1908 includes a plurality of turns, for example, 埠HV_GATE, 埠CLK, 埠VDD, 埠GND, voltage control 埠CTRL, 埠RT, 埠MON, and current control 埠CS. Where 埠 VDD, 埠 GND, 埠 RT, and 埠 MON are similar to the corresponding operations of the dimming controller 1408 of FIG. 14A.

在一個實施例中,調光控制器1908在埠CLK接收指示電源開關304的動作(閉合或斷開)的開關監測信號1450。在一個實施例中,調光控制器1908根據開關監測信號1450控制開關Q27。具體來說,當開關監測信號1450指示電源開關304斷開時,調光控制器1908在埠HV_GATE產生信號,如邏輯低電位信號,以斷開開關Q27。因此,流經LED光源312的電流ILED降到0安培,以斷開LED光源312。當開關監測信號1450指示電源開關304閉合,調光控制器1908在埠HV_GATE產生信號,如邏輯高電位信號,以閉合開關Q27。調光控制器1908根據電壓控制埠CTRL和電流控制埠CS的信號控制流經LED光源312的電流ILEDIn one embodiment, dimming controller 1908 receives a switch monitoring signal 1450 indicating the action (closed or open) of power switch 304 at 埠CLK. In one embodiment, dimming controller 1908 controls switch Q27 based on switch monitoring signal 1450. Specifically, when switch monitor signal 1450 indicates that power switch 304 is off, dimming controller 1908 generates a signal, such as a logic low signal, at 埠HV_GATE to open switch Q27. Therefore, the current I LED flowing through the LED light source 312 is lowered to 0 amps to turn off the LED light source 312. When switch monitor signal 1450 indicates that power switch 304 is closed, dimming controller 1908 generates a signal, such as a logic high signal, at 埠HV_GATE to close switch Q27. The dimming controller 1908 controls the current I LED flowing through the LED light source 312 based on the signals of the voltage control 埠 CTRL and the current control 埠 CS.

在一個實施例中,調光控制器1908根據開關監測信號1450 確定指示電源開關304的動作的調光請求信號。在一個實施例中,當開關監測信號1450指示電源開關304斷開時,調光控制器1908接收調光請求信號。當電源開關304重新閉合時,根據調光請求信號,調光控制器1908調節流經LED光源312的平均電流以調節LED光源312的亮度。 In one embodiment, the dimming controller 1908 monitors the signal 1450 based on the switch. A dimming request signal indicating the action of the power switch 304 is determined. In one embodiment, when the switch monitoring signal 1450 indicates that the power switch 304 is off, the dimming controller 1908 receives the dimming request signal. When the power switch 304 is reclosed, the dimming controller 1908 adjusts the average current flowing through the LED light source 312 to adjust the brightness of the LED light source 312 in accordance with the dimming request signal.

調光控制器1908能夠工作在第一模式和第二模式,以調節LED光源312的平均電流。如下所述,電流ILED表示流經LED光源312的電流。第一模式下,電流ILED由ILED1表示。在第二模式下,電流ILED由ILED2表示。 The dimming controller 1908 is operable in the first mode and the second mode to adjust the average current of the LED light source 312. Current I LED represents the current flowing through LED light source 312 as described below. In the first mode, the current I LED is represented by I LED1 . In the second mode, the current I LED is represented by I LED2 .

當調光控制器1908工作在第一模式時,調光控制器1908的電壓控制埠CTRL提供脈衝信號1952,以控制控制開關Q16交替工作在第一狀態(如,閉合狀態)和第二狀態(如,斷開狀態)。因此,流經LED光源312的電流ILED1根據控制開關Q16的狀態改變。在一個實施例中,在控制開關Q16閉合期間,電流ILED1流經LED光源312、開關Q27、控制開關Q16、電阻R5到地,所以電流ILED1增加。在控制開關Q16斷開期間,電流ILED1流經LED光源312和二極體D4,所以電流ILED1減小。根據本發明的實施例,流經LED光源312的平均電流可以在類比調光模式下、脈衝調光模式下或組合調光模式下通過控制控制開關Q16而得到調節,具體的調光方法將結合圖20進行詳細描述。 When the dimming controller 1908 is operating in the first mode, the voltage control 埠CTRL of the dimming controller 1908 provides a pulse signal 1952 to control the control switch Q16 to alternately operate in a first state (eg, a closed state) and a second state ( For example, disconnected state). Therefore, the current I LED1 flowing through the LED light source 312 changes in accordance with the state of the control switch Q16. In one embodiment, during the closing of control switch Q16, current I LED1 flows through LED source 312, switch Q27, control switch Q16, and resistor R5 to ground, so current I LED1 increases. During the control switch Q16 is turned off, the current flowing through the LED light source 312 I LED1 and diode D4, so that the current I LED1 reduced. According to an embodiment of the present invention, the average current flowing through the LED light source 312 can be adjusted by controlling the control switch Q16 in the analog dimming mode, the pulse dimming mode, or the combined dimming mode, and the specific dimming method will be combined. Figure 20 is described in detail.

當調光控制器1908工作在第二模式時,調光控制器1908在電壓控制埠CTRL提供控制信號1954,如數位0,使控制開關Q16維持在斷開狀態。因此,電流ILED1被切斷。另外,調光控制器1908接通流經LED光源312和電流控制埠CS的電流ILED2When the dimming controller 1908 is operating in the second mode, the dimming controller 1908 provides a control signal 1954, such as digit 0, in the voltage control 埠CTRL to maintain the control switch Q16 in the off state. Therefore, the current I LED1 is cut off. Additionally, dimming controller 1908 turns on current I LED2 flowing through LED source 312 and current control 埠CS.

有利的是,通過選擇至少工作在第一模式和第二模式,調光控制器1908達到了相對寬的調光範圍。例如,若IMAX指示LED光源312的平均電流IAVERAGE的最大值,調光控制器1908能夠工作在第一模式,以調節電流ILED1的平均電流IAVERAGE在一個較寬的範圍內變化,例如4%*IMAX到100%*IMAX的範圍內變化。另外,調光控制器1908也能夠工作在第二模式,以將平均電流IAVERAGE調到一個更低的值。例如,調光控制器1908設置電流ILED2為恒定值1%*IMAX。換言之,LED光源312在第二模式下比第一模式下更暗。因此在節能應用中,如夜燈,會更有優勢。另外,第二模式下的電流ILED2是一個實質恒定的值,它不會因為控制開關Q16的閉合或斷開而變化。所以,LED光源312發出的光不會受到控制開關Q16開關雜訊的影響,從而增強了LED光源312的調光穩定性。 Advantageously, the dimming controller 1908 achieves a relatively wide dimming range by selecting to operate in at least the first mode and the second mode. For example, if I MAX indicates the maximum value of the average current I AVERAGE of the LED source 312, the dimming controller 1908 can operate in the first mode to adjust the average current I AVERAGE of the current I LED1 to vary over a wide range, such as 4%*I MAX varies from 100%*I MAX . Additionally, dimming controller 1908 can also operate in the second mode to adjust the average current I AVERAGE to a lower value. For example, dimming controller 1908 sets current I LED2 to a constant value of 1%*I MAX . In other words, the LED light source 312 is darker in the second mode than in the first mode. Therefore, in energy-saving applications, such as night lights, there will be more advantages. In addition, the current I LED2 in the second mode is a substantially constant value which does not change due to the closing or opening of the control switch Q16. Therefore, the light emitted by the LED light source 312 is not affected by the switching noise of the control switch Q16, thereby enhancing the dimming stability of the LED light source 312.

圖20所示為根據本發明實施例的圖19中的調光控制器1908的結構示意圖。圖20將結合圖15和圖19進行描述。圖20中與圖15和圖19圖號相同的部件具有類似的功能。在圖20的例子中,調光控制器1908包含啟動及低壓鎖定電路508、脈衝信號產生器504、觸發監測單元506、調光器2002、驅動器2010、開關2008和電流源2006。 Figure 20 is a block diagram showing the structure of the dimming controller 1908 of Figure 19 in accordance with an embodiment of the present invention. Figure 20 will be described in conjunction with Figures 15 and 19. The same components in Fig. 20 as those in Figs. 15 and 19 have similar functions. In the example of FIG. 20, dimming controller 1908 includes a startup and low voltage lockout circuit 508, a pulse signal generator 504, a trigger monitoring unit 506, a dimmer 2002, a driver 2010, a switch 2008, and a current source 2006.

在一個實施例中,觸發監測單元506通過埠CLK接收開關監測信號1450。觸發監測單元506根據開關監測信號1450,確定指示電源開關304斷開操作的調光請求信號。若接收到調光請求信號,觸發監測單元506產生使能信號1510。 In one embodiment, trigger monitoring unit 506 receives switch monitoring signal 1450 via 埠CLK. The trigger monitoring unit 506 determines a dimming request signal indicating that the power switch 304 is turned off according to the switch monitor signal 1450. If a dimming request signal is received, the trigger monitoring unit 506 generates an enable signal 1510.

調光器2002包含計數器1504、參考信號產生器1506、脈波寬度調變信號產生器1508和模式選擇模組2004。計數器1504提供根據使能 信號1510改變的計數值VALUE_1504。在一個實施例中,計數器1504根據使能信號1510增加計數值VALUE_1504。在另一個實施例中,計數器1504根據使能信號1510減小計數值VALUE_1504。 The dimmer 2002 includes a counter 1504, a reference signal generator 1506, a pulse width modulation signal generator 1508, and a mode selection module 2004. Counter 1504 is provided according to enable The signal 1510 changes the count value VALUE_1504. In one embodiment, counter 1504 increments count value VALUE_1 504 based on enable signal 1510. In another embodiment, the counter 1504 decreases the count value VALUE_1 504 based on the enable signal 1510.

模式選擇模組2004根據計數值VALUE_1504從第一模式和第二模式中選擇調光控制器1908的工作模式。在一個實施例中,計數值VALUE_1504指示LED光源312的期望亮度值。期望亮度值對應於LED光源312的平均電流IAVERAGE的目標電流值ITARGET。表3和表4所示為計數器1504的計數值VALUE_1504、目標電流值ITARGET及調光控制器1908的工作模式的對應關係的示例。在表3的例子中,計數值VALUE_1504可以為0、1和2,分別指示目標電流值ITARGET為100% * IMAX、30% * IMAX和1% * IMAX,其中,IMAX表示平均電流IAVERAGE的最大值。在表4的例子中,計數值VALUE_1504可以為0、1和2,分別指示目標電流值ITARGET為1% * IMAX、30% * IMAX和100% * IMAXThe mode selection module 2004 selects the operation mode of the dimming controller 1908 from the first mode and the second mode based on the count value VALUE_1504. In one embodiment, the count value VALUE_1 504 indicates the desired brightness value of the LED light source 312. The desired brightness value corresponds to the target current value I TARGET of the average current I AVERAGE of the LED light source 312 . Tables 3 and 4 show examples of the correspondence between the count value VALUE_1504 of the counter 1504, the target current value I TARGET, and the operation mode of the dimming controller 1908. In the example of Table 3, the count value VALUE_1504 may be 0, 1, and 2, indicating that the target current value I TARGET is 100% * I MAX , 30% * I MAX , and 1% * I MAX , respectively, where I MAX represents the average The maximum value of the current I AVERAGE . In the example of Table 4, the count value VALUE_1504 may be 0, 1, and 2, indicating that the target current value I TARGET is 1% * I MAX , 30% * I MAX , and 100% * I MAX , respectively .

模式選擇模組2004比較計數值VALUE_1504和臨限值,以選 擇工作模式。例如,根據表3和表4的例子,臨限值設為1。在表3的例子中,當計數值VALUE_1504等於或小於1時,模式選擇模組2004選擇第一模式。當計數值VALUE_1504大於1時,模式選擇模組2004選擇第二模式。在表4的例子中,當計數值VALUE_1504等於或大於1時,模式選擇模組2004選擇第一模式,當計數值VALUE_1504小於1時,模式選擇模組2004選擇第二模式。因此,在表3和表4的例子中,當平均電流IAVERAGE的目標電流值ITARGET相對高時(如30% * IMAX和100 * IMAX),選擇第一模式。另外,當平均電流IAVERAGE的目標電流值ITARGET相對低時(如1% * IMAX),選擇第二模式。 The mode selection module 2004 compares the count value VALUE_1504 with a threshold to select an operating mode. For example, according to the examples of Tables 3 and 4, the threshold value is set to 1. In the example of Table 3, when the count value VALUE_1504 is equal to or smaller than 1, the mode selection module 2004 selects the first mode. When the count value VALUE_1504 is greater than 1, the mode selection module 2004 selects the second mode. In the example of Table 4, when the count value VALUE_1504 is equal to or greater than 1, the mode selection module 2004 selects the first mode, and when the count value VALUE_1504 is less than 1, the mode selection module 2004 selects the second mode. Therefore, in the examples of Tables 3 and 4, when the target current value I TARGET of the average current I AVERAGE is relatively high (e.g., 30% * I MAX and 100 * I MAX ), the first mode is selected. In addition, when the target current value I TARGET of the average current I AVERAGE is relatively low (eg, 1% * I MAX ), the second mode is selected.

根據所選擇的工作模式,模式選擇模組2004控制開關2008、參考信號產生器1506和脈波寬度調變信號產生器1508,以調節平均電流IAVERAGE。更具體地,在一個實施例中,電流源2006產生一個實質恒定的電流ILED2。調光控制器1908工作在第一模式時,模式選擇模組2004斷開開關2008以切斷電流ILED2,並控制參考信號產生器1506產生參考信號REF,和控制脈波寬度調變信號產生器1508產生脈波寬度調變信號PWM1。在一個實施例中,驅動器2010根據參考信號REF和脈波寬度調變信號PWM1產生脈衝信號1952,以控制控制開關Q16。 The mode selection module 2004 controls the switch 2008, the reference signal generator 1506, and the pulse width modulation signal generator 1508 to adjust the average current I AVERAGE according to the selected mode of operation. More specifically, in one embodiment, current source 2006 produces a substantially constant current I LED2 . When the dimming controller 1908 is operating in the first mode, the mode selection module 2004 turns off the switch 2008 to cut off the current I LED2 , and controls the reference signal generator 1506 to generate the reference signal REF, and controls the pulse width modulation signal generator. 1508 generates a pulse width modulation signal PWM1. In one embodiment, the driver 2010 generates a pulse signal 1952 based on the reference signal REF and the pulse width modulation signal PWM1 to control the control switch Q16.

在一個實施例中,驅動器2010包含比較器534、SR觸發器522和及閘524。當工作在第一模式時,驅動器2010的工作原理與圖15中的調光控制器1408中的相應組件相似。如上文中針對圖15的描述,比較器534比較感應信號1454與參考信號REF,以產生比較信號COMP。脈衝信號產生器504產生具有週期脈衝波形的脈衝信號536。在一個實施例中,當脈衝信號536為數位1時,SR觸發器522將脈衝信號V522設為數位1。當比較信號COMP為 數位1時(即當感應信號1454達到參考信號REF時),SR觸發器將脈衝信號V522設為數位0。及閘524接收脈衝信號V522和脈波寬度調變信號PWM1,並在電壓控制埠CTRL上產生脈衝信號1952,以控制控制開關Q16。因此,當脈波寬度調變信號PWM1在第一狀態(如數位1)時,脈衝信號1952的波形與脈衝信號V522的波形相同,即根據比較信號COMP在數位1和數位0之間切換。當脈波寬度調變信號PWM1在第二狀態(如數位0)時,脈衝信號1952保持為數位0。根據上文中針對圖15的相關描述可知,參考信號REF決定電流ILED1的峰值。脈波寬度調變信號PWM1的責任週期決定了控制開關Q16的閉合時間和斷開時間的比率。所以,通過調節參考信號REF的值和/或脈波寬度調變信號PWM1的責任週期,調光器2002能夠工作在類比調光模式、脈衝調光模式或組合調光模式,以調節LED光源312的平均電流IAVERAGEIn one embodiment, the driver 2010 includes a comparator 534, an SR flip flop 522, and a AND gate 524. When operating in the first mode, the operating principle of the driver 2010 is similar to the corresponding components in the dimming controller 1408 of FIG. As described above with respect to FIG. 15, comparator 534 compares sense signal 1454 with reference signal REF to produce comparison signal COMP. The pulse signal generator 504 generates a pulse signal 536 having a periodic pulse waveform. In one embodiment, SR pulse 522 sets pulse signal V 522 to a digital bit when pulse signal 536 is a digital one. When the comparison signal COMP is a digital one (ie, when the sense signal 1454 reaches the reference signal REF), the SR flip-flop sets the pulse signal V522 to a digital zero. The gate 524 receives the pulse signal V 522 and the pulse width modulation signal PWM1, and generates a pulse signal 1952 on the voltage control 埠CTRL to control the control switch Q16. Therefore, when the pulse width modulation signal PWM1 is in the first state (eg, digit 1), the waveform of the pulse signal 1952 is the same as the waveform of the pulse signal V 522 , that is, switching between the digit 1 and the digit 0 according to the comparison signal COMP. When the pulse width modulation signal PWM1 is in the second state (e.g., digit 0), the pulse signal 1952 is held at the digit 0. According to the related description above with respect to FIG. 15, the reference signal REF determines the peak value of the current I LED1 . The duty cycle of the pulse width modulation signal PWM1 determines the ratio of the closing time and the opening time of the control switch Q16. Therefore, by adjusting the value of the reference signal REF and/or the duty cycle of the pulse width modulation signal PWM1, the dimmer 2002 can operate in an analog dimming mode, a pulse dimming mode, or a combined dimming mode to adjust the LED light source 312. The average current I AVERAGE .

根據表3中的例子,當計數值VALUE_1504為0時,調光控制器1908工作在第一模式,參考信號REF的值為VREF0,脈波寬度調變信號PWM1的責任週期的值為DPWM0。當計數值VALUE_1504從0變為1時,調光控制器1908保持工作在第一模式,平均電流IAVERAGE的目標電流值從100% * IMAX變為30% * IMAX。若調光器2002工作在類比調光模式,則參考信號REF的值調節到30% * VREF0,脈波寬度調變信號PWM1的責任週期保持為DPWM0。若調光器2002工作在脈衝調光模式,則參考信號REF的值保持為VREF0,脈波寬度調變信號PWM1的責任週期調節為30% * DPWM0。若調光器2002工作在組合調光模式,參考信號REF的值和脈波寬度調變信號PWM1的責任週期都會發生改變,比如,參考信號REF的值調節為50% * VREF0,脈波寬度調變信號PWM1的責任週期調節為60% * DPWM0。採用三種調光模式 (即類比調光模式、脈衝調光模式和組合調光模式)中的任一種調光模式,平均電流IAVERAGE從100% * IMAX變為30% * IMAX,以完成第一模式下的調光控制。 According to the example in Table 3, when the count value VALUE_1504 is 0, the dimming controller 1908 operates in the first mode, the value of the reference signal REF is V REF0 , and the duty cycle of the pulse width modulation signal PWM1 is D PWM0 . . When the count value VALUE_1504 changes from 0 to 1, the dimming controller 1908 remains operating in the first mode, and the target current value of the average current I AVERAGE changes from 100% * I MAX to 30% * I MAX . If the dimmer 2002 operates in the analog dimming mode, the value of the reference signal REF is adjusted to 30% * V REF0 , and the duty cycle of the pulse width modulation signal PWM1 remains as D PWM0 . If the dimmer 2002 operates in the pulse dimming mode, the value of the reference signal REF is maintained at V REF0 , and the duty cycle of the pulse width modulation signal PWM1 is adjusted to 30% * D PWM0 . If the dimmer 2002 operates in the combined dimming mode, the value of the reference signal REF and the duty cycle of the pulse width modulation signal PWM1 will change. For example, the value of the reference signal REF is adjusted to 50% * V REF0 , pulse width The duty cycle of the modulation signal PWM1 is adjusted to 60% * D PWM0 . Using any of the three dimming modes (ie, analog dimming mode, pulse dimming mode, and combined dimming mode), the average current I AVERAGE is changed from 100% * I MAX to 30% * I MAX to complete Dimming control in the first mode.

當調光控制器1908工作在第二模式時,如根據表3所示,當計數值VALUE_1504從1變為2時,調光控制器1908在CTRL埠產生控制信號1954,以斷開控制開關Q16。更具體的,模式選擇模組2004控制脈波寬度調變信號產生器1508,使脈波寬度調變信號PWM1保持在第二狀態(如數位0)。及閘524,產生控制信號1954(如數位0信號),以保持電壓控制埠CTRL的電壓為低電位。因此,流過LED光源312的電流ILED1被切斷。 When the dimming controller 1908 is operating in the second mode, as shown in Table 3, when the count value VALUE_1504 changes from 1 to 2, the dimming controller 1908 generates a control signal 1954 at CTRL to turn off the control switch Q16. . More specifically, the mode selection module 2004 controls the pulse width modulation signal generator 1508 to maintain the pulse width modulation signal PWM1 in the second state (eg, digit 0). Gate 524 generates a control signal 1954 (e.g., a digital 0 signal) to maintain the voltage control 埠 CTRL voltage at a low potential. Therefore, the current I LED1 flowing through the LED light source 312 is cut off.

另外,在一個實施例中,電流源2006產生實質恒定的電流ILED2。模式選擇模組2004產生開關控制信號2012以閉合開關2008。若電源開關304閉合後接通了開關Q27,則電流ILED2的回路被接通。因此,電流ILED2流過LED光源312、電流控制埠CS、開關2008到地。其中,“實質恒定的電流ILED2”是指電流ILED2的值僅限在一定的範圍內變化,因此由電路元件產生的非理想的電流紋波可以被忽略。有利的是,由於電流ILED2不受一個或多個開關(如電源開關304和/或控制開關Q16)的影響,LED光源312的電路干擾能減少或消除。因此,光源驅動電路1900的調光穩定性得到了提高。調光控制器1908可以有其他的結構而不局限於圖20的例子。 Additionally, in one embodiment, current source 2006 produces a substantially constant current I LED2 . The mode selection module 2004 generates a switch control signal 2012 to close the switch 2008. If the switch Q27 is turned on after the power switch 304 is closed, the circuit of the current I LED2 is turned on. Therefore, the current I LED2 flows through the LED light source 312, the current control 埠CS, and the switch 2008 to the ground. Among them, "substantially constant current I LED2 " means that the value of current I LED2 is limited to a certain range, so that non-ideal current ripple generated by circuit components can be ignored. Advantageously, circuit currents of LED source 312 can be reduced or eliminated because current I LED2 is unaffected by one or more switches, such as power switch 304 and/or control switch Q16. Therefore, the dimming stability of the light source driving circuit 1900 is improved. The dimming controller 1908 can have other configurations and is not limited to the example of FIG.

圖21所示為根據本發明實施例的包括圖19中的調光控制器1908的光源驅動電路的信號示意圖。圖21將結合圖19和圖20進行描述,圖21示出了埠CLK的電壓VCLK、計數器1504的計數值VALUE_1504、脈波寬度調變信號PWM1的電壓VPWM1、脈波寬度調變信號PWM1的責任週期 DPWM1、流過LED光源312的電流ILED和電流ILED的平均電流IAVERAGE。在圖19的例子中,調光控制器1908根據表3確定工作模式,並控制LED光源312的平均電流IAVERAGE21 is a signal diagram of a light source driving circuit including the dimming controller 1908 of FIG. 19 in accordance with an embodiment of the present invention. 21 will be described with reference to FIG. 19 and FIG. 20. FIG. 21 shows the voltage V CLK ofCLK , the count value VALUE_1504 of the counter 1504, the voltage V PWM1 of the pulse width modulation signal PWM1, and the pulse width modulation signal PWM1. The duty cycle D PWM1 , the current I LED flowing through the LED source 312 and the average current I AVERAGE of the current I LED . In the example of FIG. 19, the dimming controller 1908 determines the mode of operation according to Table 3 and controls the average current I AVERAGE of the LED source 312.

在t0”時刻,電源開關304斷開。調光控制器1908切斷開關Q27。計數值VALUE_1504為0。根據表3,模式選擇模組2004選擇第一模式,平均電流IAVERAGE的目標電流值為100%*IMAX。因此,脈波寬度調變信號產生器1508調節脈波寬度調變信號PWM1的責任週期DPWM1為100%,參考信號產生器1506控制參考信號REF,以調節電流ILED的峰值為IPEAK(峰值電流的最大值)。在t1”時刻,埠CLK的電壓VCLK具有一個指示電源開關304閉合操作的上升沿,平均電流IAVERAGE被調節到100%*IMAX。在t1”到t2”期間,平均電流IAVERAGE保持在100%*IMAXAt time t0", the power switch 304 is turned off. The dimming controller 1908 turns off the switch Q27. The count value VALUE_1504 is 0. According to Table 3, the mode selection module 2004 selects the first mode, and the target current value of the average current I AVERAGE is 100%*I MAX Therefore, the pulse width modulation signal generator 1508 adjusts the duty cycle D PWM1 of the pulse width modulation signal PWM1 to 100%, and the reference signal generator 1506 controls the reference signal REF to adjust the current I LED . The peak value is I PEAK (the maximum value of the peak current). At time t1", the voltage V CLK of 埠CLK has a rising edge indicating the closing operation of the power switch 304, and the average current I AVERAGE is adjusted to 100%*I MAX . During t1" to t2", the average current I AVERAGE is maintained at 100%*I MAX .

在t2”時刻,電壓VCLK具有一個指示電源開關304斷開操作的下降沿。開關Q27被斷開以切斷電流ILED。因此,在t2”到t3”期間,電流ILED降到0安培,平均電流IAVERAGE降到0安培。 At time t2", the voltage V CLK has a falling edge indicating that the power switch 304 is turned off. The switch Q27 is turned off to cut off the current I LED . Therefore, during t2" to t3", the current I LED drops to 0 amps. The average current I AVERAGE drops to 0 amps.

在一個實施例中,在t2”時刻,電壓VCLK具有一個指示電源開關304斷開操作的下降沿,接收到調光請求信號。計數值VALUE_1504從0增加到1。根據表3,平均電流IAVERAGE的目標電流值調整為30%*IMAX。在t2”到t4”期間,模式選擇模組2004保持在第一模式,在圖21的例子中,調光器2002工作在組合調光模式,脈波寬度調變信號產生器1508調節責任週期DPWM1為60%,參考信號產生器1506控制參考信號REF,以調節電流ILED的峰值為50%*IPEAK。在t3”時刻,埠CLK的電壓VCLK具有一個指示電源開關304閉合操作的上升沿,平均電流IAVERAGE調節為30%*IMAX。在t3”到t4”期間, 平均電流IAVERAGE保持在30%*IMAXIn one embodiment, at time t2", voltage V CLK has a falling edge indicating that power switch 304 is off, receiving a dimming request signal. Count value VALUE_1 504 is increased from 0 to 1. According to Table 3, average current I The target current value of AVERAGE is adjusted to 30%*I MAX . During t2" to t4", mode selection module 2004 remains in the first mode, and in the example of Figure 21, dimmer 2002 operates in combined dimming mode, The pulse width modulation signal generator 1508 adjusts the duty cycle D PWM1 to 60%, and the reference signal generator 1506 controls the reference signal REF to adjust the peak value of the current I LED to 50%*I PEAK . At time t3", 埠CLK The voltage V CLK has a rising edge indicating that the power switch 304 is closed, and the average current I AVERAGE is adjusted to 30% * I MAX . During t3" to t4", the average current I AVERAGE is maintained at 30%*I MAX .

在t4”時刻,電壓VCLK具有一個指示電源開關304斷開操作的下降沿,接收到調光請求信號。相應的,計數值VALUE_1504從1增加到2。根據表3,平均電流IAVERAGE的目標電流值調整為1%*IMAX,模式選擇模組2004選擇第二模式。因此,模式選擇模組2004產生開關控制信號2012以閉合開關2008。在t4”到t5”期間,因為電源開關304和開關Q27都斷開,所以電流ILED和平均電流IAVERAGE都為0安培。 At time t4", the voltage V CLK has a falling edge indicating that the power switch 304 is turned off, and receives the dimming request signal. Accordingly, the count value VALUE_1504 is increased from 1 to 2. According to Table 3, the target of the average current I AVERAGE The current value is adjusted to 1%*I MAX , and the mode selection module 2004 selects the second mode. Therefore, the mode selection module 2004 generates the switch control signal 2012 to close the switch 2008. During t4" to t5", because of the power switch 304 and Switch Q27 is open, so both current I LED and average current I AVERAGE are 0 amps.

在t5”時刻,埠CLK的電壓VCLK具有一個指示電源開關304閉合操作的上升沿。因為在電源開關304閉合之後開關Q27被接通,並且開關2008在t4”時刻閉合,電流ILED2的通路被接通。在一個實施例中,電流ILED2等於1%*IMAX。因此,在t5”到t6”期間,平均電流IAVERAGE保持在1%*IMAXAt time t5", the voltage V CLK of 埠CLK has a rising edge indicating the closing operation of the power switch 304. Since the switch Q27 is turned on after the power switch 304 is closed, and the switch 2008 is closed at time t4", the path of the current I LED2 is turned on. Was connected. In one embodiment, current I LED2 is equal to 1%*I MAX . Therefore, during t5" to t6", the average current I AVERAGE is maintained at 1%*I MAX .

因此,在t1”到t6”期間,調光控制器1908根據計數值VALUE_1504從第一模式和第二模式中選擇工作模式。有利的是,調光控制器1908可以獲得一個相對寬的調光範圍,如從100%*IMAX到1%*IMAX。調光控制器1908的工作原理和工作方式不局限於圖21的例子。在另一個實施例中,在第二模式期間,調光控制器1908能夠提供另一個電流(如一個更小的恒定電流值0.01 * IMAX)流經LED光源312和電流控制埠CS。因此,LED光源312的亮度可以更低,以達到更寬的調光範圍。另外,電流ILED2為一個實質恒定的值,不會根據控制開關Q16的閉合和斷開動作而變化。因此,LED光源312不會受到控制開關Q16雜訊的影響,增強了LED光源312的調光穩定性。 Therefore, during t1" to t6", the dimming controller 1908 selects the operation mode from the first mode and the second mode in accordance with the count value VALUE_1504. Advantageously, dimming controller 1908 can achieve a relatively wide dimming range, such as from 100%*I MAX to 1%*I MAX . The operation and operation of the dimming controller 1908 are not limited to the example of FIG. In another embodiment, during the second mode, the dimming controller 1908 can provide another current (eg, a smaller constant current value of 0.01 * I MAX ) through the LED source 312 and the current control 埠CS. Therefore, the brightness of the LED light source 312 can be lower to achieve a wider dimming range. In addition, the current I LED2 is a substantially constant value that does not change in accordance with the closing and opening actions of the control switch Q16. Therefore, the LED light source 312 is not affected by the noise of the control switch Q16, and the dimming stability of the LED light source 312 is enhanced.

圖22所示為根據本發明實施例的由調光控制器(如調光控 制器1908)執行的控制LED光源調光的方法流程圖。圖22將結合圖19-圖21進行描述。圖22所涵蓋的具體步驟僅僅作為示例。也就是說,本發明適用於其他合理的流程或對圖22進行改進的步驟。 Figure 22 illustrates a dimming controller (e.g., dimming control) in accordance with an embodiment of the present invention. A flow chart of a method of controlling LED light source dimming performed by the controller 1908). Figure 22 will be described in conjunction with Figures 19-21. The specific steps covered in Figure 22 are merely examples. That is, the present invention is applicable to other reasonable processes or steps for improving FIG.

在步驟2202中,電力轉換器(如電力轉換器310)為光源(如LED光源312)提供調節後的電能。 In step 2202, a power converter, such as power converter 310, provides regulated electrical energy to a light source, such as LED light source 312.

在步驟2204中,接收開關監測信號。開關監測信號指示連接在電源和電力轉換器之間的電源開關(如電源開關304)的動作。 In step 2204, a switch monitoring signal is received. The switch monitoring signal indicates the action of a power switch (such as power switch 304) connected between the power source and the power converter.

在步驟2206中,根據開關監測信號選擇工作模式為第一模式或第二模式。在一個實施例中,當接收到指示電源開關斷開操作的開關監測信號時,計數器的計數值發生變化,例如從第一數值變為第二數值。將計數值與臨限值(如1)進行比較,並根據比較結果選擇工作模式。 In step 2206, the operating mode is selected to be the first mode or the second mode according to the switch monitoring signal. In one embodiment, the counter value of the counter changes when a switch monitoring signal indicating a power switch off operation is received, such as from a first value to a second value. The count value is compared with a threshold value (such as 1), and the operation mode is selected according to the comparison result.

在步驟2208中,當工作模式選擇為第一模式時,控制開關(如控制開關Q16)根據脈衝信號(如脈衝信號1952)工作在第一狀態(如閉合狀態)和第二狀態(如斷開狀態)。在一個實施例中,在控制開關處於第一狀態時,流經LED光源的第一電流(如電流ILED1)增加,在控制開關處於第二狀態時,流經LED光源的第一電流減小。在一個實施例中,當工作模式選擇為第一模式時,產生參考信號(如參考信號REF)和脈波寬度調變信號(如脈波寬度調變信號PWM1)。在第一模式下,將指示流經LED光源的第一電流的感應信號與參考信號進行比較。在脈波寬度調變信號處於第一狀態(如數位1)時,根據比較結果閉合和斷開控制開關。在脈波寬度調變信號處於第二狀態(如數位0)時,斷開控制開關,第一電流減小。在一個實施例中,在第一模式下,當計數值發生變化時,調節參考信號的值和/ 或脈波寬度調變信號的責任週期,以調節LED光源的亮度。 In step 2208, when the operating mode is selected to be the first mode, the control switch (eg, control switch Q16) operates in a first state (eg, a closed state) and a second state (eg, a disconnected) according to a pulse signal (eg, pulse signal 1952). status). In one embodiment, the first current flowing through the LED light source (eg, current I LED1 ) is increased when the control switch is in the first state, and the first current flowing through the LED light source is decreased when the control switch is in the second state. . In one embodiment, when the operating mode is selected to be the first mode, a reference signal (such as reference signal REF) and a pulse width modulation signal (such as pulse width modulation signal PWM1) are generated. In the first mode, an induced signal indicative of a first current flowing through the LED source is compared to a reference signal. When the pulse width modulation signal is in the first state (e.g., digit 1), the control switch is closed and turned off according to the comparison result. When the pulse width modulation signal is in the second state (eg, digit 0), the control switch is turned off and the first current is decreased. In one embodiment, in the first mode, when the count value changes, the value of the reference signal and/or the duty cycle of the pulse width modulation signal is adjusted to adjust the brightness of the LED light source.

在步驟2210中,當工作模式選擇為第二模式時,根據控制信號(如控制信號1954)切斷第一電流(如電流ILED1)。在一個實施例中,在第二模式下,脈波寬度調變信號保持在第二狀態(如數位0),以產生控制信號(如數位0信號)來切斷第一電流。 In step 2210, when the operating mode is selected to be the second mode, the first current (eg, current I LED1 ) is turned off according to a control signal (eg, control signal 1954). In one embodiment, in the second mode, the pulse width modulation signal is maintained in a second state (e.g., digit 0) to generate a control signal (e.g., a digital zero signal) to turn off the first current.

在步驟2212中,當工作模式選擇為第二模式時,導通流過LED光源312的第二電流。在一個實施例中,第二電流為實質恒定的電流(如電流ILED2)。在一個實施例中,電流ILED2由電流源(如電流源2006)提供。當選擇第二模式時,模式選擇模組2004產生開關控制信號2012,以閉合與電流源2006串聯的開關2008。 In step 2212, when the operating mode is selected to be the second mode, the second current flowing through the LED source 312 is turned on. In one embodiment, the second current is a substantially constant current (eg, current I LED2 ). In one embodiment, current I LED2 is provided by a current source, such as current source 2006. When the second mode is selected, the mode selection module 2004 generates a switch control signal 2012 to close the switch 2008 in series with the current source 2006.

圖23A所示為根據本發明實施例的光源驅動電路2300的示意圖。在一個實施例中,光源包含第一發光元件(例如,第一LED鏈2308)和第二發光元件(例如,第二LED鏈2310)。第二LED鏈2310可以具有與第一LED鏈2308不同的色溫值,例如,第一LED鏈2308具有第一色溫值,而第二LED鏈2310具有第二色溫值。耦合在電源VIN與光源驅動電路2300之間的電源開關304將電源VIN選擇性地耦合於光源驅動電路2300。在一個實施例中,電源開關304可以是置於牆面上的電源開關。 FIG. 23A is a schematic diagram of a light source driving circuit 2300 in accordance with an embodiment of the present invention. In one embodiment, the light source includes a first illuminating element (eg, a first LED chain 2308) and a second illuminating element (eg, a second LED chain 2310). The second LED chain 2310 can have a different color temperature value than the first LED chain 2308, for example, the first LED chain 2308 has a first color temperature value and the second LED chain 2310 has a second color temperature value. A power switch 304 coupled between the power source V IN and the light source drive circuit 2300 selectively couples the power source V IN to the light source drive circuit 2300. In one embodiment, the power switch 304 can be a power switch placed on a wall.

光源驅動電路2300包括用於將來自電源的交流輸入電壓VIN轉換成直流電壓VDC的交流/直流轉換器306、耦合在交流/直流轉換器306與光源(例如,第一LED鏈2308和第二LED鏈2310)之間的直流/直流轉換器2302、色溫控制器2306、光源(例如,第一LED鏈2308和第二LED鏈2310)、第一控制開關2312、第二控制開關2314及電流監測器2316。其中,交流/直 流轉換器306與直流/直流轉換器2302組成電力轉換器,耦合在電源與光源之間,用於從電源接收電能並向光源提供調節後的電能。直流/直流轉換器2302用於從交流/直流轉換器306接收直流電壓VDC並且向光源(例如,第一LED鏈2308和第二LED鏈2310)提供調節後的輸出電壓VOUT。直流/直流轉換器2302包括具有一次側繞組和二次側繞組的變壓器2304。色溫控制器2306耦合在變壓器2304的一次側繞組與光源(例如,第一LED鏈2308和第二LED鏈2310)之間,用於接收指示電源開關304操作(例如斷開操作)的開關監測信號TS,並基於開關監測信號TS來調整光源(例如,第一LED鏈2308和第二LED鏈2310)的色溫。如圖23A所示,色溫控制器2306根據開關監測信號TS產生第一控制信號CTR1和第二控制信號CTR2來分別控制第一LED鏈2308和第二LED鏈2310。 The light source driving circuit 2300 includes an AC/DC converter 306 for converting an AC input voltage V IN from a power source into a DC voltage V DC , coupled to the AC/DC converter 306 and a light source (eg, the first LED chain 2308 and the A DC/DC converter 2302, a color temperature controller 2306, a light source (eg, a first LED chain 2308 and a second LED chain 2310), a first control switch 2312, a second control switch 2314, and a current between the two LED chains 2310) Monitor 2316. Wherein, the AC/DC converter 306 and the DC/DC converter 2302 constitute a power converter coupled between the power source and the light source for receiving power from the power source and providing the adjusted power to the light source. The DC/DC converter 2302 is for receiving a DC voltage V DC from the AC/DC converter 306 and providing a regulated output voltage V OUT to the light source (eg, the first LED chain 2308 and the second LED chain 2310). The DC/DC converter 2302 includes a transformer 2304 having a primary side winding and a secondary side winding. A color temperature controller 2306 is coupled between the primary side winding of the transformer 2304 and the light source (eg, the first LED chain 2308 and the second LED chain 2310) for receiving a switch monitoring signal indicative of operation of the power switch 304 (eg, a disconnect operation) TS, and adjusts the color temperature of the light source (eg, the first LED chain 2308 and the second LED chain 2310) based on the switch monitoring signal TS. As shown in FIG. 23A, the color temperature controller 2306 generates a first control signal CTR1 and a second control signal CTR2 according to the switch monitoring signal TS to control the first LED chain 2308 and the second LED chain 2310, respectively.

第一控制信號CTR1選擇性地接通耦合在色溫控制器2306與第一LED鏈2308之間的第一控制開關2312,以使光源的色溫被調整為第一色溫值。第二控制信號CTR2選擇性地接通耦合在色溫控制器2306與第二LED鏈2310之間的第二控制開關2314,以使光源的色溫被調整為第二色溫值。更具體地說,如果第一控制信號CTR1接通耦合在色溫控制器2306與第一LED鏈2308之間的第一控制開關2312,則電流ILED1流經第一LED鏈2308並且光源的色溫被調整為第一色溫值;如果第二控制信號CTR2接通耦合在色溫控制器2306與第二LED鏈2310之間的第二控制開關2314,則電流ILED2流經第二LED鏈2310並且光源的色溫被調整為第二色溫值。色溫控制器2306還從電流監測器2316接收指示流經光源的電流值(例如,電流ILED1或電流ILED2的值)的電流監測信號SEN,並根據電流監測信號SEN來產生驅動 信號DRV。驅動信號DRV控制變壓器2304的一次側繞組的輸入電壓,從而調節直流/直流轉換器2302的輸出電壓VOUTThe first control signal CTR1 selectively turns on the first control switch 2312 coupled between the color temperature controller 2306 and the first LED chain 2308 such that the color temperature of the light source is adjusted to a first color temperature value. The second control signal CTR2 selectively turns on the second control switch 2314 coupled between the color temperature controller 2306 and the second LED chain 2310 to adjust the color temperature of the light source to a second color temperature value. More specifically, if the first control signal CTR1 turns on the first control switch 2312 coupled between the color temperature controller 2306 and the first LED chain 2308, the current I LED1 flows through the first LED chain 2308 and the color temperature of the light source is Adjusted to a first color temperature value; if the second control signal CTR2 turns on the second control switch 2314 coupled between the color temperature controller 2306 and the second LED chain 2310, the current I LED2 flows through the second LED chain 2310 and the light source The color temperature is adjusted to the second color temperature value. The color temperature controller 2306 also receives a current monitoring signal SEN indicating a current value flowing through the light source (eg, the value of the current I LED1 or the current I LED2 ) from the current monitor 2316, and generates a drive signal DRV according to the current monitoring signal SEN. The drive signal DRV controls the input voltage of the primary side winding of the transformer 2304, thereby adjusting the output voltage V OUT of the DC/DC converter 2302.

圖23B所示為根據本發明實施例的光源驅動電路2300的電路圖。光源驅動電路2300由電源VIN(例如,110/120V交流,60Hz)經由電源開關304供電。在一個實施例中,圖23B和圖4中的交流/直流轉換器306具相同的結構。交流/直流轉換器306耦合於直流/直流轉換器2302和色溫控制器2306。電流監測器2316可以是電流偵測電阻R5。 FIG. 23B is a circuit diagram of a light source driving circuit 2300 according to an embodiment of the present invention. The light source driving circuit 2300 is powered by a power source V IN (for example, 110/120 V ac, 60 Hz) via a power switch 304. In one embodiment, the AC/DC converter 306 of Figures 23B and 4 has the same structure. AC/DC converter 306 is coupled to DC/DC converter 2302 and color temperature controller 2306. The current monitor 2316 can be a current detecting resistor R5.

直流/直流轉換器2302從交流/直流轉換器306接收輸入電壓VDC並且向光源(例如,第一LED鏈2308和第二LED鏈2310)提供調節後的輸出電壓VOUT。在圖23B的示例中,直流/直流轉換器2302包括變壓器2304、控制開關Q23、二極體D4和電容C6。變壓器2304包括用於從交流/直流轉換器306接收輸入電壓VDC的一次側繞組2305、用於向第一LED鏈2308和第二LED鏈2310提供輸出電壓VOUT的二次側繞組2307、磁芯2325及用於向色溫控制器2306提供電壓的輔助繞組2309。圖23B中所示的變壓器2304包括三個繞組只是舉例而並非限制,在其它實施例中,變壓器2304可包括其它不同數量的繞組。在圖23B所示的實施例中,耦合於一次側繞組2305的控制開關Q23位於色溫控制器2306的外部。在其它實施例中,控制開關Q23也可以集成於色溫控制器2306的內部。 The DC/DC converter 2302 receives the input voltage V D C from the AC/DC converter 306 and provides a regulated output voltage V OUT to the source (eg, the first LED chain 2308 and the second LED chain 2310). In the example of FIG. 23B, the DC/DC converter 2302 includes a transformer 2304, a control switch Q23, a diode D4, and a capacitor C6. The transformer 2304 includes a primary side winding 2305 for receiving an input voltage V DC from the AC/DC converter 306, a secondary winding 2307 for supplying an output voltage V OUT to the first LED chain 2308 and the second LED chain 2310, and a magnetic A core 2325 and an auxiliary winding 2309 for supplying a voltage to the color temperature controller 2306. The transformer 2304 shown in Figure 23B includes three windings by way of example and not limitation. In other embodiments, the transformer 2304 can include other different numbers of windings. In the embodiment shown in FIG. 23B, the control switch Q23 coupled to the primary side winding 2305 is external to the color temperature controller 2306. In other embodiments, the control switch Q23 can also be integrated into the interior of the color temperature controller 2306.

色溫控制器2306耦合於變壓器2304的一次側繞組2305和輔助繞組2309。色溫控制器2306可為反激脈波寬度調變(PWM)控制器,用於產生PWM信號來選擇性地接通與一次側繞組2305串聯的控制開關Q23,並通過調整PWM信號的責任週期來調整變壓器2304的輸出電壓。舉例但並 非限制,色溫控制器2306的埠包括埠CLK、埠PWM、埠VDD、埠CS、埠FB、埠SW1和埠SW2。 Color temperature controller 2306 is coupled to primary side winding 2305 and auxiliary winding 2309 of transformer 2304. The color temperature controller 2306 can be a flyback pulse width modulation (PWM) controller for generating a PWM signal to selectively turn on the control switch Q23 in series with the primary side winding 2305, and by adjusting the duty cycle of the PWM signal. The output voltage of the transformer 2304 is adjusted. For example but Without limitation, the color temperature controller 2306 includes 埠CLK, 埠PWM, 埠VDD, 埠CS, 埠FB, 埠SW1, and 埠SW2.

色溫控制器2306在埠CLK處接收指示電源開關304的導通狀態(例如,接通或斷開狀態)的開關監測信號TS,並根據開關監測信號TS產生第一控制信號CTR1(在埠SW1處)和第二控制信號CTR2(在埠SW2處)來分別控制第一LED鏈2308和第二LED鏈2310。更具體地說,在一個實施例中,如果開關監測信號TS指示第一次接通電源開關304,則色溫控制器2306產生第一控制信號CTR1來接通第一控制開關2312並且產生第二控制信號CTR2來斷開第二控制開關2314,因此,電流ILED1流經第一LED鏈2308而沒有電流流經第二LED鏈2310;如果開關監測信號TS指示電源開關304斷開並且在預定時間段內再次接通,則色溫控制器2306產生第一控制信號CTR1來斷開第一控制開關2312並且產生第二控制信號CTR2來接通第二控制開關2314,因此,沒有電流流經第一LED鏈2308,電流ILED2流經第二LED鏈2310。因為第二LED鏈2310可以具有與第一LED鏈2308不同的色溫,所以色溫控制器2306可以根據開關監測信號TS來調整光源的色溫。 The color temperature controller 2306 receives the switch monitoring signal TS indicating the on state (for example, the on or off state) of the power switch 304 at 埠CLK, and generates the first control signal CTR1 (at 埠SW1) according to the switch monitoring signal TS. And a second control signal CTR2 (at 埠SW2) to control the first LED chain 2308 and the second LED chain 2310, respectively. More specifically, in one embodiment, if the switch monitor signal TS indicates that the power switch 304 is turned "on" for the first time, the color temperature controller 2306 generates a first control signal CTR1 to turn on the first control switch 2312 and generate a second control. Signal CTR2 to turn off second control switch 2314, therefore, current I LED1 flows through first LED chain 2308 without current flowing through second LED chain 2310; if switch monitoring signal TS indicates that power switch 304 is off and for a predetermined period of time Once again, the color temperature controller 2306 generates a first control signal CTR1 to turn off the first control switch 2312 and generate a second control signal CTR2 to turn on the second control switch 2314, so that no current flows through the first LED chain. 2308, current I LED2 flows through the second LED chain 2310. Because the second LED chain 2310 can have a different color temperature than the first LED chain 2308, the color temperature controller 2306 can adjust the color temperature of the light source based on the switch monitoring signal TS.

埠FB從電流監測器2316接收指示電流ILED1或電流ILED2的值的電流監測信號SEN。埠CS接收指示流經一次側繞組2305的電流的監測信號LPSEN。色溫控制器2306接收電流監測信號SEN和監測信號LPSEN,並且在埠PWM處產生驅動信號DRV來控制控制開關Q23以調節直流/直流轉換器2302的輸出電壓VOUT。 The 埠FB receives a current monitoring signal SEN indicating the value of the current I LED1 or the current I LED2 from the current monitor 2316. The 埠CS receives a monitor signal LPSEN indicating the current flowing through the primary side winding 2305. The color temperature controller 2306 receives the current monitor signal SEN and the monitor signal LPSEN, and generates a drive signal DRV at the 埠PWM to control the control switch Q23 to adjust the output voltage VOUT of the DC/DC converter 2302.

色溫控制器2306根據電流監測信號SEN和監測信號LPSEN在埠PWM處產生驅動信號DRV來控制控制開關Q23的導通狀態(例如,接通 或斷開狀態)。更具體地說,電流監測信號SEN的電壓可與指示流經光源的目標電流值的參考信號的電壓進行比較,監測信號LPSEN的電壓可以與指示目標電流值的另一參考信號的電壓進行比較,如果任一比較結果指示流經光源的暫態電流值大於目標電流值,則色溫控制器2306減少驅動信號DRV的責任週期,反之亦然。在一個實施例中,如果驅動信號DRV為第一狀態(例如,邏輯高電位),則控制開關Q23接通,電流流經一次側繞組2305,並且磁芯2325進行儲能。如果驅動信號DRV為第二狀態(例如,邏輯低電位),控制開關Q23斷開,並且耦合於二次側繞組2307的二極體D4正向偏壓以使存儲在磁芯2325中的能量透過二次側繞組2307釋放至電容C6和光源。因此,可以根據驅動信號DRV來調整光源(例如,第一LED鏈2308和第二LED鏈2310)的電能。 The color temperature controller 2306 controls the conduction state of the control switch Q23 by generating a drive signal DRV at the 埠PWM according to the current monitoring signal SEN and the monitor signal LPSEN (for example, turning on Or disconnected state). More specifically, the voltage of the current monitoring signal SEN can be compared with the voltage of the reference signal indicating the target current value flowing through the light source, and the voltage of the monitoring signal LPSEN can be compared with the voltage of another reference signal indicating the target current value, If any of the comparison results indicates that the transient current value flowing through the light source is greater than the target current value, the color temperature controller 2306 reduces the duty cycle of the drive signal DRV and vice versa. In one embodiment, if the drive signal DRV is in a first state (eg, a logic high), the control switch Q23 is turned "on", current flows through the primary side winding 2305, and the magnetic core 2325 performs energy storage. If the drive signal DRV is in the second state (eg, logic low), the control switch Q23 is turned off, and the diode D4 coupled to the secondary side winding 2307 is forward biased to transmit the energy stored in the core 2325. The secondary side winding 2307 is released to the capacitor C6 and the light source. Therefore, the power of the light source (eg, the first LED chain 2308 and the second LED chain 2310) can be adjusted according to the drive signal DRV.

埠VDD耦合於輔助繞組2309。在一個實施例中,耦合於埠VDD和地之間的儲能單元(例如,電容C5),在電源開關304斷開時為色溫控制器2306供電。 埠 VDD is coupled to the auxiliary winding 2309. In one embodiment, an energy storage unit (eg, capacitor C5) coupled between 埠VDD and ground supplies power to color temperature controller 2306 when power switch 304 is turned off.

有利地是,響應於一次側電路中電源開關304的斷開操作,在電源開關304的斷開操作後的預定時間段內再次接通電源開關304之後,二次側電路中的光源(例如,第一LED鏈2308和第二LED鏈2310)的色溫由色溫控制器2306調整為目標色溫值。 Advantageously, in response to the opening operation of the power switch 304 in the primary side circuit, the light source in the secondary side circuit is turned on after the power switch 304 is turned on again within a predetermined period of time after the opening operation of the power switch 304 (eg, The color temperature of the first LED chain 2308 and the second LED chain 2310) is adjusted by the color temperature controller 2306 to a target color temperature value.

圖24所示為根據本發明實施例的圖23B中的色溫控制器2306的結構示意圖。圖24將結合圖20和圖23B進行描述。圖24中與圖20和圖23B標號相同的部件具有類似的功能。在圖24的示例中,色溫控制器2306包括啟動及低壓鎖定(UVL)電路508、驅動器2410、控制單元2420、判定 單元2431和反相器2433。 Figure 24 is a block diagram showing the structure of the color temperature controller 2306 of Figure 23B in accordance with an embodiment of the present invention. Figure 24 will be described in conjunction with Figures 20 and 23B. The same components in Fig. 24 as those in Figs. 20 and 23B have similar functions. In the example of FIG. 24, color temperature controller 2306 includes a startup and low voltage lock (UVL) circuit 508, driver 2410, control unit 2420, determination Unit 2431 and inverter 2433.

驅動器2410用於從電流監測器2316接收指示流經第一LED鏈2308或第二LED鏈2310的電流的值的電流監測信號SEN,並根據電流監測信號SEN來產生驅動信號DRV。在一個實施例中,驅動器2410包括誤差放大器2411、鋸齒波信號產生器2413、比較器2415以及脈波寬度調變信號產生器2417。誤差放大器2411基於參考信號REF和電流監測信號SEN來產生誤差信號VEA,參考信號REF指示光源(例如,第一LED鏈2308或第二LED鏈2310)的目標電流值。誤差放大器2411在埠FB處接收電流監測信號SEN,電流監測信號SEN指示來自電流監測器2316的電流ILED1或電流ILED2的值。誤差信號VEA用於將流經第一LED鏈2308的電流ILED1的值或流經第二LED鏈2310的電流ILED2的值調整為目標電流值。鋸齒波信號產生器2413產生鋸齒波信號SAW。比較器2415耦合於誤差放大器2411和鋸齒波信號產生器2413,用於比較誤差信號VEA與鋸齒波信號SAW,並且產生輸出信號到脈波寬度調變信號產生器2417。監測信號LPSEN通過埠CS接收,指示流經一次側繞組2305的電流。脈波寬度調變信號產生器2417耦合於比較器2415和埠CS,並且基於比較器2415的輸出信號和監測信號LPSEN而產生驅動信號DRV來控制開關Q23的狀態。在一個實施例中,如果監測信號LPSEN的電壓大於指示目標電流值的另一參考信號(未示出,例如可內建於脈波寬度調變信號產生器2417內)的電壓,則指示流經一次側繞組2305的電流大於目標電流值,則脈波寬度調變信號產生器2417減少驅動信號DRV的責任週期,反之亦然。 The driver 2410 is configured to receive a current monitoring signal SEN indicating a value of a current flowing through the first LED chain 2308 or the second LED chain 2310 from the current monitor 2316, and generate a driving signal DRV according to the current monitoring signal SEN. In one embodiment, the driver 2410 includes an error amplifier 2411, a sawtooth signal generator 2413, a comparator 2415, and a pulse width modulation signal generator 2417. The error amplifier 2411 generates an error signal VEA based on the reference signal REF and the current monitoring signal SEN, the reference signal REF indicating a target current value of the light source (eg, the first LED chain 2308 or the second LED chain 2310). Error amplifier 2411 receives current monitoring signal SEN at 埠FB, which indicates the value of current ILED1 or current ILED2 from current monitor 2316. The error signal VEA is used to adjust the value of the current ILED1 flowing through the first LED chain 2308 or the value of the current ILED2 flowing through the second LED chain 2310 to a target current value. The sawtooth wave signal generator 2413 generates a sawtooth wave signal SAW. The comparator 2415 is coupled to the error amplifier 2411 and the sawtooth signal generator 2413 for comparing the error signal VEA with the sawtooth signal SAW and generating an output signal to the pulse width modulation signal generator 2417. The monitor signal LPSEN is received by the 埠CS indicating the current flowing through the primary side winding 2305. The pulse width modulation signal generator 2417 is coupled to the comparators 2415 and 埠CS, and generates a drive signal DRV based on the output signal of the comparator 2415 and the monitor signal LPSEN to control the state of the switch Q23. In one embodiment, if the voltage of the monitor signal LPSEN is greater than a voltage of another reference signal (not shown, such as may be built into the pulse width modulation signal generator 2417) indicating the target current value, then the flow is indicated. The current of the primary side winding 2305 is greater than the target current value, and the pulse width modulation signal generator 2417 reduces the duty cycle of the drive signal DRV, and vice versa.

當電流監測信號SEN的電壓大於參考信號REF的電壓時,指 示流經第一LED鏈2308的電流ILED1的值或流經第二LED鏈2310的電流ILED2的值大於由參考信號REF決定的目標電流值,驅動器2410根據電流監測信號SEN減小驅動信號DRV的責任週期,以使直流/直流轉換器2302的輸出電壓減小。類似地,當電流監測信號SEN的電壓小於參考信號REF的電壓時,指示流經第一LED鏈2308的電流ILED1的值或流經第二LED鏈2310的電流ILED2的值小於由參考信號REF決定的目標電流值,驅動器2410根據電流監測信號SEN增大驅動信號DRV的責任週期,以使直流/直流轉換器2302的輸出電壓增大。 When the voltage of the current monitoring signal SEN is greater than the voltage of the reference signal REF, the value indicating the current I LED1 flowing through the first LED chain 2308 or the current I LED2 flowing through the second LED chain 2310 is greater than the value determined by the reference signal REF. The target current value, the driver 2410 reduces the duty cycle of the drive signal DRV according to the current monitor signal SEN to reduce the output voltage of the DC/DC converter 2302. Similarly, when the voltage of the current monitoring signal SEN is less than the voltage of the reference signal REF, the value indicating the current I LED1 flowing through the first LED chain 2308 or the current I LED2 flowing through the second LED chain 2310 is less than the reference signal The target current value determined by REF, the driver 2410 increases the duty cycle of the drive signal DRV according to the current monitor signal SEN to increase the output voltage of the DC/DC converter 2302.

判定單元2431偵測色溫控制器2306的電能狀態並且基於色溫控制器2306的電能狀態而產生第一判定信號VDD_L和第二判定信號VDD_H。色溫控制器2306基於第一判定信號VDD_L、第二判定信號VDD_H以及開關監測信號TS來調整光源的色溫。例如,如果色溫控制器2306的埠VDD處的電壓小於重置臨限值電壓(例如,4V),則第一判定信號VDD_L具有第一狀態(例如,邏輯高電位);如果色溫控制器2306的埠VDD處的電壓大於重置臨限值電壓(例如,4V),則第一判定信號VDD_L具有第二狀態(例如,邏輯低電位);如果色溫控制器2306的埠VDD處的電壓小於使能臨限值電壓(例如,10V),則第二判定信號VDD_H具有第一狀態(例如,邏輯低電位);如果色溫控制器2306的埠VDD處的電壓大於使能臨限值電壓(例如,10V),則第二判定信號VDD_H具有第二狀態(例如,邏輯高電位)。 The determining unit 2431 detects the power state of the color temperature controller 2306 and generates a first determination signal VDD_L and a second determination signal VDD_H based on the power state of the color temperature controller 2306. The color temperature controller 2306 adjusts the color temperature of the light source based on the first determination signal VDD_L, the second determination signal VDD_H, and the switch monitoring signal TS. For example, if the voltage at the 埠VDD of the color temperature controller 2306 is less than the reset threshold voltage (eg, 4V), the first decision signal VDD_L has a first state (eg, a logic high potential); if the color temperature controller 2306 If the voltage at VDD is greater than the reset threshold voltage (eg, 4V), then the first decision signal VDD_L has a second state (eg, a logic low); if the voltage at the 埠VDD of the color temperature controller 2306 is less than enabled With a threshold voltage (eg, 10V), the second decision signal VDD_H has a first state (eg, a logic low); if the voltage at the 埠VDD of the color temperature controller 2306 is greater than the enable threshold voltage (eg, 10V) Then, the second determination signal VDD_H has a second state (for example, a logic high potential).

控制單元2420用於根據開關監測信號TS、第一判定信號VDD_L和第二判定信號VDD_H產生第一控制信號CTR1和第二控制信號CTR2來分別控制第一LED鏈2308和第二LED鏈2310。在一個實施例中,控 制單元2420包括計時器2421、第一D型正反器2423、第二D型正反器2425、第一及閘2427及第二及閘2429。計時器2421接收開關監測信號TS並且在開關監測信號TS出現下降沿時開始計時,計時器2421還在開關監測信號TS的每個下降沿的預定義時間間隔△t之後產生脈衝信號TS_DE。脈衝信號TS_DE耦合於第一D型正反器2423的輸入埠CLK,並且開關監測信號TS耦合於第二D型正反器2425的輸入埠CLK。第一D型正反器2423的輸入埠D1耦合於它的輸出埠,並且第一D型正反器2423的輸出埠Q1耦合於第二D型正反器2425的輸入埠D2。 The control unit 2420 is configured to generate the first control signal CTR1 and the second control signal CTR2 according to the switch monitoring signal TS, the first determination signal VDD_L, and the second determination signal VDD_H to respectively control the first LED chain 2308 and the second LED chain 2310. In one embodiment, the control unit 2420 includes a timer 2421, a first D-type flip-flop 2423, a second D-type flip-flop 2425, a first AND gate 2427, and a second AND gate 2429. The timer 2421 receives the switch monitor signal TS and starts timing when the switch monitor signal TS has a falling edge. The timer 2421 also generates the pulse signal TS_DE after a predefined time interval Δt of each falling edge of the switch monitor signal TS. The pulse signal TS_DE is coupled to the input 埠CLK of the first D-type flip-flop 2423, and the switch monitor signal TS is coupled to the input 埠CLK of the second D-type flip-flop 2425. The input 埠D1 of the first D-type flip-flop 2423 is coupled to its output埠 And the output 埠Q1 of the first D-type flip-flop 2423 is coupled to the input 埠D2 of the second D-type flip-flop 2425.

第一D型正反器2423和第二D型正反器2425的輸入埠R均耦合於反相器2433的輸出埠,並且反相器2433的輸入埠耦合於判定單元2431。如果色溫控制器2306的埠VDD處的電壓小於重置臨限值電壓(例如,4V),第一判定信號VDD_L為邏輯高電位,則第一D型正反器2423和第二D型正反器2425都經過反相器2433而被重置,因此,第一D型正反器2423的輸出埠Q1和第二D型正反器2425的輸出埠Q2都被重置為邏輯低電位,並且第一D型正反器2423的輸出埠和第二D型正反器2425的輸出埠都被重置為邏輯高電位。 The input 埠R of the first D-type flip-flop 2423 and the second D-type flip-flop 2425 are both coupled to the output 埠 of the inverter 2433, and the input 埠 of the inverter 2433 is coupled to the decision unit 2431. If the voltage at the 埠VDD of the color temperature controller 2306 is less than the reset threshold voltage (eg, 4V), the first decision signal VDD_L is at a logic high level, then the first D-type flip-flop 2423 and the second D-type positive and negative The device 2425 is reset by the inverter 2433, and therefore, the output 埠Q1 of the first D-type flip-flop 2423 and the output 埠Q2 of the second D-type flip-flop 2425 are both reset to a logic low level, and The output of the first D-type flip-flop 2423埠 And the output of the second D-type flip-flop 2425 Both are reset to logic high.

第二判定信號VDD_H和第二D型正反器2425的輸出埠均耦合於第一及閘2427。第一及閘2427產生第一控制信號CTR1來控制第一控制開關2312和流經第一LED鏈2308的電流ILED1。第二判定信號VDD_H和第二D型正反器2425的輸出埠Q2均耦合於第二及閘2429。第二及閘2429產生 第二控制信號CTR2來控制第二控制開關2314和流經第二LED鏈2310的電流ILED2。以此方式,色溫控制器2306可以回應於電源開關304的斷開操作而調整光源的色溫。 The output of the second decision signal VDD_H and the second D-type flip-flop 2425 Both are coupled to the first AND gate 2427. The first AND gate 2427 generates a first control signal CTR1 to control the first control switch 2312 and the current I LED1 flowing through the first LED chain 2308. The second decision signal VDD_H and the output 埠Q2 of the second D-type flip-flop 2425 are both coupled to the second AND gate 2429. The second AND gate 2429 generates a second control signal CTR2 to control the second control switch 2314 and the current I LED2 flowing through the second LED chain 2310. In this manner, color temperature controller 2306 can adjust the color temperature of the light source in response to the opening operation of power switch 304.

圖25所示為包含圖24所示的色溫控制器的光源驅動電路的信號波形圖。圖25示出了開關監測信號TS、脈衝信號TS_DE、第一判定信號VDD_L、第二判定信號VDD_H、輸入埠D1處的電壓、輸出埠Q1處的電壓、輸出埠Q2處的電壓、第一控制信號CTR1和第二控制信號CTR2的信號波形。圖25將結合圖23B和圖24進行描述。 Fig. 25 is a signal waveform diagram of a light source driving circuit including the color temperature controller shown in Fig. 24. 25 shows the switch monitor signal TS, the pulse signal TS_DE, the first decision signal VDD_L, the second decision signal VDD_H, the voltage at the input 埠D1, the voltage at the output 埠Q1, the voltage at the output 埠Q2, the first control Signal waveforms of the signal CTR1 and the second control signal CTR2. Figure 25 will be described in conjunction with Figures 23B and 24.

在t0時刻,電源開關304接通。在t1時刻,開關監測信號TS從第一狀態(例如,邏輯低電位)改變為第二狀態(例如,邏輯高電位),埠VDD處的電壓增大至重置臨限值電壓(例如,4V)並且第一判定信號VDD_L從第一狀態(例如,邏輯高電位)改變為第二狀態(例如,邏輯低電位)。在t2時刻,埠VDD處的電壓增大至使能臨限值電壓(例如,10V)並且第二判定信號VDD_H從第一狀態(例如,邏輯低電位)改變為第二狀態(例如,邏輯高電位)。在t0時刻到t2時刻的時間間隔內,第一D型正反器2423的輸出埠Q1和第二D型正反器2425的輸出埠Q2都是邏輯低電位。由於第一及閘2427和第二及閘2429接收的第二判定信號VDD_H為邏輯低電位,第一控制信號CTR1和第二控制信號CTR2也都是邏輯低電位。在t2時刻之後,由於第二判定信號VDD_H改變為邏輯高電位,第一控制信號CTR1也改變為邏輯高電位。因此,第一控制開關2312接通並且電流ILED1開始流經第一LED鏈2308。在t3時刻,電源開關304斷開,並且色溫控制器2306的埠VDD處的電壓開始下降。如上該,一旦開關監測信號TS出現下降沿,在預定義 時間間隔△t之後可以產生脈衝信號TS_DE。在t4時刻,回應於脈衝信號TS_DE出現的上升沿,第一D型正反器2423的輸入埠D1從邏輯高電位改變為邏輯低電位,並且第一D型正反器2423的輸出埠Q1從邏輯低電位改變為邏輯高電位。在t5時刻,埠VDD處的電壓降低至使能臨限值電壓(例如,10V),並且第二判定信號VDD_H從第二狀態(例如,邏輯高電位)改變為第一狀態(例如,邏輯低電位)。因此,由於第一及閘2427和第二及閘2429接收的第二判定信號VDD_H為邏輯低電位,第一控制信號CTR1和第二控制信號CTR2也都是邏輯低電位。 At time t0, the power switch 304 is turned "on". At time t1, the switch monitor signal TS changes from a first state (eg, a logic low) to a second state (eg, a logic high), and the voltage at VDD increases to a reset threshold voltage (eg, 4V) And the first determination signal VDD_L is changed from the first state (for example, a logic high level) to the second state (for example, a logic low level). At time t2, the voltage at VDD increases to enable the threshold voltage (eg, 10V) and the second decision signal VDD_H changes from the first state (eg, logic low) to the second state (eg, logic high) Potential). The output 埠Q1 of the first D-type flip-flop 2423 and the output 埠Q2 of the second D-type flip-flop 2425 are both logic low during the time interval from time t0 to time t2. Since the second determination signal VDD_H received by the first AND gate 2227 and the second AND gate 2429 is logic low, the first control signal CTR1 and the second control signal CTR2 are also logic low. After the time t2, since the second determination signal VDD_H changes to a logic high level, the first control signal CTR1 also changes to a logic high level. Thus, the first control switch 2312 is turned "on" and the current I LED1 begins to flow through the first LED chain 2308. At time t3, the power switch 304 is turned off, and the voltage at the 埠VDD of the color temperature controller 2306 begins to drop. As described above, once the switching monitor signal TS has a falling edge, the pulse signal TS_DE can be generated after the predefined time interval Δt. At time t4, in response to the rising edge of the pulse signal TS_DE, the input 埠D1 of the first D-type flip-flop 2423 changes from a logic high level to a logic low level, and the output 埠Q1 of the first D-type flip-flop 2423 The logic low changes to a logic high. At time t5, the voltage at 埠VDD is lowered to enable the threshold voltage (eg, 10V), and the second decision signal VDD_H is changed from the second state (eg, logic high) to the first state (eg, logic low) Potential). Therefore, since the second determination signal VDD_H received by the first AND gate 2227 and the second AND gate 2429 is at a logic low level, the first control signal CTR1 and the second control signal CTR2 are also both logic low.

在t6時刻,開關監測信號TS出現上升沿,指示電源開關304再次接通。t3時刻到t6時刻的時間間隔小於預定(規定)時間間隔(例如,t6減t3<3秒),以使埠VDD處的電壓保持在重置臨限值電壓(例如,4V)以上並且第一判定信號VDD_L保持為邏輯低電位。回應於開關監測信號TS出現的上升沿,第二D型正反器2425的輸出埠Q2從邏輯低電位改變為邏輯高電位,並且它的輸出埠從邏輯高電位改變為邏輯低電位。類似於t1時刻到t2時刻的時間間隔,從t6時刻到t7時刻的時間間隔,第一控制信號CTR1和第二控制信號CTR2都是邏輯低電位。在t7時刻之後,埠VDD處的電壓增大至使能臨限值電壓以上,第二判定信號VDD_H改變為邏輯高電位,並且第二控制信號CTR2也改變為邏輯高電位,第二控制開關2314接通並且電流ILED2開始流經第二LED鏈2310。然後,電源開關304再次斷開,並且在t8時刻埠VDD處的電壓降低至使能臨限值電壓(例如,10V)。從t8時刻到t10時刻的時間間隔中的信號波形類似於從t0時刻到t5時刻的時間間隔中的信號 波形。在t9時刻,第一控制開關2312接通並且電流ILED1開始流經第一LED鏈2308。 At time t6, a rising edge of the switch monitor signal TS indicates that the power switch 304 is turned "on" again. The time interval from time t3 to time t6 is less than a predetermined (prescribed) time interval (eg, t6 minus t3 < 3 seconds) to maintain the voltage at 埠 VDD above the reset threshold voltage (eg, 4V) and first The determination signal VDD_L remains at a logic low level. In response to the rising edge of the switch monitor signal TS, the output 埠Q2 of the second D-type flip-flop 2425 changes from a logic low level to a logic high level, and its output 埠 Change from logic high to logic low. Similar to the time interval from time t1 to time t2, the time interval from time t6 to time t7, the first control signal CTR1 and the second control signal CTR2 are both logic low. After time t7, the voltage at VDD increases above the enable threshold voltage, the second decision signal VDD_H changes to a logic high level, and the second control signal CTR2 also changes to a logic high level, the second control switch 2314 Turned on and current I LED2 begins to flow through the second LED chain 2310. Then, the power switch 304 is turned off again, and at time t8, the voltage at VDD is lowered to the enable threshold voltage (for example, 10 V). The signal waveform in the time interval from time t8 to time t10 is similar to the signal waveform in the time interval from time t0 to time t5. At time t9, the first control switch 2312 is turned "on" and the current I LED1 begins to flow through the first LED chain 2308.

因此,色溫控制器2306回應於電源開關304的斷開操作交替地接通第一控制開關2312和第二控制開關2314,由於第二LED鏈2310可以具有與第一LED鏈2308不同的色溫,因此,色溫控制器2306可以回應於電源開關304的斷開操作來調整光源的色溫。 Therefore, the color temperature controller 2306 alternately turns on the first control switch 2312 and the second control switch 2314 in response to the off operation of the power switch 304, since the second LED chain 2310 can have a different color temperature than the first LED chain 2308, The color temperature controller 2306 can adjust the color temperature of the light source in response to the opening operation of the power switch 304.

圖26所示為根據本發明的另一個實施例的包含圖24所示的色溫控制器的光源驅動電路的信號波形圖。圖26示出了開關監測信號TS、脈衝信號TS_DE、第一判定信號VDD_L、第二判定信號VDD_H、輸入埠D1處的電壓、輸出埠Q1處的電壓、輸出埠Q2處的電壓、第一控制信號CTR1和第二控制信號CTR2的信號波形。圖26將結合圖23B、圖24和圖25進行描述。 Figure 26 is a diagram showing signal waveforms of a light source driving circuit including the color temperature controller shown in Figure 24 according to another embodiment of the present invention. 26 shows the switch monitor signal TS, the pulse signal TS_DE, the first decision signal VDD_L, the second decision signal VDD_H, the voltage at the input 埠D1, the voltage at the output 埠Q1, the voltage at the output 埠Q2, the first control Signal waveforms of the signal CTR1 and the second control signal CTR2. Figure 26 will be described in conjunction with Figures 23B, 24 and 25.

從t0時刻到t6’時刻的時間間隔中的波形類似於圖25中的從t0時刻到t6時刻的時間間隔中的波形。在t7’時刻,電源開關304再次接通。t3時刻到t7’時刻的時間間隔大於預定時間間隔(例如,t7’減t3>3秒)。因此,在t6’時刻,埠VDD處的電壓降低至重置臨限值電壓(例如,4V),並且第一判定信號VDD_L從邏輯低電位改變為邏輯高電位,輸出埠Q1和輸出埠Q2都被重置為邏輯低電位。由於第一及閘2427和第二及閘2429接收的第二判定信號VDD_H為邏輯低電位,第一控制信號CTR1和第二控制信號CTR2也都為邏輯低電位。 The waveform in the time interval from the time t0 to the time t6' is similar to the waveform in the time interval from the time t0 to the time t6 in Fig. 25. At time t7', the power switch 304 is turned "on" again. The time interval from the time t3 to the time t7' is greater than the predetermined time interval (e.g., t7' minus t3 > 3 seconds). Therefore, at time t6', the voltage at 埠VDD is lowered to the reset threshold voltage (for example, 4V), and the first determination signal VDD_L is changed from the logic low level to the logic high level, and the output 埠Q1 and the output 埠Q2 are both Reset to logic low. Since the second determination signal VDD_H received by the first AND gate 2227 and the second AND gate 2429 is logic low, the first control signal CTR1 and the second control signal CTR2 are also logic low.

在t8’時刻,開關監測信號TS從第一狀態(例如,邏輯低電位)改變為第二狀態(例如,邏輯高電位),埠VDD處的電壓增大至重置臨 限值電壓(例如,4V),並且第一判定信號VDD_L從第一狀態(例如,邏輯高電位)改變為第二狀態(例如,邏輯低電位)。在t9’時刻,埠VDD處的電壓增大至使能臨限值電壓(例如,10V),並且第二判定信號VDD_H從第一狀態(例如,邏輯低電位)改變為第二狀態(例如,邏輯高電位)。t7’時刻到t9’時刻的時間間隔中的信號波形類似於t0時刻到t2時刻的時間間隔中的信號波形。在t9’時刻之後,埠VDD處的電壓增大至使能臨限值電壓以上,第二判定信號VDD_H改變為邏輯高電位,並且第一控制信號CTR1也改變為邏輯高電位。然後,第一控制開關2312接通並且電流ILED1開始流經第一LED鏈2308。 At time t8', the switch monitor signal TS changes from a first state (eg, a logic low) to a second state (eg, a logic high), and the voltage at VDD increases to a reset state. The limit voltage (eg, 4V), and the first determination signal VDD_L changes from a first state (eg, a logic high potential) to a second state (eg, a logic low potential). At time t9', the voltage at VDD increases to enable the threshold voltage (eg, 10V), and the second decision signal VDD_H changes from the first state (eg, logic low) to the second state (eg, Logic high). The signal waveform in the time interval from the time t7' to the time t9' is similar to the signal waveform in the time interval from the time t0 to the time t2. After the time t9', the voltage at 埠VDD is increased above the enable threshold voltage, the second decision signal VDD_H is changed to a logic high level, and the first control signal CTR1 is also changed to a logic high level. Then, the first control switch 2312 is turned on and the current ILED1 begins to flow through the first LED chain 2308.

如圖25所示,如果開關監測信號TS指示電源開關304的斷開操作與下一接通操作之間的時間間隔小於預定時間間隔(例如,3秒),則色溫控制器2306回應於電源開關304的下一接通操作將光源(例如,第一LED鏈2308和第二LED鏈2310)的色溫從第一色溫值改變為第二色溫值。更具體地說,在圖25的示例中,在第一時間間隔期間(例如,從t2時刻到t5時刻的時間間隔),第一控制信號CTR1為邏輯高電位,第一LED鏈2308接通,第二LED鏈2310斷開,以使光源的色溫被調整為第一色溫值;在不同於第一時間間隔的第二時間間隔期間(例如,從t7時刻到t8時刻的時間間隔),第二控制信號CTR2為邏輯高電位,第一LED鏈2308斷開,第二LED鏈2310接通,以使光源的色溫被調整為第二色溫值。因此,色溫控制器2306通過交替地接通第一控制開關2312和第二控制開關2314而將光源的色溫從第一LED鏈2308的色溫改變為第二LED鏈2310的色溫。然而,如圖26所示,如果開關監測信號TS指示電源開關304的斷開操作與下一接通操作之間的時間 間隔大於預定時間間隔,則色溫控制器2306回應於電源開關304的下一接通操作將光源的色溫重置為預設色溫值。在圖26的示例中,預設色溫值可以為第一LED鏈2308的色溫值,例如,由出廠時設置的色溫值;預設色溫值不限於圖26的示例中所示的色溫值。 As shown in FIG. 25, if the switch monitor signal TS indicates that the time interval between the off operation of the power switch 304 and the next turn-on operation is less than a predetermined time interval (for example, 3 seconds), the color temperature controller 2306 responds to the power switch. The next turn-on operation of 304 changes the color temperature of the light source (eg, first LED chain 2308 and second LED chain 2310) from a first color temperature value to a second color temperature value. More specifically, in the example of FIG. 25, during the first time interval (eg, the time interval from time t2 to time t5), the first control signal CTR1 is at a logic high level, and the first LED chain 2308 is turned on. The second LED chain 2310 is turned off to adjust the color temperature of the light source to a first color temperature value; during a second time interval different from the first time interval (eg, a time interval from time t7 to time t8), second The control signal CTR2 is at a logic high level, the first LED chain 2308 is turned off, and the second LED chain 2310 is turned on so that the color temperature of the light source is adjusted to the second color temperature value. Therefore, the color temperature controller 2306 changes the color temperature of the light source from the color temperature of the first LED chain 2308 to the color temperature of the second LED chain 2310 by alternately turning on the first control switch 2312 and the second control switch 2314. However, as shown in FIG. 26, if the switch monitor signal TS indicates the time between the off operation of the power switch 304 and the next turn-on operation The interval is greater than the predetermined time interval, and the color temperature controller 2306 resets the color temperature of the light source to a preset color temperature value in response to the next turn-on operation of the power switch 304. In the example of FIG. 26, the preset color temperature value may be a color temperature value of the first LED chain 2308, for example, a color temperature value set by the factory; the preset color temperature value is not limited to the color temperature value shown in the example of FIG.

圖27所示為根據本發明實施例的控制光源色溫的方法流程圖2700。圖27將結合圖23A-圖26進行描述。圖27中所涵蓋的具體步驟僅僅作為示例,即,本發明適用於執行各種其它步驟或對圖27中表述的步驟進行改進的步驟。 27 is a flow chart 2700 of a method of controlling the color temperature of a light source in accordance with an embodiment of the present invention. Figure 27 will be described in conjunction with Figures 23A-26. The specific steps covered in FIG. 27 are merely examples, that is, the present invention is applicable to steps that perform various other steps or that improve the steps expressed in FIG.

在步驟2702中,驅動電路(例如,光源驅動電路2300)從電源接收電能並且由電力轉換器(例如交流/直流轉換器306和變壓器2304)向光源(例如,第一LED鏈2308和第二LED鏈2310)提供調節後的電能。 In step 2702, a drive circuit (eg, light source drive circuit 2300) receives power from a power source and is directed by a power converter (eg, AC/DC converter 306 and transformer 2304) to a light source (eg, first LED chain 2308 and second LED) Chain 2310) provides regulated electrical energy.

在步驟2704中,接收開關監測信號,開關監測信號TS(例如,由色溫控制器2306接收的開關監測信號)指示耦合在電源與電力轉換器之間的電源開關(例如,電源開關304)的操作。 In step 2704, a switch monitor signal is received, the switch monitor signal TS (eg, the switch monitor signal received by the color temperature controller 2306) indicating operation of a power switch (eg, power switch 304) coupled between the power source and the power converter. .

在步驟2706中,基於開關監測信號TS調整光源的色溫。例如,在第一時間間隔期間(例如,在圖25中的t2時刻到t5時刻的時間間隔),色溫控制器2306可以產生第一控制信號CTR1來接通具有第一色溫值的第一LED鏈2308,並且產生第二控制信號CTR2來斷開具有第二色溫值的第二LED鏈2310,以使光源的色溫被調整為第一色溫值;在不同於第一時間間隔的第二時間間隔期間(例如,在圖25中的t7時刻到t8時刻的時間間隔),色溫控制器2306可以產生第一控制信號CTR1來斷開第一LED鏈2308,並且產生第二控制信號CTR2來接通第二LED鏈2310,以使光源的色溫被調整為 第二色溫值。 In step 2706, the color temperature of the light source is adjusted based on the switch monitoring signal TS. For example, during a first time interval (eg, a time interval from time t2 to time t5 in FIG. 25), color temperature controller 2306 can generate first control signal CTR1 to turn on the first LED chain having the first color temperature value. 2308, and generating a second control signal CTR2 to turn off the second LED chain 2310 having the second color temperature value such that the color temperature of the light source is adjusted to the first color temperature value; during the second time interval different from the first time interval (For example, at time intervals from time t7 to time t8 in FIG. 25), color temperature controller 2306 may generate first control signal CTR1 to turn off first LED chain 2308, and generate second control signal CTR2 to turn on second LED chain 2310 so that the color temperature of the light source is adjusted to The second color temperature value.

因此,本發明實施例的驅動電路可以根據指示電源開關(例如,置於牆面上的接通/斷開開關)的操作的開關監測信號來控制光源(例如,第一LED鏈2308和第二LED鏈2310)的色溫,並可以由色溫控制器通過控制串聯耦合於直流/直流轉換器中的變壓器的一次側繞組的開關來調整由直流/直流轉換器提供的光源的電能。因此,使用者可以通過對接通/斷開電源開關的操作(例如,斷開操作)來調整光源的色溫,避免了使用額外的元件(例如專門設計的具有調節按鈕的開關)來調整光源的色溫,從而節省成本。 Accordingly, the drive circuit of an embodiment of the present invention can control the light source (eg, the first LED chain 2308 and the second according to a switch monitoring signal indicating operation of a power switch (eg, an on/off switch placed on the wall) The color temperature of the LED chain 2310), and the power of the light source provided by the DC/DC converter can be adjusted by the color temperature controller by controlling the switches of the primary side winding of the transformer coupled in series to the DC/DC converter. Therefore, the user can adjust the color temperature of the light source by turning on/off the power switch operation (for example, the disconnect operation), thereby avoiding the use of additional components (such as a specially designed switch with an adjustment button) to adjust the light source. Color temperature, which saves costs.

以上描述是基於LED鏈的實施例舉例說明。然而,根據本發明的實施例還可以應用到其他類型的光源。換言之,本發明的實施例不局限於LED光源,同樣適用於其他類型的光源。 The above description is exemplified based on an embodiment of an LED chain. However, embodiments in accordance with the invention may also be applied to other types of light sources. In other words, embodiments of the invention are not limited to LED light sources and are equally applicable to other types of light sources.

在此使用之措辭和表達都是用於說明而非限制,使用這些措辭和表達並不將在此圖示和描述的特性之任何等同物(或部分等同物)排除在發明範圍之外,在權利要求的範圍內可能存在各種修改。其它的修改、變體和替換物也可能存在。因此,權利要求旨在涵蓋所有此類等同物。 The wording and expressions used herein are for the purpose of illustration and description, and are not intended to be Various modifications are possible within the scope of the claims. Other modifications, variations, and alternatives may also be present. Accordingly, the claims are intended to cover all such equivalents.

304‧‧‧電源開關 304‧‧‧Power switch

306‧‧‧交流/直流轉換器 306‧‧•AC/DC converter

2300‧‧‧光源驅動電路 2300‧‧‧Light source drive circuit

2302‧‧‧直流/直流轉換器 2302‧‧‧DC/DC Converter

2304‧‧‧變壓器 2304‧‧‧Transformers

2305‧‧‧一次側繞組 2305‧‧‧ primary winding

2306‧‧‧色溫控制器 2306‧‧‧Color temperature controller

2307‧‧‧二次側繞組 2307‧‧‧secondary winding

2308‧‧‧第一LED鏈 2308‧‧‧First LED chain

2309‧‧‧輔助繞組 2309‧‧‧Auxiliary winding

2310‧‧‧第二LED鏈 2310‧‧‧Second LED chain

2312‧‧‧第一控制開關 2312‧‧‧First control switch

2314‧‧‧第二控制開關 2314‧‧‧Second control switch

2316‧‧‧電流監測器 2316‧‧‧ Current monitor

2325‧‧‧磁芯 2325‧‧‧ magnetic core

Claims (20)

一種光源驅動電路,用於驅動具有可調色溫的一光源,該光源驅動電路包括:一電力轉換器,耦接在一電源與該光源之間,從該電源接收一電能並且向該光源提供一調節後的電能;以及一色溫控制器,耦接該電力轉換器,接收一指示耦接該電源與該電力轉換器之間的一電源開關的一操作的一開關監測信號,並且基於該開關監測信號調整該光源的一色溫。 A light source driving circuit for driving a light source having a color temperature, the light source driving circuit comprising: a power converter coupled between a power source and the light source, receiving an electric energy from the power source and providing a light source to the light source The adjusted power; and a color temperature controller coupled to the power converter, receiving a switch monitoring signal indicating an operation of coupling a power switch between the power source and the power converter, and monitoring based on the switch The signal adjusts a color temperature of the light source. 根據申請專利範圍第1項之光源驅動電路,其中,該光源包括:具有一第一色溫值的一第一發光元件和具有一第二色溫值的一第二發光元件,該色溫控制器包括:一控制單元,根據該開關監測信號產生一第一控制信號和一第二控制信號,其中,該第一控制信號選擇性地接通耦接在該色溫控制器與該第一發光元件之間的一第一控制開關以使該光源的該色溫被調整為該第一色溫值;該第二控制信號選擇性地接通耦接在該色溫控制器與該第二發光元件之間的一第二控制開關以使該光源的該色溫被調整為該第二色溫值。 The light source driving circuit of claim 1, wherein the light source comprises: a first light emitting element having a first color temperature value and a second light emitting element having a second color temperature value, the color temperature controller comprising: a control unit, configured to generate a first control signal and a second control signal according to the switch monitoring signal, wherein the first control signal is selectively coupled to be coupled between the color temperature controller and the first light emitting element a first control switch to adjust the color temperature of the light source to the first color temperature value; the second control signal selectively turning on a second coupled between the color temperature controller and the second light emitting element The switch is controlled such that the color temperature of the light source is adjusted to the second color temperature value. 根據申請專利範圍第2項之光源驅動電路,其中,該控制單元包括:一計時器,接收該開關監測信號,該計時器在該開關監測信號出現一下降沿時開始計時,並在該下降沿的一預定義時間間隔之後產生一脈衝信號;一第一D型正反器,收該脈衝信號;以及一第二D型正反器,耦接該第一D型正反器,並接收該開關監測信號;其中,該第一控制信號和該第二控制信號基於該第二D型正反器的一輸出信號而產生。 The light source driving circuit of claim 2, wherein the control unit comprises: a timer that receives the switch monitoring signal, the timer starts counting when a falling edge of the switch monitoring signal occurs, and the falling edge a pulse signal is generated after a predefined time interval; a first D-type flip-flop receives the pulse signal; and a second D-type flip-flop is coupled to the first D-type flip-flop and receives the pulse And a switch monitoring signal; wherein the first control signal and the second control signal are generated based on an output signal of the second D-type flip-flop. 根據申請專利範圍第1項之光源驅動電路,其中,該色溫控制器包括: 一判定單元,偵測該色溫控制器的一電能狀態並且基於該色溫控制器的該電能狀態產生一第一判定信號和一第二判定信號,該色溫控制器基於該第一判定信號、該第二判定信號以及該開關監測信號調整該光源的該色溫。 According to the light source driving circuit of claim 1, wherein the color temperature controller comprises: a determining unit, detecting a power state of the color temperature controller and generating a first determination signal and a second determination signal based on the power state of the color temperature controller, the color temperature controller based on the first determination signal, the first The second decision signal and the switch monitor signal adjust the color temperature of the light source. 根據申請專利範圍第1項之光源驅動電路,其中,如果該開關監測信號指示該電源開關的一斷開操作與一下一接通操作之間的一時間間隔小於一預定時間間隔,則該色溫控制器回應於該電源開關的該下一接通操作將該光源的該色溫從一第一色溫值調整為一第二色溫值。 The light source driving circuit of claim 1, wherein the color temperature control is performed if the switch monitoring signal indicates that a time interval between an off operation and a next on operation of the power switch is less than a predetermined time interval The color temperature of the light source is adjusted from a first color temperature value to a second color temperature value in response to the next turn-on operation of the power switch. 根據申請專利範圍第5項之光源驅動電路,其中,該光源包括:具有該第一色溫值的一第一發光元件和具有該第二色溫值的一第二發光元件,該色溫控制器通過產生一第一控制信號和一第二控制信號調整該光源的該色溫,當該第一控制信號接通耦接在該色溫控制器與該第一發光元件之間的一第一控制開關時,一第一電流流經該第一發光元件並且該光源的該色溫被調整為該第一色溫值;當該第二控制信號接通耦接在該色溫控制器與該第二發光元件之間的一第二控制開關時,一第二電流流經該第二發光元件並且該光源的該色溫被調整為該第二色溫值。 The light source driving circuit of claim 5, wherein the light source comprises: a first light emitting element having the first color temperature value and a second light emitting element having the second color temperature value, the color temperature controller generating a first control signal and a second control signal adjust the color temperature of the light source, when the first control signal is coupled to a first control switch coupled between the color temperature controller and the first light emitting element, a first current flows through the first light emitting element and the color temperature of the light source is adjusted to the first color temperature value; when the second control signal is coupled to a one coupled between the color temperature controller and the second light emitting element When the second control switch, a second current flows through the second light emitting element and the color temperature of the light source is adjusted to the second color temperature value. 根據申請專利範圍第1項之光源驅動電路,其中,該如果該開關監測信號指示該電源開關的一斷開操作與一下一接通操作之間的一時間間隔大於一預定時間間隔,則該色溫控制器回應於該電源開關的該下一接通操作將該光源的該色溫重置為一預設色溫值。 The light source driving circuit of claim 1, wherein the color temperature is determined if the switch monitoring signal indicates that a time interval between an off operation and a next on operation of the power switch is greater than a predetermined time interval The controller resets the color temperature of the light source to a predetermined color temperature value in response to the next turn-on operation of the power switch. 根據申請專利範圍第1項之光源驅動電路,其中,該電力轉換器包括:一交流/直流轉換器和一變壓器,該變壓器包括一次側繞組、一二次側繞組和一輔助繞組,該一次側繞組耦合於該交流/直流轉換器並且用於通過該交 流/直流轉換器從該電源接收該電能,該二次側繞組用於向該光源提供該調節後的電能,該輔助繞組用於向該色溫控制器供電,該電源開關耦接在該電源與該交流/直流轉換器之間。 The light source driving circuit of claim 1, wherein the power converter comprises: an AC/DC converter and a transformer, the transformer comprising a primary winding, a secondary winding, and an auxiliary winding, the primary side a winding coupled to the AC/DC converter and used to pass the intersection A current/DC converter receives the electrical energy from the power source, the secondary side winding is configured to provide the adjusted electrical energy to the light source, the auxiliary winding is configured to supply power to the color temperature controller, and the power switch is coupled to the power source and Between the AC/DC converters. 根據申請專利範圍第1項之光源驅動電路,其中,該色溫控制器用於接收指示流經該光源的一電流值的一電流監測信號,並且根據該電流監測信號控制提供到該光源的該調節後的電能。 The light source driving circuit of claim 1, wherein the color temperature controller is configured to receive a current monitoring signal indicating a current value flowing through the light source, and control the adjustment provided to the light source according to the current monitoring signal Electrical energy. 一種色溫控制器,包括:一驅動單元,接收指示流經一光源的一電流值的一電流監測信號,並且根據該電流監測信號產生一驅動信號控制一電力轉換器提供一調節後的電能給該光源;以及一控制單元,耦接該驅動單元,接收指示一電源開關的一操作的一開關監測信號,並且基於該開關監測信號調整該光源的一色溫,其中,該電源開關耦接在電源與該電力轉換器之間。 A color temperature controller includes: a driving unit that receives a current monitoring signal indicating a current value flowing through a light source, and generates a driving signal according to the current monitoring signal to control a power converter to provide an adjusted power to the a light source; and a control unit coupled to the driving unit, receiving a switch monitoring signal indicating an operation of a power switch, and adjusting a color temperature of the light source based on the switch monitoring signal, wherein the power switch is coupled to the power source and Between the power converters. 根據申請專利範圍第10之色溫控制器,其中,該光源包括:具有一第一色溫值的一第一發光元件和具有一第二色溫值的一第二發光元件,該控制單元根據該開關監測信號產生一第一控制信號和一第二控制信號,該第一控制信號選擇性地接通耦接在該色溫控制器與該第一發光元件之間的一第一控制開關以使該光源的該色溫被調整為該第一色溫值;該第二控制信號選擇性地接通耦接在該色溫控制器與該第二發光元件之間的一第二控制開關以使該光源的該色溫被調整為該第二色溫值。 The color temperature controller of claim 10, wherein the light source comprises: a first light emitting element having a first color temperature value and a second light emitting element having a second color temperature value, the control unit monitoring according to the switch The signal generates a first control signal and a second control signal, the first control signal selectively turning on a first control switch coupled between the color temperature controller and the first light emitting element to enable the light source The color temperature is adjusted to the first color temperature value; the second control signal selectively turns on a second control switch coupled between the color temperature controller and the second light emitting element to cause the color temperature of the light source to be Adjust to the second color temperature value. 根據申請專利範圍第11項之色溫控制器,其中該控制單元包括:一計時器,接收該開關監測信號,並在該開關監測信號出現一下降沿時開 始計時,在該下降沿的一預定義時間間隔之後產生一脈衝信號;一第一D型正反器,接收該脈衝信號;以及一第二D型正反器,耦接該第一D型正反器,並接收該開關監測信號;其中,該第一控制信號和該第二控制信號基於該第二D型正反器的一輸出信號而產生。 The color temperature controller according to claim 11 , wherein the control unit comprises: a timer, receiving the switch monitoring signal, and opening when a falling edge of the switch monitoring signal occurs Starting a timing, generating a pulse signal after a predefined time interval of the falling edge; a first D-type flip-flop receiving the pulse signal; and a second D-type flip-flop coupled to the first D-type a flip-flop and receiving the switch monitoring signal; wherein the first control signal and the second control signal are generated based on an output signal of the second D-type flip-flop. 根據申請專利範圍第10之色溫控制器,其中,該色溫控制器還包括:一判定單元,偵測該色溫控制器的一電能狀態並且基於該色溫控制器的該電能狀態產生一第一判定信號和一第二判定信號,該色溫控制器基於該第一判定信號、該第二判定信號以及該開關監測信號調整該光源的該色溫。 The color temperature controller of claim 10, wherein the color temperature controller further comprises: a determining unit that detects a power state of the color temperature controller and generates a first determination signal based on the power state of the color temperature controller And a second determination signal, the color temperature controller adjusting the color temperature of the light source based on the first determination signal, the second determination signal, and the switch monitoring signal. 根據申請專利範圍第10之色溫控制器,其中,如果該開關監測信號指示該電源開關的一斷開操作與一下一接通操作之間的一時間間隔小於一預定時間間隔,則該色溫控制器回應於該電源開關的該下一接通操作將該光源的該色溫從一第一色溫值調整為一第二色溫值。 The color temperature controller according to claim 10, wherein the color temperature controller is if the switch monitoring signal indicates that a time interval between an off operation and a next on operation of the power switch is less than a predetermined time interval The color temperature of the light source is adjusted from a first color temperature value to a second color temperature value in response to the next turn-on operation of the power switch. 根據申請專利範圍第14之色溫控制器,其中,該光源包括:具有該第一色溫值的一第一發光元件和具有該第二色溫值的一第二發光元件,該色溫控制器通過產生一第一控制信號和一第二控制信號來調整該光源的該色溫,當該第一控制信號接通耦接在該色溫控制器與該第一發光元件之間的一第一控制開關時,一第一電流流經該第一發光元件並且該光源的該色溫被調整為該第一色溫值;當該第二控制信號接通耦接在該色溫控制器與該第二發光元件之間的一第二控制開關時,一第二電流流經該第二發光元件並且該光源的該色溫被調整為該第二色溫值。 The color temperature controller of claim 14, wherein the light source comprises: a first light emitting element having the first color temperature value and a second light emitting element having the second color temperature value, the color temperature controller generating a a first control signal and a second control signal to adjust the color temperature of the light source. When the first control signal is coupled to a first control switch coupled between the color temperature controller and the first light emitting element, a first current flows through the first light emitting element and the color temperature of the light source is adjusted to the first color temperature value; when the second control signal is coupled to a one coupled between the color temperature controller and the second light emitting element When the second control switch, a second current flows through the second light emitting element and the color temperature of the light source is adjusted to the second color temperature value. 根據申請專利範圍第10之色溫控制器,其中,如果該開關監測信號指示該電源開關的一斷開操作與一下一接通操作之間的一時間間隔大於一預定 時間間隔,則該色溫控制器回應於該電源開關的該下一接通操作將該光源的該色溫重置為一預設色溫值。 A color temperature controller according to claim 10, wherein if the switch monitoring signal indicates that a time interval between an off operation and a next on operation of the power switch is greater than a predetermined time At the time interval, the color temperature controller resets the color temperature of the light source to a preset color temperature value in response to the next turn-on operation of the power switch. 一種控制光源色溫的方法,包括:從一電源接收一電能並且由一電力轉換器向一光源提供一調節後的電能;接收指示耦接在該電源與該電力轉換器之間的一電源開關的一操作的一開關監測信號;以及基於該開關監測信號調整該光源的一色溫。 A method for controlling a color temperature of a light source, comprising: receiving a power from a power source and providing a regulated power to a light source by a power converter; receiving a power switch coupled to the power source and the power converter a switch monitor signal for operation; and adjusting a color temperature of the light source based on the switch monitor signal. 根據申請專利範圍第17項之控制光源色溫的方法,其中,基於該開關監測信號調整該光源的該色溫的步驟包括:如果該開關監測信號指示該電源開關的一斷開操作與一下一接通操作之間的一時間間隔小於一預定時間間隔,則回應於該電源開關的該下一接通操作將該光源的該色溫從一第一色溫值調整為一第二色溫值。 The method for controlling the color temperature of a light source according to claim 17, wherein the step of adjusting the color temperature of the light source based on the switch monitoring signal comprises: if the switch monitoring signal indicates that an off operation of the power switch is turned on and off A time interval between operations is less than a predetermined time interval, and the color temperature of the light source is adjusted from a first color temperature value to a second color temperature value in response to the next turn-on operation of the power switch. 根據申請專利範圍第17項之控制光源色溫的方法,其中,基於該開關監測信號調整該光源的該色溫的步驟包括:如果該開關監測信號指示該電源開關的一斷開操作與一下一接通操作之間的一時間間隔大於一預定時間間隔,則回應於該電源開關的該下一接通操作將該光源的該色溫重置為一預設色溫值。 The method for controlling the color temperature of a light source according to claim 17, wherein the step of adjusting the color temperature of the light source based on the switch monitoring signal comprises: if the switch monitoring signal indicates that an off operation of the power switch is turned on and off A time interval between operations is greater than a predetermined time interval, and the color temperature of the light source is reset to a predetermined color temperature value in response to the next turn-on operation of the power switch. 根據申請專利範圍第17項之控制光源色溫的方法,其中,基於該開關監測信號調整該光源的色溫的步驟包括:在一第一時間間隔期間,產生一第一控制信號接通具有一第一色溫值的一第一發光元件,並且產生一第二控制信號以斷開具有一第二色溫值的一第二發光元件以使該光源的該色溫被調整為該第一色溫值;以及在不同於該第一時間間隔的一第二時間間隔期間,產生該第一控制信號以 以斷開該第一發光元件,並且產生該第二控制信號以接通該第二發光元件以使該光源的該色溫被調整為該第二色溫值。 The method for controlling a color temperature of a light source according to claim 17, wherein the step of adjusting a color temperature of the light source based on the switch monitoring signal comprises: generating a first control signal to have a first during a first time interval a first light-emitting element of color temperature value, and generating a second control signal to turn off a second light-emitting element having a second color temperature value such that the color temperature of the light source is adjusted to the first color temperature value; Generating the first control signal during a second time interval of the first time interval to Disconnecting the first light emitting element and generating the second control signal to turn on the second light emitting element such that the color temperature of the light source is adjusted to the second color temperature value.
TW103139162A 2013-11-15 2014-11-12 Light source driving circuit, color temperature controller and method for controlling color temperature of light source TWI568311B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310572104.5A CN104640300A (en) 2013-11-15 2013-11-15 Light source drive circuit, color temperature controller and method for controlling light source color temperature

Publications (2)

Publication Number Publication Date
TW201519695A true TW201519695A (en) 2015-05-16
TWI568311B TWI568311B (en) 2017-01-21

Family

ID=53218475

Family Applications (1)

Application Number Title Priority Date Filing Date
TW103139162A TWI568311B (en) 2013-11-15 2014-11-12 Light source driving circuit, color temperature controller and method for controlling color temperature of light source

Country Status (2)

Country Link
CN (1) CN104640300A (en)
TW (1) TWI568311B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI632828B (en) * 2017-08-25 2018-08-11 大陸商昂寶電子(上海)有限公司 LED slow light control system
TWI692922B (en) * 2018-05-21 2020-05-01 瑞鼎科技股份有限公司 Soft-start control circuit applied to dc-dc converting system
TWI703897B (en) * 2019-05-07 2020-09-01 益力半導體股份有限公司 Self-adaptive dimming drive system
TWI790306B (en) * 2017-11-10 2023-01-21 荷蘭商露明控股公司 Driver of an led array

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107094326A (en) * 2016-02-18 2017-08-25 海洋王(东莞)照明科技有限公司 LED lamp controls circuit
CN107087327A (en) * 2017-05-28 2017-08-22 巨尔(上海)光电照明有限公司 LED/light source regulating system and its adjusting method
CN110392461A (en) * 2018-04-18 2019-10-29 凹凸电子(武汉)有限公司 Controller, light source driving circuit and the method for controlling light source module
US10517156B1 (en) 2019-01-25 2019-12-24 Lumileds Holding B.V. Hybrid driving scheme for RGB color tuning
US10555395B1 (en) 2019-05-03 2020-02-04 Lumilieds Holding B.V. Selecting parameters in a color-tuning application
US11076461B2 (en) 2019-05-17 2021-07-27 Lumileds Llc User control modality for LED color tuning
CN112068461B (en) * 2019-06-11 2022-01-04 北京大瞬科技有限公司 Controller, control circuit and method for controlling intelligent equipment by using control circuit
US10652962B1 (en) 2019-06-27 2020-05-12 Lumileds Llc Dim-to-warm LED circuit
EP3991521A1 (en) * 2019-06-27 2022-05-04 Lumileds LLC Dim-to-warm led circuit

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201113464A (en) * 2009-10-09 2011-04-16 Foxconn Tech Co Ltd Light emitting diode lamp
CN102192487B (en) * 2010-02-28 2015-01-14 松下电器产业株式会社 Light source module and lighting apparatus, and illumination apparatus using same
CN102098853B (en) * 2011-01-30 2015-04-15 成都芯源系统有限公司 Light emitting element driving system, driving control circuit and driving method
TWI445449B (en) * 2011-07-13 2014-07-11 Lite On Electronics Guangzhou Dimming method with memory feature, dimmable lamp with memory feature and dimmable driving circuit
TWI473533B (en) * 2012-08-07 2015-02-11 Delta Electronics Inc Color temperature adjustable led lamp
TWM461737U (en) * 2013-05-24 2013-09-11 Hark Group Holding Corp Lighting device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI632828B (en) * 2017-08-25 2018-08-11 大陸商昂寶電子(上海)有限公司 LED slow light control system
TWI790306B (en) * 2017-11-10 2023-01-21 荷蘭商露明控股公司 Driver of an led array
TWI692922B (en) * 2018-05-21 2020-05-01 瑞鼎科技股份有限公司 Soft-start control circuit applied to dc-dc converting system
TWI703897B (en) * 2019-05-07 2020-09-01 益力半導體股份有限公司 Self-adaptive dimming drive system

Also Published As

Publication number Publication date
TWI568311B (en) 2017-01-21
CN104640300A (en) 2015-05-20

Similar Documents

Publication Publication Date Title
TWI568311B (en) Light source driving circuit, color temperature controller and method for controlling color temperature of light source
TWI533746B (en) Controller and method for dimming and light source driving circuit thereof
TWI581657B (en) Controller and driving circuit for controlling dimming of light emitting diode light source
US9386653B2 (en) Circuits and methods for driving light sources
TWI461105B (en) Dimming controllers, driving circuits and methods for controlling power of light source
US9030122B2 (en) Circuits and methods for driving LED light sources
US8508150B2 (en) Controllers, systems and methods for controlling dimming of light sources
TWI478625B (en) Dimming controllers, driving circuits and driving methods for driving light source
TWI568309B (en) Driving circuit, dimming controller and control methods for light source
US8339067B2 (en) Circuits and methods for driving light sources
US9781793B2 (en) Controlling brightness and color temperature of light sources
TWI483647B (en) Dimming controller, system and method thereof
EP2503845B1 (en) Lighting device for solid-state light source, and illumination apparatus and system including same
US9232591B2 (en) Circuits and methods for driving light sources
US8044608B2 (en) Driving circuit with dimming controller for driving light sources
US20130278145A1 (en) Circuits and methods for driving light sources
TWI653907B (en) A driver circuit for a light source, and a controller for luminance and color temperature
TWI403875B (en) Light source driving circuit and method for adjusting power of light source
EP2611263A2 (en) Circuits and methods for driving LED light sources
US8575847B2 (en) Control circuit of light-emitting element
GB2520425A (en) Circuits and methods for driving light sources
GB2513478A (en) Circuits and methods for driving light sources
TWI612842B (en) Light source driving circuit and light source module