Specific embodiment
In order that the purpose of this utility model, technical scheme and advantage become more apparent, below in conjunction with accompanying drawing and enforcement
Example, is further elaborated to this utility model.It should be appreciated that specific embodiment described herein is only in order to explain
This utility model, is not used to limit this utility model.
This utility model embodiment includes first time electro-detection module, second time electro-detection module, circulation meter by adopting
Number device, coding and decoding module, the LED constant current of pulse width modulation module, the first constant-current driven module and the second constant-current driven module are driven
Dynamic chip, reaches default maximum ON time by first time electro-detection module in ON time first switch pipe is detected, and
When the turn-off time of first switch pipe is less than the preset overpressure protection shut-in time, judges electric under on and off switch and export shift control
Signal, reaches default maximum ON time by second time electro-detection module in ON time second switch pipe is detected, and the
When the turn-off time of two switching tubes is less than the preset overpressure protection shut-in time, judges electric under on and off switch and export shift control letter
Number, it is circulated according to shift control signal by cycle counter and shifts and export shift result, will be moved by coding and decoding module
Position result is converted to corresponding state control signal, and when on and off switch goes up electricity again, controls phase according to state control signal
The constant-current driven module work answered, to drive corresponding LED string to be lighted, and then realizes the purpose that colour temperature is adjusted, and by
Pulse width modulation module, when receiving state control signal, controls corresponding constant-current driven module to drive with predetermined current corresponding
LED string is lighted, and then realizes the purpose of brightness regulation, so that LED constant current driving chip is in the control of on and off switch
Exactly LED string execution colour temperature is adjusted and brightness regulation under system.
Fig. 2 shows the modular structure of the LED constant current driving chip that this utility model embodiment provides, for the ease of saying
Bright, illustrate only the part related to this utility model embodiment, details are as follows:
A kind of first switch pipe 31 in LED constant current driving chip 1, with cold light LED control circuit 3 and warm light LED control
Second switch pipe 41 in circuit 4 connects, and LED constant current driving chip 1 passes through to control first switch pipe 31 and/or second switch pipe
41 break-make is to carry out current constant control, cold light LED control circuit 3 and warm light to cold light LED lamp string 5 and/or warm light LED string 6
LED control circuit 4 under the control of on and off switch, respectively to cold light LED lamp string 5 and warm light LED string 6 execution colour temperature adjust and
Brightness regulation, LED constant current driving chip 1 includes:First time electro-detection module 10, second time electro-detection module 16, cycle count
Device 11, coding and decoding module 12, pulse width modulation module 13, the first constant-current driven module 14 and the second constant-current driven module 15.
Wherein, the test side of the test side of first time electro-detection module 10 and second time electro-detection module 16 is respectively with first
The drive control end of the drive control end of constant-current driven module 14 and the second constant-current driven module 15 connects, cycle counter 11
First control end, the second control end and outfan outfan, the second time electro-detection mould with first time electro-detection module 10 respectively
The input of the outfan of block 16 and coding and decoding module 12 connects, the first outfan of coding and decoding module 12, the second output
End and the 4th outfan are controlled with the first control end of the first constant-current driven module 14, the first of the second constant-current driven module 15 respectively
Control end connection, the 3rd outfan of coding and decoding module 12 and first constant-current driven module of end processed and pulse width modulation module 13
Second control end of 14 the second control end and the second constant-current driven module 15 connects, the outfan of pulse width modulation module 15 and the
3rd control end of the 3rd control end of one constant-current driven module 14 and the second constant-current driven module 15 connects, the first constant-current driving
The test side of the test side of module 14 and the second constant-current driven module 15 cold end and second with first switch pipe 31 respectively
The cold end of switching tube 41 connects.
First time electro-detection module 10 detects ON time and the turn-off time of first switch pipe 31, opens when detecting first
The ON time closing pipe 31 reaches default maximum ON time, and the turn-off time of first switch pipe 31 is less than preset overpressure and protects
During the shut-in time, first time electro-detection module 10 judges electric under on and off switch and exports shift control signal;Second time electro-detection
Module 16 detects ON time and the turn-off time of second switch pipe 41, when ON time second switch pipe 41 is detected reaches
Default maximum ON time, and when the turn-off time of second switch pipe 41 is less than the preset overpressure protection shut-in time, second time electricity
Detection module 16 judges electric under on and off switch and exports shift control signal;Cycle counter 11 is carried out according to shift control signal
Cyclic shift simultaneously exports shift result;Shift result is converted to corresponding state control signal by coding and decoding module 12, and
When on and off switch goes up electricity again, the first constant-current driven module 14 and/or the second constant-current driving mould are controlled according to state control signal
Block 15 drives cold light LED control circuit 3 and/or warm light LED control circuit 4 execution colour temperature to adjust;Pulse width modulation module 13 is connecing
When receiving the state control signal that coding and decoding module 12 exports, the first constant-current driven module 14 is controlled according to state control signal
With the second constant-current driven module 15, cold light LED control circuit 3 is made respectively with predetermined current and warm light LED control circuit 4 control cold
Light LED string 5 and warm light LED string 6 light according to predetermined luminance, to realize the purpose of brightness regulation.
In this utility model embodiment, default maximum ON time is the first switch pipe 31 pre-setting and second opens
Close the maximum ON time of pipe 41, when the ON time of first switch pipe 31 reaches default maximum ON time, the first constant current
Drive module 14 controls first switch pipe 31 to turn off, when the ON time of second switch pipe 41 reaches default maximum ON time
When, the second constant-current driven module 15 controls second switch pipe 41 to turn off.In this utility model embodiment, when cold light LED lamp string 5
Or the voltage at warm light LED string 6 two ends be higher than pre-set the maximum voltage of LED string when, can trigger system overvoltage guarantor
Shield, and the shut-in time triggering system during overvoltage protection is the overvoltage protection shut-in time.
In this utility model embodiment, first time electro-detection module 10 and second time electro-detection module 16 are passed through to examine respectively
Survey first switch pipe 31 and the ON time of second switch pipe 41 and the turn-off time judges the whether lower electricity of on and off switch.Specifically
, when LED constant current driving chip 1 drives cold light LED control circuit 3 work, first time electro-detection mould 10 detects first switch
The ON time of pipe 31 and turn-off time, when ON time first switch pipe 31 is detected reaches default maximum ON time,
And the turn-off time of first switch pipe be less than preset overpressure protection the shut-in time when, first time electro-detection module 10 judges that power supply is opened
Close lower electricity;When LED constant current driving chip 1 drives warm light LED control circuit 4 work, second time electro-detection module 16 detects the
The ON time of two switching tubes 41 and turn-off time, when ON time second switch pipe 41 is detected reaches default maximum conducting
Time, and when the turn-off time of second switch pipe 41 is less than the preset overpressure protection shut-in time, second time electro-detection module 16 is sentenced
Electricity under power off switch;When LED constant current driving chip 1 simultaneously drives cold light LED control circuit 3 and warm light LED control circuit 4 work
When making, first time electro-detection module 10 and second time electro-detection module 16 detect first switch pipe 31 and second switch simultaneously respectively
The ON time of pipe 41 and turn-off time, when the ON time that first time electro-detection mould 10 detects first switch pipe 31 reach pre-
If maximum ON time, and the turn-off time of first switch pipe 31 is less than preset overpressure and protects the shut-in time, or under second
The ON time that electro-detection module 16 detects second switch pipe 41 reaches default maximum ON time, and second switch pipe 41
Turn-off time is less than during the preset overpressure protection shut-in time then it is assumed that electricity under on and off switch, it is achieved thereby that under on and off switch
The accurate detection of electric number of times.When electricity under on and off switch, first time electro-detection module 10 or second time electro-detection module 16 export
To cycle counter 11, cycle counter 11 is circulated when receiving high level signal and shifts and export shifting high level signal
Position result, shift result is converted to corresponding state control signal by coding and decoding module 12 coding and decoding circuit, and by state
Control signal is stored, and when on and off switch goes up electricity again, coding and decoding module 12 is corresponding from it by state control signal
Outfan is exported.
In this utility model embodiment, the circulation digit of cycle counter 11 and cold light LED control circuit 3 and warm light
The total working status number of LED control circuit 4 is equal.For example, when cold light LED control circuit 3 and warm light LED control circuit 4 altogether
(cold light LED control circuit 3 works, and warm light LED control circuit 4 does not work three kinds of working conditions;Cold light LED control circuit 3 is not
Work, warm light LED control circuit 4 works;Cold light LED control circuit 3 and warm light LED control circuit 4 work simultaneously) when, circulation
The circulation digit of enumerator 11 is 3.
In this utility model embodiment, cycle counter 11 can adopt existing with trigger and gate circuit as core
Cycle counter.
In this utility model embodiment, coding and decoding module 12 can be using existing by encoder, decoder and storage
The coding and decoding circuit of device composition.
In this utility model embodiment, pulse width modulation module can adopt existing with agitator and frequency divider as core
Pulse-width modulation circuit, its by gate level circuit combine frequency divider output signal so that obtain certain dutycycle modulation letter
Number.
Fig. 3 shows the modular structure of the LED constant current driving chip that this utility model embodiment provides, for the ease of saying
Bright, illustrate only the part related to this utility model embodiment, details are as follows:
As shown in figure 3, as this utility model one embodiment, first time electro-detection module 10 includes:First ON time
Detector unit 100, the first turn-off time detector unit 102 and the first displacement control unit 101.
The input of the first ON time detector unit 100, the input and first of the first turn-off time detector unit 102
Second input of displacement control unit 101 connects the test side as first time electro-detection module 10, the first ON time inspection altogether
Survey the outfan of unit 100 and the first turn-off time detect the outfan of end unit 102 respectively with the first displacement control unit 101
First input end and the 3rd input connect, the outfan of the first displacement control unit 101 is first time electro-detection module 10
Outfan.
When ON time first switch pipe 31 is detected reaches default maximum ON time, the first ON time detection
Unit 100 exports high level signal to the first input end of the first displacement control unit 101;When first switch pipe 31 is detected
When turn-off time is less than the preset overpressure protection shut-in time, the first turn-off time detector unit 102 output high level is to the first shifting
3rd input of position control unit 101;When the first input end of the first displacement control unit 101 is high level and the first displacement
Second input of control unit 101 from high level be changed into low level when, the first displacement control unit 101 output shift control letter
Number.
In this utility model embodiment, when cold light LED control circuit 3 normal work, (i.e. first switch pipe 31 is normally led
Logical and turn off) when, the first ON time detector unit 100 and the first turn-off time detector unit 102 all export low level signal,
To cycle counter 11, cycle counter 11 does not shift now the first displacement control unit 101 output low level signal.Specifically
, when LED constant current driving chip 1 drives cold light LED control circuit 3 work, the first ON time detector unit 100 and first
Turn-off time detector unit 102 detects ON time and the turn-off time of first switch pipe 31 respectively, when first switch pipe 31 just
Often (ON time of first switch pipe 31 is less than default maximum ON time to turn-on and turn-off and the turn-off time is not less than and preset
The pressure protection shut-in time) when, the first ON time detector unit 100 and the first turn-off time detector unit 101 all export low electricity
Flat, now the first displacement control unit 101 output low level signal, cycle counter 11 does not shift, and when the first ON time
The ON time that detector unit 100 detects first switch pipe 31 reaches default maximum ON time, and the inspection of the first turn-off time
Survey unit 102 detect first switch pipe 31 turn-off time be less than preset overpressure protection the shut-in time when, the first ON time
Detector unit 100 and the first turn-off time detector unit 102 all export high level, now, when the first displacement control unit 101
When second end is overturn as low level by high level, the first displacement control unit output high level, cycle counter 11 is circulated
Displacement.
As this utility model one embodiment, second time electro-detection module 16 includes:Second ON time detector unit
160th, the second turn-off time detector unit 162 and the second displacement control unit 161.
The input of the second ON time detector unit 160, the input and second of the second turn-off time detector unit 162
Second input of displacement control unit 161 connects the test side as second time electro-detection module 16, the second ON time inspection altogether
Survey the outfan of unit 160 and the first turn-off time detect the outfan of end unit 102 respectively with the second displacement control unit 161
First input end and the 3rd input connect, the outfan of the second displacement control unit 161 is second time electro-detection module 16
Outfan.
When ON time second switch pipe 41 is detected reaches default maximum ON time, the second ON time detection
Unit 160 exports high level signal to the first input end of the second displacement control unit 161;When second switch pipe 41 is detected
When turn-off time is less than the preset overpressure protection shut-in time, the second turn-off time detector unit 162 output high level is to the second shifting
3rd input of position control unit 161;When the first input end of the second displacement control unit 161 is high level and the second displacement
Second input of control unit 161 from high level be changed into low level when, the second displacement control unit 161 output shift control letter
Number.
In this utility model embodiment, when warm light LED control circuit 4 normal work, (i.e. second switch pipe 41 is normally led
Logical and turn off) when, the second ON time detector unit 160 and the second turn-off time detector unit 162 all export low level signal,
To cycle counter 11, cycle counter 11 does not shift now the second displacement control unit 161 output low level signal.Specifically
, when LED constant current driving chip 1 drives warm light LED control circuit 4 work, the second ON time detector unit 160 and second
Turn-off time detector unit 162 detects ON time and the turn-off time of second switch pipe 41 respectively, when second switch pipe 41 just
Often (ON time of second switch pipe 41 is less than default maximum ON time to turn-on and turn-off and the turn-off time is not less than and preset
The pressure protection shut-in time) when, the second ON time detector unit 160 and the first turn-off time detector unit 101 all export low electricity
Flat, now the second displacement control unit 161 output low level signal, cycle counter 11 does not shift, and when the second ON time
The ON time that detector unit 160 detects second switch pipe 41 reaches default maximum ON time, and the inspection of the second turn-off time
Survey unit 162 detect second switch pipe 41 turn-off time be less than preset overpressure protection the shut-in time when, the second ON time
Detector unit 160 and the second turn-off time detector unit 162 all export high level, now, when the second displacement control unit 161
When second end is overturn as low level by high level, the first displacement control unit output high level, cycle counter 11 is circulated
Displacement.
As this utility model one embodiment, the first constant-current driven module 14 includes the first control unit 140, first and demagnetizes
Detector unit 141, the first crest voltage detector unit 142 and the 3rd switching tube 143, the first control of the first control unit 140
End, the second control end and the 3rd control end are respectively the first control end of the first constant-current driven module 14, the second control end and the
Three control ends, the unlatching control end of the first control unit 140 and shutoff control end are defeated with the first demagnetization detector unit 141 respectively
Go out end and the outfan of the first crest voltage detector unit 142 connects, the input of the first demagnetization detector unit 141, the first control
The input of the outfan of unit 140 processed and the first crest voltage detector unit 142 high potential with the 3rd switching tube 143 respectively
End, control end and cold end connect, and the outfan of the first control unit 140 is the drive control of the first constant-current driven module 14
End.
In actual applications, the first crest voltage detector unit 142 also external first crest voltage detection resistance RCS1
First end, and the second end ground connection (as shown in Figure 6) of the first crest voltage detection resistance RCS1;The control end of first switch pipe 31
Meet the supply pin VCC of LED constant current driving chip 1 by the resistance within LED constant current driving chip 1, that is, first switch pipe 31 exists
It is in normal open state under normal circumstances;The hot end of first switch pipe 31 is connected with and off switch by the first inductance L1.
In this utility model embodiment, the first demagnetization detector unit 141 detects the cold end of first switch pipe 31
Voltage, when the electric current flowing through the first inductance L1 drops to zero, the voltage of the cold end of first switch pipe 31 declines and produces
Mutation, when the voltage of cold end of first switch pipe 31 is detected and declining and produce mutation, the first demagnetization detector unit 141
Output opening control signal controls the 3rd switch to the first control unit 140, the first control unit 140 according to opening control signal
Pipe 143 turns on, and then controls first switch pipe 31 to turn on.First crest voltage detector unit 142 detection the first crest voltage inspection
The voltage of the first end of measuring resistance RCS1, when first switch pipe 31 turns on, flows through the first crest voltage detection resistance RCS1
Electric current can rise, and therefore, the voltage of the first end of the first crest voltage detection resistance RCS1 can rise, when the first peak value is detected
When the voltage of the first end of voltage detection resistances RCS1 rises to pre-set peak value voltage, the first crest voltage detector unit 142 is defeated
Go out to turn off control signal to the first control unit 140, the first control unit 140 controls the 3rd switching tube according to turning off control signal
143 shutoffs, and then control first switch pipe 31 to turn off.
In this utility model embodiment, the first demagnetization detector unit 141 adopts the testing circuit with comparator as core,
I.e. the voltage of the voltage of the cold end of first switch pipe 31 and the supply pin of LED constant current driving chip 1 is compared by comparator
Relatively, when the voltage of the cold end of first switch pipe 31, to drop to less than the voltage of the supply pin of LED constant current driving chip 1 one pre-
If during magnitude of voltage, the outfan of comparator overturns as high level by low level, and the first control unit 140 is receiving the first demagnetization
During the high level signal of detector unit 141 output, control the 3rd switching tube 143 to turn on, and then control first switch pipe 31 to turn on.
Wherein, preset voltage value can be configured according to practical situation, be not limited herein.
First crest voltage detector unit 142 adopts the testing circuit with comparator as core, and that is, comparator is by first peak
Threshold voltage detection resistance RCS1 voltage and pre-set peak value voltage are compared, when the first of the first crest voltage detection resistance RCS1
When the voltage at end reaches pre-set peak value voltage, the first crest voltage detector unit 142 exports high level, the first control unit 140
When receiving the high level signal of the first crest voltage detector unit 142 output, the 3rd switching tube 143 is controlled to turn off, and then
First switch pipe 31 is controlled to turn off.
First control unit 140 adopts the existing control circuit with logic gates as core.
As this utility model one embodiment, the second constant-current driven module 15 includes the second control unit 150, second and demagnetizes
Detector unit 151, the second crest voltage detector unit 152 and the 4th switching tube 153, the first control of the second control unit 150
End, the second control end and the 3rd control end are respectively the first control end of the second constant-current driven module 15, the second control end and the
Three control ends, the unlatching control end of the second control unit 150 and shutoff control end are defeated with the second demagnetization detector unit 151 respectively
Go out end and the outfan of the second crest voltage detector unit 152 connects, the input of the second demagnetization detector unit 151, the second control
The input of the outfan of unit 150 processed and the second crest voltage detector unit 152 high potential with the 4th switching tube 153 respectively
End, control end and cold end connect, and the outfan of the second control unit 150 is the drive control of the second constant-current driven module 15
End.
In actual applications, the second crest voltage detector unit 152 also external second crest voltage detection resistance RCS2
First end, and the second end ground connection (as shown in Figure 6) of the second crest voltage detection resistance RCS2;The control end of second switch pipe 41
Meet the supply pin VCC of LED constant current driving chip 1 by the resistance within LED constant current driving chip 1, that is, second switch pipe 41 exists
It is in normal open state under normal circumstances;The hot end of second switch pipe 41 is connected with and off switch by the second inductance L2.
In this utility model embodiment, the second demagnetization detector unit 151 detects the cold end of second switch pipe 41
Voltage, when the electric current flowing through the second inductance L1 drops to zero, the voltage of the cold end of second switch pipe 41 declines and produces
Mutation, when the voltage of cold end of second switch pipe 41 is detected and declining and produce mutation, the second demagnetization detector unit 151
Output opening control signal controls the 4th switch to the second control unit 150, the second control unit 150 according to opening control signal
Pipe 153 turns on, and then controls second switch pipe 41 to turn on.Second crest voltage detector unit 152 detection the second crest voltage inspection
The voltage of the first end of measuring resistance RCS2, when second switch pipe 41 turns on, flows through the second crest voltage detection resistance RCS2
Electric current can rise, and therefore, the voltage of the first end of the second crest voltage detection resistance RCS2 also can rise, when the second peak is detected
When the voltage of the first end of threshold voltage detection resistance RCS2 rises to pre-set peak value voltage, the second crest voltage detector unit 152
Output turns off control signal to the second control unit 150, and the second control unit 150 controls the 4th switch according to turning off control signal
Pipe 153 turns off, and then controls second switch pipe 41 to turn off.
In this utility model embodiment, the second demagnetization detector unit 151 adopts the testing circuit with comparator as core,
I.e. the voltage of the voltage of the cold end of second switch pipe 41 and the supply pin of LED constant current driving chip 1 is compared by comparator
Relatively, when the voltage of the cold end of second switch pipe 41, to drop to less than the voltage of the supply pin of LED constant current driving chip 1 one pre-
If during magnitude of voltage, the outfan of comparator overturns as high level by low level, and the second control unit 150 is receiving the second demagnetization
During the high level signal of detector unit 151 output, control the 4th switching tube 153 to turn on, and then control second switch pipe 41 to turn on.
Wherein, preset voltage value can be configured according to practical situation, be not limited herein.
Second crest voltage detector unit 152 adopts the testing circuit with comparator as core, and that is, comparator is by the second peak
The voltage of the first end of threshold voltage detection resistance RCS2 is compared with pre-set peak value voltage, when the second crest voltage detection resistance
When the voltage of the first end of RCS2 reaches pre-set peak value voltage, the second crest voltage detector unit 152 exports high level, the second control
Unit 150 processed, when receiving the high level signal of the second crest voltage detector unit 152 output, controls the 4th switching tube 153
Turn off, and then control second switch pipe 41 to turn off.
Second control unit 150 adopts the existing control circuit with logic gates as core.
In the present embodiment, first switch pipe 31 and second switch pipe 41 are high-voltage power pipe, the 3rd switching tube 143 He
4th switching tube 153 is low pressure and low power pipe.
Fig. 4 shows the circuit structure of first time electro-detection module 10 that this utility model embodiment provides, for the ease of
Illustrate, illustrate only the part related to this utility model embodiment, details are as follows:
As shown in figure 4, the first ON time detector unit 100 include the first NMOS tube N1, the second NMOS tube N2, first
PMOS P1, the second PMOS P2, the first electric capacity C1 and first comparator U1.
Wherein, the grid of the grid of the first NMOS tube N1 and the first PMOS P1 connects altogether as the first ON time detection list
The input of unit 100, the grid of the drain electrode of the first NMOS tube N1, the drain electrode of the first PMOS P1 and the second NMOS tube N2 is connected to altogether
The grid of the second PMOS P2, the positive pole of the drain electrode of the second NMOS tube N2, the drain electrode of the second PMOS P2 and the first electric capacity C1 is altogether
It is connected to the in-phase input end of first comparator U1, the anti-phase input of first comparator U1 terminates the first reference voltage source 1000, the
The source electrode of the source electrode of one PMOS P1 and the second PMOS P2 is connected to power supply VCC, the source electrode of the first NMOS tube N1, the 2nd NMOS altogether
The negative pole of the source electrode of pipe N2 and the first electric capacity C1 is connected to ground altogether, and the outfan of first comparator U1 is that the first ON time detection is single
The outfan of unit 100.
First displacement control unit 101 includes the first rest-set flip-flop U3, the first phase inverter U4 and the first controlling switch S1.
Wherein, set end S of the first rest-set flip-flop U3 and reset terminal R are respectively the first of the first displacement control unit 101
Input and the second input, the input of the first phase inverter U4 and the outfan in-phase output end with the first rest-set flip-flop respectively
The control end of Q and the first controlling switch S1 connects, and the first end of the first controlling switch S1 and the second end are respectively the first displacement control
3rd input of unit 101 processed and outfan.
First turn-off time detector unit 102 includes the 5th NMOS tube N5, the first bias current sources IP1, the second electric capacity C2
And the second comparator U2.
Wherein, the grid of the 5th NMOS tube N5 is the input of the first turn-off time detector unit 102, the 5th NMOS tube N5
The current input of drain electrode, the positive pole of the second electric capacity C2 and the second comparator U2 be connected to the of the first bias current sources IP1 altogether
One end, anti-phase input termination the second benchmark electricity of the second termination power VCC of the first bias current sources IP1, the second comparator U2
Potential source 1020, the negative pole of the source electrode of the 5th NMOS tube N5 and the second electric capacity C2 is connected to ground altogether, and the outfan of the second comparator U2 is
The outfan of the first turn-off time detector unit 102.
In this utility model embodiment, when the control end of the 3rd switching tube 143 is high level, the 3rd switching tube 143
Conducting, first switch pipe 31 turns on, and now, the input of the first ON time detector unit 100, the detection of the first turn-off time are single
First 102 input and the second input of the first displacement control unit 101 are high level, the first NMOS tube N1 and second
PMOS P2 turns on, and power supply VCC is charged to the first electric capacity C1, because in cold light LED control circuit 3 normal work, the
The ON time of one switching tube 31 is not up to default maximum ON time, and therefore, (i.e. first compares the positive pole of the first electric capacity C1
The in-phase input end of device U1) voltage be not more than the first reference voltage source 1000 voltage, therefore, first comparator U1 export
Low level, the in-phase input end Q output low level of the first rest-set flip-flop U3, the first phase inverter U4 output high level, the first control
Switch S1 is in normally off, and the first displacement control unit 101 exports low level, and cycle counter 11 does not shift, meanwhile, the 5th
NMOS tube N5 turns on, and the electric current in the first bias current sources IP1 passes through the 5th NMOS tube N5 flow direction ground, the second comparator U2 output
Low level;And when the ON time of first switch pipe 31 reaches default maximum ON time, the electricity of the positive pole of the first electric capacity C1
Pressure exports high level more than the voltage of the first reference voltage source 1000, first comparator U1, and now the first control unit 140 controls
3rd switching tube 143 turns off, and then controls first switch pipe 31 to turn off, the input of the first ON time detector unit 100, the
Second input of the input of one turn-off time detector unit 102 and the first displacement control unit 101 is overturn by high level
For low level, now, the 5th NMOS tube N5 turns off, and power supply VCC is charged to the second electric capacity C2, and the second comparator U2 output is high
Level signal, set end S of the first rest-set flip-flop U3 is high level, and reset terminal R is low level, the homophase of the first rest-set flip-flop U3
Outfan Q exports high level, the first phase inverter U4 output low level, the first controlling switch S1 conducting, the detection of the first turn-off time
The high level signal of unit 102 output is transmitted to cycle shift unit 11, cycle shift unit 11 by the first controlling switch S1
It is circulated displacement.
Fig. 5 shows the circuit structure of second time electro-detection module 16 that this utility model embodiment provides, for the ease of
Illustrate, illustrate only the part related to this utility model embodiment, details are as follows:
As shown in figure 5, the second ON time detector unit 160 include the 3rd NMOS tube N3, the 4th NMOS tube N4, the 3rd
PMOS P3, the 4th PMOS P4, the 3rd electric capacity C3 and the 3rd comparator U5.
Wherein, the grid of the 3rd NMOS tube N3 and the grid of the 3rd PMOS P3 connect altogether as the second ON time detection list
The input of unit 160, the drain electrode of the 3rd NMOS tube N3, the drain electrode of the 3rd PMOS P3 and the grid of the 4th NMOS tube N4 are connected to altogether
The grid of the 4th PMOS P4, the positive pole of the drain electrode, the drain electrode of the 4th PMOS P4 and the 3rd electric capacity C3 of the 4th NMOS tube N4 is altogether
It is connected to the in-phase input end of the 3rd comparator U5, the anti-phase input of the 3rd comparator U5 terminates the first reference voltage source 1000, the
The source electrode of the source electrode of three PMOS P3 and the 4th PMOS P4 is connected to power supply VCC, the source electrode of the 3rd NMOS tube N3, the 4th NMOS altogether
The negative pole of the source electrode of pipe N4 and the 3rd electric capacity C3 is connected to ground altogether, and the outfan of the 3rd comparator U5 is that the second ON time detection is single
The outfan of unit 160.
Second displacement control unit 161 includes the second rest-set flip-flop U7, the second phase inverter U8 and the second controlling switch S2.
Wherein, set end S of the second rest-set flip-flop U7 and reset terminal R are respectively the first of the second displacement control unit 161
Input and the second input, the input of the second phase inverter U8 and the outfan in-phase output end with the first rest-set flip-flop respectively
The control end of Q and the second controlling switch S2 connects, and the first end of the second controlling switch S2 and the second end are respectively the second displacement control
3rd input of unit 161 processed and outfan.
Second turn-off time detector unit 162 includes the 6th NMOS tube N6, the second bias current sources IP2, the 4th electric capacity C4
And the 4th comparator U6.
Wherein, the grid of the 6th NMOS tube N6 is the input of the second turn-off time detector unit 162, the 6th NMOS tube N6
The current input of drain electrode, the positive pole of the 4th electric capacity C4 and the 4th comparator U6 be connected to the of the second bias current sources IP2 altogether
One end, anti-phase input termination the second benchmark electricity of the second termination power VCC of the second bias current sources IP2, the 4th comparator U6
Potential source 1020, the source electrode of the 6th NMOS tube N6 and the negative pole of the 4th electric capacity C4 are connected to ground altogether, and the outfan of the 4th comparator U6 is
The outfan of the second turn-off time detector unit 162.
In this utility model embodiment, when the control end of the 4th switching tube 153 is high level, the 4th switching tube 153
Conducting, second switch pipe 41 turns on, and now, the input of the second ON time detector unit 160, the detection of the second turn-off time are single
First 162 input and the second input of the second displacement control unit 161 are high level, the 3rd NMOS tube N3 and the 4th
PMOS P4 turns on, and power supply VCC is charged to the 3rd electric capacity C3, because in warm light LED control circuit 4 normal work, the
The ON time of two switching tubes 41 is not up to default maximum ON time, and therefore, (i.e. the 3rd compares the positive pole of the 3rd electric capacity C3
The in-phase input end of device U5) voltage be not more than the first reference voltage source 1000 voltage, therefore, the 3rd comparator U5 output
Low level, the in-phase input end Q output low level of the second rest-set flip-flop U7, the second phase inverter U8 output high level, the second control
Switch S2 is in normally off, and the second displacement control unit 161 exports low level, and cycle counter 11 does not shift, meanwhile, the 6th
NMOS tube N6 turns on, and the electric current in the second bias current sources IP2 passes through the 6th NMOS tube N6 flow direction ground, the 4th comparator U6 output
Low level signal;And when the ON time of second switch pipe 41 reaches default maximum ON time, the positive pole of the 3rd electric capacity C3
Voltage be more than the first reference voltage source 1000 voltage, the 3rd comparator U5 output high level, now the second control unit 150
Control the 4th switching tube 153 to turn off, and then control second switch pipe 41 to turn off, the input of the second ON time detector unit 160
Second input of end, the input of the second turn-off time detector unit 162 and the second displacement control unit 161 is by high level
Overturn as low level, now, the 6th NMOS tube N6 turns off, and power supply VCC is charged to the 4th electric capacity C4, and the 4th comparator U6 is defeated
Go out high level signal, set end S of the second rest-set flip-flop U7 is high level, and reset terminal R is low level, the second rest-set flip-flop U7's
In-phase output end Q exports high level, the second phase inverter U8 output low level, the second controlling switch S2 conducting, the second turn-off time
The high level signal of detector unit 162 output is transmitted to cycle shift unit 11, cyclic shift list by the second controlling switch S2
Unit 11 is circulated displacement.
This utility model embodiment additionally provides a kind of LED constant current driving means, and Fig. 6 shows this utility model embodiment
The circuit structure of the LED constant current driving means providing, for convenience of description, illustrate only related to this utility model embodiment
Part, details are as follows:
A kind of LED constant current driving means, are connected with cold light LED lamp string 5 and warm light LED string 6, LED constant current driving means
Including on and off switch 2, rectification module 7, the first bus capacitor C1, cold light LED control circuit 3 and warm light LED control circuit 4, LED
Constant current driving device also includes above-mentioned LED constant current driving chip.
Wherein, the first end of on and off switch 2 and the second end connect alternating current power supply 8 and the input of rectification module 7, rectification respectively
The supply pin VCC of the first output termination LED constant current driving chip 1 of module 7, the second outfan of rectification module 7, cold light LED
The input of lamp string 5, the first control end of cold light LED control circuit 3, the input of warm light LED string 6, warm light LED control electricity
First control end on road 4 is connected to the positive pole of the first bus capacitor C1, the minus earth of the first bus capacitor C1, cold light LED control altogether
Second control end of the second control end of circuit 3 processed and warm light LED control circuit 4 connect respectively cold light LED lamp string 5 outfan and
The outfan of warm light LED string 6.
Cold light LED control circuit 3 include first switch pipe 31, the first load capacitance C1L, the first load resistance R1L, first
Inductance L1, the first sustained diode 1 and the first crest voltage detection resistance RCS1;Warm light LED control circuit 4 includes second and opens
Close pipe 41, the second load capacitance C2L, the second load resistance R2L, the second inductance L2, the second sustained diode 2 and the second peak value
Voltage detection resistances RCS2.
Wherein, the positive pole of the first load capacitance C1L, the first end of the first load resistance R1L and the first sustained diode 1
Negative electrode connect the first control end as cold light LED control circuit 3, the negative pole of the first load capacitance C1L, the first load resistance altogether
The first end of second end of R1 and the first inductance L1 meets the second control end as cold light LED control circuit 3, the first inductance L1 altogether
The anode of the second end and the first sustained diode 1 be connected to the hot end of first switch pipe 31, the control of first switch pipe 31 altogether
End processed and cold end control foot GATE1 and the first source electrode to control foot OUT1 with the first grid of LED constant current driving chip 1 respectively
Connect, the first end of the first crest voltage detection resistance RCS1 detects foot with the first crest voltage of LED constant current driving chip 1
CS1 connects, the second end ground connection of the first crest voltage detection resistance RCS1;The positive pole of the second load capacitance C2L, the second load electricity
The negative electrode of the first end of resistance R2L and the second sustained diode 2 connects the first control end as warm light LED control circuit 4 altogether, the
The first end of the negative pole of two load capacitances C2L, second end of the second load resistance R2L and the second inductance L2 connects altogether as warm light
Second control end of LED control circuit 4, second end of the second inductance L2 is connected to second altogether with the anode of the second sustained diode 2
The hot end of switching tube 41, the control end of the second switch pipe 41 and cold end second grid with LED drive chip 1 respectively
Foot GATE2 and the second source electrode is controlled to control foot OUT2 connection, the first end of the second crest voltage detection resistance RCS2 and LED constant current
Second crest voltage detection foot CS2 of driving chip 1 connects, the second end ground connection of the second crest voltage detection resistance RCS2.
As this utility model one embodiment, first switch pipe 31 is NMOS tube M1, and the grid of NMOS tube M1 is opened for first
Close the control end of pipe 31, the drain electrode of NMOS tube M1 is the hot end of first switch pipe 31, the source electrode of NMOS tube M1 is opened for first
Close the cold end of pipe 31.
As this utility model one embodiment, second switch pipe 41 is NMOS tube M2, and the grid of NMOS tube M2 is opened for second
Close the control end of pipe 41, the drain electrode of NMOS tube M2 is the hot end of second switch pipe 41, the source electrode of NMOS tube M2 is opened for second
Close the cold end of pipe 41.
As this utility model one embodiment, rectification module 7 includes rectifier bridge 70, starts resistance RST and start-up capacitance CS.
The input of rectifier bridge 70 is the input of rectification module 7, and the outfan of rectifier bridge 70 is connect altogether with the first end starting resistance RST
As the second outfan of rectification module 7, the positive pole at the second end and start-up capacitance CS that start resistance RST connects altogether as rectification mould
First outfan of block 7, the minus earth of start-up capacitance CS.
As this utility model one embodiment, cold light LED control circuit 3 also includes the first overvoltage protection resistance ROVP1, warms up
Light LED control circuit 4 also includes the second overvoltage protection resistance ROVP2.
Wherein, the first end difference of the first end of the first overvoltage protection resistance ROVP1 and the second overvoltage protection resistance ROVP2
It is connected with the first overvoltage protection foot OVP1 and the second overvoltage protection foot OVP2 of LED constant current driving chip 1, the first overvoltage protection electricity
Second end of second end of resistance ROVP1 and the second overvoltage protection resistance ROVP2 is all grounded.
In this utility model embodiment, the Schema control foot MODE of LED constant current driving chip and lower margin GND are connected to altogether
Ground.
This utility model embodiment additionally provides a kind of LED, including cold light LED lamp string 5 and warm light LED string 6, LED
Lamp also includes above-mentioned LED constant current driving means.
Below in conjunction with operation principle, the LED constant current driving means that this utility model embodiment is provided are described further:
In this utility model embodiment, LED constant current driving chip 1 passes through to control first switch pipe 31 and/or second to open
The on or off closing pipe 41 to carry out current constant control to cold light LED lamp string and/or warm light LED string.Core is driven with LED constant current
As a example piece 1 carries out current constant control to cold light LED lamp string, when electricity on and off switch 2, first switch pipe 31 turns on, now, first
Inductance L1 carries out energy storage, when the first crest voltage detector unit 142 detects the first end of the first crest voltage detection resistance
When voltage rises to pre-set peak value voltage (electric current of corresponding first inductance L1 rises to its peak point current), the first crest voltage inspection
Survey unit 142 output and turn off control signal to the first control unit 140, the first control unit 140 is according to shutoff control signal control
Make the 3rd switching tube 143 to turn off, and then control first switch pipe 31 to turn off;When first switch pipe 31 turns off, the first inductance L1
The electric energy of upper storage passes through the first sustained diode 1 for cold light LED lamp statements based on collusion electricity, when the first demagnetization detector unit 141 detects
When the voltage of the cold end of first switch pipe 31 drops to and produces mutation, control is opened in the first demagnetization detector unit 141 output
Signal processed controls the 3rd switching tube 143 to turn on to the first control unit 140, the first control unit 140 according to opening control signal,
And then control first switch pipe 31 to turn on.LED constant current driving chip 1 by control first switch pipe 31 turn-on and turn-off come for
Cold light LED lamp string 5 provides stable electric current.
In cold light LED control circuit 3 normal work, the ON time of first switch pipe 31 is:
The turn-off time of first switch pipe 31 is:
Wherein, L is the sensibility reciprocal of the first inductance L1, VINFor the voltage of the first bus capacitor C1, VLEDFor cold light LED lamp string two
The voltage difference at end, IPKPeak point current for the first inductance L1.
When 2 times electricity of on and off switch, the voltage V of the first bus capacitor C1INDecline, due to the electricity at cold light LED lamp string two ends
Pressure reduction VLED, the first inductance L1 sensibility reciprocal L and the first inductance L1 peak point current IPKWill not change immediately, therefore first opens
Close the ON time T of pipe 31ONCan increase, as the ON time T of first switch pipe 31ONWhen reaching default maximum ON time, the
One control unit 140 can control first switch pipe 31 to turn off, now the peak point current I of the first inductance L1PKCan not reach and set in advance
The value put, that is, with the voltage V of the first bus capacitor C1INDecline, the peak point current I of the first inductance L1PKIt is gradually reduced, this
Sample can lead to the turn-off time T of first switch pipe 31OFFIt is gradually reduced, as the turn-off time T of first switch pipe 31OFFLess than default
The overvoltage protection of system during the overvoltage protection shut-in time, can be triggered.And when cold light LED control circuit 3 normal work, due to
The voltage V of one bus capacitor C1INSufficiently high, the peak point current I of the first inductance L1PKWill not decline, if now first switch
The turn-off time T of pipe 31OFFDiminish, be because voltage difference V at cold light LED lamp string 5 two endsLEDIncrease, when 5 liang of cold light LED lamp string
Voltage difference V at endLEDDuring more than preset overpressure protection voltage, the overvoltage protection of system can be triggered.Therefore, control electricity in cold light LED
If triggering the overvoltage protection of system in the case of the normal work of road 3, it is because voltage difference V at cold light LED lamp string 5 two endsLEDCross
Greatly, trigger the overvoltage protection of system in the case that the ON time of first switch pipe 31 reaches default maximum ON time,
Then it is considered 2 times electricity of on and off switch, can achieve the accurate detection to 2 times electric number of times of on and off switch by the way, and be not required to
To increase extra reverse-filling diode between rectifier bridge 70 and the first bus capacitor C1, to simplify LED constant current driving means
Circuit structure.
It should be noted that in this utility model embodiment, cold light LED control circuit 3 and warm light LED control circuit 4
Operation principle is identical, and accordingly, with respect to the operation principle of warm light LED control circuit 4, here is omitted.
When on and off switch 2 goes up electricity for the first time, cycle counter 11 resets, and exports " 0 " to coding and decoding module 12, encodes
" 0 " is converted to first state control signal S1 by decoding module 12, and by first state control signal S1 from its first outfan
Export to the first constant-current driven module 14, the first constant-current driven module 14 drives cold light LED control circuit 3 so as to control cold light
LED string lights;When on and off switch 2 lower electricity for the first time, lower electro-detection module 10 exports high level signal to cycle counter 11,
Cycle counter 11 carries out shifting for the first time, and exports " 1 " to coding and decoding module 12, and " 1 " is changed by coding and decoding module 12
For the second state control signal S2, and the second state control signal S2 is stored, when electricity on second of on and off switch 2,
Second state control signal S2 is exported to the second constant-current driven module 15 by coding and decoding module 12 from its second outfan, and second
Constant-current driven module 15 drives warm light LED control circuit so as to control warm light LED string to light;In the same manner, when on and off switch 2
During second, cycle counter 11 carries out second displacement, and exports " 2 " to coding and decoding module 12, coding and decoding module
" 2 " are converted to third state control signal S3 by 12, and on and off switch 2 third time during electricity, from the output of its 3rd outfan
Third state control signal S3 is to the first constant-current driven module 14 and the second constant-current driven module 15, the first constant-current driven module 14
Simultaneously drive cold light LED control circuit 3 and warm light LED control circuit 4 with the second constant-current driven module 15 so as to control cold light
LED string and warm light LED string light simultaneously, to realize the purpose of colour temperature regulation.When the lower electricity of on and off switch third time, circulation
Enumerator 11 carries out third time and shifts, and exports " 3 " to coding and decoding module 12, and " 3 " are converted to the by coding and decoding module 12
Four state control signal S4, and on and off switch 2 the 4th time during electricity, export the 4th state control signal from its 4th outfan
To pulse width modulation module 13, pulse width modulation module 13, when receiving the 4th state control signal S4, exports a frequency and accounts for S4
Sky compares all fixing pulsewidth modulation square-wave signal to the first constant-current driven module 14 and the second constant-current driven module 15, the first constant current
Drive module 14 and the second constant-current driven module 15 drive cold light LED control circuit 3 and warm light LED to control with predetermined current respectively
Circuit 4, so that it controls cold light LED lamp string and warm light LED string to light with predetermined luminance respectively, and then realizes brightness regulation
Purpose.
Wherein, the frequency of pulsewidth modulation square-wave signal and dutycycle can be configured according to the actual requirements, do not limit herein
System, the dutycycle that for example can arrange pulsewidth modulation square-wave signal is 50%.
This utility model embodiment includes first time electro-detection module, second time electro-detection module, circulation meter by adopting
Number device, coding and decoding module, the LED constant current of pulse width modulation module, the first constant-current driven module and the second constant-current driven module are driven
Dynamic chip, reaches default maximum ON time by first time electro-detection module in ON time first switch pipe is detected, and
When the turn-off time of first switch pipe is less than the preset overpressure protection shut-in time, judges electric under on and off switch and export shift control
Signal, reaches default maximum ON time by second time electro-detection module in ON time second switch pipe is detected, and the
When the turn-off time of two switching tubes is less than the preset overpressure protection shut-in time, judges electric under on and off switch and export shift control letter
Number, it is circulated according to shift control signal by cycle counter and shifts and export shift result, will be moved by coding and decoding module
Position result is converted to corresponding state control signal, and when on and off switch goes up electricity again, controls phase according to state control signal
The constant-current driven module work answered, to drive corresponding LED string to be lighted, and then realizes the purpose that colour temperature is adjusted, and by
Pulse width modulation module, when receiving state control signal, controls corresponding constant-current driven module to drive with predetermined current corresponding
LED string is lighted, and then realizes the purpose of brightness regulation, so that LED constant current driving chip is in the control of on and off switch
Exactly LED string execution colour temperature is adjusted and brightness regulation under system.
The foregoing is only preferred embodiment of the present utility model, not in order to limit this utility model, all this
Any modification, equivalent and improvement made within the spirit of utility model and principle etc., should be included in this utility model
Protection domain within.