Summary of the invention
For the existing above-mentioned technological deficiency of prior art, the invention provides a kind of control method and controller thereof of AC-DC converter, can obtain the output voltage of relatively accurate feedback quantity with control change device.
A control method for AC-DC converter, comprises the steps:
(1) the auxiliary winding voltage signal V of collection AC-DC convertersense, and obtain the feedback quantity V in a cycle on AC-DC converterfB[i-1];
(2) to described feedback quantity VfBafter [i-1] digital-to-analogue conversion, obtainfeedback voltage V 1, and will after fixed voltage value of the amplitude lifting offeedback voltage V 1, obtain comparative voltage V2;
(3) by described auxiliary winding voltage signal Vsensecompare withfeedback voltage V 1 and comparative voltage V2 respectively, obtain respectively two comparison signal Vs1and Vs2;
(4) calculate two comparison signal Vs1and Vs2trailing edge time difference Δ t, and by trailing edge time difference Δ t and fiducial time poor Δ trefcompare, determine regulated quantity Δ V according to both differencesfB, and then utilize regulated quantity Δ V by feedback compensation algorithmfBto feedback quantity VfB[i-1] regulates compensation, in the hope of the feedback quantity V of AC-DC converter current periodfB[i];
(5) according to described feedback quantity VfB[i] constructs pwm signal, to control the break-make of switching tube in AC-DC converter.
Described feedback compensation algorithm is based on following formula:
As Δ t > Δ treftime: VfB[i]=VfB[i-1]-Δ VfB
As Δ t=Δ treftime: VfB[i]=VfB[i-1]
As Δ t < Δ treftime: VfB[i]=VfB[i-1]+Δ VfBwherein: differ from Δ t fiducial timereffor default set-point; Δ t and Δ trefdiffer larger, Δ VfBalso larger.
A controller for AC-DC converter, comprises former limit sample circuit and digital compensator;
Described digital compensator is used for according to the feedback quantity V of the AC-DC converter current period of former limit sample circuit outputfB[i] constructs pwm signal, to control the break-make of switching tube in AC-DC converter;
Described former limit sample circuit comprises a waveform real-time analysis module, a single-input double-output digital to analog converter and two comparators;
The feedback quantity V in a cycle on the AC-DC converter of described single-input double-output digital to analog converter reception waveform real-time analysis module outputfB[i-1], to feedback quantity VfBafter [i-1] digital-to-analogue conversion, obtainfeedback voltage V 1 output, will after fixed voltage value of the amplitude lifting offeedback voltage V 1, obtain comparative voltage V2 output;
Two comparators are respectively by the auxiliary winding voltage signal V offeedback voltage V 1 and comparative voltage V2 and AC-DC convertersensecompare, obtain respectively two comparison signal Vs1and Vs2;
Described waveform real-time analysis module is used for calculating two comparison signal Vs1and Vs2trailing edge time difference Δ t, and by trailing edge time difference Δ t and fiducial time poor Δ trefcompare, determine regulated quantity Δ V according to both differencesfB, and then utilize regulated quantity Δ V by feedback compensation algorithmfBto feedback quantity VfB[i-1] regulates compensation, in the hope of the feedback quantity V of AC-DC converter current periodfB[i].
Preferably, described single-input double-output digital to analog converter is built by two MUX and a string divider resistance, and this digital to analog converter adopts the linear dividing potential drop of resistance to form, simple in structure, realize easily, and the matching precision of resistance is very high, guarantees that dividing potential drop has the good linearity.
Preferably, described waveform real-time analysis module and digital compensator are all by the FPGA realization of programming, and FPGA programming has stronger flexibility, and convenient control and adjusting for clock accuracy, have good repeatability.
The present invention is by gathering the auxiliary winding voltage signal of AC-DC converter, and adopt high-precision former limit feedback technique, auto-compensation feedback quantity, to obtain accurate feedback quantity, and then construct pwm signal to drive the switching tube in AC-DC converter, finally realize the object of regulating and controlling converter output voltage; Therefore the inventive method calculates the precision of feedback quantity, and then guarantee the precision of AC-DC converter output voltage; Controller simultaneously of the present invention adopts digital to analog converter (but not analog to digital converter), under comparing, has reduced design difficulty, has saved the area consuming.
Embodiment
In order more specifically to describe the present invention, below in conjunction with the drawings and the specific embodiments, control method of the present invention and controller thereof are elaborated.
Shown in Fig. 3 the structure of AC-DC converter of the present invention and controller thereof, AC-DC converter is made up of half-wave rectifier BR, transformer T, switching tube Q, diode D and capacitor C; Wherein, the positive-negative input end of half-wave rectifier BR meets alternating voltage AC, positive output end and the former limit of transformer T winding Npsame Name of Ends be connected, negative output terminal ground connection; The former limit of transformer T winding Npnon-same polarity be connected with the drain electrode of switching tube Q, the source ground of switching tube Q, the grid of switching tube Q receives the pwm signal that controller provides, transformer T secondary winding Nsnon-same polarity be connected with the anode of diode D, the negative electrode of diode D is connected with one end of capacitor C, the other end of capacitor C and transformer T secondary winding Nssame Name of Ends be connected and ground connection, transformer T assists winding Nauxnon-same polarity be connected with resistance R1, transformer T assists winding Nauxsame Name of Ends ground connection, resistance R1by with resistance R2ground connection after series connection; The two ends of capacitor C are the output port of AC-DC converter, and the output port of AC-DC converter meets load R, and the voltage at load R two ends is the output voltage V o of AC-DC converter.
Controller comprises former limit sample circuit and digital compensator; Former limit sample circuit gathers the auxiliary winding voltage signal V of AC-DC convertersense, and according to the feedback quantity V of this signal output AC-DC converter current periodfB[i]; Digital compensator is according to the feedback quantity V of former limit sample circuit outputfB[i] constructs pwm signal, to control the break-make of switching tube Q in AC-DC converter.
Shown in Fig. 4 the basic waveform of AC-DC converter each signal of when work, wherein I
sfor output winding current; In the time that PWM is 1, switching tube Q is open-minded, former limit winding current I
prise gradually, transformer T is at former limit winding N
pupper stored energy, auxiliary winding voltage
for negative value (N
auxand N
pbe respectively the coil turn of auxiliary winding and former limit winding), output winding (is secondary winding N
s) both end voltage V
salso be negative voltage, now diode D turn-offs, the electric current I on output winding
sbe 0, load R is powered by output capacitance C.
In the time that PWM is 0, switching tube Q turn-offs, and diode D conducting, is stored in former limit winding N
pon energy be transferred to output winding, output winding current I
srise to rapidly peak I
sPrear beginning declines gradually, and descending slope is with output winding both end voltage V
srelevant.Work as I
sdo not drop to before zero,
Wherein: V
dthe pressure drop of diode D, R
pit is the dead resistance of wire and diode D.Work as electric current I
sthe null moment, V
d=0,
this moment point voltage is designated as knee voltage (knee voltage).Work as I
selectric current drops to after 0, due to not conducting of switching tube Q, and former limit winding N
pand can there is series resonance between the parasitic capacitance of switching tube Q, harmonic period is by former limit winding N
pthe parasitic capacitance size of inductance and switching tube Q determines, at this one-phase
Wherein: L
mit is former limit winding inductance.
By
known, work as output winding current I at flex point place
sdrop to for 0 moment, V
sensewith output voltage V
orelation in direct ratio, therefore according to the V at this some place
sensethe feedback quantity calculating is the most accurate.
When Q turn-offs, output winding current Isdrop to after 0, i.e. Vsenseafter flex point, can enter resonance condition, the moment T occurring in flex pointkneefront and back, Vsenseslope variation be very large, for this feature, the present invention proposes a kind of control method of AC-DC converter output voltage, comprise the steps:
(1) the auxiliary winding voltage signal V of collection AC-DC convertersense, and obtain the feedback quantity V in a cycle on AC-DC converterfB[i-1]; Present embodiment is passed through resistance R1and R2to the auxiliary winding N of transformer Tauxthe voltage at two ends carries out dividing potential drop, therefore the auxiliary winding voltage signal V collectingsensefor auxiliary winding Nauxthe voltage of both end voltage after step-down;
(2) to feedback quantity VfBafter [i-1] digital-to-analogue conversion, obtainfeedback voltage V 1, and will after fixed voltage value of the amplitude lifting offeedback voltage V 1, obtain comparative voltage V2; In present embodiment, this fixed voltage value is 100mV;
(3) will assist winding voltage signal Vsensecompare withfeedback voltage V 1 and comparative voltage V2 respectively, obtain respectively two comparison signal Vs1and Vs2;
(4) calculate two comparison signal Vs1and Vs2trailing edge time difference Δ t, and by trailing edge time difference Δ t and fiducial time poor Δ trefcompare, determine regulated quantity Δ V according to both differencesfB;
In present embodiment, differ from Δ t fiducial timereffor 4clk, clk is a clock cycle; Δ t and Δ trefdiffer larger, Δ VfBalso larger; In present embodiment, | Δ t-Δ tref| with Δ VfBconcrete determine that relation is as shown in table 1;
Table 1
| |Δt-Δtref| | ΔVFB |
| 0clk | 0 |
| 1clk | 1 |
| 2clk | 2 |
| 3clk | 3 |
| 4clk | 4 |
Wherein, if continuous several control cycle | Δ t-Δ tref| all larger, can suitably strengthen its corresponding regulated quantity.
Utilize regulated quantity Δ V by following feedback compensation algorithmfBto feedback quantity VfB[i-1] regulates compensation, in the hope of the feedback quantity V of AC-DC converter current periodfB[i];
As Δ t > Δ treftime: VfB[i]=VfB[i-1]-Δ VfB
As Δ t=Δ treftime: VfB[i]=VfB[i-1]
As Δ t < Δ treftime: VfB[i]=VfB[i-1]+Δ VfB
By select to set poor Δ t of suitable fixed voltage value and fiducial time in conjunction with actual parameterref, make to equal Δ t as Δ treftime, feedback quantity has just reacted needed knee voltage, to realize the automatic tracing to knee voltage and to realize accurate former limit sampling.
(5) according to feedback quantity VfB[i] constructs pwm signal, to control the break-make of switching tube Q in AC-DC converter.
As shown in Figure 3, the controller of present embodiment AC-DC converter comprises former limit sample circuit and digital compensator; As shown in Figure 5, former limit sample circuit comprises a waveform real-time analysis module, a single-input double-output digital to analog converter and two comparators;
The input of single-input double-output digital to analog converter is connected with the output of waveform real-time analysis module, and two outputs are connected with the inverting input of two comparators respectively; The feedback quantity V in a cycle on the AC-DC converter of its reception waveform real-time analysis module outputfB[i-1], to feedback quantity VfBafter [i-1] digital-to-analogue conversion, obtainfeedback voltage V 1 output, will after fixed voltage value of the amplitude lifting offeedback voltage V 1, obtain comparative voltage V2 output;
As shown in Figure 6, the single-input double-output digital to analog converter in present embodiment is by two MUX Mux1 and Mux2, and a string divider resistance R1~R511composition, R1~R511it is all substitutional resistance.Reference voltage Vrefinput by the voltage after divider resistance dividing potential drop as MUX.There is an initial side-play amount in MUX Mux1 and Mux2 coding, by this digital to analog converter of this side-play amount by same input variable VfBconvert two analog voltage V with fixed voltage difference to1and V2.In present embodiment, the figure place of digital-to-analogue conversion is 9, reference voltage Vreffor 1.2V; V2and V1with VfBpass be:Visible V1voltage is the feedback voltage of simulation.
The normal phase input end of two comparator C OMP1~COMP2 all receives the auxiliary winding voltage signal V of AC-DC convertersense; It is respectively byfeedback voltage V 1 and comparative voltage V2 and auxiliary winding voltage signal Vsensecompare, obtain respectively two comparison signal Vs1and Vs2.
Two inputs of waveform real-time analysis module are connected with the output of comparator C OMP1~COMP2 respectively; It is for calculating two comparison signal Vs1and Vs2trailing edge time difference Δ t, and by trailing edge time difference Δ t and fiducial time poor Δ trefcompare, determine regulated quantity Δ V according to both differencesfB, and then utilize regulated quantity Δ V by feedback compensation algorithmfBto feedback quantity VfB[i-1] regulates compensation, in the hope of the feedback quantity V of AC-DC converter current periodfB[i].
As shown in Figure 7, after PWM is zero level, Vsensebecome high voltage from negative voltage, Vs1and Vs2be turned to high level, afterwards along with Vsensedecline gradually, due to V2 voltage ratio, V1 is high, Vs2can be at t1moment is first turned to low level, through V after the Δ t times1at t2moment is turned to low level.The moment T that knee voltage occurskneefront and back, Vsensevariation slope differ greatly, therefore V1and V2be in Vsenseon the Δ t difference that produces of diverse location very large.As shown in Fig. 7 (b), if VfBbigger than normal, represent that the feedback voltage sampling is higher than knee voltage, V2and V1also can phase strain large, due to Tkneev before momentsensedescending slope less, the Δ t now detecting is bigger than normal.As shown in Fig. 7 (c), if VfBless than normal, the Δ t now detecting is very little.As shown in Fig. 7 (a), choose suitable Δ trefwith Δ V, make to equal Δ t as Δ treftime, VfBjust to have reacted needed knee voltage.
As shown in Figure 8, first waveform real-time analysis module detects and stores the Δ t time, then by itself and Δ trefcompare, to the feedback quantity V in next cyclefBadjust, wherein the V that obtains of i cyclefBvalue is designated as VfB[i].In order to accelerate VfBfoundation, on the basic principle basis shown in Fig. 8 to VfBadjusted value improve, V between the cycle of front and backfBpass be VfB[i+1]=VfB[i] ± Δ VeB, Δ t and default Δ trefdiffer larger, regulated quantity Δ VfBalso larger, concrete corresponding relation is because of different parameter setting differences.
The input of digital compensator is connected with the output of waveform real-time analysis module; It is for according to the feedback quantity V of the AC-DC converter current period of waveform real-time analysis module outputfB[i] regulates duty ratio d, and provide zero limit to realize the stability of system loop, comparing analog compensation does not need extra resistance capacitance to compensate, reduce the expense of the outer device of sheet, construct pwm signal according to duty ratio D simultaneously, to control the break-make of switching tube Q in AC-DC converter, realize the modulation to AC-DC converter output voltage.
In present embodiment, waveform real-time analysis module and digital compensator are all by the FPGA realization of programming.
Present embodiment, by gathering the auxiliary winding voltage signal of AC-DC converter, adopts the former limit of high accuracy Sampling techniques, and automatic tracing knee voltage, to obtain accurate feedback quantity; Calculate duty ratio according to feedback quantity, and output pwm signal corresponding to duty ratio is with the break-make of switching tube in control change device, finally realizes the modulation to converter output voltage, realizes voltage stabilizing output.
Present embodiment realizes at diode forward pressure drop V by the former limit of high accuracy Sampling techniquesdthe moment of being almost equal to zero is to Vsensesample.Get under fixed condition in peripheral parameter, calculating desirable feedback voltage is 883mV, the feedback voltage V obtaining by this implementation method1for 890mV, feedback error is 7mV, and adopts general traditional sampling control method cannot eliminate diode current flow pressure drop Vdimpact, the feedback voltage 1V nearly that obtains of sampling, feedback error is 117mv nearly.Therefore by comparing with traditional sampling control technology, present embodiment feedback error has reduced 94%.