Professional Documents
Culture Documents
Flyback Loop Compensation
Flyback Loop Compensation
Flyback Loop Compensation
Download
this file
2
Launch the file Flyback_automation.xls
Make
M k sure macro security
it in Excell® is
i E i on medium
di position
iti
Use the “.” as the system decimal separator
Fill-up the
fields
Press
update
3
The principle of operation
Enter the component values as you calculated them
Fill-up the operating fields with the worse case conditions
Vout, the dc output
p voltage
g in V
Iout, the output current in A Operating fields
Vbulk, the rectified bulk voltage in V
Rpullup, the
th opto
t coupler
l pullup
ll resistor
i t
GFB, internal FB signal to CS divider Controller dependent
Fsw, the switching frequency in kHz
Lp, the transformer primary inductor in µH
Np, the transformer primary turns
Ns, the transformer secondaryy turns Your design
Rsense, sensing resistor in ohms
Cout, output capacitor in µF
Resr, output capacitor ESR in ohms From the manufacturer
4
The principle of operation
The adapter example, a 19-V/3-A universal mains converter
5
Design example with a 19-V/3-A converter
Extract the controller data first. Here, a NCP1216P06
NCP1216P06
Fsw = 65 kHz
6
Design example with a 19-V/3-A converter
Extract the controller data first. Here, a UC384X
Fsw
Your pullup
resistor
Rpullup
7
Design example with a 19-V/3-A converter
Once data are entered, press the update button
Q>1
peaking!
This is the Suggested
“plant”
p Bode cross over
plot frequency
8
Design example with a 19-V/3-A converter
In this case, as Q is above 1, ramp compensation is needed
Suggested
minimum
level. Can Se M c 1 S n On-slope
be increased to
see the effects Ramp comp.
on the loop gain. damps the Q
off the
th sub
b
1
Qp harmonic
M c 1 D 0.5
poles..
1
To keep 0.5
Qp below 1 mc
1 D
9
Design example with a 19-V/3-A converter
The optocoupler features an internal parasitic capacitor
10
Design example with a 19-V/3-A converter
The optocoupler can be characterized on the bench
You can extract the CTR and the pole
Cdc Rled
Ic 10uF 20k
2 5
Rpullup
20k
Rbias
VFB 1 3
Vdd
5
X1 4 6
SFH615A-4
Vbias Vac -3 dB
IF
11
Design example with a 19-V/3-A converter
The optocoupler can be characterized on the bench
The network analyzer can be replaced by a signal generator
Cdc Rled
F = 100 Hz Ic 10uF 20k
Sinusoidal
3 dB 2 5
1 v(1) 2 v(1)#a
Rpullup waveform
800m
20k
Rbias
400m
VFB 1 3
Vdd
v(1)#a, v(1) in volts
5
Plot1
0 2
1
X1 4 6
SFH615A-4
Vac
-400m
Vbias
-800m
IF
2.00m 6.00m 10.0m 14.0m 18.0m
time in seconds
Adjust that
F = 3.5 kHz VFB 2.5 V
12
Design example with a 19-V/3-A converter
The optocoupler pole can be extracted from the data-sheet
Enter
E t the
th pole
l position.
iti
The software computes
the equivalent capacitor:
1 1
Copto 4.2 nF
2 R pullup f pole 6.28 10k 3.8k
3.8 kHz
13
Design example with a 19-V/3-A converter
For large crossover frequencies, stay away from slow
optocouplers: do not intend to reach a 10-kHz crossover
frequency with a 5-kHz
5 kHz pole on the optocoupler!
The software evaluates the optocoupler pole position and the
pole calculated for the compensation network. The calculated
pole is obtained by putting a capacitor between the FB pin and
GND and comes in parallel with that of the optocoupler.
If the optocoupler pole position is lower than the calculated
compensation pole, the crossover frequency is automatically
reduced by a 10-Hz step. The successive reduction is
implemented until an external capacitor above 100 pF is
found. This cap. must be wired close to the controller for
improved noise immunity.
14
Design example with a 19-V/3-A converter
The software now calculates a type-2 compensation
These
ese ta
targets
gets ca
can
be altered but Calculated poles
depending on the and zeros position
enterered values, based on the
the crossover can entered phase
be recomputed margin target.
based on the
optocoupler
p p p pole Obtained phase
position. b
boost
If necessary, these
positions can be
p
changed to
270° improve the boost.
15
Design example with a 19-V/3-A converter
The zero has been reduced to 100 Hz, the boost is increased
70°
270°
16
Design example with a 19-V/3-A converter
On the final compensation tab, the loop gain T(s) is plotted
Crossover
frequency is
respected and the
calculated phase
margin is 60° as
targetted.
17
Design example with a 19-V/3-A converter
Now change the operating conditions to check that the phase
margin in still ok.
18
Design example with a 19-V/3-A converter
On the final compensation tab, the loop gain T(s) is plotted
These tabs
Th t b guide
id th
the d
designer
i
towards the ramp compensation
implementation, whether it is
included in the controller or not.
19
Design example with a 19-V/3-A converter
We have built the converter with the specs used in this example
The loop bandwidth has then been measured at different points
|T(s)| |T(s)|
argT(s) argT(s)
PM PM
0 65° 65° 0
20
Design example with a 19-V/3-A converter
The converter is now operating in the DCM mode
21
Design example with a 19-V/3-A converter
Finally, a load step at two different line levels is performed
The current is varied from 100 mA to 3 A, S = 1 A/µs
19 V
Vin = 100 V rms
19 V
Vin = 230 V rms
150 mV
Vout(t)
22
Conclusion
The Excel® spreadsheet automates the loop compensation on
a flyback converter operated in current mode.
The software predicts sub harmonic poles and optimizes
slope compensation.
The optocoupler pole is taken into consideration and the
crossover frequency is automatically adjusted to fit the phase
margin requirements.
Once the loop is stabilized, the user has the freedom to alter
the input/output operating points as well as the parasitic
elements contribution and check the resulting phase margin.
Bench tests on small-signal and load transient responses
agree quite well with the theoretical results given by Excel®.
23