Specific implementation mode
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end
Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached
The embodiment of figure description is exemplary, it is intended to for explaining the present invention, and is not considered as limiting the invention.
In addition, term " first ", " second " are used for description purposes only, it is not understood to indicate or imply relative importance
Or implicitly indicate the quantity of indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or
Implicitly include one or more this feature.In the description of the present invention, the meaning of " plurality " is two or more,
Unless otherwise specifically defined.
In the present invention unless specifically defined or limited otherwise, term " installation ", " connected ", " connection ", " fixation " etc.
Term shall be understood in a broad sense, for example, it may be being fixedly connected, may be a detachable connection, or be integrally connected;It can be machine
Tool connects, and can also be electrical connection;It can be directly connected, can also can be indirectly connected through an intermediary two members
Connection inside part.For the ordinary skill in the art, above-mentioned term can be understood in this hair as the case may be
Concrete meaning in bright.
In the present invention unless specifically defined or limited otherwise, fisrt feature the "upper" of second feature or "lower"
It may include that the first and second features are in direct contact, can also not be to be in direct contact but pass through it including the first and second features
Between other characterisation contact.Moreover, fisrt feature second feature " on ", " top " and " above " include first special
Sign is right over second feature and oblique upper, or is merely representative of fisrt feature level height and is higher than second feature.Fisrt feature exists
Second feature " under ", " lower section " and " following " include fisrt feature right over second feature and oblique upper, or be merely representative of
Fisrt feature level height is less than second feature.
The LED drive device for describing to propose according to embodiments of the present invention below in conjunction with attached drawing.
Fig. 1 is the structural schematic diagram according to the LED drive device of one embodiment of the invention.Shown in referring to Fig.1, the LED
Driving device 100 includes:Input module 10, generation module 20, feedback module 30, energy-storage units 40 and driving chip 50.Wherein,
LED drive device 100 is controlled by switch (not shown).
Wherein, input module 10 is used to receive the alternating current of input, and alternating current is converted to direct current.Generation module 20
It is connected with input module 10, generation module 20 is used to generate the driving current of driving LED.Feedback module 30 and 20 phase of generation module
Even, feedback module 30 is used to acquire the driving current of generation module 20 and generates feedback signal.Driving chip 50 respectively with generation
Module 20, feedback module 30, energy-storage units 40 are connected, and driving chip 50 is used for after switch is closed for the first time to energy-storage units
40 charge such as capacitance, and are controlled driving current to adjust LED according to the voltage of energy-storage units 40 and feedback signal
Brightness, and when after switch for the first time shutdown second is closed, if switch shutdown for the first time and being closed it for the second time
Between time interval meet preset condition, then after switch second is closed, when being turned off for the first time with switch the brightness of LED make
For the operating brightness of LED.Wherein, LED drive device 100 is controlled by switch, and switch is in addition to normal turn-off acts on, and also switch is adjusted
Light action, i.e. LED drive device are closed according to switch and shutdown, realizes the adjusting to LED light brightness.The embodiment of the present invention
LED drive device can recall the brightness arbitrarily needed in maximum output by the brightness of switch-mode regulation LED light, not need
Increase peripheral components, realizes that stepless switch is adjusted, improve the usage experience of user.
Further, in one embodiment of the invention, the time between switch shutdown for the first time and second of closure
Interval meets preset condition and is specifically as follows:When time interval between switch shutdown for the first time and second of closure is less than default
Between threshold value.Specifically, in one embodiment of the invention, with reference to shown in Fig. 2, since original state, switch closes for the first time
It closes, driving chip 50 is by internal bias current to DIM feet energy-storage units 40 such as capacitor charging.The DIM foot electricity of driving chip 50
Pressure height determines output current, that is, driving current size.So with the rising of DIM foot voltages, LED light can be with since most dark
It is continuous slowly varying until maximum brightness can gradually brighten to brightness required for object brightness i.e. user, it is stepless to realize
Light modulation.Specifically, with reference to shown in Fig. 2, when the brightness of LED reaches object brightness, switch OFF is started the clock while being remembered
The DIM foot voltage values of record at this time, if being closed within stipulated time, that is, preset time threshold, i.e. switch shutdown for the first time and switch
Time interval between second of closure meets in preset condition such as preset time threshold 5s, then it is assumed that and it is switch dimming, the
When secondary switch is closed, pin DIM low levels, that is, EN_DIM=0 of driving chip 50, the brightness that driving chip 50 adjusts LED refers to
Brightness, that is, object brightness when to last switch OFF, 1%-100%, when reaching object brightness, with object brightness
Operating brightness as LED;Otherwise it is assumed that first time switch OFF is normal turn-off, i.e., when switch is closed for the second time, if the
The primary time interval being closed between second of closure is more than predetermined threshold value, then the pin DIM high level of driving chip 50 is
EN_DIM=1, LED light return to original state.Further, if switch third time is closed, if switch third time is closed and opens
The time interval closed second between turning off meets preset condition, then the pin DIM low levels of driving chip 50, driving chip 50
The brightness of LED is adjusted still using object brightness as operating brightness;Otherwise it is assumed that second of switch OFF is normal turn-off, that is, open
When closing closure next time, LED light returns to original state.Therefore, it can be seen that the time of monitoring switch shutdown is crucial, switch
Shutdown for the first time and second of closure are this time closed and the preceding judgement mark for being once to discriminate between switch normal turn-off and switch dimming
It is accurate.
In one particular embodiment of the present invention, the embodiment of the present invention includes independent current source circuit, reset detection circuit,
Dim signal processing circuit, constant-current control circuit.Wherein, independent current source circuit need when chip IC other parts do not work to
LED drive device 100 is powered, so this power supply needs the power supply with other modules to separate.Reset detection circuit is used for area
Other normal switch and switch dimming are considered as normal turn-off when switch OFF is more than certain time, need to reset when opening next time
So that LED is restored to normal brightness.Electric current when dim signal processing circuit is by detection switch state and switch OFF and note
Record.Constant-current circuit controls constant output current under stationary state.
Independent current source circuit is the power supply of LED drive device 100, with reference to shown in Fig. 3, after switching closure, and chip
IC, that is, driving chip 50 starts, and chip control system, that is, generation module 20 generates the driving current of driving LED and output driving electricity
Stream gradually continuously changes to maximum from minimum, until stablizing when maximum current.If closed before establishing to maximum output
Switch, output current state when chip IC record switch is closed, next closure switch, then electric current when being closed with last time are defeated
Go out.Certainly, a resetting time can be arranged in chip IC, if without second of closure switch, chip IC within resetting time
It can reset.Because the brightness of LED light is approximate with the size of current that it is flowed through in direct ratio, to realize nothing by regular tap
Grade light modulation.
Further, in one embodiment of the invention, with reference to shown in Fig. 4, driving chip 50 specifically includes:TDS is produced
Raw module 51, dim signal processing module 52, constant-current control module 53 and drive module 54.
Wherein, TDS generation modules 51 are used to generate TDS signals according to feedback signal.Dim signal processing module 52 and storage
Energy unit 40 is connected, and dim signal processing module 52 is used to charge to energy-storage units 40, and according to the electricity of energy-storage units 40
The closed state of pressure and switch generates dim signal.Constant-current control module 53 is used to be generated according to TDS signals and dim signal and drive
Dynamic signal.Drive module 54 is used for output drive signal.
Further, in one embodiment of the invention, driving chip 50 further includes:Benchmark is established module 55, is compared
Device 56, logic module 57 and blanking module 58.Specifically, base modules 55 are for generating the required benchmark electricity of internal circuit
Pressure.Comparator 56 can be a peak current detection comparator, and comparator 56 is for detecting whether primary current reaches default
Desired value, if reached, pipe is closed in shutdown.Logic module 57 is for handling open signal, shutdown signal and various protections letter
Number the correlations such as sequential, final output to drive module 54, logic module 57 is used to control the open and close of switching tube.
Hundreds of nanoseconds after switching tube unlatching, the moment of switching tube conducting, the electric current for flowing through switching tube can be prodigious there are one moment
Surge current, that is, burr, a spike.In order to avoid this spike that chip accidentally samples, after switching tube unlatching
It in hundreds of nanoseconds, does not sample, therefore here it is the effects of blanking module 58.
Specifically, in one embodiment of the invention, the port definition of driving chip 50 is as follows:DIM:Input terminal,
External energy-storage units 40,40 voltage of energy-storage units determine output current;VDD:Input terminal, chip power feeder ear;VSS:Core
Piece;ISE:Input terminal, for detecting primary current, control main switch is closed;OUT:Leading-out terminal, main switch control
End;VSE:Input terminal, feedback voltage monitoring side.Wherein, this common primary current constant control topology, works in interrupted mould
Formula, the electric current of output and the primary and secondary turn ratio, with the product of the turn-on time of peak primary currents and secondary diode ratio TDS/T at
Direct ratio.Driving chip 50 uses switching tube shutdown signal to obtain beginning of the time delayed signal as TDS signals, is turned by detecting VSE voltages
It puts to judge that TDS signals terminate, is further fixed value by internal constant flow module control TDS/T.So by controlling DIM feet
The product of voltage value and peak primary currents and TDS/T is positively correlated, and can be achieved with adjusting the continuously adjustable of output current, in turn
Realize light modulation.The embodiment of the present invention mainly in the innovation of dim signal DIM foot voltage forming methods, is not necessarily to additional dim signal,
Plug-in energy-storage units 40 are given to charge by chip interior current source, voltage establishes process on energy-storage units 40, i.e. selection light modulation
Signal obtains process, and without increasing dimmer switch, it is only necessary to switch motion twice, so that it may to be transferred to the brightness of arbitrary needs.
Further, in one embodiment of the invention, with reference to Fig. 5, dim signal processing module 52 includes:Switch shape
State monitors submodule 521 and dim signal generates submodule 522.Wherein, on off state monitoring submodule 521 is used for detection switch
Closed state, dim signal generates submodule 522 and is used to be generated according to the closed state of the voltage of energy-storage units 40 and switch
Dim signal.
Further, in one embodiment of the invention, referring to Figure 5, on off state monitoring submodule 521 is specific
Including:First resistor R1 to 3rd resistor R3, hysteresis comparator 101, delayer 102 and comparator 103.
Specifically, first resistor R1 to 3rd resistor R3 is connected between power supply and ground.Wherein, first resistor R1 and second
There is first node a between resistance R2, there is second node b, hysteresis comparator 101 between second resistance R2 and 3rd resistor R3
First input end V12 be connected with first node a, the second input terminal is connected with the first reference voltage V ref1, third input terminal with
Second reference voltage V ref2 is connected, and hysteresis comparator 101 is given birth to when the voltage of first node a is more than the first reference voltage V ref1
At enable signal EN, non-enable signal is generated when the voltage of second node b is less than the second reference voltage V ref2.Delayer 102
Time delayed signal EN_delay is generated according to enable signal EN.The first input end V23 of comparator 103 is connected with second node b, the
Two input terminals are connected with third reference voltage V ref3, and voltage of the comparator 103 in second node b is less than third reference voltage
Reset signal EN_DIM is exported when Vref3.
Further, in one embodiment of the invention, referring to Figure 5, it is specific to generate submodule 522 for dim signal
Including:Current source 5221, transmission gate TG, selector MUX, amplifier OPA and controller 5222.
Wherein, current source 5221 is connected with energy-storage units (the capacitance C4 in energy-storage units 40 and Fig. 3 in such as Fig. 1).It passes
One end of defeated door TG is connected with energy-storage units 40, and the control terminal of transmission gate TG is connected with enable signal EN.The first of selector MUX
Input terminal A is connected with energy-storage units 40, and the second input terminal B is connected with the other end of transmission gate TG.The input terminal of amplifier OPA with
The MUX output of selector is connected.Controller 5222 is according to reset signal EN_DIM, time delayed signal EN_delay and enable signal
The reverse signal ENR of EN generates control signal, and control signal is used for control selections device MUX.
Further, in one embodiment of the invention, dim signal generation submodule 522 further includes:Bleeder
5223.Wherein, bleeder 5223 releases to energy-storage units 40 according to reset signal EN_DIM.
Further, in one embodiment of the invention, bleeder 5223 specifically includes:First switch pipe Q1 and second
Switching tube Q2.
Wherein, one end of first switch pipe Q1 is connected with energy-storage units 40, the other end ground connection of first switch pipe Q1, and first
The control terminal of switching tube Q1 is connected with reset signal EN_DIM.Second input of one end of second switch pipe Q2 and selector MUX
End is connected, and the other end ground connection of second switch pipe Q2, the control terminal of second switch pipe Q2 is connected with reset signal EN_DIM.
Further, in one embodiment of the invention, controller 5222 includes:First rest-set flip-flop 201, phase inverter
202 and second rest-set flip-flop 203.
Wherein, the first input end of the first rest-set flip-flop 201 is connected with time delayed signal EN_delay, the second input terminal with again
Confidence EN_DIM is connected.The input terminal of phase inverter 202 is connected with the output end of the first rest-set flip-flop 201.Second rest-set flip-flop
203 first input end is connected with the reverse signal ENR of enable signal EN, the output end phase of the second input terminal and phase inverter 202
Even.
Specifically, in one embodiment of the invention, referring to Figure 5, the embodiment of the present invention is by detecting vdd voltage
Carry out indirect detection switching signal, when line voltage generates VDD, process by start-up resistor to starting the voltage that energy-storage units 40 charge
The second input terminal with hysteresis comparator 101 of voltage after first resistor R1, second resistance R2 and 3rd resistor R3 partial pressure, third
Second input terminal of input terminal and comparator 103 compares, and hysteresis comparator 101 is for judging whether chip is opened, the second input
End and two input terminals of the third input terminal as hysteresis comparator 101, as the first input end V12 of hysteresis comparator 101
When voltage is higher than the voltage of the second input terminal, enable signal EN turns over height by low, and chip is opened, when the voltage of first input end V12
Less than the second input terminal voltage when, enable signal EN turned over by height it is low, chip shutdown.Comparator 103 is for sentencing the action of shutdown pass
Interval time, if the shut-in time is long, the complete power down of VDD, the first input end V23 of comparator 103 is less than the second input
End, reset signal EN_DIM turn over height, chip Reset Status by low.Assuming that the second input terminal of hysteresis comparator 101, sluggishness are relatively
The third input terminal of device 101, the second input terminal of comparator 103 respectively to deserved vdd voltage value be V1, V2, V3, then, V1>
V2>V3。
Further, in one embodiment of the invention, with reference to shown in Fig. 6, when switch is closed, VDD rises, and enables letter
Number EN by it is low turn over height after, chip interior is charged by current source to the energy-storage units 40 of DIM connections.After switch OFF, VDD falls
Electricity, enable signal EN turned over by height it is low, meanwhile, transmission gate TG is opened, on capacitance C1 can storage chip shutdown moment DIM foot electricity
Pressure.If it is switch is first switched on, the output of the second rest-set flip-flop 203 at this time is low, and selector MUX selects first input end
The signal of A, DIM voltages directly input amplifier OPA, and the output of amplifier OPA can then pass to constant-current control module 53, determine defeated
Go out the size of electric current.LED light can gradually brighten, if reaching a certain brightness, precisely need to obtain brightness, close shutdown at this time and close,
LED light is extinguished, closure switch again, as long as closed action is timely, chip vdd voltage is more than V3, reset signal EN_DIM be it is low,
The output of second rest-set flip-flop 203 at this time is height, and selector MUX selects the signal of the second input terminal B, that is, last chip
The output of DIM voltages when shutdown, this control source amplifier OPA, amplifier OPA can then pass to constant-current control module 53, defeated
Go out the brightness when size of electric current maintains last time switch OFF.It should be noted that the innovation of the embodiment of the present invention exists
In the generation of dim signal and the realization of switch dimming, so just to this dim signal and switch detection emphasis description, constant current is real
Now part is that constant-current control module 53 is not described in detail.The constant current scheme of the embodiment of the present invention in the related technology is the same to be realized
Constant current, but press primary switch more, so that it may to realize dimming function, an energy-storage units i.e. tunable optical only need to be added, it is cost-effective,
Scheme is simple, and at low cost.
LED drive device according to the ... of the embodiment of the present invention, by being carried out to energy-storage units after being closed for the first time in switch
Charging, and driving current is controlled according to the voltage and feedback signal of energy-storage units, so as to adjust the brightness of LED, and
After second of closure of switch, if it is default to switch the time interval satisfaction that first time turns off between switch for the second time closure
Condition, then the brightness of LED is as the operating brightness of LED, realization stepless dimming when being turned off for the first time using switch, and can be transferred to most
The brightness arbitrarily needed in big output can not only realize constant current, and by primary switch, as soon as by adding an energy-storage units,
Dimming function may be implemented, it is simple and reliable, it is at low cost, the usage experience of user is improved, popularizing for LED is conducive to.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes
It is one or more for realizing specific logical function or process the step of executable instruction code module, segment or portion
Point, and the range of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discuss suitable
Sequence, include according to involved function by it is basic simultaneously in the way of or in the opposite order, to execute function, this should be of the invention
Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use
In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for
Instruction execution system, device or equipment (system of such as computer based system including processor or other can be held from instruction
The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set
It is standby and use.For the purpose of this specification, " computer-readable medium " can any can be included, store, communicating, propagating or passing
Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment
It sets.The more specific example (non-exhaustive list) of computer-readable medium includes following:Electricity with one or more wiring
Interconnecting piece (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory
(ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits
Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable
Medium, because can be for example by carrying out optical scanner to paper or other media, then into edlin, interpretation or when necessary with it
His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the present invention can be realized with hardware, software, firmware or combination thereof.Above-mentioned
In embodiment, software that multiple steps or method can in memory and by suitable instruction execution system be executed with storage
Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware
Any one of row technology or their combination are realized:With the logic gates for realizing logic function to data-signal
Discrete logic, with suitable combinational logic gate circuit application-specific integrated circuit, programmable gate array (PGA), scene
Programmable gate array (FPGA) etc..
Those skilled in the art are appreciated that realize all or part of step that above-described embodiment method carries
Suddenly it is that relevant hardware can be instructed to complete by program, the program can be stored in a kind of computer-readable storage medium
In matter, which includes the steps that one or a combination set of embodiment of the method when being executed.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing module, it can also
That each unit physically exists alone, can also two or more units be integrated in a module.Above-mentioned integrated mould
The form that hardware had both may be used in block is realized, can also be realized in the form of software function module.The integrated module is such as
Fruit is realized in the form of software function module and when sold or used as an independent product, can also be stored in a computer
In read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example
Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not
Centainly refer to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be any
One or more embodiments or example in can be combined in any suitable manner.
Although the embodiments of the present invention has been shown and described above, it is to be understood that above-described embodiment is example
Property, it is not considered as limiting the invention, those skilled in the art are not departing from the principle of the present invention and objective
In the case of can make changes, modifications, alterations, and variations to the above described embodiments within the scope of the invention.