Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a driving control circuit structure which has high precision, simple structure and wider application range and realizes the dimming function.
In order to achieve the above object, the driving control circuit structure for realizing the dimming function of the present invention is as follows:
this realize drive control circuit structure of function of adjusting luminance, its key feature is, circuit structure include:
the duty ratio detection module is used for sampling and calculating input pulse waves through a high-speed clock signal to obtain a group of digital output signals;
the coding circuit module is connected with the duty ratio detection module and is used for generating a two-bit control signal through the digital output signal;
the first digital-to-analog conversion circuit module is connected with the duty ratio detection module and the coding circuit module and is used for generating nonlinear change current and fixed current so as to regulate output current through a frequency modulation mode;
the frequency modulation circuit module is connected with the first digital-to-analog conversion circuit module and used for generating a delay signal to enable the circuit to enter an intermittent working mode, and changing the duty ratio of a switch by changing the working frequency of a power tube so as to change the output current;
the second digital-to-analog conversion circuit module is connected with the duty ratio detection module and the coding circuit module and is used for outputting voltage and further changing output current by changing peak voltage;
the peak current detection circuit module is connected with the second digital-to-analog conversion circuit module and used for changing CS peak sampling voltage and changing output current by changing the peak current of the inductor;
and the logic control circuit module is connected with the frequency modulation circuit module and the peak current detection circuit module and is used for controlling the output current to carry out light source dimming.
Preferably, the first digital-to-analog conversion circuit module includes:
the fixed current generation circuit submodule is connected with the duty ratio detection module and is used for generating fixed current;
and the variable current generation circuit submodule is connected with the duty ratio detection module and is used for generating variable current.
Preferably, the fixed current generating circuit sub-module comprises:
the first negative feedback circuit unit is connected with the duty ratio detection module and is used for generating current;
and the first P tube current mirror circuit unit is connected with the first negative feedback circuit unit and is used for generating fixed charging current.
Preferably, the variable current generating circuit sub-module comprises:
the second negative feedback circuit unit is connected with the duty ratio detection module and is used for generating current;
the second P tube current mirror circuit unit is connected with the first negative feedback circuit unit and is used for generating mirror current;
and the N-tube current mirror circuit unit is connected with the first negative feedback circuit unit and the second P-tube current mirror circuit unit and is used for generating variable discharge current.
Preferably, the duty ratio detection module enables the first digital-to-analog conversion circuit module and the second digital-to-analog conversion circuit module to output different segmented analog signals by changing the code of the digital output signal.
Preferably, the second digital-to-analog conversion circuit module is an R-2R type digital-to-analog conversion circuit.
Preferably, the second digital-to-analog conversion circuit module obtains an output voltage, specifically:
the output voltage is obtained according to the following formula:
where VCS _ REF is the output voltage, VREF0The full current corresponds to the sampling reference voltage.
Preferably, the frequency modulation circuit module generates a delay and obtains a delay time, specifically:
the delay time is obtained according to the following formula:
wherein, TDELAYFor time delay, i.e. discharge time, TSWFor the charging time, i.e. the switching period in critical conduction mode of the power transistor, IchargeFor charging current, IdischargeIs a discharge current.
Preferably, the frequency modulation circuit module obtains an output current, specifically:
obtaining the output current I of the frequency modulation circuit module according to the following formulaLED1:
Wherein, ILED0For 100% output current, D1 is the proportion of output current that is varied by switching delay, TDELAYFor time delay, i.e. discharge time, TSWThe charging time is the switching period of the power tube in critical conduction mode.
Preferably, the peak current detection circuit module obtains an output current, specifically:
obtaining the output current I of the peak current detection circuit module according to the following formulaLED2:
Wherein, ILED0Output current of 100%,VREF0At full current, corresponding to the sampled reference voltage, D2 is the output current ratio adjusted by changing the reference voltage, and VCS _ REF is the output voltage.
By adopting the drive control circuit structure for realizing the dimming function, the LED output current is regulated by regulating the frequency modulation mode and changing the peak voltage, so that the dimming function effect of the LED is realized. The intelligent household dimming circuit can effectively improve dimming precision and dimming depth, can achieve a better dimming effect compared with the prior art, meets the high-quality dimming quality requirement of intelligent household, can solve the noise problem in dimming due to the fact that the current passing through the circuit structure is small, and has a wide application range.
Detailed Description
In order to more clearly describe the technical contents of the present invention, the following further description is given in conjunction with specific embodiments.
The driving control circuit structure for realizing the dimming function of the invention comprises:
the duty ratio detection module is used for sampling and calculating input pulse waves through a high-speed clock signal to obtain a group of digital output signals;
the coding circuit module is connected with the duty ratio detection module and is used for generating a two-bit control signal through the digital output signal;
the first digital-to-analog conversion circuit module is connected with the duty ratio detection module and the coding circuit module and is used for generating nonlinear change current and fixed current so as to regulate output current through a frequency modulation mode;
the frequency modulation circuit module is connected with the first digital-to-analog conversion circuit module and used for generating a delay signal to enable the circuit to enter an intermittent working mode, and changing the duty ratio of a switch by changing the working frequency of a power tube so as to change the output current;
the second digital-to-analog conversion circuit module is connected with the duty ratio detection module and the coding circuit module and is used for outputting voltage and further changing output current by changing peak voltage;
the peak current detection circuit module is connected with the second digital-to-analog conversion circuit module and used for changing CS peak sampling voltage and changing output current by changing the peak current of the inductor;
and the logic control circuit module is connected with the frequency modulation circuit module and the peak current detection circuit module and is used for controlling the output current to carry out light source dimming.
As a preferred embodiment of the present invention, the first digital-to-analog conversion circuit module includes:
the fixed current generation circuit submodule is connected with the duty ratio detection module and is used for generating fixed current;
and the variable current generation circuit submodule is connected with the duty ratio detection module and is used for generating variable current.
As a preferred embodiment of the present invention, the fixed current generating circuit sub-module comprises:
the first negative feedback circuit unit is connected with the duty ratio detection module and is used for generating current;
and the first P tube current mirror circuit unit is connected with the first negative feedback circuit unit and is used for generating fixed charging current.
As a preferred embodiment of the present invention, the variable current generation circuit sub-module comprises:
the second negative feedback circuit unit is connected with the duty ratio detection module and is used for generating current;
the second P tube current mirror circuit unit is connected with the first negative feedback circuit unit and is used for generating mirror current;
and the N-tube current mirror circuit unit is connected with the first negative feedback circuit unit and the second P-tube current mirror circuit unit and is used for generating variable discharge current.
As a preferred embodiment of the present invention, the duty ratio detection module changes the code of the digital output signal, so that the first digital-to-analog conversion circuit module and the second digital-to-analog conversion circuit module output different segmented analog signals.
In a preferred embodiment of the present invention, the second digital-to-analog conversion circuit module is an R-2R type digital-to-analog conversion circuit.
As a preferred embodiment of the present invention, the second digital-to-analog conversion circuit module obtains an output voltage, specifically:
the output voltage is obtained according to the following formula:
where VCS _ REF is the output voltage, VREF0The full current corresponds to the sampling reference voltage.
As a preferred embodiment of the present invention, the frequency modulation circuit module generates a delay and obtains a delay time, specifically:
the delay time is obtained according to the following formula:
wherein, TDELAYFor time delay, i.e. discharge time, TSWFor the charging time, i.e. the switching period in critical conduction mode of the power transistor, IchargeFor charging current, IdischargeIs a discharge current.
As a preferred embodiment of the present invention, the frequency modulation circuit module obtains an output current, specifically:
obtaining the output current I of the frequency modulation circuit module according to the following formulaLED1:
Wherein, ILED0For 100% output current, D1 is the proportion of output current that is varied by switching delay, TDELAYFor time delay, i.e. discharge time, TSWFor charging time, i.e. switching period in critical conduction mode of power tubeAnd (4) period.
As a preferred embodiment of the present invention, the peak current detection circuit module obtains an output current, specifically:
obtaining the output current I of the peak current detection circuit module according to the following formulaLED2:
Wherein, ILED0Is 100% of output current, VREF0At full current, corresponding to the sampled reference voltage, D2 is the output current ratio adjusted by changing the reference voltage, and VCS _ REF is the output voltage.
In an embodiment of the present invention, a non-isolated driving dimming control circuit with excellent dimming effect is disclosed, as shown in fig. 3, the driving dimming control circuit includes a duty ratio detection module, an encoding circuit module, a first digital-to-analog conversion circuit module, a frequency modulation circuit module, a second digital-to-analog conversion circuit module, a peak current detection circuit module, and a logic control circuit module.
The duty ratio detection module is connected with the coding circuit module, the first digital-to-analog conversion circuit module and the second digital-to-analog conversion circuit module, the coding circuit module is connected with the first digital-to-analog conversion circuit module and the second digital-to-analog conversion circuit module, the frequency modulation circuit module is connected with the first digital-to-analog conversion circuit module, the peak current detection circuit module is connected with the second digital-to-analog conversion circuit module, and the logic control circuit module is connected with the frequency modulation circuit module and the peak current detection circuit module.
Wherein CS (Current sense) is an inductance peak Current detection port, GD (gate driver) is a gate drive output port, and ZCD (zero Current detect) is an inductance zero Current detection port.
The duty ratio detection module samples and calculates input pulse waves through a high-speed clock signal to obtain a group of digital output signals, and the first digital-to-analog conversion circuit is enabled to change the codes of the digital output signalsThe module and the second digital-to-analog conversion circuit module output different segmented analog signals. The coding circuit module generates a two-bit control signal through a digital output signal, wherein the digital output signal has n bits and is D<n-1:0>The two-bit control signal is A1A0。
The circuit structure of the invention changes the output current of the LED in two different ways, and the technical scheme of the invention is further explained in detail by combining the attached drawings:
1. the first embodiment is as follows:
the first embodiment regulates the output current through a frequency modulation scheme. The digital output signal and the two-bit control signal control the first digital-to-analog conversion circuit module circuit to generate a nonlinear change current and a fixed current, and the current is output to the frequency modulation circuit to generate a delay signal. At the moment, the system enters an intermittent working mode, the duty ratio of a switch is changed by changing the working frequency of the power tube, and then the average current output by the LED is changed, so that the dimming function effect of the LED is realized.
Taking the example of generating two-bit control signals by the encoding circuit, the duty ratio of the PWM signal is D, and the calculation formula of the duty ratio D is as follows:
D=D1×D2;
where D1 is the output current ratio changed by switching delay, and D2 is the output current ratio adjusted by changing the reference voltage. D1, D2, ILEDThe relationship of the variation of f and the PWM duty ratio is shown in fig. 4.
1.1 coding circuit module:
the truth table of the encoding circuit module is as follows, taking n as 12 as an example:
| PWM duty cycle
|
D<11:0>(hexadecimal)
|
A1A0
|
| 100%~50%
|
FFF~800
|
00
|
| 50%~12.5%
|
7FF~200
|
01
|
| 12.5%~3.125%
|
1FF~080
|
10
|
| 3.125%~0%
|
07F~0
|
11 |
1.2 the first digital-to-analog conversion circuit module:
as shown in fig. 7, the first digital-to-analog conversion circuit module generates a non-linearly varying current and a fixed current, and then adjusts the output current through a frequency modulation mode. The first digital-to-analog conversion circuit module comprises a fixed current generation circuit submodule and a variable current generation circuit submodule which are connected with the duty ratio detection module.
The fixed current generation circuit submodule is used for generating a fixed current and comprises a first negative feedback circuit unit consisting of operational amplifiers AMP1 and MN6 and a first P tube current mirror circuit unit consisting of MP5 to MP 8. The input end of the first negative feedback circuit unit is connected with the duty ratio detection module, and the output end of the first negative feedback circuit unit is connected with the first P tube current mirror circuit unit and used for generating current; the first P-tube current mirror circuit unit is used for generating a fixed charging current.
The first negative feedback circuit unit enables the voltage of the inverting input end of the AMP1 to be equal to V1, the current flowing through R1 is V1/R1, and the charging current Icharge is generated through the first P tube current mirror circuit unit.
The variable current generation circuit submodule is used for generating variable current, and comprises a voltage digital-to-analog conversion circuit DAC1_1 and a resistor R2 which are R _ DAC, and further comprises a second negative feedback circuit unit consisting of an operational amplifier AMP2 and MN1, a second P tube current mirror circuit unit consisting of MP1 to MP4, and an N tube current mirror circuit unit consisting of MN2 to MN 5.
The second negative feedback circuit unit is connected with the duty ratio detection module and is used for generating current; the second P tube current mirror circuit unit is connected with the first negative feedback circuit unit and is used for generating mirror current; and the N-tube current mirror circuit unit is connected with the first negative feedback circuit unit and the second P-tube current mirror circuit unit and is used for generating variable discharge current.
The second negative feedback circuit unit enables the voltage of the inverting input end of the operational amplifier AMP2 to be equal to V2, the current flowing through R2 is V2/R2, and then the second P tube current mirror circuit unit and the N tube current mirror circuit unit generate the discharge current Idischarge.
The internal circuit structure of the voltage digital-to-analog conversion circuit DAC1_1 is shown in fig. 8, the voltage digital-to-analog conversion circuit structure is shown in fig. 5, the number of bits is one bit less, and the output signal of the data selector and the change of V2 are as follows:
when A1a0 is 00, y < 10: 0> -d 0< 10: 0> -11111111111, and V2-V1;
when A1A0 is 01, y<10:0>=d1<10:0>=D<10:0>V2 with D<10:0>The change in the shape of a line is linear,
when A1a0 is 10, y < 10: 0> -d 2< 10: 0> -01000000000, V2 ═ V1/4;
when A1A0 is 11, y<10:0>=d3<10:0>={D<8:0>00, V2 with D<10:0>The change in the shape of a line is linear,
the internal circuit configuration of the resistor R2, i.e., R _ DAC, is shown in fig. 9, the output signal of the data selector and the change of the resistor R2 are as follows, as shown in fig. 8:
when A1a0 is 00, y < 10: 0> -d 0< 10: 0> -11111111111, and R2-R/16;
when A1A0 is 01, y<10:0>=d1<10:0>=D<10:0>,
The range is R/16-96R, and the step is R/16;
when A1a0 is 10, y < 10: 0> -d 2< 10: 0> -01000000000, R2 ═ 96R;
when A1A0 is 11, y<10:0>=d3<10:0>={D<8:0>,00},
The range is 96R to 128R, and the step is R/4.
With reference to fig. 7 to 9, the fixed current is Icharge-V1/R1, the variable current is Idischarge-V2/R2, R1 is 128R, and the curve of Idischarge/Icharge as a function of the duty cycle is shown in fig. 10.
1.3 frequency modulation circuit module:
as shown in fig. 11, the frequency modulation circuit module generates a delay signal to make the circuit enter an intermittent operation mode, and changes the duty ratio of the switch by changing the operating frequency of the power transistor, thereby changing the output current.
The power tube is opened, the charging current Icharge charges the capacitor C1, and the C1 discharges through the discharging current Idischarge after demagnetization is finished. The charging time is the switching period in the critical conduction mode of the power tube and is recorded as TSWThe delay of the discharge time for increasing, denoted as TDELAY。
The frequency modulation circuit module generates time delay, and obtains the time delay time according to the following formula:
wherein, TDELAYFor time delay, i.e. discharge time, TSWFor the charging time, i.e. the switching period in critical conduction mode of the power transistor, IchargeFor charging current, IdischargeIs a discharge current.
The frequency modulation circuit module obtains an output current I according to the following formulaLED1:
Wherein, ILED0For 100% output current, D1 is the proportion of output current that is varied by switching delay, TDELAYFor time delay, i.e. discharge time, TSWThe charging time is the switching period of the power tube in critical conduction mode.
The first starting signal of the power tube output by the logic control circuit is a START signal, the starting signal of the power tube output by the logic control circuit after the first starting is DRV _ H, and the demagnetization finishing signal output by the zero-crossing detection circuit is ZCD _ IN.
When A1a0 is 00, D1 is 1,
1.4 second digital-to-analog conversion circuit module:
as shown in fig. 5, the second digital-to-analog conversion circuit module is used for outputting voltage, and further changing output current by changing peak voltage. The second D/A converter circuit module is R-2R type D/A converter circuit with bi equal to 1 and switch connected to VREF0And bi is 0, and the switch is connected to GND.
The second digital-to-analog conversion circuit module obtains an output voltage according to the following formula:
where VCS _ REF is the output voltage, VREF0The full current corresponds to the sampling reference voltage.
The second digital-to-analog conversion circuit module comprises a 4-to-1 data selector, and the output of the data selector and the change of VCS _ REF value are as follows:
when A1a0 is 00, y<11:0>=d0<11:0>=D<11:0>VCS _ REF with D<11:0>From V
REF0Linearly decreasing to V
REF0/2,
When A1a0 is 01, y<11:0>=d1<11:0>=1000 0000 0000,VCS_REF=VREF0/2;
When A1a0 is 10, y<11:0>=d2<11:0>={D<9:0>00, VCS _ REF with D<11:0>From V
REF0Linearly decreasing to V
REF0/8,
When A1a0 is 11, y<11:0>=d3<11:0>=0010 0000 0000,VCS_REF=VREF0/8
The variation curve of VCS _ REF is shown in fig. 6.
In summary, the digital output signal of the first embodiment of the present invention is converted into the delay control signal through the first digital-to-analog conversion circuit module by the encoding circuit module, and is converted into the CS sampling peak voltage signal through the second digital-to-analog conversion circuit module, so as to control the output current variation of the LED in a segmented manner. According to the embodiment of the invention, the duty ratio of the switch is changed by changing the working frequency of the power tube, so that the average current output by the LED is changed, and the dimming function effect of the LED is realized.
The calculation formula of the output current after the time delay is increased is as follows:
the calculation formula of the power tube frequency is as follows:
wherein, ILED0Is 100% of output current, f0Switching frequency at 100%, D1 output current ratio changed by switching delay, TSWThe time from the turn-on of the power tube to the end of demagnetization, TDELAYFor increased switching delay.
2. Example two:
embodiments regulate the output current by peak voltage. The digital signal output controls a second digital-to-analog conversion circuit module circuit to change CS peak sampling voltage, and the LED output current is changed by changing the peak current of the inductor, so that the dimming function effect of the LED is realized. Wherein, D1, D2 and ILEDThe relationship of variation of f and the PWM duty ratio is shown in fig. 12.
2.1 coding circuit module:
the truth table of the encoding circuit module is as follows, taking n as 12 as an example:
| PWM duty cycle
|
D<11:0>(hexadecimal)
|
A1A0
|
| 100%~50%
|
FFF~800
|
00
|
| 50%~12.5%
|
7FF~200
|
01
|
| 12.5%~6.25%
|
1FF~100
|
10
|
| 6.25%~0%
|
0FF~0
|
11 |
2.2 the first digital-to-analog conversion circuit module:
fig. 15 is a schematic diagram of the voltage digital-to-analog conversion circuit DAC1_1 in the internal circuit of the first digital-to-analog conversion circuit module.
Compared with the first digital-to-analog conversion circuit block in the first embodiment, because the input signals of the data selectors are different, the output signals of the data selectors and the V2 are also different, and the output signals of the data selectors and the V2 are changed as follows:
when A1a0 is 00, y < 10: 0> -d 0< 10: 0> -11111111111, and V2-V1;
when A1a0 is 01, y < 10: 0> -d 1< 10: 0> -10000000000, V2 ═ V1/2;
when A1a0 is 10, y < 10: 0> -d 2< 10: 0> -01000000000, V2 ═ V1/4;
when A1A0 is 11, y<10:0>=d3<10:0>={D<8:0>00, V2 with D<10:0>The change in the shape of a line is linear,
fig. 16 shows an internal circuit of the resistor R2, i.e., the R _ DAC, and in contrast to the resistors in the first embodiment, the input signal of the data selector is different, the output signal of the data selector is also different from the resistor R2, and the output signal of the data selector and the resistor R2 are changed as follows:
when A1a0 is 00, y < 10: 0> -d 0< 10: 0> -11111111111, and R2-R/16;
when A1a0 is 01, y < 10: 0> -d 1< 10: 0> -10000000000, R2 ═ 64R;
when A1a0 is 10, y < 10: 0> -d 2< 10: 0> -01000000000, R2 ═ 96R;
when A1A0 is 11, y<10:0>=d3<10:0>={D<8:0>,00},
The range is 96R to 128R, and the step is R/4.
With reference to fig. 15 and 16, the fixed current is Icharge V1/R1, the variable current is Idischarge V2/R2, R1 is 128R, and the curve of Idischarge/Icharge as a function of the duty cycle is shown in fig. 17.
2.3 second digital-to-analog conversion circuit module:
as shown in fig. 13, the second digital-to-analog conversion circuit module includes a 1-out-of-4 data selector, and the input signal of the data selector in this embodiment is different from that in the first embodiment.
As shown in fig. 14, the output of the data selector and the change in VCS _ REF value are as follows:
when A1A0 is 00, y<11:0>=d0<11:0>=D<11:0>VCS _ REF with D<11:0>From V
REF0Linearly decreasing to V
REF0/2,
When A1A0 is 01, y<11:0>=d1<11:0>={D<10:0>0, VCS _ REF with D<10:0>From V
REF0Linearly decreasing to V
REF0/4,
When A1A0 is 10, y<11:0>=d2<11:0>={D<9:0>00, VCS _ REF with D<11:0>From V
REF0Linearly decreasing to V
REF0/4,
When A1A0 is 11, y<11:0>=d3<11:0>=0010 0000 0000,VCS_REF=VREF0/4。
2.4 peak current detection circuit module:
the peak current detection circuit module changes the CS peak sampling voltage and changes the output current by changing the peak current of the inductor.
The peak current detection circuit module obtains output according to the following formulaCurrent ILED2:
Wherein, ILED0Is 100% of output current, VREF0At full current, corresponding to the sampled reference voltage, D2 is the output current ratio adjusted by changing the reference voltage, and VCS _ REF is the output voltage.
2.4 logic control circuit module:
the logic control circuit module is used for controlling the output current to carry out light source dimming.
In summary, in the embodiment of the present invention, the CS peak sampling voltage is changed, and the peak current of the inductor is changed to further change the LED output current, so as to achieve the dimming function of the LED.
The calculation formula of the output current is as follows:
the calculation formula of the power tube frequency is as follows:
wherein, VREF0At full current corresponding to the sampled reference voltage, D2 is the proportion of the output current regulated by varying the reference voltage, ILED0Is 100% of output current, f0At 100% the switching frequency, VCS _ REF is the output voltage.
By adopting the drive control circuit structure for realizing the dimming function, the LED output current is regulated by regulating the frequency modulation mode and changing the peak voltage, so that the dimming function effect of the LED is realized. The invention can effectively improve the dimming precision and the dimming depth, can achieve better dimming effect compared with the prior art, and meets the high-quality dimming quality requirement of the smart home. And because the current that passes in the circuit structure is less, the invention can solve the noise problem while dimming too, have extensive application range.
In this specification, the invention has been described with reference to specific embodiments thereof. It will, however, be evident that various modifications and changes may be made thereto without departing from the broader spirit and scope of the invention. The specification and drawings are, accordingly, to be regarded in an illustrative rather than a restrictive sense.