TND352 D
TND352 D
and Control
Agenda
Feedback generalities
Conditions for stability
Poles and zeros
Phase margin and quality coefficient
Undershoot and crossover frequency
Compensating the converter
Compensating with a TL431
Watch the optocoupler!
Compensating a DCM flyback
Compensating a CCM flyback
Simulation and bench results
Conclusion
[Link]
2
Agenda
Feedback generalities
Conditions for stability
Poles and zeros
Phase margin and quality coefficient
Undershoot and crossover frequency
Compensating the converter
Compensating with a TL431
Watch the optocoupler!
Compensating a DCM flyback
Compensating a CCM flyback
Simulation and bench results
Conclusion
[Link]
3
What is Feedback?
A target is assigned to one or several state-variables, e.g. Vout
= 12 V.
A circuitry monitors Vout deviations related to Vin, Iout, T° etc.
If Vout deviates from its target, an error is created and fed-back
to the power stage for action.
The action is a change in the control variable: duty-cycle (VM),
peak current (CM) or the switching frequency.
action
control
[Link]
4
The Feedback Implementation
Vout is permanently compared to a reference voltage Vref.
The reference voltage Vref is precise and stable over temperature.
The error,ε = Vref − αVout, is amplified and sent to the control input.
The power stage reacts to reduce ε as much as it can.
Power stage - H
Vout
Control
variable d
Error amplifier - G
Rupper
+
-
Vin
α
-
+
Vp
[Link]
5
Agenda
Feedback generalities
Conditions for stability
Poles and zeros
Phase margin and quality coefficient
Undershoot and crossover frequency
Compensating the converter
Compensating with a TL431
Watch the optocoupler!
Compensating a DCM flyback
Compensating a CCM flyback
Simulation and bench results
Conclusion
[Link]
6
Positive or Negative Feedback?
Do we want to build an oscillator?
The « Plant »
Vin(s) + ε Vout(s)
Error voltage H(s)
−
G(s)
Vout ( s ) H (s)
=
Vin ( s ) 1+ H (s)G (s) Open-loop gain T(s)
⎡ H (s) ⎤
Vout ( s ) = lim ⎢ Vin ( s ) ⎥ To sustain self-oscillations, as Vin(s)
Vin ( s ) → 0 1 + G ( s ) H ( s ) goes to zero, quotient must go infinite
⎣⎢ ⎦⎥
Sign is neg for:
ϕ = -180° =1
[Link]
7
Conditions for Oscillations
when the open-loop gain equals 1 (0 dB) – cross over point
total rotation is -360°: -180° for H(s) and -180° for G(s)
¾ we have self-sustaining oscillating conditions
Total phase delay at fc:
180
-90.0 ϕ = -180°
-180 21
22 -180°
[Link]
8
The Need for Phase Margin
we need phase margin when T(s) = 0 dB
we need gain margin when arg T(s) = -360°
vdbout in db(volts)
0° 2
Plot1
0 0
0 dB
gain
margin
-90.0 -40.0
Crossover
1
frequency fc
T(s) = 0 dB Gain margin:
The margin before the loop
-180 -80.0
[Link]
9
Agenda
Feedback generalities
Conditions for stability
Poles and zeros
Phase margin and quality coefficient
Undershoot and crossover frequency
Compensating the converter
Compensating with a TL431
Watch the optocoupler!
Compensating a DCM flyback
Compensating a CCM flyback
Simulation and bench results
Conclusion
[Link]
10
Poles and Zeros
A plant (power stage) loop gain is defined by:
N (s)
H (s) =
numerator
D (s) denominator
5k
Two zeros f z1 = = 796 Hz
sz1 = −5k 2π
H (s) =
( s + 5k )( s + 30k )
sz2 = −30k f z2 =
30k
= 4.77 kHz
s + 1k 2π
s p1 = −1k 1k
f p1 = = 159 Hz
One pole
2π
[Link]
11
Poles and Zeros
A pole lags the phase by -45°at its cutoff frequency
0
V1 C1
-40.0
-20.0
Vout ( s ) 1 1 -45° at
= =
-40.0
cutoff
Vin ( s ) 1 + sRC 1 + s -60.0
ω0 -80.0 argVout(s) 2
10 100 1k 10k 100k 1Meg 10Meg
1
ω0 =
RC -90° delay
for f = ∞
[Link]
12
Poles and Zeros
A zero boosts the phase by +45°at its cutoff frequency
0 0
40.0 1 20.0
+1 slope |Vout(s)|
+1 slope
0 +20 dB/decade 1
vdbout in db(volts)
30.0
+20 dB/decade
vdb2 in db(volts)
plot1
Plot1
-20.0
20.0
-40.0
10.0 Cutoff frequency
0 |Vout(s)| -60.0
-3 dB
10 100 1k 10k 100k 1Meg 10Meg
frequency in hertz
90.0
Cutoff frequency 2
90.0
argVout(s)
70.0 -3 dB 90° 90°
ph_v2 in degrees
ph_vout in degrees
70.0
Plot2
50.0
+45° at +45° at
plot2
50.0
Vin Vout
The general form of a zero:
C1 s
10nF
s Vout ( s ) sRC ω0
G (s) = 1 + = =
ω0 V1 R2 Vin ( s ) 1 + sRC 1 + s
AC = 1 1k
ω0
1
ω0 =
RC
[Link]
13
The Right Half-Plane Zero
In a CCM boost, Iout is delivered during the off time: I out = I d = I L (1 − D )
Id(t) Id(t)
IL0 IL1
Vin Vin
L L
IL(t) IL(t)
Id0
Id1
d̂
t t
D0Tsw D1Tsw
Tsw Tsw
If D brutally increases, D' reduces and Iout drops!
d VL ( t )
What matters is the inductor current slew-rate dt
Occurs in flybacks, buck-boost, Cuk etc.
[Link]
14
The Right-Half-Plane-Zero
With a RHPZ we have a boost in gain but a lag in phase!
1
40.0
|Vout(s)|
20.0 +1 slope
vdbout in db(volts)
-20.0
s
G (s) = 1 +
-40.0
ω0
180 RHPZ
argVout(s)
90.0
ph_vout in degrees
s
Plot2
G (s) = 1 −
0
-90.0 -90° 2
ω0
-180
[Link]
15
Agenda
Feedback generalities
Conditions for stability
Poles and zeros
Phase margin and quality coefficient
Undershoot and crossover frequency
Compensating the converter
Compensating with a TL431
Watch the optocoupler!
Compensating a DCM flyback
Compensating a CCM flyback
Simulation and bench results
Conclusion
[Link]
16
How much Margin? The RLC Filter
let us study an RLC low-pass filter, a 2nd order system
R1 L1
1
T (s) =
{R} {L}
3 2 1 Vout
LCs 2 + RCs + 1
C1
1 1
Vin {C}
T (s) = =
s2 s s2 s
+ 2ζ +1 + +1
ωr 2 ωr ωr 2 ωr Q
1
parameters ωr =
LC
f0=235k
L=10u 1
C Q=
C=1/(4*3.14159^2*f0^2*L) ζ =R
w0=({L}*{C})^-0.5 4L 2ζ
Q=10 zeta
R=1/((({C}/(4*{L}))^0.5)*2*{Q}) ωr resonant freq.
ζ damping factor
Q quality coeff.
[Link]
17
The RLC Response to an Input Step
changing Q affects the transient response
1.40
Overshoot = 65%
Plot1
1.00 11
9
10
8
7
Asymptotically stable
600m
200m Q = 0.1
[Link]
18
Where is the Analogy with T(s)?
in the vicinity of the crossover point, T(s) combines:
one pole at the origin, ω0 and one high frequency pole, ω2
9 Link the closed-loop response to the open-loop phase margin:
1
T(s) T (s) = (OL)
180 80.0
⎛ s ⎞⎛ s ⎞
phase
⎜ ⎟⎜ 1 + ⎟
gain ω
⎝ 0 ⎠⎝ ω 2 ⎠
vdbout in db(volts)
0° = (CL)
1+ T (s)
2
s2
0 0
0 dB s
+ +1
ph_vout
ω0ω2 ω0
-90.0 -40.0
1
-1
T (s)
Link open-loop ϕm -2 =
1
-180 -80.0
1+ T (s) s2 s
with closed-loop Q + +1
10 100 1k 10k 100k
ωr 2 ωr Q
[Link]
19
Closed-Loop Q Versus Open-Loop ϕm
a Q factor of 0.5 (critical response) implies a ϕm of 76°
a 45° ϕm corresponds to a Q of 1.2: oscillatory response!
10
Q
7.5
1
( 1+ tan( φ) ) 2
4
5
ϕm
tan( φ)
2.5
0.5
0
0 25 50 75 100
76°
360
φ⋅
2⋅ π
[Link]
20
Summary on the Design Criteria
compensate the open-loop gain for a phase margin of 70°
make sure the open-loop gain margin is better than 15 dB
never accept a phase margin lower than 45° in worst case
5.12
PM = 10°
PM = 25°
PM = 45°
5.06
PM = 76°
vout2#a, vout2, vout2#b, vout2#d in volts
Plot2
5.00 5
1
3
2
4.88
f ( PM )
300u 900u 1.50m 2.10m 2.70m
time in seconds
[Link]
21
Agenda
Feedback generalities
Conditions for stability
Poles and zeros
Phase margin and quality coefficient
Undershoot and crossover frequency
Compensating the converter
Compensating with a TL431
Watch the optocoupler!
Compensating a DCM flyback
Compensating a CCM flyback
Simulation and bench results
Conclusion
[Link]
22
DC-DC Output Impedance
Open-loop model 2 f0
Lout Rlf 20.0
Z02
⎛ Rlf ⎞
1+ ⎜ ⎟
100u 10m Zout (dBΩ)
4 1 2 Vout Rlf ⎝ Z0 ⎠
0
Resr
1m I1 Lout f (Hz)
vdbout in db(volts)
AC = 1
plot1
-20.0
3 Cout
Cout
1000uF -40.0
RLf Resr
-60.0 2
Crossover region
A buck equivalent circuit 1 10 100 1k
frequency in hertz
10k 100k 1Meg
⎛ 1 ⎞
Z out = ( sLout + RLf ) || ⎜ Resr + ⎟ To avoid stability issues,
⎝ sCout ⎠
fc >> f0
[Link]
23
Closing the Loop…
At the crossover frequency Zout,CL ≈ Zout,OL
100
|T(s)|
50.0
fc
vdbout#b, vdbout, vdberr in db(volts)
Plot1
|Zout,OL| 2
-50.0
5
3
|Zout,CL|≈| Zout,OL|
|Zout,CL|
-100
[Link]
24
Calculating the Output Impedance
2
Zout Zout
degrades improves
Open-loop phase
margin affects the
1 1 closed-loop output
1 + T ( fc ) impedance
ϕm °
0
20 40 60 80
[Link]
25
An Example with a Buck
ΔI out ΔI out
ΔVout ≈ fc ≈
2π f c Cout ΔVout Cout 2π
2 1
fc ≈ = 4 kHz Z Cout @ 4 kHz = = 40 mΩ
80m ×1m × 2π 2π × 4k ×1m
[Link]
26
Setting the Right Crossover Frequency
90.0 40.0
phase
ϕm = 70°
ph_verr in degrees
vdberr in db(volts)
Plot1
0 0 4
fc
-90.0 -40.0 3
gain
-180 -80.0
4 kHz
[Link]
27
Step Load the Output
rLf L1
10m 100u vout
a c Vout
7 3
d
the load varies
11
R10
PWM switch VM p 1m
Vin
X3 I1
10
PWMVM 16
L = 100u
Fs = 100k C5
1mF
from 100 mA to 2.1 A
H(s)
12 vout
GAIN
X1 C2
GAIN {C2}
K = 0.5 PWM R7
{R3}
C1
gain {C1}
R2
{R2}
Rupper
10k 8
13 C3
5 {C3}
Verr Rlower
X2 V2 10k
AMPSIMP 2.5
G(s)
[Link]
28
Measure the Obtained Undershoot
5.00
5
ΔI
ΔV ≈ 40m
4.98
2 − 2 cos (ϕm )
vout in volts
Plot1
4.96
2
ΔV ≈ 40m × = 70 mV
1.14
4.94
70 mV
4.92
[Link]
29
Agenda
Feedback generalities
Conditions for stability
Poles and zeros
Phase margin and quality coefficient
Undershoot and crossover frequency
Compensating the converter
Compensating with a TL431
Watch the optocoupler!
Compensating a DCM flyback
Compensating a CCM flyback
Simulation and bench results
Conclusion
[Link]
30
How do we Stabilize the Converter?
1. Select the crossover frequency fc (assume 4 kHz)
2. Provide a high dc gain for a low static error and good input rejection
3. Shoot for a 70° phase margin at fc
4. Evaluate the needed phase boost at fc to meet (3)
5. Shape the G(s) path to comply with 1, 2 and 3
0 0
-20.0 -90.0
-40.0 -180
|H(s)| @ fc
1
10 100 1k 10k 100k
frequency in hertz
[Link]
31
First, Provide Mid-Band Gain at Crossover
1. Adjust G(s) to boost the gain by +21 dB at crossover
¾ Create the so-called mid-band gain
40.0 180
Push the
gain up. 0 dB@fc
20.0 90.0 Gain
ph_voutin degrees
vdboutin db(volts)
Plot1
0 0
-40.0 -180
[Link]
32
Second, Provide High Gain in DC
2. An integrator provides a high dc gain but rotates by -270°
¾ This is the origin pole
C1
100n
60.0 360
60 dB 1 2
E1
R1 1k
10k
4 Vout
p in unknown
Plot1
0 0
-180° by inverting
op amp
-30.0 -180
-90° by pole 8
-60.0 -360
[Link]
33
Third, Evaluate the Phase Boost at fc
0
ph_vout#a in degrees
-40.0
arg H(s) at 4 kHz
Plot1
-80.0
arg H(s)
-120
arg H(s) -175° 18
-160
+
0
-113° arg G(s)
-90.0
arg G(s)
p in unknown
Plot3
-180
+155° 11
-270
ϕm = 70°
0
-180
-270
ϕm
-360 1
[Link]
34
How do We Boost the Phase at fc?
The phase boost is created by combining zeros and poles
⎛ ω ⎞ ⎛ ω ⎞
⎜1 + j ⎟ ⎜1 + j ⎟
ω z1 ⎠ ω z1 ⎠
G ( jω ) = ⎝ arg G ( jω ) = boost = arg ⎝
⎛ ω ⎞ ⎛ ω ⎞
⎜⎜1 + j ⎟ ⎜⎜1 + j ⎟
⎝ ω p1 ⎟⎠ ⎝ ω p1 ⎟⎠
⎛ fc ⎞ ⎛ fc ⎞
arg G ( f c ) = arctan ⎜ ⎟ − arctan ⎜⎜ ⎟⎟
⎝ z1 ⎠
f f
⎝ p1 ⎠
Assume 1 zero placed at 705 Hz, 1 pole at 22 kHz and a 4-kHz crossover frequency:
⎛ 4k ⎞ ⎛ 4k ⎞
arg G ( 4 kHz ) = arctan ⎜ ⎟ − arctan ⎜ ⎟ = 80 − 10.3 ≈ 70°
⎝ 705 ⎠ ⎝ 22k ⎠
If poles and zeros are coincident, no phase boost!
[Link]
35
How do We Boost the Phase at fc?
G100 Hz = 38 dB
Gain
40.0 360
|G(s)|
20.0 180
Gain at
fc = 21 dB 33
vdbout in db(volts)
p in unknown
plot1
0 0
fz = 705 Hz fp = 22 kHz
-20.0 -180
-270° 32
Phase boost
-40.0 -360
at fc = 71°
Phase
Arg G(s)
10 100 1k 10k 100k
frequency in hertz 4 kHz Type 2
[Link]
36
How do We Boost the Phase at fc?
Type 1
[Link]
37
How do We Boost the Phase at fc?
⎛ ⎡ C1C2 ⎤ ⎞
sR1 ( C1 + C2 ) ⎜⎜1 + sR2 ⎢
C1
⎥ ⎟⎟
R2
2nF
+
116k
1 2 4 ⎝ ⎣ 1
C C 2 ⎦⎠
E1
R1 10k If C2 << C1
10k
1 1 1
3 Vout
ω po = ω p1 = ω z1 =
V1
R1C1 R2C2 R2C1
AC = 1
1 pole at the origin
1 zero
1 pole
Type 2
[Link]
38
How do We Boost the Phase at fc?
sR2C1 + 1 sC3 ( R1 + R3 ) + 1
G (s) = −
⎛ C C ⎞ ( sR3C3 + 1)
C2
350pF sR1 ( C1 + C2 ) ⎜1 + sR2 1 2 ⎟
⎝ C1 + C2 ⎠
C1 R2
11nF 20k
1 2 4
If C2 << C1 and R3 << R1
C3 R3 E1 1 1 1
22nF 321 10k ω z1 = ωz2 = ω po =
5 R2C1 R1C3 R1C1
Vout
3
1 1
R1
10k ω p1 = ω p2 =
V1 R3C3 R2C2
AC = 1
[Link]
39
Finally, We Test the Open-Loop Gain
5. Given the necessary boost of 155°, we select a type-3 amplifier
6. A SPICE simulation can give us the whole picture!
rLf L1
10m 100u vout
a c Vout
7 3
d R10
11
PWM switch VM p 1m
Vin R11
10 X3
PWMVM 16 1
L = 100u
Fs = 100k C5
1mF
Buck stage
12 vout
GAIN
X1 C2
GAIN
K = 0.5
{C2}
R7 1 pole at the origin
{R3}
2
C1
{C1}
R2
{R2}
Rupper
10k 8
2 zeros at 500 Hz
13
5
C3
{C3} 2 poles at 50 kHz
LoL
1kH
1
Verr Rlower
CoL X2 10k
1kF V2
AMPSIMP 2.5
9
Vstim
AC = 1
Type 3
[Link]
40
Finally, We Test the Open-Loop Gain
An ac simulation gives us the open-loop Bode plot
Gain
80.0 360
T(s)
40.0 180
fc = 4 kHz
vdberr in db(volts)
p in unknown
plot1
0 0
-40.0 -180 15
ϕm = 70°
-80.0 -360 Phase 14
Arg T(s)
10 100 1k 10k 100k
frequency in hertz
[Link]
41
Agenda
Feedback generalities
Conditions for stability
Poles and zeros
Phase margin and quality coefficient
Undershoot and crossover frequency
Compensating the converter
Compensating with a TL431
Watch the optocoupler!
Compensating a DCM flyback
Compensating a CCM flyback
Simulation and bench results
Conclusion
[Link]
42
Type 2 with a TL431
Litterature examples use op amps to close the loop.
Reality differs as the TL431 is widely implemented.
How to convert a type 2 to a TL431 circuit?
K
R
K
TL431A R
A
2.5V
R
A A shunt regulator! A
K
[Link]
43
Type 2 with a TL431
A TL431 implements a two-loop configuration
FB signal
Rpullup FB D2
L1
MBR20100CT
2.2u
Vout
solution A Vdd
Rbias RLED Rupper
Gnd
fast slow
lane lane
C2 C3
1mF Czero 100uF
Vcc
X1
solution B TL431A
FB Rlower
FB signal
Rpulldown
Gnd
[Link]
44
Adding a Pole for a Type 2 Circuit
The pole is a simple capacitor on the collector
Rpullup
Vdd FB Vdd
FB
Rpulldown
Cpole Cpole Or on the
emitter
1 1 R pullup 1
f po = fz = G= CTR fp =
2π Rupper Czero 2π Rupper Czero RLED 2π R pullup C pole
Pole at the origin Low frequency zero Mid-band gain High frequency pole
[Link]
45
The Type 2 Final Implementation
RLED
Rupper
Vdd
1 3
U2A
Rpullup Czero
2
[Link]
46
What TL431?
The TL431 is available under several grades
TL431AI, 2.495 V, ± 2.2% TA = -25 °C to +85 °C
TL431AC, 2.495 V, ± 1.6% TA = -25 °C to +85 °C
TL431BI, 2.495 V, ± 0.8% TA = -25 °C to +85 °C
• BV = 37 V, IK,max = 100 mA and IK,min = 1 mA
[Link]
47
Agenda
Feedback generalities
Conditions for stability
Poles and zeros
Phase margin and quality coefficient
Undershoot and crossover frequency
Compensating the converter
Compensating with a TL431
Watch the optocoupler!
Compensating a DCM flyback
Compensating a CCM flyback
Simulation and bench results
Conclusion
[Link]
48
The Optocoupler is the Treator Here!
You need galvanic isolation between the prim. and the sec.
An optocoupler transmits light only, no electrical link
Creepage path
Silicone
LED dome
c a
Detector
Ic IF
500 µm
Clearance
Detector LED Luigi Galvani, 1737-1798
Italian physician and physicist
e k
Ic
CTR = × 100
IF
French
Current Transfer Ratio specimen
[Link]
49
The Internal Pole should be Known
Rpullup RLED
Rpullup RLED
VFB
CTR C
[Link]
50
Assess the CTR Variations
CTR changes with the operating current!
Try to select collector bias currents around 2-5 mA
SFH-615
[Link]
51
Changing the Pullup Affects the Pole Position
A low pullup resistor offers better bandwidth!
30 kHz 10 kHz
Rpullup = 15 kΩ
If Rpullup = RLED, then |G0| = 0 dB…?
[Link]
52
Agenda
Feedback generalities
Conditions for stability
Poles and zeros
Phase margin and quality coefficient
Undershoot and crossover frequency
Compensating the converter
Compensating with a TL431
Watch the optocoupler!
Compensating a DCM flyback
Compensating a CCM flyback
Simulation and bench results
Conclusion
[Link]
53
Stabilizing a DCM Flyback Converter
We want to stabilize a 20 W DCM adapter
Vin = 85 to 265 Vrms
Vout = 12 V/1.7 A
Fsw = 60 kHz
Selected controller: NCP1216
[Link]
54
Stabilizing a DCM Flyback Converter
Capture a SPICE schematic with an averaged model
839mV
vc
a
PWM switch CM
389mV
duty-cycle
DC 6
X2x
XFMR D1A
RATIO = -166m mbr20200ctp vout
90.0V 12.0V
vout
2 3 4
Vin p -76.1V 12.6V
c
90
AC = 0 R10
0V
13 20m
X9
Rload
PWMCM L1 12.0V
V(errP)/3 > 1 ? 1 7.2
L = Lp {Lp}
Fs = 65k 1 : V(errP)/3 C5
8
Ri = 0.7 3mF
Se = Se B1
Voltage
Coming from FB
[Link]
55
Stabilizing a DCM Flyback Converter
The feedback portion includes the optocoupler pole
parameters
Vdd
5
Vout=12
errP 5.00V
vout Ibridge=250u
2.52V
5
Rlower=2.5/Ibridge
X4 Rled
Rupper=(Vout-2.5)/Ibridge
Rpullup
POLE
{Rpullup} {Rled} Lp=450u
FP = pole
S+A
Se=100m
K
Automated compensation
[Link]
56
Stabilizing a DCM Flyback Converter
Get the open-loop power stage transfer function, H(s)
60.0
30.0
Gain at 1 kHz
-22.7 dB
0
-30.0
1
-60.0
|H(s)|
180
Phase at 1 kHz
90.0
-79 °
0
-90.0
-180 argH(s) 2
[Link]
57
Stabilizing a DCM Flyback Converter
Boost the gain by +22 dB, boost the phase at fc
4
80.0
GM
40.0
35 dB
0
-40.0
4
-90.0
Margin at 1 kHz
-180 argT(s) 60°
10 100 1k 10k 100k
[Link]
58
Stabilizing a DCM Flyback Converter
Test the response at both input levels, 90 and 265 Vrms
Sweep ESR values and check margins again
12.04 Vout(t)
Hi
12.00
line
6
4
11.96
11.92
100 Low
mV
line
11.88
200 mA to 2 A in 1 A/µs
3.00m 9.00m 15.0m 21.0m 27.0m
[Link]
59
Agenda
Feedback generalities
Conditions for stability
Poles and zeros
Phase margin and quality coefficient
Undershoot and crossover frequency
Compensating the converter
Compensating with a TL431
Watch the optocoupler!
Compensating a DCM flyback
Compensating a CCM flyback
Simulation and bench results
Conclusion
[Link]
60
Stabilizing a CCM Flyback Converter
We want to stabilize a 90 W CCM adapter
Vin = 85 to 265 Vrms
Vout = 19 V/4.8 A
Fsw = 60 kHz
Selected controller: NCP1230
[Link]
61
Stabilizing a CCM Flyback Converter
Capture a SPICE schematic with an averaged model
PWM switch CM
vc
467mV
a
duty-cycle
DC 6
X2x
XFMR D1A
RATIO = -0.25 mbr20200ctp vout
90.0V
vout
2 3 4 19.0V
-78.8V
p
Vin 19.7V
c
90
AC = 0 0V R10
13 14.4m
X9
19.0V Rload
PWMCM L1
1 4
L = Lp {Lp} 786mV V(errP)/3 > 1 ?
Fs = 65k 1 : V(errP)/3 C5
8
Ri = 0.25 6600u
Se = 0 B1
Voltage
Se=20k
K
[Link]
63
Stabilizing a CCM Flyback Converter
Capture a SPICE schematic with an averaged model
32.0
16.0
Gain at 1 kHz
-22 dB Sub harmonic
0
poles
-16.0
|H(s)|
ramp
-32.0
180
Phase at 1 kHz
90.0
-71 ° Inject ramp
compensation
0
-90.0
-180 argH(s)
6
10 100 1k 10k 100k
[Link]
64
Stabilizing a CCM Flyback Converter
The easiest way to damp the poles:
¾ Calculate the equivalent quality coefficient at Fsw/2
¾ Calculate the external ramp to make Q less than 1
1 1
Q= = =8
⎛ Se 1 ⎞ 3.14 × ( 0.5 − 0.46 )
π ⎜D' + − D⎟
⎝ Sn 2 ⎠
Sn ⎛ 1 ⎞ Vin Ri ⎛ 1 ⎞ 90 × 0.25 ⎛ 1 ⎞
Se = ⎜ − 0.5 + D ⎟ = ⎜ − 0.5 + D ⎟ = ⎜ − 0.5 + 0.46 ⎟ = 36 kV s
D'⎝π ⎠ Lp D ' ⎝ π ⎠ 320u × (1 − 0.46 ) ⎝ 3.14 ⎠
[Link]
65
Stabilizing a CCM Flyback Converter
Boost the gain by +22 dB, boost the phase at fc
11
80.0
Cross over
40.0 1 kHz GM
20 dB
0
-40.0
10
-80.0
|T(s)|
180
90.0
-90.0
Margin at 1 kHz
-180 argT(s) 60° 11
[Link]
66
Stabilizing a CCM Flyback Converter
Test the response at both input levels, 90 and 265 Vrms
Sweep ESR values and check margins again
19.11 Vout(t)
19.03
Hi
line
18.95 12
11
18.87
112 mV
Low
18.79
line
1.80m 5.40m 9.00m 12.6m 16.2m
time in seconds
[Link]
67
Agenda
Feedback generalities
Conditions for stability
Poles and zeros
Phase margin and quality coefficient
Undershoot and crossover frequency
Compensating the converter
Compensating with a TL431
Watch the optocoupler!
Compensating a DCM flyback
Compensating a CCM flyback
Simulation and bench results
Conclusion
[Link]
68
Testing a UC3843 Converter
A 19 V/3 A converter is built around an UC3843
The converter operates in CCM or DCM
T1
86H-6232
0.18 : 1 : 0.25
HV-bulk
R19 R3 R13
47k 47k 47k C2
10n D5
400V MBR20100 L2
2.2u
+
. . C5a C5b C7
IC4 Vout
KBU4K
D2 . 1.2mF
25V
1.2mF
25V
220uF
25V
MUR160
C11 R6
100p
Vref C13
6k Gnd
R17 2.2nF
IN
47k Type = Y1
Gnd
[Link]
69
Full Load Leads to CCM Operation
simulated
[Link]
70
Reduce the Load to Enter in DCM
simulated
[Link]
71
From the Open-Loop Bode Plot, Compensate
The TL431 is tailored to pass a 1 kHz bandwidth
k factor method
[Link]
72
Verify in the Lab. the Open-Loop Gain
Sweep extreme voltages and loads as well!
Simulated
[Link]
73
Verify in the Lab. the Open-Loop Gain
Simulated
0 100 1k 10k 100
[Link]
74
Verify in the Lab. the Open-Loop Gain
Simulated
[Link]
75
As a Final Test, Step Load the Output
Good agreement between curves!
Vin = 150 V
Simulated CCM
2 to 3 A
1 A/µs
[Link]
76
As a final test, Step Load the Output
Vin = 330 V
Simulated DCM
0.5 to 1 A
1 A/µs
[Link]
77
Conclusion
DC-DC loop compensation cannot be overlooked
It is important to understand the impact of phase margin
The crossover frequency affects the output impedance
Current mode CCM or DCM is ok with a TL431-based type 2
Make sure the optocoupler is characterized, watch the pole!
Use SPICE before going to the bench: NO trial and error!
Once the simulation is stable, build the prototype
Simulations and laboratory debug: the success recipe!
[Link]
78
For More Information
[Link]
79