Chris Basso APEC Seminar 2010
Chris Basso APEC Seminar 2010
Senior Scientist
IEEE Senior Member
Agenda
Feedback generalities
The divider and the virtual ground
Phase margin and crossover
Poles and zeros
Boosting the phase at crossover
Compensator types
Practical implementations: the op amp
Practical implementations: the OTA
Practical implementations: the TL431
Design examples
A real case study
Conclusion
1
Agenda
Feedback generalities
The divider and the virtual ground
Phase margin and crossover
Poles and zeros
Boosting the phase at crossover
Compensator types
Practical implementations: the op amp
Practical implementations: the OTA
Practical implementations: the TL431
Design examples
A real case study
Conclusion
Control
variable d
Error amplifier - G
Rupper
+
-
Vin
α
-
+
Vp
2
How to build an oscillator?
How to keep self-sustained oscillations?
The plant
Vin ( s ) + ε
H(s) Vout ( 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
G ( s ) H ( s ) = 1 = 0 dB
1+ G (s) H (s) = 0
Nyquist
∠G ( s ) H ( s ) = −180° −1, j 0
2.00
90.0 20.0
−1, j 0
T ( s ) = 0 dB
0 0 0
∠T ( s )
ℑm T ( s )
-90.0 -20.0 -2.00
ω→∞
ℜe T ( s )
-180 -40.0 -4.00
∠T ( s ) = −180°
10 100 1k 10k 100k 1Meg 10Meg -4.00 -2.00 0 2.00 4.00
In a Nyquist plot, we deal with the argument and real part of T(s)
the point -1,j0 represents the 0-dB gain and the sign reversal
3
If you fear oscillations, build phase margin!
The frequency at which |T(s)| = 0 dB is the crossover frequency, fc
The distance between arg T(fc) and the -180°limit is called:
the phase margin, noted ϕm
T (s)
fc = 6.5 kHz
0° - 0 dB
∠T ( s )
Gain margin
67 dB
ϕm = 92°
-180°
V
Vin ( s ) + ε
H(s) Vout ( s )
error −
Vin(t)
T (s)
Vout(t)
t G(s)
In our converters, Vin is Vref /α and is fixed!
If the loop gain is high enough, we should have: Vout = Vref α
The perturbations are Vin and Iout
The model must be updated
4
How does this translate to our converter?
The loop gain T(s) includes H(s), G(s) and GPWM
In Vin ( s ) GVin ( s )
+ I out ( s ) Z out ( s )
Vref α Vout ( s )
+ ε d(s) -
GPWM H(s) +
− T (s)
= 0 in ac Out
G(s)
T ( s ) = GPWM H ( s ) G ( s )
In the literature, T(s) is considered without the phase reversal
brought by the negative feedback:
5
These plots are identical
all these plots read the same phase margin!
80.0 180 gain 0°: modulo 360°(or modulo 2 π) reading
40.0 90.0 SPICE
0 0
phase ϕm 4
Network
0°
-40.0 -90.0 analyzer
6
-80.0 -180
80.0 360 -360°: power stage H(s),comp. G(s) and op amp inversion -360° is a
40.0 180 gain complete
0 0 turn!
-40.0 -180
ϕm
6
Agenda
Feedback generalities
The divider and the virtual ground
Phase margin and crossover
Poles and zeros
Boosting the phase at crossover
Compensator types
Practical implementations: the op amp
Practical implementations: the OTA
Practical implementations: the TL431
Design examples
A real case study
Conclusion
6
Hey, where is the divider network?
In some text books, the divider network enters the picture
α(s)
Vout ( s )
Rupper
Vc ( s ) Rlower
=− G (s) Vc ( s ) G (s) -
α(s)
Vout ( s ) Rlower + Rupper +
Vref Rlower
Rupper
≈ 0 in ac
Vc ( s )
Rlower No role
in ac!
Vc ( s )
Vref
Z
=− f
Vout ( s ) Rupper
7
Looks like the divider in back…
In a type 1, 2 or 3, the local feedback is lost for s = 0
Vout ( s )
Rupper
≠ 0 in dc
Vc ( s ) Av
Rlower
Vref
Vc ( 0 ) Rlower
=− Av
Vout ( 0 ) Rlower + Rupper
6 dB Vc ( 0 ) Rlower
α = 0.5
60.0
=− Av
Vout ( 0 ) Rlower + Rupper
α = 0.2
40.0
20.0
Un-changed!
0
Av = 60 dB
-20.0
8
You don’t have a virtual ground in an OTA!
Rlower enters the picture in all equations
Vout ( s )
Rupper + Rlower
Requ = gm
gm = 200 µA V Rupper Rlower
Vc ( s )
1
f po =
C1
2π C1 Requ
Vref Rlower
Agenda
Feedback generalities
The divider and the virtual ground
Phase margin and crossover
Poles and zeros
Boosting the phase at crossover
Compensator types
Practical implementations: the op amp
Practical implementations: the OTA
Practical implementations: the TL431
Design examples
A real case study
Conclusion
9
How much phase margin to chose?
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 < 0.5 over damping
1.80 Q=5
Q = 0.5 critical damping
Q=1 Q > 0.5 under damping 7.5 Q
1.40
Q = 0.707
Asymptotically stable
1.00 5 ϕm
600m
Q = 0.5 Fast response 2.5 76°
and no overshoot!
200m Q = 0.5
Q = 0.1 0
5.00u 15.0u 25.0u 35.0u 45.0u 0 25 50 75 100
10
How to force crossover and phase margin?
The converter we want to compensate exhibits a transfer function
This is the power stage open-loop transfer function noted H(s)
On this plot, a crossover frequency is identified, fc
The designer reads the gain deficiency and the phase rotation at fc
it can sometimes be a gain excess, in PFC stages for instance
A compensator transfer function G(s) is inserted so that it:
provides gain/attenuation at the crossover frequency: H ( f c ) G ( f c ) = 1
boosts the phase at the crossover: arg H ( f c ) + arg G ( f c ) = −360° + ϕ m
T (s)
G(s)
∠T ( s )
H(s) ? 10 100 1k 10k 100k
G (s) G (s)
60.0 40.0
40.0 30.0
20.0 20.0
G ( f c ) = 20 dB G ( f c ) = 20 dB
0 10.0
-20.0 0
10 100 1k 10k 100k 10 100 1k 10k 100k
90.0 90.0
∠G ( s ) ∠G ( s )
50.0 50.0
11
How to force crossover and phase margin?
Here, we want a 4-kHz crossover point and a 60°phase m argin
Build G(s) so that |G(4kHz)| = +21 dB and arg G(4kHz) = -125°
0 dB, 0°
Phase Tailor G(s) to
exhibit a gain ϕm = 60°
|H(s)|= -21 dB of +21 dB@ fc.
Arg H(s)= -175°
Agenda
Feedback generalities
The divider and the virtual ground
Phase margin and crossover
Poles and zeros
Boosting the phase at crossover
Compensator types
Practical implementations: the op amp
Practical implementations: the OTA
Practical implementations: the TL431
Design examples
A real case study
Conclusion
12
Poles, zeros and RHPZ
A loop gain can be put under the following form:
N (s)
H (s) =
numerator
D (s) denominator
5k
Numerator roots
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
Denominator root 2π
The pole
A pole creates a phase lag of -45°at its cutoff frequency
Vin Vout 0
R2 20.0 Cutoff
1k frequency
- 3 dB
0
-20.0
V1 C1
AC = 1 10nF -40.0 -1 slope
-20 dB decade 1
-60.0
0
Vout ( s ) 1
=
Vin ( s ) 1 + sRC
-20.0
-45° at
-40.0 cutoff
Vout ( s ) 1 1
= = where ω0 = s p1 =
1
Vin ( s ) 1 + s 1 + s RC
ω0 s p1
13
The Pole
Its magnitude at the cutoff frequency is -3 dB
Its asymptotic phase, when in the LHP, at f = ∞ is -90°
The pole "lags" the phase
Vout ( s ) 1 1
= =
Vin ( s ) 1 + sRC 1 + s
ω0
Vout ( s p1 ) 1 1
20 log10 = 20 log10 = 20 log10 = −3 dB At f = fp1
Vin ( s p1 ) s p1 2
1+
s p1
Vout ( s p1 ) sp π
arg = arg (1) − arg 1 + 1 = − arctan (1) = − At f = fp1
Vin ( s p1 ) sp 4
1
Vout (∞) ∞ π
arg = arg (1) − arg 1 + = − arctan ( ∞ ) = − At f = ∞
Vin (∞) sp 2
1
The Zero
A zero boosts the phase by +45°at its cutoff frequency
0 0
40.0 20.0
+1 slope
30.0 20 dB decade 0
20.0 -20.0
Cutoff
10.0 -40.0 frequency
+1 slope -3 dB
0
Cutoff -60.0 20 dB decade
frequency
10 100 1k 10k 100k 1Meg 10Meg
90.0
90.0
70.0
70.0
50.0 + 45° at 50.0 45° at
cutoff cutoff
30.0 30.0
10.0 10.0
10 100 1k 10k 100k 10 100 1k 10k 100k 1Meg 10Meg
14
The zero
Its magnitude at the cuttoff frequency is +3 dB
Its asymptotic phase, when in LHP, at f = ∞ is +90°
The zero "boosts" the phase
Vout ( s ) s
= 1+
Vin ( s ) ω0
Vout ( sz1 ) s z1
20 log10 = 20 log10 1 + = 20 log10 2 = +3 dB At f = fz1
Vin ( s z1 ) s z1
Vout ( s p1 ) sz π
arg = arg 1 + 1 = arctan (1) = + At f = fz1
Vin ( s p1 ) sz 4
1
Vout (∞) ∞ π
arg = arg 1 + = arctan ( ∞ ) = + At f = ∞
Vin (∞) sp 2
1
s
Vout ( s ) s π
arg = arg zo = arctan ( ∞ ) = + For f > fzo
Vin ( s ) 0 2
Vout ( s ) N ( s ) As f increases the gain decreases
= Pole for s = 0: pole at the origin
with a -1 slope (-20 dB/decade)
Vin ( s ) s
ω0
s
s
arg
Vout ( s )
= arg (1) − arg
po
= − arctan ( ∞ ) = − π For f > fpo
Vin ( s ) 0 2
A pole at the origin introduces a fixed phase lag of -90°
15
Poles and zeros at the origin
The intregration time constant changes the 0-dB crossover frequency
G (s) G (s)
if ω po
dB dB
S = -1
if ω po
S = -1
0 log10 f 0 log10 f
ω po ω po
Vin Vin
L L
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
16
The Right-Half-Plane Zero
If IL(t) can rapidly change, Iout increases when D goes up
200 µs
59%
d(t) Vout(t)
58.3%
IL(t)
Iout(t)
2
10 µs
59%
d(t) Vout(t)
IL(t)
Iout(t)
Iout drops!
100u 300u 500u 700u 900u
17
The Right-Half-Plane Zero
To limit the effects of the RHPZ, limit the duty ratio slew-rate
Chose a crossover frequency equal to 20-30% of RHPZ position
A simple RHPZ can be easily simulated:
R1
10k
K1
C1
10n
SUM2
4 Vout(s)
Vin(s)
Vin 3 2 1
K2
X1
SUM2
K1 = 1
K2 = 1
E1
10k
R1 s
Vout ( s ) = Vin ( s ) − Vin ( s ) = Vin ( s ) 1 −
1 ω0
sC1
The neg. sign confirms for
the RHPZ presence
40.0
|G(s)|
20.0 +1
0
LHPZ
-20.0
s
G( s) = 1 +
-40.0
ω0
180 RHPZ
arg G(s)
90.0
s
G( s) = 1 −
0
-90.0 -90° 2
ω0
-180
18
Agenda
Feedback generalities
The divider and the virtual ground
Phase margin and crossover
Poles and zeros
Boosting the phase at crossover
Compensator types
Practical implementations: the op amp
Practical implementations: the OTA
Practical implementations: the TL431
Design examples
A real case study
Conclusion
19
Combining poles and zeros
When the pole and zero are coincident (k = 1), no boost
The farther they are, the greater the boost
As the pole/zero split appart, f at which the boost peaks, changes
5
40.0
4
20.0 3 boost
2
0
k=1
°
-20.0
arg G(s)
-40.0
s D
1 +
sp 1
20
Do not forget the op amp
In reality, poles and zeros are combined with an op amp
To reduce the static error, we need a high dc gain
A pole at the origin is almost always part of G(s) integrator
An origin pole permanently lags the phase by -90°
With the op amp, the minimum phase lag is: -90-180 = -270°
°
160
SPICE shows a +90°
140
phase rotation rather than
120 a -270° value. Why?
100
90° Because of the modulo 2π
80.0 Similar
representation:
angles
°
-190
arg G ( f c ) 3π
Same
angle -210 θ =− ± k 2π
-230
2 k =1
Boost −3π + k 4π π
θ=
-250
-270
=
2 2
10 100 1k 10k 100k
21
How to calculate the necessary boost?
The pole has been placed at 10.4 kHz and the zero at 1.5 kHz
-5.00
-85.0 arg H ( s )
°
arg G ( f c ) = −222° +
arg G ( s )
-220
-230
-240 arg G ( s )
-250 boost = 48°
-260-270°
80.0
40.0
ϕ m = 70°
0
arg T ( s )
-40.0
-80.0
f c = 4 kHz
100 200 500 1k 2k 5k 10k 20k 50k 100k
sz1
1 + By adjusting the 0-dB crossover
s
G ( s ) = G0 pole frequency fpo, you can tailor
s
1 + the gain at crossover.
s p1
22
Shift spo to adjust the crossover gain
The zero is fixed to get the proper phase boost
By adjusting the 0-dB crossover pole position, you adjust the gain at fc
G ( s) G ( s)
Shift fpo
down
fc
fc
G0
G0
log10 f log10 f
fz f po f p fz f po fp
Agenda
Feedback generalities
The divider and the virtual ground
Phase margin and crossover
Poles and zeros
Boosting the phase at crossover
Compensator types
Practical implementations: the op amp
Practical implementations: the OTA
Practical implementations: the TL431
Design examples
A real case study
Conclusion
23
What is a type 1 amplifier?
In some cases, you do not need phase boost at all
If arg H(s) is smaller than -45°within the band of interest:
arg H ( f c ) − 270° ≤ −315° ϕ m ≥ 45°
A 45°phase margin is guaranteed
There is an origin pole at s = 0
1 sp ωp f po
G (s) = − =− o G ( jω ) = j o
G( f ) =
s s ω f
s s po 3π
s po arg G ( s ) = arg ( −1) − arg = −π − arctan ( ∞ ) = −
0 2
Select fpo depending on the wanted gain at crossover:
G (1kHz ) = 20 dB G (1kHz ) = 10 G 20
= 101 = 10
f po = 10 f c = 10 kHz
60.0
G (1kHz ) = +20 dB
30.0
-30.0 f po = 10 kHz
-60.0 G (s)
90.0
arg G ( s )
0
-90.0
arg G ( s ) = −270°
-180
-270
24
What is a type 2 amplifier?
In the vast majority of cases, phase boost is needed
If the needed phase boost is less than 90°, a type 2 can do the job
an origin pole plus a zero and a pole:
s factor
sz1
1 + s sz1
1 +
sz1 s
G (s) = − = −G0
s po
with G0 =
s s s sz1
1 + 1 +
s po s p1 s p1
The magnitude is derived as: The argument is found to be:
fz f
arg G ( f ) = arctan − − π − arctan
2
fz 1
1+ 1
f fp
boost = arctan ( f f z ) − arctan ( f f p )
1
f
G ( f ) = G0 1 1
2
f
1+ The 0-dB crossover pole
f p
frequency is placed at: f po = G0 f z
1
1
G ( 5kHz ) = 18 dB G ( 5kHz ) = 10 G
single
≈8 |G(s)|
20
pole
-1 25.7 kHz
18 dB
f po = 8 f z1 = 7.8 kHz
0
-1
0 dB
970 Hz
single
zero 7.8 kHz
25
What Bode plot for a type 2?
The type 2 provides phase boost up to +90°
18.0
2.00
-14.0
G (s)
130
110
boost = 68°
90 or − 270°
90.0
s s sz1 s
1 + 1+
sz 1 + 1 +
sz1 s po s sz2
G (s) = − 2
=−
s s s sz1 s s
1 + 1 + 1 +
1+
s po s p1 s p2 s p1 s p2
The magnitude is derived as: The argument is found to be:
fz
2
f
2
arg G ( f ) = arg N − arg D
1+ 1 1+
f po f f z fz f
2 arg N = arctan − 1 − π + arctan
G( f ) = f z
f z1 f
2
f
2 f 2
1+ 1+ f f
f p
arg D = arctan + arctan
1 f p2 fp fp
1 2
52 • Chris Basso – APEC 2010
26
Where to place the poles and zeros?
Poles and zeros can be coincident (k factor) or split
Place the double pole and the double zero to get the boost
Then adjust the origin pole 0-dB frequency at the right value
5-kHz crossover gain deficiency is +10 dB, required boost is +158°
If we consider coincident poles and zeros:
f f
Boost = 2 arctan p − arctan c f c = 5 kHz = fz f p
f p
fc
fc 5k f c 2 25k
f p1,2 = = ≈ 52 kHz f z1,2 = = ≈ 480 Hz
Boost 96.3m f p1,2 52k
tan 45 −
4 |G(s)| 52 kHz
A +10-dB gain is necessary at 5 kHz: -1
10 dB
double
pole
G ( 5kHz ) = 10 dB G ( 5kHz ) = 10 G
+1
≈ 3.2
20
-1
0 dB
480 Hz
( )
Gf 2
f po = c f z1,2 ≈ 147 Hz double
zero 147 Hz
fc
30.0
G ( 5kHz ) = +10 dB
20.0
10.0
-10.0
G (s)
180
boost = 158°
140
90 or − 270°
100
27
When to use these compensators?
Type 1 is used where no phase boost is necessary at crossover
If a 45° ϕm is ok, a type 1 can be used where arg H(fc) < 45°:
Power Factor Correction circuits
Current mode power supplies in CCM, DCM or CrM (BCM)
Voltage-mode power supplies in DCM
Pure integrator, brings output overshoot
28
Agenda
Feedback generalities
The divider and the virtual ground
Phase margin and crossover
Poles and zeros
Boosting the phase at crossover
Compensator types
Practical implementations: the op amp
Practical implementations: the OTA
Practical implementations: the TL431
Design examples
A real case study
Conclusion
Rupper = out R
I bridge Vout = Vref 1 + 1 + R1 I bias
I bias I bridge Rlower Watch out
with PFC!
Verr I bridge − I bias If Ibias << Ibridge:
R
Rlower Vout ≈ Vref 1 + 1
V ref Rlower
If Ibridge = 250 µA Rlower = 2.5 250u = 10 k Ω
29
Type 1 with an op amp
Type 1 is an inverting integrator providing one pole at the origin
C1 Zf 1
10n
Zf
sC1 1
1 2 G ( s) = = =
Zi Zi R1 sC1 R1
E1
R1 10k
1 1
10k ω po = G (s) = −
4 VVout
err R1C1 s
ω po
V1
AC = 1
ω ω ω
2
G ( jω ) = j po = po = po
ω ω ω
G (s)
360 60.0
-1
180 30.0
Adjust fpo to
get G at fc
21 dB
0 0
dB 28
fc fpo = 44.8 kHz
log f
-180 -30.0
-270°
27
-360 -60.0
arg G ( s )
10 100 1k 10k 100k
frequency in hertz 4 kHz
Type 1 – op amp
30
Type 2 with an op amp (full analysis)
Type 2 keeps the origin pole but adds one zero and one extra pole
Zf C2
1 1 1 1
62pF
+ R2 + R2 +
Zf sC sC2 sC sC2
C1 R2 = 1 1
2nF 116k Zi R1
1 2 4
Re-arrange
Zi E1
R1 10k
1 + sR2C1
G ( s) = −
10k
V
Vout
3 err
C C
sR1 ( C1 + C2 ) 1 + sR2 1 2
C1 + C2
V1
AC = 1
1+ c
f +1
p fc
31
Type 2 with an op amp (simplified analysis)
In most cases, C2 is much smaller than C1. Therefore:
R2 1 sR2C1 + 1 1 + sz s
G ( s) ≈ − = −G0
R1 (1 + sR2C2 ) 1+ s sp
R2 1 1
G0 ≈ ωz = ωp ≈
R1 R2C1 R2C2
2
f
2
f
1+ z c + 1
R2 fc fp
G ( fc ) = R2 = G fc R1
R1 f
2
fz
2
1+ c
f +1
p fc
Type 2 – op amp
32
Type 2 with an op amp – Bode plot
° dB
G (s)
-110 60.0
-150 30.0
dB
fc 15 dB
-190 0
log f
-220°
-230 -30.0
Type 2 – op amp
33
Type 2 with an op amp – start-up issue
The capacitor charging acts as an inexpensive soft-start
If too small, Vout rises too quickly and an overshoot appears
V
14.0
Full power
10.0
6.00
Verr ( t )
2.00
1.2 ms
-2.00
I1 ( t )
600u
500 µA
500u
400u
300u
200u
C1 1
+1
( R1 + R2 ) C2 s ( R1 + R2 ) C2
Verr
G ( s) = −
R1C1 1 + sR2C2
Vref Rlower
R1 + R2 C2 1 1 R1ω z
G0 = C2 = C1 = R2 =
R1 C1 ω z ( R1 + R2 ) G0 R1ωz ω p − ωz
Type 2 – op amp
34
Type 2 with op amp – automated calculation
C2
{C2} out
IC = 0
parameters
4.99V
R2
2.50V {R2}
R1=10k I1
2 1 3
R1
C1 2.50V
10k
fc=20 {C1}
IOP IC = 0 2.50V
Gfc=-10 6
2.50V
k=2 7
Vout
2.50V 4.995
AC = 1
G=10^(-Gfc/20) Verr1
4
pi=3.14159 X1 V1
AMPSIMP R3
2.5
A simple macro can be 10k
fp=fc*k
written to calculate all fz=fc/k
the elements around the Wp=fp*2*pi
compensator for both Wz=fz*2*pi C4
{C20}
options. R20=R1*Wz/(Wp-Wz) IC = 0
2.50V 4.99V
C10=1/(Wz*(R1+R20)) 10 9
2.50V
C20=1/(G*R1*Wz) 16
R4
I2
{R20}
R5
a=sqrt((fc^2/fp^2)+1) 10k
b=sqrt((fz^2/fc^2)+1) IV8
11
C3
12
2.50V {C10}
R2=((a/b)*G*R1*fp)/(fp-fz) 14 2.50V B1
Voltage
C2=C1/(C1*R2*2*pi*fp-1)
13
C1=1/(2*pi*R2*fz) Verr2 V(out)
X2 V5
AMPSIMP R6
2.5 10k
Type 2 – op amp
120 30.0
110 10.0
10 dB
100 -10.0 at 20 Hz
arg G ( s )
90.0 -30.0
35
Type 2 in a PFC circuit
An average model is used to test both structures
Start-up and transient response is studied in each case
Iin
X1 Vrect
parameters KBU4J L1 R6 X4
{L} 100m PSW1
+
R1=1.6Meg 8 16 23 Vout Vout RON = Vout^2/Pout
3
Cin ROFF = (Vout^2/Pout)*2
Vin Vin
c
∆
IN
fc=20 1u
p
{VRMS}
Fsw (kHz)
4
ton
5
vc
G=10^(-Gfc/20)
a
pi=3.14159 C5
9
R4
150u 1.6Meg
R2 IC = {Vrms*1.414}
boost=pm-(pfc)-90 12k C3
pi=3.14159 10n
K=tan((boost/2+45)*pi/180)
K = 0.6 Vmul
fp=fc*k A
C2
fz=fc/k K*A*B
24
B
2 {C2}
IC = 0 Opt 1
Wp=fp*2*pi B4 R5
B1 3 0 V = V(1) * V(2) * {K}>1.3 ?
Wz=fz*2*pi Voltage {R2}
1.3 : V(1) * V(2) * {K} 12
V(err)-2.05 < 0 ? 0 : V(err)-2.05 C1
R20=R1*Wz/(Wp-Wz) {C1}
C10=1/(Wz*(R1+R20)) Verr R9 IC = 0
parameter err 100m 14
C20=1/(G*R1*Wz)
op3
Vrms=100 17
Pout=150 B5
a=sqrt((fc^2/fp^2)+1) Voltage
Vout=400 Vopamp
b=sqrt((fz^2/fc^2)+1) 13
R3
Ri=0.22 V(op3)>6.4 ? 6.4 : V4
V(op3) <1.7 ? 1.7 : V(op3) 10k
L=850u 2.5
R2=((a/b)*G*R1*fp)/(fp-fz)
C2=C1/(C1*R2*2*pi*fp-1)
C1=1/(2*pi*R2*fz)
Replaced by the second type (opt 2)
Type 2 – op amp
350
420 V, opt 2
Vout ( t )
310
270
Start-up sequence
51.0m 151m 251m 351m 451m
time in seconds
420
Transient response
410
400
Vout ( t )
390
380
36
Type 3 with an op amp (full analysis)
Type 3 keeps the origin pole but add a zero/pole pair
C2 Zf
Zi {C2} 1 1 1 1
1 Zf = + R2 + R2 +
R3
sC
1 sC2 sC
1 sC2
C1 R2
{R3} {C1} {R2}
R1 1 1
5 {R1}
4
Zi = + R3 R1 + R3 + R1
C3 sC3 sC3
{C3}
2
3 Verr
ref
V1 Rlower
AC = 1 10k
factor sR2C1
1 1 1 1 1
+ R2 + R2 + +1
sC sC2 sC sC sC3 ( R1 + R3 ) + 1
G ( s) = − 1 1 R C sR2C1
2
=− 2 1
1 1 R1 ( C1 + C2 ) 1 + sR C1C2 sR3C3 + 1
+ R3 R1 + R3 + R1
+
2
sC sC C C
3 3 1 2
Type 3 – op amp
As ωz12, ωp12, G0 and R1 are given (boost, Vout etc.) how to get R2?
2 2 2
f f
2
fz f
1+ 1 1+ c 1+ c 1+ c
fz fp fp
fc 2 G fc R1 f p1 1 2
G ( f c ) = G0 R2 =
f
2
f
2 f p1 − f z1 2
f
2
fz
1+ c 1+ c 1+ 1 1+ c
fp fc fz
1 f p2 2
Type 3 – op amp
37
Type 3 with an op amp (simplified analysis)
Extract the rest of the elements:
1 C1 f p2 − f z 2 R1 f z2
C1 = C2 = C3 = R3 =
2π f z1 R2 2π f p1 C1 R2 − 1 2π Rupper f p2 f z2 f p2 − f z 2
2 2
f
2 2
fz f f
1+ 1 1+ c 1+ c 1+ c
fc fz fp fp
R2 2 1 2
G ( fc ) = R2 = G fc R1
2 2
R1 f
2
f
2
fz f
1+ c 1+ c 1+ 1 1+ c
fp fc fz
1 f p2 2
Type 3 – op amp
C1 = 415 pF C2 = 10 nF C3 = 20 nF R3 = 242 Ω
Type 3 – op amp
38
Type 3 with an op amp – Bode plot
dB °
G (s)
10.0 90.0
0 0
dB G ( 5k ) = −10 dB
fc
log f
-10.0 -90.0
-20.0 -180
-270°
boost = 145°
arg G ( s )
-30.0 -270
Agenda
Feedback generalities
The divider and the virtual ground
Phase margin and crossover
Poles and zeros
Boosting the phase at crossover
Compensator types
Practical implementations: the op amp
Practical implementations: the OTA
Practical implementations: the TL431
Design examples
A real case study
Conclusion
39
Type 1 with an OTA
A type 1 with an OTA involves the transconductance value gm
gm
R1 Rlower
Vout Verr I out = −gmVin
Rlower + R1
2
Rlower 4 C1
Rlower 1
Vref G ( s ) = −gm
Rlower + R1 sC1
1 1 1 Rlower + R1
G (s) = − =− =− with Req =
R + R1 sReq C1 s gmRlower
s lower C1
gmRlower ω po
ω po ω po
G (s) =
1
= f po = G f c f c C1 =
jω ω Rlower + R1
2π f po
gmRlower
Type 1 – OTA The divider network now enters the picture!
p
Fsw (kHz)
4
PWM switch BCM
402V
R1 50.1V X2
1.6Meg Vfsw 26 PWMBCMCM2
1.05V L=L R10
12.9V Ri = Ri 50m
VinAVG 10
Vton Rload
ton
5
{Vrms*1.414} {Vout*Vout/Pout}
vc
a
parameter C5
9
R4
150u {Rupper}
R2 IC = {Vrms*1.414}
Vrms=100 12k C3
Pout=175 10n
Vout=400
Ri=0.2 K = 0.6
L=850u A
400mV
Parameter
K*A*B
1
634mV
24
B Rupper=1.6Meg
B4 B1 3 0 V = V(1) * V(2) * {K}>1.3 ? 1.3 : V(1) * V(2) * {K} Rlower=10k
Voltage
G1
V(err)-2.05 < 0 ? 0 : V(err)-2.05 Verr {gm} gm=50u
err VOTA fc=7
0V 2.50V
22 17
Gfc=38
LoL
G=10^(-Gfc/20)
CoL D1 D2 2.68V
1kF 1k N = 0.01 N = 0.01 13
fpo=G*fc
6.40V 1.70V R5 C1 B1
a=Rlower+Rupper
28 2 15 14 1G {C1} Current V11 R3 b=gm*Rlower
B5 V4
V7 V3 V5 {Rlower} Req=a/b
Voltage 2.5
AC = 1 6.4 1.7
V(VOTA) C1=1/(6.28*fpo*Req)
40
Type 1 with an OTA – design example
A type 1 as examplified in the data-sheet give a weak ϕm!
° dB dB °
| H ( f )| argT ( f )
G f c = 38 dB
180 44.0 40.0 80.0
arg H ( f ) f c = 7 Hz
-90.0 8.00 -20.0 -40.0
-180 -4.00
ϕ = −71° -40.0 -80.0
Type 1 – OTA
1 1
R2 +
R2C1 gmRlower 1 + ( f z f )
2
Rlower gm sC1 sC2
G (s) = − G (s) = −
R1 + Rlower C1 + C2 Rlower + R1 1 + f f 2
R2 +
1 1
+ ( p)
sC1 sC2
Ratio 2
f
dependent 1+
G fc f p Rlower + R1 fp
ωz =
1 1
ωp = R2 =
R2C1 CC f p − fz gmR1 f
2
R2 1 2 1+ z
C1 + C2 f Type 2 – OTA
41
Type 2 with an OTA – design example
You need to provide a 15-dB gain at 5 kHz with a 50°boo st
The poles and zero position are that of the op amp design
R2 = 260 k Ω C1 = 340 pF C2 = 52 pF gm = 50 µS R1 = Rlower = 10 k Ω
dB °
55.0 -190 dB
G (s)
35.0 -210 log f
15.0 -230
-5.00 -250
380
300
OTA
220
140
42
Type 3 with an OTA
A type 3 with an OTA lets you boost the phase up to 180°. In theory…
R3 C3
gm
Vout Verr
R1 R2
Rlower
Vref C2
C1
1
+1
R gm R2C1 sC3 ( R3 + R1 ) + 1 sR2C1
G ( s ) = − lower If C2 << C1
Rlower + R1 C1 + C2 Rlower R1 C1C2
sC3 + R3 + 1 1 + sR2
Rlower + R1 C1 + C2
1
+1
Rlower gmR2 sC3 ( R3 + R1 ) + 1 sR2C1
G (s) ≈ −
Rlower + R1 R R 1 + sR2C2
sC3 lower 1 + R3 + 1
R
lower + R1 Type 3 – OTA
Vref Vout ( f p − f z ) 2 2
R2 =
(f p1
2
+ fc2 )( f z1
2
+ fc2 )( f p2
2
+ fc 2 )( f z2
2
+ fc2 ) f c f z2 ( Rlower + R1 ) G fc
f z2 f c + f c + + f z1 f c + f z1 f z2
2 2 4 2 2 2 2
gmf p2 f p1 Rlower
1 1 1
C1 = C2 = C3 =
2π R2 f z 1 2π R2 f p 1 f z2 ( R3 + R1 ) Type 3 – OTA
43
Type 3 with an OTA
If we look at R3 definition, its numerator can be null:
f z2Vout − f p2Vref = 0
Vref
f z2 > f p2
Vout
f p2 f p2 = 10 kHz f p2 f p2 = 10 kHz
f z2 > f z2 >
4 f z2 > 2.5 kHz 160 f z2 > 63 Hz
Less freedom to place the second pole and zero: limited boost!
Type 3 – OTA
Vout=12
Vref=2.5 R8 R2
{R30} {Rupper} G1
Rlower=10k {gm}
Rupper=Rlower*(Vout-Vref)/Vref 5
Vota
fc=2k C6 4
V1 {C30}
Gfc=-20 AC = 1
1
C1
G=10^(-Gfc/20) {C10}
pi=3.14159 3 C2
{C20}
fz1=300 R3
{Rlower}
R1
{R20}
fz2=900
fp1=26k
fp2=4.3k
C3=1/(2*pi*fz1*Rupper)
R3 =1/(2*pi*fp2*C3)
C1=1/(2*pi*fz2*R2)
C2=1/(2*pi*(fp1)*R2)
a=fc^4+fc^2*fz1^2+fc^2*fz2^2+fz1^2*fz2^2 C4
{C2}
c=fp2^2*fp1^2+fc^2*fp2^2+fc^2*fp1^2+fc^4 vin
R2=sqrt(c/a)*G*fc*R3/fp1 R7 C3 R6
{R3}
gm=200u {C1} {R2}
Rupper2
d=(fp1^2+fc^2)*(fc^2+fz1^2) * (fp2^2+fc^2)*(fc^2+fz2^2) 10 {Rupper}
8
e=fz1^2*fz2^2+fz1^2*fc^2+fc^2*fz2^2+fc^4 C5 E1
2
{C3} 10k
f=(Rlower+Rupper)*G*fz2*fc/(gm*Rlower*fp2*fp1)
R20=(sqrt(d)/e)*f 6 VOPAMP
R30=((fz2*Vout-fp2*Vref)/(Vref*Vout*(fp2-fz2)))*Rlower*(Vout-Vref)
Rlower2
C30=1/(2*pi*fz2*(R30+Rupper)) {Rlower}
C20=1/(2*pi*R20*fp1)
C10=1/(2*pi*R20*fz1)
Type 3 – OTA
44
Type 3 with an OTA – a design example
The op amp and the OTA designs perfectly match!
dB
45.0
35.0
G (s)
25.0
20 dB
15.0
5.00
°
240
arg G ( s )
200
160
120
80.0
Agenda
Feedback generalities
The divider and the virtual ground
Phase margin and crossover
Poles and zeros
Boosting the phase at crossover
Compensator types
Practical implementations: the op amp
Practical implementations: the OTA
Practical implementations: the TL431
Design examples
A real case study
Conclusion
45
The TL431 programmable zener
The TL431 is the most popular choice in nowadays designs
It associates an open-collector op amp and a reference voltage
The internal circuitry is self-supplied from the cathode current
When the R node exceeds 2.5 V, it sinks current from its cathode
K
R
K
TL431A R
A
2.5V
R
A
K
A
Vout ( s )
R pullup RLED R1
Vout ( s ) − VTL431 ( s )
I LED ( s ) =
VFB ( s ) RLED
RLED connected to Vout offers a direct path to the LED: fast lane! TL431
46
The TL431 programmable zener
At high frequencies, the TL431 ac output is zero, C1 is a short-circuit
RLED alone fixes the fast lane gain
Vout ( s )
RLED R1
Vdd VFB ( s ) = −CTR ⋅ R pullup ⋅ I1
I1
Vout ( s )
R pullup I1 =
0V RLED
IC in ac
VFB ( s )
VFB ( s ) R pullup
Rlower = −CTR
Vout ( s ) RLED
RLED must also leave enough headroom to the TL431: upper limit!
TL431
47
The TL431 – the static gain limit
Let us assume the following design:
5 − 1 − 2.5
Vout = 5 V RLED ,max ≤ × 20k × 0.3
4.8 − 0.3 + 1m × 0.3 × 20k
Vf = 1V
VTL 431,min = 2.5 V
Vdd = 4.8 V
VCE , sat = 300 mV RLED ,max ≤ 857 Ω
I bias = 1 mA
CTR min = 0.3
R pullup = 20 k Ω
R pullup 20
G0 > CTR > 0.3 > 7 or ≈ 17 dB
RLED 0.857
0 0
-17 dB
arg H ( s )
-20.0 -90.0
Requires
-40.0 -180
ok 17 dB
or more
10 100 500 1k 10k 100k
48
TL431 – injecting bias current
Make sure enough current always biases the TL431: Ibias > 1 mA
If not, its open-loop suffers – a 10-dB difference can be observed!
Ibias
Easy
Ibias = 1.3 mA solution
Rbias
Ibias = 300 µA
1
Rbias = = 1 kΩ
1m
TL431
49
TL431 – small-signal analysis
In the previous equation we have:
R pullup
a static gain G0 = CTR
RLED
1
a 0-dB crossover pole frequency ω po =
R1C1
1
a zero ωz = 1
R1C1
We are missing a pole for the type 2!
Vdd
Type 2 transfer function
R pullup
Add a cap. from
VFB ( s ) collector to ground
VFB ( s ) R pullup CTR 1 + sR1C1
=−
C2 Vout ( s ) RLED sR1C1 (1 + sR pullupC2 )
TL431
Vdd
Rpullup
VFB(s) FB
c
C
Copto
C2 = C || Copto e optocoupler
TL431
50
TL431 – small-signal analysis
The optocoupler must be characterized to know where its pole is
Cdc Rled
Ic 10uF 20k
2 5
Rpullup ∠O ( s )
20k
Rbias
VFB 1 3
Vdd
5
O ( s)
X1 4 6
SFH615A-4
Vbias Vac
IF
-3 dB
4k
1 f po CTR
G (s) = − | G ( f c ) |= f po = G fc fc C2 =
s fc 2π G fc f c RLED
ω po
TL431
51
TL431 type 1 design example
We want a 5-dB gain at 5 kHz to stabilize the 5-V converter
Vout = 5 V
Vf = 1V
VTL 431,min = 2.5 V Apply 15%
margin
Vdd = 4.8 V
RLED ,max ≤ 857 Ω RLED = 728 Ω
VCE , sat = 300 mV
I bias = 1 mA
CTR min = 0.3
R pullup = 20 k Ω
5
G fc = 10 20 = 1.77 CTR 0.3
C2 = = ≈ 7.4 nF
f c = 5 kHz 2π G fc f c RLED 6.28 ×1.77 × 5k × 728
R1 = 10 k Ω
Copto = 2 nF
R pullup
C = 7.4n − 2n = 5.4 nF C1 = C2 ≈ 14.7 nF
R1 TL431
parameters
Vout=5
Vf=1
Vref=2.5
VCEsat=300m
Vdd=4.8
Ibias=1m E1
Vdd -1k
A=Vout-Vf-Vref {Vdd} L1
B=Vdd-VCEsat+Ibias*CTR*Rpullup 4.80V 4.99V 1k 4.99V 4.99V
Rmax=(A/B)*Rpullup*CTR err
6 5 7
TL431
52
TL431 type 1 design example
We have a type 1 but 1.3 dB of gain is missing?
dB
20.0
G (s)
10.0
3.7 dB
0
-10.0
-20.0
°
270 arg G ( s )
180
90.0
-90.0
Both bias and dynamic resistances have a role in the gain expression TL431
53
TL431 type 1 design example
A low operating current increases the dynamic resistor Rd
0.002000
Rpullup = 20 kΩ, IF = 300 µA (CTR = 0.3)
Rd = 158 Ω
0.001800
0.001600
Rpullup = 1 kΩ, IF = 1 mA (CTR = 1)
Rd = 38 Ω
IF Forward Current(A)
0.001400
0.001200
IF = 1 mA IF @ 110°C
0.001000
IF @ 70°C
0.000800 IF @ 25°C
0.000600 IF @ -20°C
IF @ -40°C
0.000400
IF = 300 µA
0.000200
0.000000
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6
VF Forward Voltage (Volts)
-10.0
-20.0
°
arg G ( s )
270
180
90.0
-90.0
100 200 500 1k 2k 5k 10k 20k 50k 100k
TL431
54
The TL431 in a type 2 compensator
Our first equation was already a type 2 definition, we are all set!
Vdd
Vout R pullup
R pullup RLED G0 = CTR
R1 RLED
1
VFB ω po =
R1C1
Rbias 1
ω z1 =
R1C1
C2 C1 1
ωp =
TL431 Rlower
1
R pullup C2
TL431
55
TL431 type 2 design example
The optocoupler is still at a 4-kHz frequency:
C pole ≈ 2 nF Already above!
Type 2 pole capacitor calculation requires a 581-pF cap.!
For a 50°phase boost and a 3.8-kHz pole, the crossov er must be:
fp
fc = ≈ 1.4 kHz
tan ( boost ) + tan 2 ( boost ) + 1
TL431
TL431
56
TL431 type 2 design example
The 1-dB gain difference is linked to Rd and the bias current
dB
30.0
G (s)
20.0
10.0
0
14 dB @ 1.4 kHz
-10.0
°
140 arg G ( s )
130
120
50°
110
100
10 100 1k 10k 100k TL431
TL431
57
TL431 – suppressing the fast lane
The equivalent schematic becomes an open-collector op amp
Vout
Vout ( s )
Vdd Vz
RLED R1
R pullup
G1 ( s )
VFB
C1 R2 G (s)
C2
O (s)
Transmission Rlower
chain – O(s) Vref
Compensaton VFB ( s )
chain – G1(s)
TL431
G (s)
O (s) VFB C1 R2
G1 ( s ) =
1+ R 2 C1
sR1C1
− IC
C2 IL
RLED Rlower
CTR
R pullup TL431
58
TL431 – suppressing the fast lane
The op amp can now be wired in any configuration!
Just keep in mind the optocoupler transmission chain
R pullup 1
O(s) = CTR
RLED 1+ sR pullup C pole
Wire the op amp in type 2A version (no high frequency pole)
1+ R 2 C1
G1 ( s ) =
sR1C1
When cascaded, you obtain a type 2 with an extra gain term
R pullup 1+ R2C1
G ( s) = − CTR
RLED sR1C1 (1+ sR pullup C pole )
G2 TL431
59
TL431 type 2 design example – no fast lane
We need to account for the extra gain term:
R pullup 20k
G2 = CTR = 0.3 = 4.72
RLED 1.27k
The required total mid-band attenuation at 1.4 kHz is -10 dB
G fc = 10 −10 20 = 0.316
The mid-band gain from the type 2A is therefore:
G0 0.316
G1 = = = 0.067 or − 23.5 dB 2
G2 4.72 fc
+ 1
fp
Calculate R2 for this attenuation: R2 = G1 R1 = 2.6 k Ω
2
fz
+1
fc
TL431
Vout=12
Rupper=(Vout-2.5)/250u
fc=1.4k
Gfc=10
Vf=1 Zener D1
Ibias=1m 1N827A C4
Vref=2.5 value Vdd 0.1u
E1
-1k
VCEsat=300m {Vdd} R5
Vdd=5 5.00V 6.17V 1k 12.0V
6 5
Err
Vz=6.2
12.0V CoL
Rpullup=20k R4 R1 1kF LoL 2.50V
12
Fopto=4k {Rpullup} {RLED} 0V 1kH 9
Rupper 14
Copto=1/(2*pi*Rpullup*Fopto) 12.0V
2.51V 4.32V {Rupper} Vref
CTR=0.3 Vout
13
B1
4 2
2.50V 2.5
G1=Rpullup*CTR/RLED X2 Vac Voltage
11
G2=10^(-Gfc/20) Optocoupler V(err)
Cpole = Copto Rbias
G=G2/G1 1k
CTR = CTR
pi=3.14159 3.31V 2.50V
C2
fz=516 {C2} 1 10
fp=3.8k C1 R2
{C1} {R2}
C1=1/(2*pi*fz*R2)
Cpole2=1/(2*pi*fp*Rpullup)
C2=Cpole2-Copto X1
Rlower
a=(fz^2+fc^2)*(fp^2+fc^2) 10k
TL431_G
c=(fz^2+fc^2)
R2=(sqrt(a)/c)*G*fc*Rupper/fp
Rmax1=(Vz-Vf-Vref)
Rmax2=(Vdd-VCEsat+Ibias*(Rpullup*CTR))
RLED=(Rmax1/Rmax2)*Rpullup*CTR*0.85 TL431
60
TL431 type 2 design example – no fast lane
The simulation results confirm the calculations are ok
dB
10.0
G (s)
0
-10.0
-20.0
°
150 arg G ( s )
130
110 50°
90.0
70.0
1 1
f p1 = f p2 =
C pz 2π R pz C pz 2π R pullup ( C2 || Copto )
R pullup
G= CTR
Rbias RLED
C2
C1 RLED fixes the gain and
a zero position
Rlower
61
The TL431 in a type 3 compensator
Once the fast lane is removed, you have a classical configuration
Vdd Vout
Vz
1
fz1 =
Rz 2π R2C1
R pullup RLED R1 R3
1
f z2 =
2π R1C3
C3 1
Rbias f p1 =
2π R3C3
1
C2 f p2 =
C1 R2 2π R pullup ( C2 || Copto )
R pullup
Rlower G= CTR
RLED
TL431
G fc = 10 −10 20 = 0.316
TL431
62
TL431 type 3 design example – no fast lane
The mid-band gain from the type 3 is therefore:
G0 0.316
G1 = = = 0.068 or − 23.3 dB
G2 4.6
Calculate R2 for this attenuation:
2 2
f f
1+ c 1+ c
fp
G1 R1 f p1 1 f p2
R2 = = 744 Ω
f p1 − f z1 2
f
2
fz
1+ 1 1+ c
fc fz
2
C1 = 800 nF C2 = 148 pF C3 = 14.5 nF Copto = 2 nF
The optocoupler pole limits the upper double pole position
The maximum boost therefore depends on the crossover frequency
-10.0
-20.0
Isolated 12-V
dc source
-30.0
-10 dB @ 1 kHz
°
240 arg G ( s )
200
160
135°
120
80.0
63
Pushing the opto pole with the cascode
The optocoupler pole is clearly a limiting factor
A possibility exists to push its position to a higher region
The cascode fixes the optocoupler collector potential
It neutralizes the Miller capacitance of the optocoupler
Vdd
R3 With cascode
20k
R5
20k
FB -3 dB
3
fp = 4.5 kHz
Q1
6 2N3904
fp = 23 kHz
1
R6
20k
SFH615A-2
1000 µF
6.2 V 9 kΩ
0.1 µF Vout
5V
22 Ω
12 V
VEE
1 kΩ
VCC
2.5 V
22 kΩ RLED R3 15 V LM358
1.8 kΩ
VFB 2.5 V 38 kΩ 0.1 µF
U2 1 kΩ C3
SFH615-2
C2
C1 R2 Network 12-V bias point
analyzer automation
U1 10 kΩ
TL431
64
Testing the TL431 fast lane structures
The results confirm the calculation procedures: a type 2
arg|G(s)|
Gain = 0 dB
fc = 1 kHz
|G(s)|
boost = 116°
arg|G(s)| Gain = 17 dB
fc = 1 kHz
65
Agenda
Feedback generalities
The divider and the virtual ground
Phase margin and crossover
Poles and zeros
Boosting the phase at crossover
Compensator types
Practical implementations: the op amp
Practical implementations: the OTA
Practical implementations: the TL431
Design examples
A real case study
Conclusion
598mV
vc
a
Dc 2
68.4V X2 Vout
Fsw (kHz)
XFMR
Fsw 5
3.09V -210V
RATIO = -250m
52.5V
Iout = 2.4 A
8.74V
7 8
Ip
p
V1
Ip
6
c
{Vrms*1.414} 154mV
3
R2 R7
X1
GAIN
R1 X5 50m 65k
PWMBCMVM 100m K = Gpwm D4
L=L GAIN 52.5V 26.9V
50 V
1N965
0V
9 11 2 A string
4
1.57V
22 C1 C5
B1
L1 2.2mF 0.1uF
Voltage Rsense
{L}
V(errac)-0.6 0.5 1.24V
Vsense
23
parameters Vdd
{Vdd}15.1V 1.25 V ILED
1.24V
Vrms=100
5.00V
14
R5
{RLED}
10
R4
Ac out
L=400u {Rupper}
18
VFB R6
Ct=1.5n
LoL {Rpullup}
Icharge=270u errac
1k 2.17V 2.17V 12.2V
Gpwm=(Ct/Icharge)*1Meg 2.17V 29 17 16
X4
Optocoupler
On-time CoL
1k C2 11.1V
Cpole = Copto
CTR = CTR
C4
{C1}
R9
{R2}
0V
selection 20
AC = 1
{C2} 13
1.24V
28
ac in V3
15
X3
TLV431
1.24V
Average simulation
66
Design Example 1 – a single-stage PFC
Once the converter elements are known, ac-sweep the circuit
Select a crossover low enough to reject the ripple, e.g. 20 Hz
dB 0
H (s)
8.00
-2.5 dB
4.00
20 Hz
0
-4.00
-8.00
°
80.0
40.0
arg H ( s ) -11°
0
-40.0
-80.0
10.0
13
fc = 19 Hz
0
15 V 0.5 Ω -10.0
T (s)
3
-20.0
5V 10
°
11
6.1 kΩ 10 kΩ 180
ton
generation 20 kΩ 90.0
7 6 ϕm = 90°
0
586 nF 13.6 kΩ
395 nF 4 12 -90.0
arg T ( s )
5
-180
G (s) 1 2 5 10 20 50 100 200 500 1k
67
Design Example 1 – a single-stage PFC
A transient simulation helps to test the system stability
6.00
4.00
2.00
2.2 A
I LED ( t )
0
-2.00
VFB ( t )
5.00
4.60
4.20
3.80
3.40
4.00
2.00
I in ( t )
-2.00
-4.00
fc=20 400V
PWM switch VM
R15
Gfc=36 {RBOU}
X1
boost=50 Vin 1.74V
PWMVM
R10
{Vrms*1.414} BO 150m
gm=200u L=L Rload
a
Fs = 65k
d
VBO 400V
G=10^(-Gfc/20) 1 {Vout^2/Pout}
C5
pi=3.14159 R16 C7 180u
fp=(tan(boost*pi/180)+sqrt((tan(boost*pi/180))^2+1))*fc R7
{RBOL} 0.47uF
a=sqrt((fc^2/fp^2)+1) parameter
b=sqrt((fz^2/fc^2)+1)
R2=(G*fp*(Rupper+Rlower)/((Rlower*gm)*(fp-fz)))*(a/b) D4
Vrms=100
Rs
C1=1/(2*pi*fz*R2) 1N5406 Vout=400V
C2=C1/(2*pi*fp*C1*R2-1) d(s) Pout=300W
L=650u
out1 OTA V1
RBOL=82.5k
RBOU=6.6Meg
3.7V
R1
3.70V
7
Control law ROCP=3.8k
Vp=2.5
{Rupper} G1 D1 Vctrl Vpin5 Rsense=100m
{gm} I(V4)>28u ? 28u :
N = 10m R18 R19
I(V4)<-28u ? -28u : I(V4) pin5
2.50V 0V 1.85V 1.85V 1 1.85V 1 1.85V 647mV
31 err 34 35 ctrl
D2 C1 CoL
2.50V LoL
N = 10m0V {C1} 1k
1k 0V 884mV 6
BOTA 13
C2 1.85V 36
600mV BPWM
Rlower V4 Current 14 {C2} 37 B6
{Rlower} Vref R17 C8 Voltage
R2 B1 Current 47k 1nF
V7 AC = 1
2.5
600m {R2} Voltage
V(err)
V12
1-(V(pin5)/{Vp}) > 0.99 ?
0.99 : 1-(V(pin5)/{Vp})
NCP1654
((-V(Rs)/{ROCP})*V(BO))/(4*(V(CTRL)-0.55))
68
Design Example 2 – a 300-W PFC
Select the bandwidth at high line: 20 Hz
dB
H (s)
40.0
20.0
0
36 dB
20 Hz
-20.0
°
arg H ( s )
180
90.0
-76°
0
-90.0
-180
ϕm = 65°
20.0 90.0
arg T ( s )
0 0
-20.0 -90.0
20 Hz
° dB
180 40.0
ϕm = 71°
arg T ( s )
90.0 20.0
0 0
8.2 Hz
-90.0 -20.0
69
Design Example 2 – a 300-W PFC
Test the transient response and see dynamic enhancer effects
448
With
424
dynamic enhancer
400 9
5
376
370 V
Without
352
dynamic enhancer 347 V Vout ( t )
3.60
2.90
2.20
With 10
8
70
Design example 3: 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
12.0V
90.0V
vout
2 3 4
p
Vin -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
20.0 90.0
Phase at 1 kHz
-70 °
0 0
arg H ( s )
-20.0 -90.0
-40.0 -180
Magnitude at 1 kHz
-23 dB
10 100 1k 10k 100k
71
Design example 3: a DCM flyback converter
Apply k factor or other method, get fz and fp
fz = 3.5 kHz fp = 4.5 kHz
Vout(s)
Vdd 2 kΩ 38 kΩ
20 kΩ
VFB(s) 10 nF
k factor FB
gave
2.5 nF
C = 3.8 nF 10 kΩ
install Copto = 1.3 nF
C2 = 3.8n − 1.3n ≈ 2.5 nF
° dB
180 80.0 T (s)
ϕm = 60°
0 0
-90.0 -40.0
Crossover
1 kHz
-180 -80.0
72
Design example 3: a DCM flyback converter
Sweep ESR values and check margins again
12.04 Vout(t)
Hi
12.00 line
11.96
200 mA to 2 A in 1 A/µs
3.00m 9.00m 15.0m 21.0m 27.0m
4 5 R7 VEE
3 15
C8 D4 100k 4
1N4148 C12
100pF
0.1uF
TL431 R12
R10
U4 10k
100
C7 R8 C9 R9 C11 R11
10n 14.3k 100p 22k 100nF 0.075 C13
0.1uF
U2B
C10
100nF
73
Design example 4: a CCM forward converter
Despite the op amp, we still have a fast lane issue!
Vout
Vdd
RLED R1
R pullup I LED ( s ) Same
C1
transfer
function as
FB with a TL431!
C2 Vopamp ( s ) Rlower
74
Design example 4: a CCM forward converter
Build an average model to extract H(s)
X5x dc
PW MCM2
L = Lout/N^2
Fs = Fs 309mV
D2
parameters
Ri = Rsense RL2
Se = Se MBR40L60CT vout
duty-cycle 5.01V 1m 4.99V
a c
Vc
3 18 Vout2 Vout=5
11.1V 5.54V Lout
8 5
5.01V
{Lout} Lout=5u
792mV
vc X6
36.0V 15
p XFMR
R1 Lmag=10mH
10 PWM switch CM 10m
V6
RATIO = N 4.99V Rload1 Fs=200k
{Vin} 7 {Rload}
C1
N=0.5
(V(err)-0.6)/3 >1 ?
1410uF Rsense=70m
1 : (V(err)-0.6)/3 Rload=250m
Vin=36
Vdd
{Vdd}
Vinmin=36
5.00V 21
vout
D=0.31
R7 Smag=(Vinmin/Lmag)*Rsense
{Rpullup}
Verr RLED
Sn=(((N*Vinmin-Vout)/Lout)*N)*Rsense
err
{RLED} Q=1/(pi*((1-D)-0.5))
4.91V Czero
6 {Czero} 2.50V {Rupper} mc=((1/pi)+0.5)/(1-D)
LoL 3.89V
X3 Rupper Se=(mc-1)*Sn-Smag
2.98V 1G 9
Optocoupler
Cpole = Copto
13
CoL
1G
CTR = 1.6
Ramp compensation
0V
14
Cpole 2.50V calculations
Vstim {Cpole} 11
AC = 1 X2
AMPSIMP
Rlower
VLOW = 150m Vref
10k
VHIGH = 5 2.5
0 0
∠H (s) ∠ H (10 k ) = − 51 °
-90.0 -10.0
H (10 k ) = − 17.2 dB
-180 -20.0
V in = 36 V
75
Design example 4: a CCM forward converter
Check the impact on parameters such CTR, ESR etc.
° dB
180 80.0 T ( s ) , CTR = 160%
90.0 40.0
∠T ( s )
0 0
T ( s ) ,CTR = 50% CTR = 0.5
CTR = 1.6
-90.0 -40.0
ϕm = 58°
ϕm = 66°
-180 -80.0 Vin = 36 V f c = 9.3 kHz
f c = 23.7 kHz
CTR = 1.6
° dB
180 80.0 T ( s ) , CTR = 160% ϕm = 63°
f c = 23.1 kHz
90.0 40.0
∠T ( s )
0 0
T ( s ) ,CTR = 50% CTR = 0.5
-90.0 -40.0
ϕm = 56°
-180 -80.0 Vin = 72 V f c = 9.3 kHz
10 100 1k 10k 100k
4.90
5.20
4.90
76
Design example 4: a CCM forward converter
The opto wired to the ground, the fast lane goes away
Vout(s)
G(s) Remove this cap. and use the
Rpullup/Copto combination instead
C2
Rupper
Vdd
O(s)
R2 C1
Rpullup RLED
VFB(s) O(s) G(s) Vout(s)
VFB(s)
Type 2
Agenda
Feedback generalities
The divider and the virtual ground
Phase margin and crossover
Poles and zeros
Boosting the phase at crossover
Various compensator types
Practical implementations: the op amp
Practical implementations: the OTA
Practical implementations: the TL431
Design examples
A real case study
Conclusion
77
A real-case example with a UC384X
A 19-V/3-A converter is built around an UC3843
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
DC 6
X2x
XFMR D1A
mbr20200ctp vint L1 R1
RATIO = -250m vout
2.2u 20m
vout
2 3 4 5
p
Vin
c
150
AC = 0 R10 R15
8 15m 85m
X9
Rload
PWMCM Lp
1 10 6.3
L = Lp {Lp} (V(errXX)-1.2)/3 > 1 ?
Fs = Fs 1 : (V(errXX)-1.2)/3 C5 C1
9
Ri = Rsense 2m 220u
B3
Se = Se
Voltage
R2
47k
1 V maximum voltage
and divider by 3 CCM operation
X3
OP384X1 R3 Low line voltage
47k
13 15
errXX UC384X
gnd
2V5
Internal V3
1.08
AC = 1
op amp section Dc + ac modulation
78
A real-case example with a UC384X
H(s) alone can be measured without loop opening
R19 R3 R13
47k 47k 47k C2
10n D5
400V MBR20100 L2
2.2u
Vout(s)
. . C5a C5b C7
220uF Vout
D2 . 1.2mF
25V
1.2mF
25V 25V
MUR160
C11 R6
100p
Vref C13
6k
R17 2.2nF
Gnd
47k Type = Y1
C15
10nF Gnd
5 mV / div
0 dB 2 7
R20
4.7k
High
gain
Vsource A B
ac
source
VB
2.13 6.38 10.6 14.9 19.1
T ( s ) = 20 log10
v3 in volts
VA
Make sure Zout<<Zin to avoid gain errors
79
A real-case example with a UC384X
arg H ( s )
H (s)
21
simulated
22
10 100 1k 10k 100k
arg H ( s )
H (s)
simulated
80
A real-case example with a UC384X
Select the crossover point on the open-loop Bode plot
dB °
arg H ( s )
40.0 180
arg H(fc) = -90°
20.0 90.0
H (s)
0 0
-20.0 -90.0
|H(fc)| = -18 dB
-40.0 -180
k factor method
81
A real-case example with a UC384X
Sweep extreme voltages and loads as well!
T (s)
arg T ( s )
Simulated
T (s)
arg T ( s )
Simulated
10 100 1k 10k 100k
82
A real-case example with a UC384X
T (s)
arg T ( s )
Simulated
26
Vin = 150 V
Simulated CCM
2 to 3 A
1 A/µs
83
A real-case example with a UC384X
DCM operation at high line is also stable
Vin = 330 V
Simulated DCM
0.5 to 1 A
1 A/µs
Conclusion
We have seen how to apply loop theory to a switching converter
Classical type 1, 2 and 3 compensators have been covered
Their implementation with op amps, OTAs and TL431 studied
Op amps are the most flexible, OTAs and TL431 have limits
In isolated supplies, the optocoupler affects the transmission chain
Design examples showed the power of averaged models
Use them to extensively test the loop stability (sweep ESRs etc.)
Applying these recipes is key to design success!
Merci !
Thank you!
Xiè-xie!
84