Embodiment
Be described below in detail embodiments of the invention, the example of described embodiment is shown in the drawings, and wherein same or similar label represents same or similar element or has element that is identical or similar functions from start to finish.Be exemplary below by the embodiment be described with reference to the drawings, be intended to for explaining the present invention, and can not limitation of the present invention be interpreted as.
In addition, term " first ", " second " only for describing object, and can not be interpreted as instruction or hint relative importance or imply the quantity indicating indicated technical characteristic.Thus, be limited with " first ", the feature of " second " can express or impliedly comprise one or more these features.In describing the invention, the implication of " multiple " is two or more, unless otherwise expressly limited specifically.
In the present invention, unless otherwise clearly defined and limited, the term such as term " installation ", " being connected ", " connection ", " fixing " should be interpreted broadly, and such as, can be fixedly connected with, also can be removably connect, or connect integratedly; Can be mechanical connection, also can be electrical connection; Can be directly be connected, also indirectly can be connected by intermediary, can be the connection of two element internals.For the ordinary skill in the art, above-mentioned term concrete meaning in the present invention can be understood as the case may be.
In the present invention, unless otherwise clearly defined and limited, fisrt feature second feature it " on " or D score can comprise the first and second features and directly contact, also can comprise the first and second features and not be directly contact but by the other characterisation contact between them.And, fisrt feature second feature " on ", " top " and " above " comprise fisrt feature directly over second feature and oblique upper, or only represent that fisrt feature level height is higher than second feature.Fisrt feature second feature " under ", " below " and " below " comprise fisrt feature directly over second feature and oblique upper, or only represent that fisrt feature level height is less than second feature.
The LED drive device proposed according to the embodiment of the present invention is described below in conjunction with accompanying drawing.
Fig. 1 is the structural representation of LED drive device according to an embodiment of the invention.With reference to shown in Fig. 1, this LED drive device 100 comprises: 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, alternating current for receiving the alternating current of input, and is converted to direct current by input module 10.Generation module 20 is connected with input module 10, and generation module 20 is for generation of the drive current of driving LED.Feedback module 30 is connected with generation module 20, and feedback module 30 is for gathering the drive current of generation module 20 and generating feedback signal.Driving chip 50 respectively with generation module 20, feedback module 30, energy-storage units 40 is connected, driving chip 50 for charging to energy-storage units 40 such as electric capacity after switch first time is closed, and according to the voltage of energy-storage units 40 and feedback signal, the brightness adjusting LED is controlled to drive current, and when after switch first time turns off, second time is closed, if the time interval between switch first time turns off and closes for the second time meets pre-conditioned, then after switch second time is closed, using the brightness of LED during switch first time shutoff as the operating brightness of LED.Wherein, LED drive device 100 is by switch control rule, and switch, except normal turn-off effect, also has switch dimming effect, i.e. LED drive device closed and shutoff according to switch, realizes the adjustment to LED brightness.The LED drive device of the embodiment of the present invention passes through the brightness of switch-mode regulation LED, and can recall the brightness needed arbitrarily in maximum output, does not need to increase peripheral components, realizes stepless switch adjustment, improves the experience of user.
Further, in one embodiment of the invention, switch first time turn off and second time closed between the time interval meet pre-conditioned being specifically as follows: switch first time turn off and second time closed between the time interval be less than preset time threshold.Particularly, in one embodiment of the invention, with reference to shown in Fig. 2, from initial condition, switch first time is closed, driving chip 50 by internal bias current to DIM pin energy-storage units 40 as capacitor charging.The DIM pin voltage levels of driving chip 50 determines output current and drive current size.So along with the rising of DIM pin voltage, LED slowly can change the brightness required for object brightness and user until namely high-high brightness can brighten gradually continuously from the most secretly, thus realizes stepless dimming.Particularly, with reference to shown in Fig. 2, when the brightness of LED reaches object brightness, switch OFF, to start the clock the DIM pin magnitude of voltage simultaneously recorded now, if closed within stipulated time and preset time threshold, namely switch first time turn off and switch second time closed between the time interval meet in pre-conditioned such as preset time threshold 5s, then think switch dimming, when second time switch closes, the pin DIM low level of driving chip 50 and EN_DIM=0, brightness when last switch OFF is pointed in the brightness that driving chip 50 adjusts LED and object brightness, 1%-100%, when reaching object brightness, using object brightness as the operating brightness of LED, otherwise think that switch OFF is normal turn-off for the first time, namely when switch second time is closed, if first time is closed and second time closed between the time interval exceed predetermined threshold value, then the pin DIM high level of driving chip 50 and EN_DIM=1, LED returns initial condition.Further, if switch third time is closed, if switch third time is closed and switch second time turn off between the time interval meet pre-conditioned, then the pin DIM low level of driving chip 50, driving chip 50 adjusts the brightness of LED still using object brightness as operating brightness; Otherwise think that second time switch OFF is normal turn-off, when namely switch next time is closed, LED returns initial condition.Therefore, therefrom can find out that the time that monitoring switch turns off is key, it is once the criterion distinguishing switch normal turn-off and switch dimming that switch first time turns off and close for the second time namely this time closed and front.
In one particular embodiment of the present invention, the embodiment of the present invention comprises independent current source circuit, reset detection circuit, dim signal treatment circuit, constant-current control circuit.Wherein, independent current source circuit needs to power to LED drive device 100 when other parts of chip IC do not work, so this power supply needs to separate with the power supply of other modules.Reset detection circuit, for distinguishing normal switch and switch dimming, when switch OFF exceedes certain hour, is considered as normal turn-off, needs to reset to make LED return to normal brightness when next time opens.Dim signal treatment circuit by sense switch state and switch OFF time electric current and record.Constant output current under constant-current circuit control stationary state.
Independent current source circuit is the power supply of LED drive device 100, with reference to shown in Fig. 3, after switch is closed, chip IC and driving chip 50 start, chip control system and generation module 20 produce the drive current of driving LED and output driving current changes to maximum from minimum continuous print gradually, until stable during maximum current.If closing switch before being established to maximum output, output current state when chip IC record switch cuts out, next Closing Switch, then electric current when closing with last time exports.Certainly, chip IC can arrange a resetting time, if do not have second time Closing Switch within resetting time, then chip IC can reset.Because the size of current that the brightness of LED is flow through with it is approximated to direct proportion, thus achieves stepless dimming by regular tap.
Further, in one embodiment of the invention, with reference to shown in Fig. 4, driving chip 50 specifically comprises: TDS generation module 51, dim signal processing module 52, constant-current control module 53 and driver module 54.
Wherein, TDS generation module 51 is for generating TDS signal according to feedback signal.Dim signal processing module 52 is connected with energy-storage units 40, and dim signal processing module 52 for charging to energy-storage units 40, and generates dim signal according to the voltage of energy-storage units 40 and the closure state of switch.Constant-current control module 53 is for generating drive singal according to TDS signal and dim signal.Driver module 54 is for output drive signal.
Further, in one embodiment of the invention, driving chip 50 also comprises: benchmark sets up module 55, comparator 56, logic module 57 and blanking module 58.Particularly, base modules 55 is for generation of the reference voltage required for internal circuit.Comparator 56 can be a peak current detection comparator, and whether comparator 56 reaches predetermined target value for detection of primary electric current, if reached, then closes to turn off and closes pipe.Logic module 57 is for the treatment of start signal, and the correlations such as the sequential of shutdown signal and various guard signal, finally output to driver module 54, logic module 57 is for the open and close of control switch pipe.Hundreds of nanosecond after switching tube is opened, the moment of switching tube conducting, the electric current flowing through switching tube has moment very large surge current, namely burr, a spike.In order to avoid this spike that chip samples by mistake, in the hundreds of nanoseconds after switching tube is opened, do not sample, the effect of blanking module 58 that therefore Here it is.
Particularly, in one embodiment of the invention, the port definition of driving chip 50 is as follows: DIM: input terminal, external energy-storage units 40, and energy-storage units 40 voltage determines output current; VDD: input terminal, chip power feeder ear; VSS: chip ground; ISE: input terminal, for detection of primary electric current, controls main switch and closes; OUT: lead-out terminal, main switch control end; VSE: input terminal, feedback voltage monitoring side.Wherein, this conventional elementary current constant control topology, works in discontinuous mode, the electric current of output and the primary and secondary turn ratio, is directly proportional to the ON time of peak primary currents and secondary diode than the product of TDS/T.Driving chip 50 switching tube shutdown signal obtains the beginning of time delayed signal as TDS signal, judges TDS signal ended by detecting VSE voltage knee, is fixed value further by inner constant flow module control TDS/T.So, become positive correlation with peak primary currents with the product of TDS/T by control DIM pin magnitude of voltage, just can realize the continuously adjustabe of regulation output electric current, and then realize light modulation.The embodiment of the present invention is mainly in the innovation of dim signal DIM pin voltage formation method, without the need to additional dim signal, charge to plug-in energy-storage units 40 by chip internal current source, the process of establishing of voltage on energy-storage units 40, namely dim signal is selected to obtain process, and without the need to increasing dimmer switch, only need twice switch motion, just can be transferred to the brightness needed arbitrarily.
Further, in one embodiment of the invention, with reference to Fig. 5, dim signal processing module 52 comprises: on off state monitoring submodule 521 and dim signal generate submodule 522.Wherein, on off state monitoring submodule 521 is for the closure state of sense switch, and dim signal generates submodule 522 for generating dim signal according to the voltage of energy-storage units 40 and the closure state of switch.
Further, in one embodiment of the invention, with reference to shown in Fig. 5, on off state monitoring submodule 521 specifically comprises: the first resistance R1 is to the 3rd resistance R3, hysteresis comparator 101, delayer 102 and comparator 103.
Particularly, the first resistance R1 is connected between VDD-to-VSS to the 3rd resistance R3.Wherein, between first resistance R1 and the second resistance R2, there is first node a, between second resistance R2 and the 3rd resistance R3, there is Section Point b, the first input end V12 of hysteresis comparator 101 is connected with first node a, second input is connected with the first reference voltage V ref1,3rd input is connected with the second reference voltage V ref2, hysteresis comparator 101 generates enable signal EN when the voltage of first node a is greater than the first reference voltage V ref1, generates disable signal when the voltage of Section Point b is less than the second reference voltage V ref2.Delayer 102 generates time delayed signal EN_delay according to enable signal EN.The first input end V23 of comparator 103 is connected with Section Point b, and the second input is connected with the 3rd reference voltage V ref3, and comparator 103 exports reset signal EN_DIM when the voltage of Section Point b is less than the 3rd reference voltage V ref3.
Further, in one embodiment of the invention, with reference to shown in Fig. 5, dim signal generates submodule 522 and specifically comprises: current source 5221, transmission gate TG, selector MUX, amplifier OPA and controller 5222.
Wherein, current source 5221 is connected with energy-storage units (as the energy-storage units 40 in Fig. 1 and the electric capacity C4 in Fig. 3).One end of transmission gate TG is connected with energy-storage units 40, and the control end of transmission gate TG is connected with enable signal EN.The first input end A of selector MUX is connected with energy-storage units 40, and the second input B is connected with the other end of transmission gate TG.The input of amplifier OPA is connected with the MUX output of selector.Controller 5222 generates control signal according to the reverse signal ENR of reset signal EN_DIM, time delayed signal EN_delay and enable signal EN, and control signal is used for controlled selector MUX.
Further, in one embodiment of the invention, dim signal generation submodule 522 also comprises: bleeder 5223.Wherein, bleeder 5223 is released to energy-storage units 40 according to reset signal EN_DIM.
Further, in one embodiment of the invention, bleeder 5223 specifically comprises: the first switching tube Q1 and second switch pipe Q2.
Wherein, one end of the first switching tube Q1 is connected with energy-storage units 40, the other end ground connection of the first switching tube Q1, and the control end of the first switching tube Q1 is connected with reset signal EN_DIM.One end of second switch pipe Q2 is connected with second input of selector MUX, the other end ground connection of second switch pipe Q2, and the control end of second switch pipe Q2 is connected with reset signal EN_DIM.
Further, in one embodiment of the invention, controller 5222 comprises: the first rest-set flip-flop 201, inverter 202 and the 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, and the second input is connected with reset signal EN_DIM.The input of inverter 202 is connected with the output of the first rest-set flip-flop 201.The first input end of the second rest-set flip-flop 203 is connected with the reverse signal ENR of enable signal EN, and the second input is connected with the output of inverter 202.
Particularly, in one embodiment of the invention, with reference to shown in Fig. 5, the embodiment of the present invention carrys out indirect detection switching signal by detecting vdd voltage, when line voltage produces VDD by starting resistance to the voltage starting energy-storage units 40 charging, through the first resistance R1, voltage after second resistance R2 and the 3rd resistance R3 dividing potential drop and the second input of hysteresis comparator 101, second input of the 3rd input and comparator 103 compares, hysteresis comparator 101 is for judging whether chip is opened, second input and the 3rd input are as two inputs of hysteresis comparator 101, when voltage higher than the second input of the voltage of the first input end V12 of hysteresis comparator 101, enable signal EN turns over height by low, chip is opened, when voltage lower than the second input of the voltage of first input end V12, enable signal EN is turned over low by height, chip turns off.Comparator 103 turns off the interval time of action for sentencing, if the shut-in time is long, the complete power down of VDD, the first input end V23 of comparator 103 is lower than the second input, and reset signal EN_DIM turns over height by low, chip Reset Status.The second input supposing the 3rd input of the second input of hysteresis comparator 101, hysteresis comparator 101, comparator 103 is V1, V2, V3 to deserved vdd voltage value respectively, so, and V1>V2>V3.
Further, in one embodiment of the invention, with reference to shown in Fig. 6, when switch closes, VDD rises, enable signal EN by low turn over height after, the energy-storage units 40 that chip internal is connected to DIM by current source charges.After switch OFF, VDD power down, enable signal EN is turned over low by height, meanwhile, transmission gate TG opens, the DIM pin voltage of meeting storage chip shutdown moment on electric capacity C1.If open switch for the first time, the now output of the second rest-set flip-flop 203 is low, and selector MUX selects the signal of first input end A, the direct input amplifier OPA of DIM voltage, the output of amplifier OPA then can pass to constant-current control module 53, determines the size of output current.LED can brighten gradually, if arrive a certain brightness, just be need to obtain brightness, now turn off, LED is extinguished, Closing Switch again, as long as closed action is timely, chip vdd voltage is greater than V3, and reset signal EN_DIM is low, the now output of the second rest-set flip-flop 203 is high, selector MUX selects the signal of the second input B, DIM voltage when namely last chip turns off, this voltage input amplifier OPA, the output of amplifier OPA then can pass to constant-current control module 53, and the size of output current maintains brightness during switch OFF last time.It should be noted that, the innovation of the embodiment of the present invention is the generation of dim signal and the realization of switch dimming, and describe so just detect emphasis to this dim signal and switch, constant current realizes part and constant-current control module 53 is not described in detail.Constant current scheme in embodiment of the present invention correlation technique is the same can realize constant current, but how by a switch, just can realize dimming function, and only need add an energy-storage units and tunable optical, cost performance is high, and scheme is simple, and cost is low.
According to the LED drive device of the embodiment of the present invention, by charging to energy-storage units after switch first time is closed, and according to the voltage of energy-storage units and feedback signal, drive current is controlled, thus the brightness of adjustment LED, and after switch second time is closed, if the time interval between switch first time shutoff and switch second time close meets pre-conditioned, then using the brightness of LED during switch first time shutoff as the operating brightness of LED, realize stepless dimming, and the brightness needed arbitrarily in maximum output can be transferred to, not only constant current can be realized, and by a switch, by adding an energy-storage units, just dimming function can be realized, simple and reliable, cost is low, improve the experience of user, be conducive to popularizing of LED.
Describe and can be understood in flow chart or in this any process otherwise described or method, represent and comprise one or more for realizing the module of the code of the executable instruction of the step of specific logical function or process, fragment or part, and the scope of the preferred embodiment of the present invention comprises other realization, wherein can not according to order that is shown or that discuss, comprise according to involved function by the mode while of basic or by contrary order, carry out n-back test, this should understand by embodiments of the invention person of ordinary skill in the field.
In flow charts represent or in this logic otherwise described and/or step, such as, the sequencing list of the executable instruction for realizing logic function can be considered to, may be embodied in any computer-readable medium, for instruction execution system, device or equipment (as computer based system, comprise the system of processor or other can from instruction execution system, device or equipment instruction fetch and perform the system of instruction) use, or to use in conjunction with these instruction execution systems, device or equipment.With regard to this specification, " computer-readable medium " can be anyly can to comprise, store, communicate, propagate or transmission procedure for instruction execution system, device or equipment or the device that uses in conjunction with these instruction execution systems, device or equipment.The example more specifically (non-exhaustive list) of computer-readable medium comprises following: the electrical connection section (electronic installation) with one or more wiring, portable computer diskette box (magnetic device), random access memory (RAM), read-only memory (ROM), erasablely edit read-only memory (EPROM or flash memory), fiber device, and portable optic disk read-only memory (CDROM).In addition, computer-readable medium can be even paper or other suitable media that can print described program thereon, because can such as by carrying out optical scanner to paper or other media, then carry out editing, decipher or carry out process with other suitable methods if desired and electronically obtain described program, be then stored in computer storage.
Should be appreciated that each several part of the present invention can realize with hardware, software, firmware or their combination.In the above-described embodiment, multiple step or method can with to store in memory and the software performed by suitable instruction execution system or firmware realize.Such as, if realized with hardware, the same in another embodiment, can realize by any one in following technology well known in the art or their combination: the discrete logic with the logic gates for realizing logic function to data-signal, there is the application-specific integrated circuit (ASIC) of suitable combinational logic gate circuit, programmable gate array (PGA), field programmable gate array (FPGA) etc.
Those skilled in the art are appreciated that realizing all or part of step that above-described embodiment method carries is that the hardware that can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, this program perform time, step comprising embodiment of the method one or a combination set of.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing module, also can be that the independent physics of unit exists, also can be integrated in a module by two or more unit.Above-mentioned integrated module both can adopt the form of hardware to realize, and the form of software function module also can be adopted to realize.If described integrated module using the form of software function module realize and as independently production marketing or use time, also can be stored in a computer read/write memory medium.
The above-mentioned storage medium mentioned can be read-only memory, disk or CD etc.
In the description of this specification, specific features, structure, material or feature that the description of reference term " embodiment ", " some embodiments ", " example ", " concrete example " or " some examples " etc. means to describe in conjunction with this embodiment or example are contained at least one embodiment of the present invention or example.In this manual, identical embodiment or example are not necessarily referred to the schematic representation of above-mentioned term.And the specific features of description, structure, material or feature can combine in an appropriate manner in any one or more embodiment or example.
Although illustrate and describe embodiments of the invention above, be understandable that, above-described embodiment is exemplary, can not be interpreted as limitation of the present invention, those of ordinary skill in the art can change above-described embodiment within the scope of the invention when not departing from principle of the present invention and aim, revising, replacing and modification.