Background technology
At present, in Switching Power Supply, because the scope of AC-input voltage changes between 85VAC~265VAC usually, and there be certain delay in control system, so that under different input voltages, peak power output has very large deviation, is unfavorable for accurate control.
With the inverse-excitation type switch power-supply is example; Fig. 1 shows the structure of existing inverse-excitation type control switching peak power output circuit, comprising: oscillator 11, logic controller 12, drive circuit 13, comparator 14, transformer T1, the first switching tube HN1, diode D1, capacitor C 1, resistance R 1 and resistance R 2;
The output of oscillator 11 is connected with the input of logic controller 12; The output of logic controller 12 is connected with the input of drive circuit 13; The output of drive circuit 13 is connected with the control end of the first switching tube HN1; The output of the first switching tube HN1 is through resistance R 2 ground connection; The first switching tube HN1 is connected with the positive input of comparator 14 with the link of resistance R 2, and the reverse input end of comparator 14 is connected with outside reference unit 15, and the output of comparator 14 is connected with the control end of logic controller 12; The input of the first switching tube HN1 is connected with the end of the same name of transformer T1 primary coil Np, and the different name end of transformer T1 primary coil Np is the input V of switching power circuit
InBe connected with external ac power source; The different name end ground connection of transformer T1 secondary coil Ns; The end of the same name of transformer T1 secondary coil Ns is connected with the anode of diode D1; The negative electrode of diode D1 is through capacitor C 1 ground connection, and resistance R 1 is parallelly connected with capacitor C 1, and the end that resistance R 1 is connected with diode D1 is the output V of switching power circuit
OutPower output.
Oscillator 11 is through logic controller 12 and the drive circuit 13 controls first switching tube HN1 conducting; When the first switching tube HN1 conducting; Electric current on the transformer T1 primary coil Np is linear to rise, the inductance power storage that primary coil Np and magnetic core form, and this moment, power output leaned on capacitor C 1 to keep.
When the voltage of resistance R 2 ends rose to reference voltage V ref, comparator 14 upsets were turn-offed with the drive circuit 13 controls first switching tube HN1 through logic controller 12.Have no progeny when the first switching tube HN1 closes, the electric current on the secondary coil Ns is linear to descend, and through releasing energy to output loading R1 behind diode D1, capacitor C 1 rectifying and wave-filtering, guarantees power demand.
The formula of power output is:
wherein Lp be the primary inductance value that transformer T1 primary coil and magnetic core form; Ip is the current peak on the primary inductance; F is a switching frequency, and Ip=Vref/R2.
Because existing switching power circuit exists transmission delay and switching delay, therefore when the magnitude of voltage on the resistance R 2 reached Vref, the first switching tube HN1 also needed could turn-off after a period of time, makes Ip be slightly larger than preset peak current, and power output P
OutBecome square proportional with Ip, so power output P
OutChanging can be bigger.
For the compensation of inverse-excitation type switch power-supply, the first adopts input voltage V at present
InThe sampling compensation is promptly according to V
InVariation adjust the electric current that flows into resistance R 2 or the magnitude of voltage of adjustment Vref, postpone influence that Ip is produced to eliminate.But this method can increase the pin of control chip, also can lower efficiency simultaneously.
It two is that the size of utilizing feedback loop to control the primary inductance peak current compensates.But the ratio of gains of the method loop is less, still can cause design load and actual value to have certain deviation, and the sampling time point be not easy control, can produce deviation equally.
Summary of the invention
The purpose of the embodiment of the invention is to provide a kind of Switching Power Supply power compensating circuit, is intended to solve that existing power compensating circuit pin is many, efficient is low, the problem of compensation effect difference.
The embodiment of the invention is achieved in that a kind of Switching Power Supply power compensating circuit, and said power compensating circuit is connected with the FEEDBACK CONTROL end with the sampling output of outside reference unit and switching power circuit, and said power compensating circuit comprises:
The sampling logical block, the input of said sampling logical block is connected with the sampling output of said switching power circuit, is used for generating sampling control signal according to logic control signal;
Sample holding unit; The control end of said sample holding unit is connected with the output of said sampling logical block; The input of said sample holding unit is connected with the FEEDBACK CONTROL end of said switching power circuit; Being used for said sampling control signal is that clock carries out sampling processing to the sampled voltage that is generated by said switching power circuit primary inductance peak current, output sampling processing signal;
The amplifier unit; The positive input of said amplifier unit is connected with said reference cell; The reverse input end of said amplifier unit is connected with the output of said sample holding unit; Be used for that the reference signal of said sampling processing signal and the generation of said reference cell is carried out error and amplify the output error amplifying signal;
Energy-storage units, the input of said energy-storage units is connected with the output of said amplifier unit, and the output head grounding of said energy-storage units is used for carrying out charge or discharge according to said error amplification signal, to regulate the voltage of said error amplification signal;
Comparator; The positive input of said comparator is connected with the input of said energy-storage units; The reverse input end of said comparator is connected with the sampling output of said switching power circuit; Be used for the said error amplification signal after said sampled voltage and the adjusting is compared, the output compensating control signal is with compensation primary inductance peak current and then compensation power;
The clamper unit, the input of said clamper unit is connected with the positive input of said comparator, is used for said error amplification signal is carried out clamper.
Another purpose of the embodiment of the invention is to provide a kind of power supply chip, and the Switching Power Supply power compensating circuit in the said power supply chip is connected with the FEEDBACK CONTROL end with the sampling output of reference cell and switching power circuit, and said power compensating circuit comprises:
The sampling logical block, the input of said sampling logical block is connected with the sampling output of said switching power circuit, is used for generating sampling control signal according to logic control signal;
Sample holding unit; The control end of said sample holding unit is connected with the output of said sampling logical block; The input of said sample holding unit is connected with the FEEDBACK CONTROL end of said switching power circuit; Being used for said sampling control signal is that clock carries out sampling processing to the sampled voltage that is generated by said switching power circuit primary inductance peak current, output sampling processing signal;
The amplifier unit; The positive input of said amplifier unit is connected with said reference cell; The reverse input end of said amplifier unit is connected with the output of said sample holding unit; Be used for that the reference signal of said sampling processing signal and the generation of said reference cell is carried out error and amplify the output error amplifying signal;
Energy-storage units, the input of said energy-storage units is connected with the output of said amplifier unit, and the output head grounding of said energy-storage units is used for carrying out charge or discharge according to said error amplification signal, to regulate the voltage of said error amplification signal;
Comparator; The positive input of said comparator is connected with the input of said energy-storage units; The reverse input end of said comparator is connected with the sampling output of said switching power circuit; Be used for the said error amplification signal after said sampled voltage and the adjusting is compared, the output compensating control signal is with compensation primary inductance peak current and then compensation power;
The clamper unit, the input of said clamper unit is connected with the positive input of said comparator, is used for said error amplification signal is carried out clamper.
The embodiment of the invention is through the peak current on the feedback loop control primary inductance Lp; And increase loop gain; Accurate optimization the sampling time point; Make that design load and the actual value deviation of primary inductance peak current Ip are very little, on the basis of not extra increase chip pin and reduction system effectiveness, compensated power output.
Embodiment
In order to make the object of the invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with accompanying drawing and embodiment.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
The embodiment of the invention is through the peak current on the feedback loop control primary inductance Lp, and increases loop gain, accurate optimization the sampling time point, on not extra increase chip pin and the basis that reduces system effectiveness, compensated power output.
Fig. 2 illustrates the structure of the Switching Power Supply power compensating circuit that the embodiment of the invention provides, and for the ease of explanation, only shows the part relevant with the present invention.
Switching power circuit 1 comprises: oscillator 11, logic controller 12, drive circuit 13, transformer T1, the first switching tube HN1, diode D1, capacitor C 1, resistance R 1 and resistance R 2;
The output of oscillator 11 is connected with the input of logic controller 12; The control end of logic controller 12 is the FEEDBACK CONTROL end of switching power circuit; The output of logic controller 12 is connected with the input of drive circuit 13; The output of drive circuit 13 is connected with the control end of the first switching tube HN1, and the output of the first switching tube HN1 is through resistance R 2 ground connection, and the link of the first switching tube HN1 and resistance R 2 is the sampling output; The input of the first switching tube HN1 is connected with the end of the same name of transformer T1 primary coil Np, and the different name end of transformer T1 primary coil Np is the input V of switching power circuit
InBe connected with external ac power source; The different name end ground connection of transformer T1 secondary coil Ns; The end of the same name of transformer T1 secondary coil Ns is connected with the anode of diode D1; The negative electrode of diode D1 is through capacitor C 1 ground connection, and resistance R 1 is parallelly connected with capacitor C 1, and the end that resistance R 1 is connected with diode D1 is the output V of switching power circuit
OutPower output.
The Switching Power Supply power compensating circuit 2 that provides as one embodiment of the invention is connected with the FEEDBACK CONTROL end with the sampling output of outside reference unit 15 and switching power circuit 1; Can be integrated in the various power supply chips, this Switching Power Supply power compensating circuit 2 comprises:
Sampling logical block 21, the input of this sampling logical block 21 is connected with the sampling output of switching power circuit 1, is used for generating sampling control signal SAM_CLK according to logic control signal Ton;
Sample holding unit 22; The control end of this sample holding unit 22 is connected with the output of sampling logical block 21; The input of sample holding unit 22 is connected with the FEEDBACK CONTROL end of switching power circuit 1; Being used for sampling control signal SAM_CLK is that clock carries out sampling processing to the sampled voltage CS that is generated by switching power circuit 1 primary inductance peak current Ip, output sampling processing signal CS_SAM;
Amplifier unit 23, the positive input of this amplifier unit 23 is connected with outside reference unit 15, and the reverse input end of amplifier unit 23 is connected with the output of sample holding unit 22, is used for the reference signal V with sampling processing signal CS_SAM and reference cell 15 generations
REFCarry out error and amplify output error amplifying signal CS_COMP;
Energy-storage units 24, the input of this energy-storage units 24 is connected with the output of amplifier unit 23, and the output head grounding of energy-storage units 24 is used for carrying out charge or discharge according to error amplification signal CS_COMP, with the voltage of regulating error amplifying signal CS_COMP;
As one embodiment of the present invention, energy-storage units 24 can be capacitor C 2, and the two ends of capacitor C 2 are respectively the input and the output of energy-storage units 24.
Certainly, when integrated level being had relatively high expectations, energy-storage units 24 also can adopt metal-oxide-semiconductor to realize again.
As one embodiment of the present invention; Amplifier unit 23 can directly adopt an integral amplifier (PID) or other to have the unit of same function to realize with energy-storage units 24; The positive input of this integral amplifier is the positive input of amplifier unit 23; The reverse input end of integral amplifier is the reverse input end of amplifier unit 23, and the output of integral amplifier is the output of energy-storage units 24.
Comparator 25; The positive input of this comparator 25 is connected with the input of energy-storage units 24; The reverse input end of comparator 25 is connected with the sampling output of switching power circuit 1; Be used for the error amplification signal CS_COMP after sampled voltage CS and the adjusting is compared, the output compensating control signal is with compensation primary inductance peak current Ip and then compensation power;
Clamper unit 26, the input of this clamper unit 26 is connected with the positive input of comparator 25, is used for error amplification signal CS_COMP is carried out clamper.
In embodiments of the present invention, be sampling processing signal CS_SAM to the sampled voltage CS sampling processing that generates by primary inductance peak current Ip, and with sampling processing signal CS_SAM and preset reference signal V
REFCompare this reference signal V
REFThe power calculation that can obtain through expectation is also generated by outside reference unit 15, through sampling processing signal CS_SAM and reference signal V
REFThe magnitude of voltage of error amplified result regulating error amplifying signal CS_COMP; And because the variation of error amplification signal CS_COMP magnitude of voltage can influence the flip-flop transition of comparator 25; And then influence the hop period of logic control signal Ton, and then regulate the bound-time of cut-off signals NG, to control the ON time of the first switching tube HN1; The final adjusting primary inductance peak current Ip that realizes promptly realizes the compensation to power.
The embodiment of the invention is through the peak current on the feedback loop control primary inductance Lp; And increase loop gain; Accurate optimization the sampling time point; Make that design load and the actual value deviation of primary inductance peak current Ip are very little, on the basis of not extra increase chip pin and reduction system effectiveness, compensated power output.
Further the embodiment of the invention is made an explanation below in conjunction with Fig. 3 and Fig. 4.
In Fig. 3, in first switch periods, logic control signal Ton at first uprises, and the first switching tube HN1 opens, and primary inductance electric current I p is linear to rise, and sampled voltage CS is also linear to rise.Because the clamping action of clamped circuit 26, there is a voltage initial value CS_COMP1 in the positive input of comparator 25.When the magnitude of voltage of sampled voltage CS reaches voltage initial value CS_COMP1; Logic control signal Ton signal is dragged down; But because the delay of Td time is arranged between the cut-off signals NG of the logic control signal Ton and the first switching tube HN1; So sampled voltage CS can continue to rise, and is dragged down up to cut-off signals NG.This magnitude of voltage constantly of sample holding unit 22 samplings, and sampling processing is signal CS_SAM1.
Voltage difference between CS_SAM1 and the CS_COMP1 is formulated as:
Wherein R2 is the resistance of resistance R 2, V
InBe the magnitude of voltage of input voltage, Lp is the primary inductance value that transformer T1 primary coil and magnetic core form, and Td is the time of delay of logic control signal Ton and cut-off signals NG.
As input voltage V
InDuring variation, Δ V can change, and the variation of Δ V has directly reflected the deviation of primary inductance peak current Ip and set point.Change the influence that produces in order to eliminate input voltage, with the sampling processing signal CS_SAM1 and the preset reference voltage V of first switch periods
REFCompare.When sampling processing signal CS_SAM1 greater than reference voltage V
REFThe time, 2 discharges of the 23 pairs of capacitor C in amplifier unit, the value of CS_COMP will diminish, the signal waveform of CS_COMP2 as shown in Figure 3.
In second switch periods, when sampled voltage CS rose to the value of CS_COMP1, logic control signal Ton was dragged down, and through the delay of Td, cut-off signals NG is dragged down, and record signal at this moment is CS_SAM2, and with CS_SAM2 and reference voltage V
REFRelatively.
If the value of CS_SAM2 is greater than the value of VREF; Then continue the action of second switch periods of repetition, equate with reference voltage, regulate through the negative feedback of several switch periods up to the sampling processing signal the 3rd switch periods; When the first switching tube HN1 turn-offs, sampled voltage CS and internal reference voltage V
REFValue reach consistent, and, sampled voltage CS and preset magnitude of voltage are consistent owing to added the amplifier unit 23 of a high-gain in the loop, therefore mean that primary inductance electric current I p compensates to design load.
If the magnitude of voltage of the sampling processing signal CS_SAM1 of first switch periods is less than reference voltage V
REF, then through 2 chargings of the 23 pairs of capacitor C in amplifier unit, increase the value of CS_COMP1, to prolong the ON time of the first switching tube HN1, regulate sampled voltage CS and increase, and in second switch periods, continue relatively sampling processing signal CS_SAM1 and reference voltage V
REF, if the magnitude of voltage of CS_SAM is still less than V
REF, continue adjustment sampled voltage CS so and increase, up to several all after date CS_SAM1 and V
REFEquate that sampled voltage CS and preset magnitude of voltage are consistent, and p compensates to design load to the primary inductance electric current I, it is stable that system reaches.
In Fig. 4; Ton_D is the trailing edge inhibit signal of logic control signal Ton; Be t1 time of delay, and the time that the sampling control signal SAM_CLK of sample holding unit 21 outputs keeps high level is t2, and sampling control signal SAM_CLK is consistent with the trailing edge moment corresponding of cut-off signals NG; Therefore can guarantee that each sampling is accurate on the turn-off time point, and the time that guarantees t1 is less than Td time of delay of the trailing edge of the trailing edge of logic control signal Ton and cut-off signals NG.
Because the trailing edge according to the trailing edge of signal TON_D and cut-off signals NG produces sampling control signal SAM_CLK, and control produces delay and is comparatively mature technique of present technique field, repeats no more here.
Another purpose of the embodiment of the invention is to provide a kind of power supply chip, and the Switching Power Supply power compensating circuit in the said power supply chip is connected with the FEEDBACK CONTROL end with the sampling output of reference cell and switching power circuit, and said power compensating circuit comprises:
The sampling logical block, the input of sampling logical block is connected with the sampling output of switching power circuit, is used for generating sampling control signal according to logic control signal;
Sample holding unit; The control end of sample holding unit is connected with the output of sampling logical block; The input of sample holding unit is connected with the FEEDBACK CONTROL end of switching power circuit; Being used for the sampling control signal is that clock carries out sampling processing to the sampled voltage that is generated by switching power circuit primary inductance peak current, output sampling processing signal;
The amplifier unit; The positive input of amplifier unit is connected with reference cell; The reverse input end of amplifier unit is connected with the output of sample holding unit, is used for that the reference signal of sampling processing signal and reference cell generation is carried out error and amplifies the output error amplifying signal;
Energy-storage units, the input of energy-storage units is connected with the output of amplifier unit, and the output head grounding of energy-storage units is used for carrying out charge or discharge according to error amplification signal, with the voltage of regulating error amplifying signal;
As one embodiment of the invention, this energy-storage units is a capacitor C 2, and the two ends of capacitor C 2 are respectively the input and the output of energy-storage units.
Amplifier unit and energy-storage units can directly adopt an integral amplifier (PID) or other to have the unit of same function to realize; The positive input of this integral amplifier is the positive input of amplifier unit; The reverse input end of integral amplifier is the reverse input end of amplifier unit, and the output of integral amplifier is the output of energy-storage units.
Comparator; The positive input of comparator is connected with the input of energy-storage units; The reverse input end of comparator is connected with the sampling output of switching power circuit; Be used for the error amplification signal after sampled voltage and the adjusting is compared, the output compensating control signal is with compensation primary inductance peak current and then compensation power;
The clamper unit, the input of clamper unit is connected with the positive input of comparator, is used for error amplification signal is carried out clamper.
The embodiment of the invention is through the peak current on the feedback loop control primary inductance Lp; And increase loop gain; Accurate optimization the sampling time point; Make that design load and the actual value deviation of primary inductance peak current Ip are very little, on the basis of not extra increase chip pin and reduction system effectiveness, compensated power output.
The above is merely preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of within spirit of the present invention and principle, being done, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.