Invention content
The present invention provides a kind of LED control circuit, LED lamp bead in the prior art is well solved and has been difficult to realize controllably
The problem of minimum light modulation.
The technical solution adopted in the present invention is:
A kind of LED control circuit, including charge switch pipe, continued flow tube, LED luminescence units and dimming control switch pipe;It fills
Electric switch pipe charges for receiving charging control signal and then controlling energy storage inductor;Continued flow tube is connected with charge switch pipe,
It discharges for controlling energy storage inductor;The output end of dimming control switch pipe be connected to energy storage inductor and LED luminescence units it
Between, the electric current of LED luminescence units is output to for receiving dimming control signal with energy storage inductor of releasing.
Preferably, charge switch pipe is metal-oxide-semiconductor, and continued flow tube is metal-oxide-semiconductor or fly-wheel diode, and dimming control switch pipe is
Metal-oxide-semiconductor or triode.Preferably, charge switch pipe can be NMOS tube, and continued flow tube can be NMOS tube, dimming control switch pipe
It can be NMOS tube.
Preferably, when LED control circuit is common cathode driving circuit, if charge switch pipe uses NMOS tube, continued flow tube to adopt
With NMOS tube, dimming control switch pipe uses NMOS tube, then the circuit connecting relation of the common cathode driving circuit is such as:Charging
The drain electrode of the source electrode and continued flow tube of switching tube connects;The source electrode of continued flow tube is grounded, the source electrode of charge switch pipe also with energy storage inductor
Input terminal connection;The output end of energy storage inductor is connect with the anode of LED luminescence units;The drain electrode of dimming control switch pipe with
LED luminescence unit anodes connect;The source level of dimming control switch pipe is grounded, and LED luminescence units cathode is through sensing resistance eutral grounding.Institute
State charge switch pipe and continued flow tube and dimming control switch pipe composition bridge circuit unit.
Preferably, common cathode driving circuit further includes micro-control unit, PWM logic control elements, output prime driving list
Member, feedback unit and clock oscillation unit;The signal input part of the signal output end and PWM logic control elements of micro-control unit
Connection;The signal output end of feedback unit is connect with the signal input part of PWM logic control elements;PWM logic control elements
Signal output end is connect with the signal input part of output fore-stage driver unit;Export the signal output end and bridge of fore-stage driver unit
The signal input part of formula circuit unit connects;The signal output end of LED luminescence units and the signal input part of feedback unit connect;
The signal output end of clock oscillation unit is connect with the signal input part of PWM logic control elements.
The signal output end of micro-control unit includes enable signal output end and PWM dim signal output ends;PWM logic controls
The signal output end of unit processed include charge switch pipe logic control signal output end, continued flow tube logic control signal output end and
Dim logic control signal output end;The signal output end of output fore-stage driver unit includes the output of charge switch pipe drive signal
End, continued flow tube driving signal output end and light modulation driving signal output end.Enable signal output end is for controlling driving circuit
Standby current, PWM dim signal output ends are for controlling light modulation electric current.
Preferably, feedback unit include comparator and sensing resistance, comparator be used for sense resistance output voltage with
Reference voltage is compared, and comparison result is output to PWM logic control elements.
Preferably, comparator includes first comparator and the second comparator, and first comparator is in-phase voltage comparator, the
The in-phase end of one comparator is connected between LED luminescence units cathode and sensing resistance, and for receiving detection voltage, first compares
The reverse side of device passes through the first proportion resistor network connection reference voltage input;The output end of first comparator and PWM logics
The signal input part of control unit connects.Reference voltage is V_ref, and reverse side input voltage is V_ref/n, and detection voltage is less than
When reverse side input voltage, first comparator exports low level;It detects voltage and is more than reverse side input voltage, first comparator is defeated
Go out high level.
Second comparator is reverse voltage comparator, and the in-phase end of the second comparator passes through concatenated first proportion resistor net
Network and the second proportion resistor network connection reference voltage input;It is negative that the reverse side of second comparator is connected to LED luminescence units
Between pole and sensing resistance, for receiving detection voltage;The output end of second comparator and the signal of PWM logic control elements are defeated
Enter end connection.Reference voltage is V_ref, and in-phase end input voltage is V_ref/n multiplied by with proportionality coefficient d, i.e. d*V_ref/n,
When detecting voltage less than in-phase end input voltage, the second comparator exports high level;It detects voltage and is more than in-phase end input voltage
When, the second comparator exports low level.
Preferably, the proportionality coefficient d of the second proportion resistor network ranging from 80 50 percent to percent.
Preferably, the above PWM current control circuits can be integrated in LED control chip.
Preferably, when LED control circuit is common-anode driving circuit, the circuit connecting relation of common-anode driving circuit is:
The drain electrode of continued flow tube connects input power;The source electrode of continued flow tube is connect with the drain electrode of charge switch pipe;The source electrode of charge switch pipe
Ground connection;The source electrode of continued flow tube is also connect with the input terminal of energy storage inductor;The cathode of the output end and LED luminescence units of energy storage inductor
Connection;The drain electrode of dimming control switch pipe connects input power;The source electrode of dimming control switch pipe connects with LED luminescence unit cathode
It connects;LED luminescence units anode connects input power by sensing resistance.
The beneficial effects of the invention are as follows:
The present invention provides a kind of LED control circuit, by the way that dimming control switch pipe is arranged, is exported to the electric current of energy storage inductor
Control, the glimmer or ultralow bright of special occasions requirement can not be adjusted by overcoming LED lamp bead brightness existing in the prior art
The problem of degree, LED luminance adjustment cannot reach perfect condition so that the light modulation of ultralow brightness may be implemented in LED control circuit, and
And circuit is simple, has good social and economic benefit.
In addition, the present invention intelligently realizes effective control of LED luminescence units light modulation electric current also by the way that feedback unit is arranged
System, and then avoid energy loss extra in dimming process.
This circuit can be widely applied to electronic circuit field.
Specific implementation mode
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase
Mutually combination.
As the first embodiment of the present invention, as shown in Figure 2 a, a kind of common cathode LED control circuit, including microcontroller list
Member 1, PWM logic control elements 2, output fore-stage driver unit 3, feedback unit 4, clock oscillation unit 5 and bridge circuit unit
6.It further include energy storage inductor L and LED luminescence unit.Specifically, as shown in Figure 2 b, bridge circuit unit 6 includes charge switch pipe
61 and continued flow tube 62 and dimming control switch pipe 63.Charge switch pipe 61 is for receiving charging control signal and then controlling storage
Energy inductance L charges;Continued flow tube 62 is connected with charge switch pipe 61, for receiving continuous flow control signals control energy storage inductor L
It discharges;The output end of dimming control switch pipe 63 is connected between energy storage inductor L and LED luminescence unit, is adjusted for receiving
Optical control signal is output to the electric current IL of LED luminescence units with the energy storage inductor L that releases.
Specifically, as shown in Figure 2 b, feedback unit 4 include first comparator 41, the second comparator 42, sensing resistance 43,
First proportion resistor network 44 and the second proportion resistor network 45, first comparator 41 and the second comparator 42 will be for that will sense electricity
The output voltage of resistance 43 detects voltage CS and is compared with reference voltage V _ ref, and comparison result is output to PWM logic controls
Unit 2 processed.
The in-phase end of first comparator 41 is connected between LED luminescence units cathode and sensing resistance 43, for receiving inspection
Voltage CS is surveyed, reverse side passes through first proportion resistor network 44 (it realizes that proportionality coefficient is 1/n) connection benchmark control source
End, the output end of first comparator 41 are connect with the signal input part of PWM logic control elements 2.Reference voltage is V_ref, instead
Phase end input voltage is V_ref/n, and when detection voltage CS is less than reverse side input voltage V_ref/n, first comparator 41 exports
Low level;It detects voltage CS and is more than reverse side input voltage V_ref/n, first comparator 41 exports high level.
The in-phase end of second comparator 42 passes through concatenated first proportion resistor network 44 (it realizes that proportionality coefficient is 1/n)
With second proportion resistor network 45 (it realizes that proportionality coefficient is d) connection reference voltage input;The reverse phase of second comparator 42
End is connected between LED luminescence units cathode and sensing resistance 43, for receiving detection voltage CS;The output of second comparator 42
End is connect with the signal input part of PWM logic control elements 2.Reference voltage is V_ref, and in-phase end input voltage is V_ref/n
Multiplied by with proportionality coefficient d, i.e. d*V_ref/n, when detection voltage CS is less than in-phase end input voltage d*V_ref/n, second compares
Device 42 exports high level;When detecting voltage CS more than in-phase end input voltage d*V_ref/n, the second comparator 42 exports low electricity
It is flat.The proportionality coefficient d of second proportion resistor network 45 ranging from 80 50 percent to percent.Ginseng can be set in the present embodiment
It is 70 percent to examine value.
In first embodiment, a kind of connection relation of common cathode LED control circuit is as follows:The signal of micro-control unit 1 is defeated
Outlet is connect with the signal input part of PWM logic control elements 2;The signal output end of feedback unit 4 and PWM logic control elements
2 signal input part connection;The signal input part of the signal output end of PWM logic control elements 2 and output fore-stage driver unit 3
Connection;The signal output end of output fore-stage driver unit 3 is connect with the signal input part of bridge circuit unit 6;LED luminescence units
Signal output end connect with the signal input part of feedback unit 4;The signal output end of clock oscillation unit 5 and PWM logic controls
The signal input part of unit 2 processed connects.Specifically, in bridge circuit unit 6, source electrode and the continued flow tube 62 of charge switch pipe 61
Drain electrode connection;The source electrode of continued flow tube 62 is grounded, and the source electrode of charge switch pipe 61 is also connect with the input terminal of energy storage inductor L;Storage
The output end of energy inductance L is connect with the anode of LED luminescence units;The drain electrode of dimming control switch pipe 63 and LED luminescence units are just
Pole connects;LED luminescence units cathode is grounded through sensing resistance 43.
In first embodiment, as shown in Figure 2 a, a kind of signal end of common cathode LED control circuit includes:Micro-control unit 1
Signal output end include enable signal end EN and PWM dim signals end DIM;The signal output end packet of PWM logic control elements 2
Include charge switch pipe logic control signal output end HS, continued flow tube logic control signal output end LS and light modulation logic control signal
Output end LS_DIM;Output fore-stage driver unit 3 signal output end include charge switch pipe driving signal output end DRV_HS,
Continued flow tube driving signal output end DRV_LS and light modulation driving signal output end DRV_DIM.Enable signal end EN drives for controlling
The standby current of dynamic circuit, PWM dim signals end DIM is for controlling light modulation electric current.
In first embodiment, there are two types of operating modes for a kind of common cathode LED control circuit, are multicycle PWM electric current respectively
Pattern and monocycle PWM current-mode.
A kind of multi-mode working flow of common cathode LED control circuit is as follows:PWM logic control elements 2 are from microcontroller list
Member 1 obtains enable signal EN, if enable signal EN is logic low, LED control circuit enters the dormant state of low-power consumption;
If enable signal EN is logic high, LED control circuit exits dormant state, if dim signal DIM is logic high,
And turn-on time Ton longer, internal pwm circuit control driving circuit periodically open and close, then enter multicycle PWM electricity
Stream mode.Specifically, under multicycle PWM current-mode:I_LED is through external for reference signal V_ref/n and LED output currents
Detection voltage CS caused by sensing resistance 43 is sent to the input terminal of first comparator 41, and the first ratio is generated through first comparator 41
Compared with consequential signal VO1.The clock signal clock that first comparison result signal VO1 is generated with clock oscillator unit 5 is patrolled through PWM
It collects the processing of control unit 2 and generates charge switch pipe logic control signal HS and continued flow tube logic control signal LS, charge switch pipe
Logic control signal HS and continued flow tube logic control signal LS generates charge switch pipe 61 using output fore-stage driver unit 3 and drives
Dynamic 62 drive signal DRV_LS of signal DRV_HS and continued flow tube, by control charge switch pipe 61 and continued flow tube 62 unlatching and
Shutdown is to control the peak value and ripple of LED output currents I_LED.
LED high current waveforms under multicycle PWM current-mode are as shown in Figure 3.Enable signal EN is set to logically high first
Level, dim signal DIM are set to logic high again, and internal drive circuits periodically open and close.As dim signal DIM
Turn-on time Ton longer when, internal PWM logics will control energy storage inductor L periodicity charge and discharge so that LED output currents
I_LED also increases therewith.Inductive current IL is equal with LED output currents I_LED at this time, and average current is larger.
Signal period sequential under multicycle PWM current-mode is as shown in Figure 4.One PWM cycle is amplified, is driven
Sequential is:In a PWM cycle, it is high level, continued flow tube logic control that charge switch pipe logic control signal HS is arranged first
Signal LS processed is low level.Charge switch pipe 61 in bridge circuit unit 6 is connected, and detection voltage CS is slowly increased to V_
Ref/n, when the first comparison result signal VO1 that first comparator 41 exports is high level, switching continued flow tube logic control letter
Number LS is high level, and charge switch pipe logic control signal HS is low level.Start internal counter, to clock signal clock
Divided, set the first comparison result signal VO1 as the time of high level be fixed discharge time Discharge.Such as it can
To set fixation discharge time TDischargeIt is dead time for 10us, DT, for avoiding charge switch pipe 61 and continued flow tube 62
It gangs up.By the peak for being switched on and off to control LED output currents I_LED for controlling charge switch pipe 61 and continued flow tube 62
Value and ripple.
The peak computational mode of LED output currents I_LED is:Itrip=V_ref/ (n*R_sense), wherein R_
Sense is the resistance value for sensing resistance 43.
The ripple calculation of I_LED is:Δ i=VL*TDischarge/ L, wherein VL are inductance voltage difference of the two ends, and L is
Inductance value, TDischargeFor fixed discharge time.
If enable signal EN is logic high, if after obtaining dim signal DIM, if dim signal DIM is logic low electricity
Flat, the periodicity that internal pwm circuit stops driving circuit being switched on and off, and charge switch pipe 61 ends, and the conducting of continued flow tube 62 makes
The electric current IL obtained on inductance L is discharged to zero current.If the turn-on time Ton of dim signal DIM is very of short duration (with charge switch pipe
Minimum turn-on time is close), inductance time of afterflow is far longer than the charging time, then enters monocycle PWM current-mode, internal
The periodicity that pwm circuit stops driving circuit being switched on and off, and charge switch pipe 61 ends after being connected, follow-up by dead time
Flow tube 62 is connected so that the electric current IL on inductance L is discharged to zero current.Again by detecting voltage CS and reference voltage V _ ref ratios
Compared with the second comparator 42 exports the second comparison result signal VO2, if it is logic low, dimming control switch pipe 63 is not
Conducting;If the second comparison result signal VO2 is logic high, dimming control switch pipe 63 is connected.
Specifically, under monocycle PWM current-mode:Reference signal V_ref/n is multiplied by after proportionality coefficient d and detection electricity
Pressure CS is sent to the input terminal of the second comparator 42, is compared through the second comparator 42 and is generated the second comparison result signal VO2.Second ratio
It is handled through PWM logic control elements 2 compared with consequential signal VO2 and generates light modulation logic control signal LS_DIM, light modulation logic control letter
Number LS_DIM generates dimming control switch pipe drive signal DRV_DIM using output fore-stage driver unit 3, passes through to control and adjust
The low current brightness adjustment control of photocontrol switching tube 63 being switched on and off to realization to LED luminescence units.
The LED low current waveforms that DIM is not dimmed under monocycle PWM current-mode are as shown in Figure 5.When dim signal DIM's
When turn-on time Ton is shorter, inductive current IL time of afterflow is far longer than the charging time, if without especially handling, makes inductance electric
Stream IL flows through LED luminescence units so that inductive current IL is equal with LED output currents I_LED, the energy that freewheel current generates
Amount continues to flow through LED luminescence units so that the minimum brightness of LED luminescence units cannot reach ideal effect.Therefore the present embodiment
In, especially increase the light modulation that a dimming control switch pipe 63 is used for optimizing minimum brightness in bridge circuit unit 6.Logic electricity
Road will produce the reverse signal of a DIM to control being switched on or off for the dimming control switch pipe 63, the dimming control switch
Pipe 63 can control LED luminescence unit output currents I_LED, more caused by avoid when dim signal DIM is turned off
Complementary energy flows through LED luminescence units, realizes further decreasing for LED luminescence unit brightness.
The LED low current waveforms that DIM is dimmed under monocycle PWM current-mode are as shown in Figure 6.When leading for dim signal DIM
Logical time Ton it is shorter and required LED current I_LED it is smaller when, understood using the dimming control switch pipe 63 in parallel with LED and be existed
Dim signal DIM shutdown moments are opened so that and LED luminescence units do not absorb the inductive current IL of afterflow when DIM is turned off, to
It avoids extra energy (electric current of Fig. 6 dash areas) and flows through LED luminescence units, and then avoid the generation of LED luminescence units
Extra light.Internal PWM drivings need to start the second comparator 42 at this time, with V_ref/n multiplied by with proportionality coefficient d and detection
Voltage CS is compared, if detection voltage CS level is less than d*V_ref/n at this time, illustrates dim signal DIM turn-on times at this time
Shorter and required LED output currents I_LED is smaller, needs to carry out DIM light modulations under monocycle PWM current-mode.If at this time
It detects voltage CS and is more than d*V_ref/n, illustrate that DIM turn-on times are enough long at this time, need not carry out DIM light modulations.
The LED low current sequential that DIM is dimmed under monocycle PWM current-mode is as shown in Figure 7.Generally, proportionality coefficient d is arranged
Ranging from 50%~80%, in the present embodiment, the referential data of proportionality coefficient d is set as 70%.
As shown in figure 8, another feasible program as embodiment, multi-mode LED driving realization methods are variable to be turned to altogether
Anode framework, i.e., a kind of common-anode LED control circuit.In a kind of common-anode LED control circuit of second embodiment, light modulation is controlled
Energy storage inductor L when the conducting of the continued flow tube 62 in the top of bridge circuit unit 6, bridge circuit unit 6 is arranged in switching tube 63 processed
Electric discharge, and energy storage inductor L chargings when the conducting of charge switch pipe 61.That sensing resistance 43 detects is input power VIN and detection electricity
Press the voltage difference between CS, inside need by reference voltage V _ ref be converted to the reference data of opposite input power VIN again with inspection
Voltage CS is surveyed to compare.Cathode framework is identical together for its multicycle PWM current-modes and monocycle PWM Controlled in Current Mode and Based mode.
Specifically, as another feasible program of embodiment, a kind of common-anode LED control circuit of second embodiment includes
Micro-control unit 1, PWM logic control elements 2, output fore-stage driver unit 3, feedback unit 4, clock oscillation unit 5, charging are opened
It closes pipe 61 and continued flow tube 62, dimming control switch pipe 63, first comparator 41, the second comparator 42, sensing resistance 43, first compares
Example resistor network 44, the second proportion resistor network 45, energy storage inductor L and LED luminescence unit.
Specifically, as another feasible program of embodiment, a kind of company of common-anode LED control circuit of second embodiment
The relationship of connecing is:The drain electrode connection input power VIN of continued flow tube 62;The source electrode of continued flow tube 62 connects with the drain electrode of charge switch pipe 61
It connects;The source electrode of charge switch pipe 61 is grounded;The source electrode of continued flow tube 62 is also connect with the input terminal of energy storage inductor L;Energy storage inductor L's
Output end is connect with the cathode of LED luminescence units;The drain electrode connection input power VIN of dimming control switch pipe 63;Brightness adjustment control
The source electrode of switching tube 63 is connect with LED luminescence unit cathode;LED luminescence units anode connects input power through sensing resistance 43
VIN.Cathode framework is identical together for its external circuit unit connection type.
It is to be illustrated to the preferable implementation of the present invention, but the invention is not limited to the implementation above
Example, those skilled in the art can also make various equivalent variations or be replaced under the premise of without prejudice to spirit of that invention
It changes, these equivalent deformations or replacement are all contained in the application claim limited range.