Utility model content
In view of this, the purpose of this utility model is to provide one kind convenient for integrated, and the Switching Power Supply and LED that number of pins is few
Driving circuit, to solve technical problem of the existing technology.
To achieve the above object, the utility model provides a kind of Switching Power Supply, including main power tube and control circuit, institute
It states control circuit to connect with the control terminal of the main power tube, to control the on off state of the main power tube;The control electricity
Road includes voltage detection module, and the input terminal of the voltage detection module is connect with the first end of the main power tube, the electricity
The duty ratio that pressure detection module controls signal according to the voltage and main power tube of the main power tube first end obtains described in characterization
The first voltage signal of switch power source output voltage.
Optionally, the control circuit further includes turn-on time control module, and the turn-on time control module receives electricity
The second voltage signal of flow reference signal and characterization inductive current, and generate benchmark Regulate signal, root after being compared to the two
The turn-on time that the main power tube is adjusted according to the benchmark Regulate signal, to control the shutdown moment of the main power tube.
Optionally, the turn-on time control module includes that first comparator, reference generating circuit and turn-on time generate
Two input terminals of circuit, the first comparator receive the current reference signal and the second voltage signal, institute respectively
The benchmark Regulate signal that reference generating circuit receives the first comparator output is stated, benchmark is raised according to benchmark Regulate signal
Or benchmark is lowered, and output reference signal, the turn-on time generation circuit receive the reference signal and ramp signal, output
Characterize the cut-off signals of the turn-on time.
Optionally, the control circuit further includes zero passage detection module, and the zero passage detection module receives characterization inductance electricity
The second voltage signal of stream described in the second voltage characterization when circuit current zero passage, then exports described to control
The open signal that main power tube is opened.
Optionally, the control circuit further includes harmonic distortion compensating module, and the harmonic distortion compensating module includes
Compensating electric capacity and compensating current element, the compensating electric capacity are connect with the reference generating circuit, and the compensating current element is connected to
The common end of compensating electric capacity and reference generating circuit.
Optionally, the Switching Power Supply further includes power supply module, and the power supply module includes first switch pipe and second
The first end of comparison circuit, the first switch pipe is connect with the first end of the main power tube, and the of the first switch pipe
Two ends are connect with the first input end of second comparison circuit, the second input terminal receiving voltage reference of second comparator
Second input terminal of signal, the second comparator is also connect with power supply capacitor.
Optionally, the first switch pipe is open-minded, is charged to the power supply capacitor by the electric current of input terminal, when the confession
Voltage on capacitance reaches the voltage reference signal, then the output end overturning of second comparator.
Optionally, the first switch pipe is open-minded, is charged to the power supply capacitor by the electric current of input terminal, by one section
Time, the main power tube is open-minded, the first switch pipe shutdown.
Optionally, during the first switch and main power tube shutdown, when zero passage detection module detect it is described
After inductive current zero passage, the first switch pipe is open-minded, charges to the power supply capacitor, when the voltage in the power supply capacitor reaches
To the voltage reference signal, then the output end overturning of second comparator, the main power tube are open-minded.
Optionally, the Switching Power Supply is integrated circuit, and the first end of main power tube is provided with drain terminal pin, main power tube
Second end be provided with current sample pin, the first end of second comparator is provided with startup pin, and by power supply capacitor
It is placed in outside piece.
Optionally, the common end of the compensating electric capacity and the reference generating circuit is provided with THD pins, the compensation electricity
It is placed in outside piece.
Optionally, the Switching Power Supply further includes continued flow tube, one end of the continued flow tube and the first of the main power tube
End or second end connection, the other end and the load of the continued flow tube connect;It is connected with sampling resistor in the second end of main power tube,
The other end of the sampling resistor is grounded.
The utility model also provides a kind of LED drive circuit, including any one of the above Switching Power Supply, and input power is through whole
Stream bridge powers to the Switching Power Supply, power conversion is carried out through the Switching Power Supply, to power to LED load.
Compared with prior art, the technical solution of the utility model has the following advantages:The utility model passes through to main work(
The first end of rate switching tube is sampled, corresponding defeated to obtain using the relationship of input voltage and duty ratio and output voltage
Go out voltage, and can accordingly into line output voltage whether abnormal judgement, save output voltage as integrated circuit and sample pin;
Meanwhile the utility model generates reference signal using reference generating circuit, it is not necessary that capacitance is arranged at this, is conducive to this practicality
Novel is integrated.
Specific implementation mode
The preferred embodiment of the utility model is described in detail below in conjunction with attached drawing, but the utility model is not merely
It is limited to these embodiments.The utility model covers any replacement made in the spirit and scope of the utility model, modification, equivalent
Method and scheme.
In order to make the public have thorough understanding to the utility model, in following the preferred embodiment in the utility model specifically
Concrete details is illustrated, and description without these details can also understand that this practicality is new completely for a person skilled in the art
Type.
The utility model is more specifically described by way of example with reference to attached drawing in the following passage.It should be noted that attached drawing
Be all made of more simplified form and use non-accurate ratio, only to it is convenient, lucidly aid in illustrating the utility model
The purpose of embodiment.
As shown in Figure 1, illustrating the circuit structure of the utility model Switching Power Supply embodiment one, it is based on Buck topology knots
Structure, and on the basis of Switching Power Supply, rectifier bridge is set in its front end, using LED as load, as LED drive circuit.It is described
Switching Power Supply includes main power tube M0 and control circuit, and the control circuit and the control terminal of the main power tube M0 connect
It connects, to control the on off state of the main power tube M0;The control circuit includes voltage detection module, the voltage detecting mould
The input terminal of block is connect with the first end of the main power tube M0, and the voltage detection module is according to the main power tube M0 first
The voltage at end obtains characterizing the first voltage signal V1 of the switch power source output voltage, is sentenced according to the first voltage signal V1
Whether disconnected output voltage is abnormal.Whether abnormal judgement can be judged by voltage detection module, can also be by abnormality processing
Module judges that the exception includes overvoltage, under-voltage etc., and when being abnormal, the exception processing module can control switch electricity
Source enters " hiccup " pattern (hiccup mode) or restarts.It is sampled, is utilized by the first end to master power switch pipe M0
The relationship of input voltage and duty ratio and output voltage to obtain corresponding output voltage, and can be accordingly into line output voltage
No abnormal judgement, the Switching Power Supply of the utility model are used as integrated circuit, can save output voltage sampling pin.
The control circuit further includes turn-on time control module, and the turn-on time control module receives current reference letter
Number and characterization inductive current second voltage signal V2, and benchmark Regulate signal is generated after being compared to the two, according to described
Benchmark Regulate signal adjusts the turn-on time of the main power tube, to control the shutdown moment of the main power tube, that is, when being connected
Between terminate, then send out characterization shutdown the moment cut-off signals Voff.And the of the obtained characterization inductive current of current sample
When two voltage signal V2 reach current limliting reference, then current limliting module sends out current limit signal VL control main power tube M0 shutdowns.The pass
Two input terminals of break signal Voff and current limit signal VL inputs one or door, are somebody's turn to do or the output end of door connects rest-set flip-flop
End R is reset, the output end Q of the rest-set flip-flop is connect with the control terminal of main power tube M0.
The turn-on time control module includes that first comparator comp1, reference generating circuit and turn-on time generate electricity
Two input terminals on road, the first comparator comp1 receive the current reference signal and the second voltage signal respectively
V2, the reference generating circuit receive the benchmark Regulate signal of the first comparator output, are gone up according to benchmark Regulate signal
It adjusts benchmark or lowers benchmark, and output reference signal, the turn-on time generation circuit receives the reference signal and slope letter
Number, output characterizes the cut-off signals Voff of the turn-on time.
In the utility model, opening for main power tube M0 is mainly controlled by zero passage detection module, i.e., the described control circuit is also
Including zero passage detection module, the zero passage detection module receives the second voltage signal V2 of characterization inductive current, when described second
When voltage signal V2 characterizes the circuit current zero passage, then export to control the open signal that the main power tube M0 is opened
Von。
The Switching Power Supply further includes power supply module, and the power supply module includes that first switch pipe M1 and the second comparison are electric
The first end of road comp2, the first switch pipe M1 are connect with the first end of the main power tube M0, the first switch pipe M1
Second end connect with the first input end of the second comparison circuit comp2, the second comparator comp2 second input
End receives voltage reference signal Vref, and the second input terminal of the second comparator comp2 is also connect with power supply capacitor C2.Described
Diode D1, anode and the first switch pipe M1 of diode D1 are connected between the second end and power supply capacitor C2 of one switching tube M1
Second end connection, cathode connect with one end of power supply capacitor C2.
When Switching Power Supply starts, the first switch pipe M1 is open-minded, by the electric current of input terminal to the power supply capacitor
C2 charges, when the voltage on the power supply capacitor C2 reaches the voltage reference signal Vref, then the second comparator comp2
Output end overturning, disconnected with controlling the first switch pipe M1.In work after start up, then it is not necessarily to power
Voltage on capacitance C2 is charged to voltage reference signal Vref, that is to say, that does not need to for the control of first switch pipe M1
Two comparators control.For example, it is also possible in the following way:The first switch pipe is open-minded, passes through the electric current pair of input terminal
The power supply capacitor charging, after a period of time, the main power tube is open-minded, the first switch pipe shutdown.Here " one section
Time ", either the set time, can also be time regulatable.
During the first switch pipe M1 and main power tube shutdown, when zero passage detection module detects the inductance
After current over-zero, then export to control the open signal that the first switch pipe M1 is opened.When power supply capacitor is charged to the electricity
Pressure reference signal Vref, the overturning of the second comparator output terminal signal, the open signal that output main power tube M0 is opened.I.e. by second
The signal of the output end of comparator comp2 negates and inputs one and door, the output with door respectively with the open signal Von
End is connect with the set end S of the rest-set flip-flop." after the inductive current zero passage " then refers under the operating mode of CCM
When the inductive current zero passage, the first switch pipe is opened;Under the operating mode of DCM, then the inductive current is referred to
After zero passage, before main power tube opens, the first switch pipe is opened.
The control circuit further includes harmonic distortion compensating module, and the harmonic distortion compensating module includes compensating electric capacity
C1 and compensating current element Ic, the compensating electric capacity C1 are connect with the reference generating circuit, and the compensating current element Ic is connected to
The common end of compensating electric capacity C1 and reference generating circuit.
Switching Power Supply described in the utility model is fabricated to integrated circuit, then the function of the integrated circuit and pin are as follows:
The first end of main power tube M0 is provided with drain terminal pin DRAIN (for using the drain terminal of M0 as first end), main power tube M0's
Second end is provided with current sample pin ISP, and the first end of second comparator, which is provided with, starts pin Vcc, and will power supply
Capacitance is set C2 and is started on pin Vcc in outside piece, being connected to.The common end of the compensating electric capacity C1 and the reference generating circuit are set
THD pins are equipped with, the compensating electric capacity sets C1 in outside piece, being connected on THD pins, and major function compensates for harmonic distortion.With
On the explanation of pin is based only on the utility model circuit a kind of integrated circuit pin form, according to packing forms
And practical application, the quantity of pin and setting can change.
The Switching Power Supply further includes continued flow tube D0, and continued flow tube D0 is realized using diode in the present embodiment, but can also
Using metal-oxide-semiconductor, one end of the continued flow tube D0 is connect with the first end of the main power tube M0 or second end, the continued flow tube D0
The other end with load connect;It is connected with sampling resistor R, the other end of the sampling resistor R in the second end of main power tube M0
Ground connection.The Switching Power Supply further includes inductance L, and for inductance L according to the difference of topological structure, link position is different.It is described
Continued flow tube D0, inductance L and sampling resistor R may be contained within outside piece.
As shown in Fig. 2, illustrating the circuit structure of the utility model Switching Power Supply embodiment two, embodiment one and embodiment
Two are based on Buck topological structures, and the main distinction of the two is that the position of LED load, i.e. embodiment one connect LED load
In the high-pressure side of Switching Power Supply, the hot end of LED load is the hot end of input voltage, and the cold end of LED load connects
Connect the first end of main power tube M0;Implement second low-pressure end that LED load is connected to Switching Power Supply, the high potential of LED load
End is connected to the second end of main power tube M0, the cold end ground connection of LED load.In addition, Fig. 2 is mainly outer from integrated circuit
The difference of circuit structure and embodiment one is enclosed, the connection relation in integrated circuit is consistent with embodiment one.
As shown in figure 3, illustrating the circuit structure of the utility model Switching Power Supply embodiment three, embodiment three uses
Boost topological structures, Fig. 3 also mainly from integrated circuit peripheral circuit structure and embodiment one, two difference, integrated circuit
Interior connection relation is also almost the same.It can be seen that being altered or varied for topological structure is not constituted to the utility model
Limitation, various topological structures may be used in the utility model Switching Power Supply, for example, BUCK circuits, BOOST circuits, BUCK-
BOOST circuits, etc., similarly, each topology can also specifically refer to embodiment according to the position of load there are two types of variation
One and two.
Although embodiment is separately illustrated and is illustrated above, it is related to the common technology in part, in ordinary skill
Personnel apparently, can be replaced and integrate between the embodiments, be related to one of embodiment and the content recorded is not known, then
It can refer to another embodiment on the books.
Embodiments described above does not constitute the restriction to the technical solution protection domain.It is any in above-mentioned implementation
Modifications, equivalent substitutions and improvements etc., should be included in the protection model of the technical solution made by within the spirit and principle of mode
Within enclosing.