Control Design of PWM Converters: The User Friendly Approach
Control Design of PWM Converters: The User Friendly Approach
Control Design of PWM Converters: The User Friendly Approach
Motivation
1
Prof. S. Ben-Yaakov , Control Design of PWM Converters [3]
Objective
Outline
1. Basics of feedback theory and graphical representation
2. Relationship between LoopGain and dynamic response
3. PWM converters as feedback systems
4. Voltage Mode (VM) control
5. Current Mode (dual loop) control
6. Simulation tools
7. Average models
8. Analog compensator networks
9. Digital control
10. Q&A
2
Prof. S. Ben-Yaakov , Control Design of PWM Converters [5]
So A OL
A CL = = LG ≡ β A OL
Sin 1 + β ⋅ A OL
So 1 So
= = A OL
Sin β⋅ A β Sin β⋅ A
OL >>1 OL << 1
3
Prof. S. Ben-Yaakov , Control Design of PWM Converters [7]
Block Diagram
Sin + Sε Sout
H1 P
- S
f
H2 K
HHHH HHHH L
PPPP1111 HHHH G
SSSS SSSS
AAAA
oooo
= =
C
L
1111
KKKK ffff
PPPP
+
i
n
1 2
142 4
3
(((( ))))
Effect of Feedback
Sin + Sε Sout
P
- S
f
H2 K
So P
A CL = = ACL =
1
Sin 1 + H2 P K LG( f )>>1
H2 K
123
LG(f )
4
Prof. S. Ben-Yaakov , Control Design of PWM Converters [9]
PWM Converter
βm βe
+ Sout
Sin + Sε +
H1 P
So H1 P
- S A CL = =
f
S in 1 + H 1 P K
K
123
LG ( f )
Power
Vin
Power Vo vo 1
stage A CL LG ( f ) >> 1
=
R1 K
C R3
-
MOD +
d D ve Ve Vref R2
βm βe
5
Prof. S. Ben-Yaakov , Control Design of PWM Converters [11]
Audio susceptibility
Vin H2
+ Sout
Sin + Sε +
H1 P
- S
f
Vin + Sout
H2
- S
f
So H2
= P H1 K
Vin 1 + LG
Sin + Sε S out
H1 P
- S
f
H1 K
Sout H1 P 1 Sout P 1
A CL = = → ≠ A′CL = = →
Sin 1 + k H1 P k S′in 1 + H1 P H1 k
6
Prof. S. Ben-Yaakov , Control Design of PWM Converters [13]
LG(f ) = A B
Graphical representation of BA
A [ dB] conventional method
A AB [ dB]
f [Hz ]
AB
B [dB ]
B
f [Hz ]
f1 f2 f3
f [Hz ]
f1 f2 f3
7
Prof. S. Ben-Yaakov , Control Design of PWM Converters [15]
Graphical Representation of BA
1
20log A − 20log = 20log(BA)
B
A [dB ] 1
A 20logA = 20log ⇒ B⋅ A = 1
40dB − 20 dB / dec B
LG( f ) = BA BA = 1
1
20dB
B
B
A
>1 BA < 1
fo [Hz ]
fo = 1kHz
10 kHz
bm sm + bm−1sm−1 + ... + 1
H(s) =
an sn + an−1sn−1 + ... + 1
jω
σ − Zero
− Pole
α
8
Prof. S. Ben-Yaakov , Control Design of PWM Converters [17]
Stability Criterion
H1 K
A CL =
1 + LG(f )
Nyquist
Im[LG(f )]
unit circle
-1 f=0 Re[LG(f )]
Φm |LG|
Stable
9
Prof. S. Ben-Yaakov , Control Design of PWM Converters [19]
Nyquist
Im[LG(f )]
Φm unit circle
-1
Re[LG(f )]
f=0
Oscillatory
Nyquist
Im[LG(f )]
Φm unit circle
-1 f=0 Re[LG(f )]
Phase Lead
Φm
Unstable
Phase Lag
The culprit: Phase Lag
Phase Lead in LG can help stabilize a system
10
Prof. S. Ben-Yaakov , Control Design of PWM Converters [21]
Bode plane
BA
BA = 1
φo
ϕm
Bode plane
BA
BA = 1
φo
ϕm
11
Prof. S. Ben-Yaakov , Control Design of PWM Converters [23]
− 40db / dec
f1 f2
f [Hz ]
phase
0 f [Hz ]
− 45 o
− 90o
− 135 o
− 180 o
− 20 db
dec
f f f
1 + j ⋅ 1 + j ⋅ 1 + j ⋅ ⋅ ⋅ ⋅ ⋅
f f f
BA = 1 2 3 k
⋅ ⋅⋅ =
f f f f
1 + j ⋅ 1 + j ⋅ 1 + j ⋅ ⋅ ⋅ ⋅ ⋅ 1+ j
f1 f2 f3 fp
12
Prof. S. Ben-Yaakov , Control Design of PWM Converters [25]
Stability Criterion
0 db dec
− 20 db dec
A db s u
s − 40 db dec
+ 20 db dec 0 db u
dec
− 20 db dec s − 60 db dec
s f
1 − 40 db dec
B db
13
Prof. S. Ben-Yaakov , Control Design of PWM Converters [27]
dB A 20 dB / dec
20 dB / dec
ϕ m = 90 o 0 dB / dec
1 ϕ m = 90 o
ϕ m = 45 o
0 dB / dec
B − 20 dB / dec
ϕ m = 45 o
− 20 dB / dec
ϕ m = 90 o
− 40 dB / dec
− 20 dB / dec
ϕ m = 45 o
− 60 dB / dec
f
14
Prof. S. Ben-Yaakov , Control Design of PWM Converters [29]
1 Phase lag in A
z f [Hz]
B p
fO
Phase lead in B
Design Steps
A
| BA |
1/B
Draw A
Select cross point of BA (<< than fs/2, for PWM)
Select B shape
15
Prof. S. Ben-Yaakov , Control Design of PWM Converters [31]
BUS
POL
ZL → negative resistance
System stability
V Vex + 1
ZS O
IO - ZS
IO
Vex Z
L
V
O Z
L
1
LoopGain = ZL
ZS
Convenient way to examine the LG stability is the Nyquist
stability test
16
Prof. S. Ben-Yaakov , Control Design of PWM Converters [33]
17
Prof. S. Ben-Yaakov , Control Design of PWM Converters [35]
cosϕ m
Q≅ for ϕm < 50o
sinϕm
Load-Step Response
∆I
Zo
Sin S Sout
ε
H1 A
Sf
K
∆I Sout
Zo
A H1 K
Sout Zo
=
∆I 1 + A ⋅ H1 ⋅ K
1424 3 Small-signal output impedance
LG
18
Prof. S. Ben-Yaakov , Control Design of PWM Converters [37]
Load-Step Response
Zof
Affected by:
Output impedance
ESR of output
capacitor
Slew rate of inductor
Output Impedance
(Immunity to load changes)
40 0
ZOf
0
ZO -100
-200
-40
1.0Hz 1.0KHz 1.0MHz
1.0Hz 1.0KHz 1.0MHz
db( V(OUT_S)/ i(V5))
0 db( V(OUT_S)/i(V5)) Frequency
Frequency
A
-50 v Zo
Z of = out =
1/B ∆io 1+ A
{B
-100 LG
1.0Hz 1.0KHz 1.0MHz
db(v(out)/V(LG_IN))
db( V(OUT)/ V(LG_OUT)) Buck converter – small signal
Frequency
19
Prof. S. Ben-Yaakov , Control Design of PWM Converters [39]
Vout H2
=
Vin 1 + LG(f )
Sin
Sε =
1 + LG
Sε is the offset between the
sampled output and reference
Small DC error for large LG(0)
20
Prof. S. Ben-Yaakov , Control Design of PWM Converters [41]
Dynamic Response
Summary
Systems that have a slope of –20 db/dec are easy to control
Response is largely determined by LG(f)
Desired LG:
LG as large as possible at low frequencies
(small DC errors)
LG of large BW - intersection point of A and 1/B
(quick response, fast recovery, rejection of Vin changes)
Phase margin > 450
(reasonable overshoot)
Nyquist
Im[LG(f )]
Φm unit circle
-1 f=0 Re[LG(f )]
Φm
21
Prof. S. Ben-Yaakov , Control Design of PWM Converters [43]
Issues:
Stability
Rejection of input voltage variations (audio
susceptibility)
Immunity to load changes
Quick response to reference change - good
tracking.
22
Prof. S. Ben-Yaakov , Control Design of PWM Converters [45]
Type of Blocks
Small Signals (Perturbation) Responses
Power
Vin
Power Vo vo
stage
R1
C R3
-
MOD +
d D ve Ve Vref R2
βm βe
Analytical solutions
Simulation
Injection of sinusoidal perturbation
AC analysis of behavioral average model
23
Prof. S. Ben-Yaakov , Control Design of PWM Converters [47]
Ve Small d
t
D Zoom
d
D
d is the AC component of D
24
Prof. S. Ben-Yaakov , Control Design of PWM Converters [49]
Modulator
(Vp − Vv )t
Vt = + Vv
Ts
(Vp − Vv )ton
Vt = Ve = + Vv
Oscillator Ts
t on (V − Vv )
= Don = e
Ts Vp − Vv
ve v
d= = e
Vp − Vv Va
d 1
Km = =
ve Va
KNOWN CONTROL
DESIGN
βm βe
vo
(f ) − Ana log Function βm = d
ve ve
A → Power Stage ; B → compensator
25
Prof. S. Ben-Yaakov , Control Design of PWM Converters [51]
Block diagram
Vin
(power ) Vo , v o
(power )
The power conversion system
Vref Controller
26
Prof. S. Ben-Yaakov , Control Design of PWM Converters [53]
L Io i Vo
S o
vo
C RL
D
ESR
D d
MOD
vex
VD
3 -40dB/dec
20
0
1
Unstable -20dB/dec
-20
2
-40 f, Hz
100 1k 10k 100k
27
Prof. S. Ben-Yaakov , Control Design of PWM Converters [55]
d
ve Dependence on Vin
Vin 40
0
Vin:
5V
Magnitude
-40
10V
-80
db(V(a))
15V
0d
Phase
-100d
SEL>>
-200d
10Hz 100Hz 1.0KHz 10KHz 100KHz 1.0MHz
p(V(a))
Frequency
d
Effect of Load
ve 40
RL=
0
10Ω - CCM
-40 50 Ω - DCM
Magnitude
100 Ω - DCM
-80
db(V(a))
0d
-100d
Phase
SEL>>
-200d
10Hz 100Hz 1.0KHz 10KHz 100KHz 1.0MHz
p(V(a))
Frequency
28
Prof. S. Ben-Yaakov , Control Design of PWM Converters [57]
Forward
Half bridge (HB)
Full Bridge (FB)
0 Magnitude
-50
DB(V(OUT)/V(DON))
0d
Phase
-200d
SEL>>
-400d
10Hz 100Hz 10KHz 1.0MHz
p(V(OUT)/V(DON))
Frequency
29
Prof. S. Ben-Yaakov , Control Design of PWM Converters [59]
CM Boost
40
SEL>>
-40
DB(V(OUT)/V(verror))
0d
-100d
-200d
10Hz 100Hz 10KHz 1.0MHz
p(V(OUT)/V(verror))
Frequency
-100d
SEL>>
-200d
p(V(OUT)/V(don))
40
-40
10Hz 100Hz 10KHz 1.0MHz
DB(V(OUT)/V(don))
Frequency
30
Prof. S. Ben-Yaakov , Control Design of PWM Converters [61]
Current Feedback
31
Prof. S. Ben-Yaakov , Control Design of PWM Converters [63]
N
D d AMP
MOD Vε
Ve v
e
io 1
= For ‘strong’ feedback
ve N
LG >> 1 vε → 0
1
io = ve
N
vo
N
D d AMP
ve
RL
MOD Vε
Ve v N
e
ve
N
Co
1
RL
2π ⋅ CoRL
32
Prof. S. Ben-Yaakov , Control Design of PWM Converters [65]
Current Mode
L io vo
S Co RL
inner
loop
K
d AMP
MOD Vε
ve AMP vref
outer
loop
Flat First order
vo
vo ve
ve − 20 db dec
− 40 db dec − 40 db dec
− 20 db dec
33
Prof. S. Ben-Yaakov , Control Design of PWM Converters [67]
PCM Modulator
D
d
Ve , v e
Vo
= f (Don ) is the same !
Vin
34
Prof. S. Ben-Yaakov , Control Design of PWM Converters [69]
Implementation CM Boost
L
Driver
Rf
R
FF
comp Cf RS
S
Clock
IL Ve
∆I1
∆I2 D>0.5 ∆I2>∆I1
t
35
Prof. S. Ben-Yaakov , Control Design of PWM Converters [71]
PWM mod
Z fv Zinv
Z fi
+
-
-
+
Vref
Current sample is filtered first attenuate high frequency (fS)
36
Prof. S. Ben-Yaakov , Control Design of PWM Converters [73]
Disadvantages
∗ Leading edge spike
∗ Subharmonic oscillations
37
Prof. S. Ben-Yaakov , Control Design of PWM Converters [75]
6. Simulation tools
Why Simulation
38
Prof. S. Ben-Yaakov , Control Design of PWM Converters [77]
• Convergence
• Physical models
• Small signal analysis
• Interfaces
• Run time
• Behavioral models
• Statistical and optimization analysis
• Discrete domain simulation capabilities
39
Prof. S. Ben-Yaakov , Control Design of PWM Converters [79]
40
Prof. S. Ben-Yaakov , Control Design of PWM Converters [81]
41
Prof. S. Ben-Yaakov , Control Design of PWM Converters [83]
42
Prof. S. Ben-Yaakov , Control Design of PWM Converters [85]
PSIM AC Model
Excitation
source
43
Prof. S. Ben-Yaakov , Control Design of PWM Converters [87]
C2 R3 Mutual
I II
C: 10e-9 R: 10e3 Ind. 2
C1 R1
Vm1 V 1
C: 22e-6 R: 23
Vout
Am2 A 3
Llkg D1
I_L2
V_dc
V: 300
Am1 A 2
I_L1
D2
Output
Voltage
Vout
I_L1
PLECS Primary
m s Gate I_L2
MOSFET1 1 Circui t Current
4 V Vm2
Gate Sawtooth PWM
Saturati on D
D
0.724 Constant1 GateOut1
5
Secondary
GateOut1 Circui t
Current
Ground1
num(s)
-K-
s+2.564e5
Saturation1 Transfer Fcn Gain Drain
Voltage
5 Constant
3.9n
ETABLE
R13
OUT- IN-
80
OUT+ IN+
E2 Vref R12
V(%IN+, %IN-)*100k V5
5Vdc 1.2k
(4.36,4.36) (9.2,9.2)
EA 0
0
0
44
Prof. S. Ben-Yaakov , Control Design of PWM Converters [89]
Demo
Real time: 3 ms
PSIM
DCM cycle-by-cycle simulation results
Rload=220Ω
• Textbook waveforms
45
Prof. S. Ben-Yaakov , Control Design of PWM Converters [91]
2.0A
0A
-2.0A
Secondary current
4.0A
2.0A
0A
-2.0A
Output voltage
47.8V
47.7V
47.6V
47.5V
2.95 2.96 2.97 2.98 2.99 3.00
PSPICE PSIM Time, [ms]
46
Prof. S. Ben-Yaakov , Control Design of PWM Converters [93]
2. Average Model
PSPICE AC analysis
(linearization by simulator)
PSIM automatic transient injection
D d
MOD
vex
VD
47
Prof. S. Ben-Yaakov , Control Design of PWM Converters [95]
60
50 3V
dB
40
20mV Boost
Gain, [dB]
30
20
10
PSPICE
0 PSIM 50.0 Output voltage
-10 47.5
[V]
45.0
-20 Vpk-pk: 3V
100 1K 10K 40K 257µS
20
Sinus excitation
Frequency, [Hz]
[mV]
0
0 Vpk-pk: 20mV
-20
3.61 4.00 5.00 6.00 6.75
-50
Phase, [deg]
Time, [ms]
-100 257µS*1.5kHz*360 0
-250
100 1K 10K 40K
Frequency, [Hz]
48
Prof. S. Ben-Yaakov , Control Design of PWM Converters [97]
0V 0V
{Vin*V(d)-V(out)*V(doff)/n} {I(L1)*V(doff)/n} 0
137.9mV d PARAMETERS:
V5 n=1
ETABLE Vin = 300V
0.01Vac E2
doff862.1mV fs = 100kHz
IN+ OUT+ Lmain = 0.5m
IN- OUT-
V2
min(1-V(d),(2*{Lmain*fs}*I(L1)/(V(in)*V(d))-V(d)))
0.1379
0 0 Duty cycle generator
Signalinjection
Applies the switching schematics as is
Takes a long time to run
Noisy at high frequency
Average model
Runs very fast
Need to built a behavioral equivalent
Some topologies/controllers are not easy to
convert to average circuits
49
Prof. S. Ben-Yaakov , Control Design of PWM Converters [99]
Gain, [dB]
20
10
0
PSPICE
vout -10
-20
PSIM
-30
d 100 1k 10k
Frequency, [Hz]
100k
-50
Phase, [deg]
-100
-150
PSPICE
-200 PSIM
-250
100 1k 10k 100k
Frequency, [Hz]
50
Prof. S. Ben-Yaakov , Control Design of PWM Converters [101]
7. Average Models
The Switched Inductor Model (SIM) Strategy
Identify the switched assembly
Replace the switching part by a continuous
behavioral (analog) equivalent circuit
Leave the analog part as-is
Run the combined circuit on a general purpose
simulator
Vin +
−
D VE
Modulator Control
51
Prof. S. Ben-Yaakov , Control Design of PWM Converters [103]
t on Vout
b d c
+ Ib IC
Vin − RLoad
IL L Cf
a
Buck − Boost
TDCM
TOFF
c c
52
Prof. S. Ben-Yaakov , Control Design of PWM Converters [105]
TON b Ib
Ia a L
TOFF c Ic
Ia Ia
t
Ib Ib
t
Ic Ic
t
⇓
b Ib
Ia a
?
c Ic
53
Prof. S. Ben-Yaakov , Control Design of PWM Converters [107]
Average current
IL TON
TON b Ib Ib = = ILDon
Ia a L TS
IL c Ic TON
Don =
TS
I a = IL
I Ib
IL
Similarly :
Ib
IL TOFF
Ic = = ILDoff TON
TS
TS
⇓
Ga, Gb,Cc - current
dependent sources
Gb b Ib
Ga Ga ≡ IL
Ia a
G b ≡ IL ⋅ Don
Gc Ic Gc ≡ IL ⋅ Doff
c
54
Prof. S. Ben-Yaakov , Control Design of PWM Converters [109]
IL derivation
dIL V d IL V
= ⇒ =
dt L dt L
X = X = Average value
VL IL
IL
VL V
VL
IL t
55
Prof. S. Ben-Yaakov , Control Design of PWM Converters [111]
Vin c Co Ro
V(a, b) a Vo
IL
Ga
Gb EL
b Co Ro L
Vin Gc
c V(a, c ) rL
56
Prof. S. Ben-Yaakov , Control Design of PWM Converters [113]
Vin D C Ro
o
Boost
L D Vo
Vin S Co Ro
L IL ⋅ Doff Vo
Co
Vin Ro
Doff ⋅ Vo
57
Prof. S. Ben-Yaakov , Control Design of PWM Converters [115]
IL Don Ll
Gb
In SPICE environment
⇓
Gvalue
V(Don ) ∗ I(Ll ) Ll
Don
+ Name of node : " Don "
−
Source
58
Prof. S. Ben-Yaakov , Control Design of PWM Converters [117]
AC ( small signal) - as is
T'off = Ts − Ton
t Ts − TN
Ton Toff D'off = = 1− Don
Ts
Toff
Ts
Doff ≠ 1 - Don
59
Prof. S. Ben-Yaakov , Control Design of PWM Converters [119]
Gb b
IL
b Ga
L L
a a
c
Gc c
rL
Ga ≡ IL
IL Don IL Doff
Gb ≡ Gc ≡
Don + Doff Don + Doff
VL = V(a, b) Don + V(a, c) Doff
2ILLfs
Doff = min(1 − Don ), − Don
V(a, b)Don
60
Prof. S. Ben-Yaakov , Control Design of PWM Converters [121]
D
PWM
MOD
Vex
VD on
File: Buck_cy_by_cy.OPJ
PARAMETERS:
VIN = 10v
PARAMETERS:
Sbreak-X LOUT = 75u
Rinductor Lout COUT = 220u
S1 out
a RLOAD = 10
{Rinductor} {Lout} Cout
-
+
+
-
0 PW = 5u PARAMETERS:
PER = 10u FS = 100k
TS = {1/fs}
61
Prof. S. Ben-Yaakov , Control Design of PWM Converters [123]
10V
0V
V(out)
10A DCM to CCM
0A
-10A
0s 2.0ms 4.0ms 6.0ms
-I(Lout)
Time
Zooming up
500mA
250mA
0A
1.535ms 1.625ms 1.750ms 1.862ms
-I(Lout)
Time
62
Prof. S. Ben-Yaakov , Control Design of PWM Converters [125]
Average model
SIM
R dson L rL a Vo
b c Co
Vin Ro
rc
a
Ga IL
Rdson b Gb Co L
Ro
Gc rc EL rL
Vin c
File: Buck.OPJ
Average simulation by SIM-Model buck.sch
of PWM Buck converter
V(Don)*I(Lout)/(V(Don)+V(Doff))
b a NODESET= 5
PARAMETERS:
+
b Rinductor a
VIN = 10v
GVALUE c c
GVALUE
EL
{Rinductor}
Lout Ga
Cout
{Cout}
VDON = 0.5
Dbreak RLoad
Vin IN-
OUT- IN-
OUT- IN+
OUT+ {Lout} GVALUE
+ IC = 0 Resr PARAMETERS:
{Vin} D1 IN+
OUT+ IN+
OUT+ IN-
OUT- OUT+
IN+ {RLoad} LOUT = 75u
- EVALUE OUT-
IN- {Resr}
Gc COUT = 220u
Gb
RLOAD = 10
V(Don)*V(a,b)+V(Doff)*V(a,c) I(Lout) PARAMETERS:
0
V(Doff)*I(Lout)/(V(Don)+V(Doff))
RESR = 0.07
RINDUCTOR = 0.1
1V
Don Doff
- + EDoff
+ IN+
OUT+
VDon Vexcitation PARAMETERS:
- IN-
OUT-
FS = 100k
{VDon} etable TS = {1/fs}
0 min(2*abs(I(Lout))*Lout/(Ts*(vin-V(a))*V(Don))-V(Don),1-V(Don))
63
Prof. S. Ben-Yaakov , Control Design of PWM Converters [127]
Inductor
Rinductor
{Rinductor}
EL Lout
IN+
OUT+ {Lout}
IN-
OUT-
EVALUE
V(Don)*V(a,b)+V(Doff)*V(a,c)
Input side
V(Don)*I(Lout)/(V(Don)+V(Doff))
b
GVALUE GVALUE
c
Dbreak
Vin IN-
OUT- IN-
OUT-
+ D1 IN+
OUT+ IN+
OUT+
{Vin}
-
Gc Gb
0
V(Doff)*I(Lout)/(V(Don)+V(Doff))
64
Prof. S. Ben-Yaakov , Control Design of PWM Converters [129]
Output side
NODESET= 5
+
a
Cout
Ga {Cout}
GVALUE RLoad
Resr
OUT+
IN+ {RLoad}
OUT-
IN- {Resr}
I(Lout)
65
Prof. S. Ben-Yaakov , Control Design of PWM Converters [131]
8V
Diode losses
DCM
6V
CCM
4V
1.0 10 100 1.0K
V(out)
RLoad
66
Prof. S. Ben-Yaakov , Control Design of PWM Converters [133]
5V
0V
V(out)
10A
5A
SEL>>
0A
0s 2.0ms 4.0ms 6.0ms
-I(Lout)
Time
400mA
0A
-268mA
1.625ms 1.750ms 1.875ms
-I(Lout)
Time
67
Prof. S. Ben-Yaakov , Control Design of PWM Converters [135]
AC Analysis
The Real Strength of Average Simulation
Linearization
• The circuit is linearized by simulator (elements,
devices and expressions)
• Numerical linearization !
e.g. a source f(x,y,z) is replaced by:
f ( X + ∆X , Y , Z ) − f ( X , Y , Z )
x
∆X
f ( X, Y + ∆Y, Z) − f ( X, Y, Z)
+ y
∆Y
f ( X, Y, Z + ∆Z) − f ( X, Y, Z)
+ z
∆Z
• Transparent to user
68
Prof. S. Ben-Yaakov , Control Design of PWM Converters [137]
Boost
a L main D1
c Vo
Vex
VD on
69
Prof. S. Ben-Yaakov , Control Design of PWM Converters [139]
Boost Simulation
SIM-Model under CCM & DCM
for PWM Boost converter Boost.sch
{Rinductor} Dmain
a b c out
Vin_pulse
PARAMETERS:
GVALUE Rinductor 1 Cout
+- Dbreak VIN_DC = 10v
I(Lmain) Gb {Cout}
EL Lmain Gc VDON = 0.5
Rsw RLoad
IN+
OUT+ IN+
OUT+ IN-
OUT- IN-
OUT-
Vin_DC + {Lmain} {Rsw} Resr {RLoad}
IN-
OUT- IN-
OUT- IN+
OUT+ IN+
OUT+
EVALUE GVALUE {Resr}
{Vin_DC} - Ga GVALUE PARAMETERS:
LMAIN = 75u
(V(Don)*V(a,b)+V(Doff)*V(a,c)) COUT = 220u
0 V(Don)*I(Lmain)/(V(Don)+V(Doff)) RLOAD = 10
V(Doff)*I(Lmain)/(V(Don)+V(Doff)) PARAMETERS:
1V Don
Doff RESR = 0.07
EDoff RINDUCTOR = 0.1
- +
+ IN+
OUT+
RSW = 0.1
VDon Vexcitation
- IN-
OUT-
{VDon} etable PARAMETERS:
FS = 100k
0 min(2*I(Lmain)*Lmain/(Ts*v(a,b)*V(Don))-V(Don),1-V(Don)) TS = {1/fs}
100V
ESR of Cout
1.0V 100mΩ
10 mΩ
1mΩ
10mV
V(out)
0d
-200d
SEL>>
-400d
1.0Hz 100Hz 10KHz 1.0MHz
P(V(out))
Frequency
RLoad= 10Ω
70
Prof. S. Ben-Yaakov , Control Design of PWM Converters [141]
DCM
1.0V
DCM
V(out)
0d
SEL>>
-100d
1.0Hz 1.0KHz 1.0MHz
P(V(out))
Frequency
RLoad = 1000Ohm
Boost simulation
71
Prof. S. Ben-Yaakov , Control Design of PWM Converters [143]
V in V out
Power
Input
D ON VL
Duty Cycle IL
'D'
Generator
V
E
Error Ampl.
Vref
ref
• General representation of a switch mode
DC-DC converter
d ve
=
Ve VP ⋅ VM
72
Prof. S. Ben-Yaakov , Control Design of PWM Converters [145]
Coding
Vo
Vin +
−
D Modulator
KM Control
VE − VM
K M (voltage mod e ) =
Vp − VM
D coded into voltage
0 ≤ VD ≤ 1
IN+
OUT+
IN-
OUT-
ETABLE
V(%IN+, %IN-)
TABLE = (0.1,0.1) (0.9,0.9)
Out
0.9
0.1
0.1 0.9 In
73
Prof. S. Ben-Yaakov , Control Design of PWM Converters [147]
Vin +
−
D Modulator VE
KM Control
• VE is a function of Vo and IL
• ‘Control’ is the original analog circuit
• Same modulator as in voltage mode
C=2000 µ
28v + R o =11.2 Ω R1
Rs
R c =0.012 Ω 47.5 Ω
25m Ω
R 2 =2.5k Ω
V p =0.25v
+
++
3.25
C f =0.23 µ R f =72.2k Ω
FF
+
+ 2.8v
74
Prof. S. Ben-Yaakov , Control Design of PWM Converters [149]
in
Power stage
a out
lin rind v(doff)*i(vl)/(V(Don)+V(Doff))
Vin_pulse +
{lin} 1m 0V {resr}
+- -
Ed_c ELs Gdoff resr RL
d_c vl
IN+
OUT+ IN+
OUT+ OUT-
IN-
Vin_DC + cout {RL}
IN-
OUT- Red_c IN-
OUT- OUT+
IN+
etable - evalue gvalue {cout}
1k {Vin_DC}
Doff CCM/DCM
75
Prof. S. Ben-Yaakov , Control Design of PWM Converters [151]
Inductor
a
in
lin rind
Vin_pulse 27.99V
+
{lin} 1m 0V
+- -
ELs vl
IN+
OUT+
Vin_DC + IN-
OUT-
- evalue
{Vin_DC}
0V
v(sw)*v(don)+(v(c)+v(out))*v(doff)+v(in)*(1-v(don)-v(doff))
0V
Edon
don
IN+
OUT+
IN-
OUT- 1k
etable Redon
fs*(v(Verror)-ks*i(vl)*v(d_c))/(mc+ks*(v(in)-v(sw))/(2*lin))
76
Prof. S. Ben-Yaakov , Control Design of PWM Converters [153]
50
vo
d
0
vo
SEL>> ve
-50
db(V(OUT)) db(V(OUT)/ V(DON))
0d vo
ve
-200d vo
d
-400d
10Hz 100Hz 10KHz 1.0MHz
p(V(OUT)) p(V(OUT)/ V(DON))
Frequency
V(out)/V(Don) as normal
V(out)/V(Verror) lower order
CM-Boost
77
Prof. S. Ben-Yaakov , Control Design of PWM Converters [155]
Models of IC Controllers
78
Prof. S. Ben-Yaakov , Control Design of PWM Converters [157]
vcomp K
H(s ) = = Kp + I + s ⋅ K d =
ve s
K d ⋅ s2 + K p ⋅ s + K I K d (s + ωz1) ⋅ (s + ω z2 )
= =
s KI s
ω z1,2 =
− Kp ± (Kp )2 − 4KdKI
2K d
79
Prof. S. Ben-Yaakov , Control Design of PWM Converters [159]
f1 f2
Vcomp
f1 f2
Ve
[dB]
1
B
80
Prof. S. Ben-Yaakov , Control Design of PWM Converters [161]
dB
- 20
dec
BW Limitations
(of LG, crossing of A and B)
81
Prof. S. Ben-Yaakov , Control Design of PWM Converters [163]
Rf
Ao =
Rin
1
fp =
2πC f R f
82
Prof. S. Ben-Yaakov , Control Design of PWM Converters [165]
Lag (B)
40
R2 0
out1
0V C1
100k
0V -40
10n
R1 E1 db(V(out1))
0d
IN+ OUT+
V10V 1k
1Vac IN- OUT-
EVALUE
0Vdc V(%IN+, %IN-)*1E6 -50d
SEL>>
-100d
10Hz 100Hz 10KHz 1.0MHz
p(-V(out1))
Frequency
A o = A OL (ampl.)
β
1 20 db dec
fL =
2πC f R f A0
f2
f
R f1 A2
A2 = f
Rin
83
Prof. S. Ben-Yaakov , Control Design of PWM Converters [167]
Lag-Lead (B)
100
R9
0V 0V
1g
50
R3 C2
out2
10k 10n
0
db(V(out2))
R4 E3 0d
IN+ OUT+
V20V 1k
1Vac IN- OUT-
EVALUE
0Vdc V(%IN+, %IN-)*1E6 -50d
SEL>>
-100d
10Hz 100Hz 10KHz 1.0MHz
p(-V(out2))
Frequency
1
2 π f ⋅ R 2C3
1
dB
β
− 20
dec
84
Prof. S. Ben-Yaakov , Control Design of PWM Converters [169]
1g 40
R8
C4
0V
100p
20
R7 C3
100k 10n
out3
C5 R5 E2 0
db(V(out3))
0V IN+ OUT+
V3 0V 10n 1k 100d
1Vac R6 IN- OUT-
EVALUE
0Vdc V(%IN+, %IN-)*1E6
100k
0d
SEL>>
-100d
0 10Hz 100Hz 10KHz 1.0MHz
p(-V(out3))
Frequency
C4
100p
C3 R4
C2
10n 22k
1n
R9 R8
out1 EVALUE
1k 100k IN- OUT- Don
IN+ OUT+
V2
R10 2.5 E2
1k
V(%IN+, %IN-)*1000k
85
Prof. S. Ben-Yaakov , Control Design of PWM Converters [171]
A
-20db/drc
-40db/dec
1/β
Rate of closure
20 db/dec
Phase advance by compensator
VM Regulator
86
Prof. S. Ben-Yaakov , Control Design of PWM Converters [173]
Sin + Sε Sout
H PS
- S
f
Sf
LG =
Sε
SS
Sin + Sε S′f + Sout
COMP H PS
- S
+ S′ε
f
S′
LG = f
S′ε
87
Prof. S. Ben-Yaakov , Control Design of PWM Converters [175]
Sin + Sε Sout
H PS
-
Sf
S ′ε + S ′f
K
+
SS
S′f
LG =
S′ε
Loop-Gain
Getting Loop-Gain under closed loop response {A(f)*B(f)}
Vin=0
LG(f) = V1/V2
88
Prof. S. Ben-Yaakov , Control Design of PWM Converters [177]
PSpice Simulation
VM Regulator
89
Prof. S. Ben-Yaakov , Control Design of PWM Converters [179]
PSIM Demonstration
Large signal Small signal
Schematic Schematic
LoopGain TF
Probe
Probe Probe
IL
Vo
IL/Ve flat
inner loop
D
MOD
Vref
Ve
outer loop
90
Prof. S. Ben-Yaakov , Control Design of PWM Converters [181]
Vo
Ve − 20 db dec
Vo
− 40 db dec
Ve − 40 db dec
− 20 db dec
µ Ω
91
Prof. S. Ben-Yaakov , Control Design of PWM Converters [183]
out
L1 R1
in Co
0.1 GVALUE {Co}
{Lin} E1 Ro
IN- OUT-
OUT+IN+ IN+ OUT+ Resr {Ro}
OUT- IN- G1
Inductor EVALUE
0
.02
V(Ve)
0 Duty Cycle
Generator
E5
Doff
IN+ OUT+
IN- OUT-
ETABLE
Ve
0
min(2*i(L1)*{Lin}/({Ts}*V(Don)*V(in)+0.1m)-V(Don),1-V(Don))
PARAMETERS: V3
Lin = 1m 1Vac
Co = 450u
Ts = 10u DC = 0.74Vdc
Ro = 610
I(L1)/V(Ve)
40
(13.154K,13.335)
0
1/β
-40
10Hz 100Hz 1.0KHz 10KHz 100KHz 1.0MHz
DB(I(L1)/(V(Ve)))
Frequency
92
Prof. S. Ben-Yaakov , Control Design of PWM Converters [185]
E2 Rin Rf Cf
ks
IN+ OUT+
IN- OUT- 15k 68k 820p Ve_out
EVALUE
I(L1)/20 Cfh 62p V2
Ve
1Vac
0Vdc
0 0
E3
Vc
Error IN+ OUT+
IN- OUT-
Amplifier EVALUE
1E6*V(%IN+, %IN-)
0
PARAMETERS: V3
Lin = 1m 0Vac
Co = 450u
Ts = 10u DC = 0.12Vdc
Ro = 610
80
I(L1)/V(Ve)
40
(12.761K,13.564)
0
1/β
(2.9126K,10.624)
-40
10Hz 100Hz 10KHz 1.0MHz
DB( I(L1)/V(Ve)) -DB( V(VE_OUT)/I(L1))
Frequency
93
Prof. S. Ben-Yaakov , Control Design of PWM Converters [187]
40
I(L1)/V(Vc)
0
-40
10Hz 100Hz 10KHz 1.0MHz
DB( I(L1)/V(Vc))
Frequency
Closed inner Loop
V in L VO
1m H D
CO RO
4 70 µ F 1 60 Ω
R in
C fh
Rf Cf
V E _O U T
D
KM
VE
VC
94
Prof. S. Ben-Yaakov , Control Design of PWM Converters [189]
LoopGain
100
(12.467K,72.211m)
-100
DB(V(VE_OUT)/V(Ve))
180d
(12.467K,60.107)
90d
SEL>>
0d
10Hz 100Hz 10KHz 1.0MHz
p(V(VE_OUT)/V(Ve))
Frequency
Phase margin 600
Nyquist Plot
20K
-20K
-40K
-20K 0 20K 40K
IMG(-V(VE_OUT)/V(Ve))
R(-V(VE_OUT)/V(Ve))
95
Prof. S. Ben-Yaakov , Control Design of PWM Converters [191]
Nichols Plot
100
Phase margin
0
-100
-200d -150d -100d -50d -0d
db(V(VE_OUT)/V(Ve))
p(-V(VE_OUT)/V(Ve))
I(L1)/V(Vc)
-40
10Hz 100Hz 10KHz 1.0MHz
DB( I(L1)/V(Vc))
Frequency
96
Prof. S. Ben-Yaakov , Control Design of PWM Converters [193]
in
L1 R1
Closed Inner Loop
{Lin} 0.1
E1
OUT+ IN+
OUT- IN-
EVALUE
Abs(310*Sin(6.28*50*time))+0.01
Rin Rf Cf
E2 0
Inductor IN+ OUT+
IN- OUT-
ks
15k 68k 820p
Ve_out
Section EVALUE
I(L1)/20 Cfh 62p
IC = -1v
V2
Ve
1Vac
0Vdc
0 0
E3
Vc
Error IN+ OUT+
IN- OUT-
Amplifier EVALUE
1E6*V(%IN+, %IN-)
0
PARAMETERS:
Lin = 1m
Co = 450u Abs(2.4*Sin(6.28*50*time)/20)+0.01
Ts = 10u
Ro = 610
0A
I(L1)
-4.0A
I(L1)
1.0V
0.5V
Don
0V
V(Don)
1.0V
SEL>>
Don +Doff
0V
10ms 20ms 30ms 40ms 50ms
V(Doff)+ V(Don)
Time
In CCM: Don+Doff = 1
97
Prof. S. Ben-Yaakov , Control Design of PWM Converters [195]
0A
-4.0A I(L1)
I(L1)
1.0V
0.5V Don
0V
V(Don)
1.0V
R4
R2 M
Ref
98
Prof. S. Ben-Yaakov , Control Design of PWM Converters [197]
99
Prof. S. Ben-Yaakov , Control Design of PWM Converters [199]
R3
Gsw
{ESR}
Output Section
OUT-
IN-
Ro 390.0V
OUT+
IN+
{Ro}
0V
Gvalue Co
{Co}
0V IC = 390
out
V(Doff)*I(L1)/(V(Don)+V(Doff))
Rvi
Rvf 180k 511k
Excitation van
7.614V
V13 Cvf {Fed_Cap}
Eva
vaout ba_out Rvd
OUT+
IN+
7.614V 10k
1Vac OUT-
IN- 7.500V
7.492VR2
0V
0Vdc vap 0V
Evalue
Error Amplifier and 1000*V(%IN+, %IN-)
+
7.5V
1Meg
Vref -
Compensation Network
0V
-10A
400ms 450ms 500ms 550ms 600ms 650ms 700ms
i(V_Iin)
Time
Pout=250W, Slew Rate=160V/mS
100
Prof. S. Ben-Yaakov , Control Design of PWM Converters [201]
0V
Input Voltage
-400V
v(line)
425.0V
SEL>>
375.0V
400ms 450ms 500ms 550ms 600ms 650ms 700ms
v(out)
Time
SEL>>
-200
db(v(ba_out)/v(Don))
0d
-100d
-200d
10Hz 100Hz 1.0KHz 10KHz 100KHz 1.0MHz
p(v(ba_out)/v(Don))-180
Frequency
101
Prof. S. Ben-Yaakov , Control Design of PWM Converters [203]
-100
SEL>>
-200
db(v(ba_out)/v(vaout))
0d
Φm=650
-200d
-400d
100mHz 1.0Hz 10Hz 100Hz 1.0KHz 10KHz
p(v(ba_out)/v(vaout))-180
Frequency
PSpice simulation
PFC-AC PFC-TRAN
102
Prof. S. Ben-Yaakov , Control Design of PWM Converters [205]
IL
Vac Co Ro
Vin SW
I L (av) Ve
Vref
M E/A
Average Model
L1 R1 0.1
in Out
{Lin}
G1
Vrms*1.414*abs(sin(6.28*50*time)) GVALUE
R6
OUT-
IN- C1 {res}
OUT+
IN+
Iin
THD meter
V(OUT)*V(doff)+V(in)*(1-V(Don)-V(Doff)) 1mF
IC = 390
i(l1)*(sin(6.28*50*time)/abs(sin(6.28*50*time))) i(L1)*v(Doff)/(v(don)+v(doff))
0.99 0.99
don Ipk doff
1-I(L1)*v(k)
0 0
v(in)*v(don)*{Ts}/{Lin} min(1-v(don),2*I(L1)/(v(Ipk)+1u)-v(Don))
Out
R3
V(%IN+, %IN-)*100k
770k
14 V1 E1
k eao ba_in ba_out
OUT+
IN+
1 1Vac OUT-
IN-
(14-V(%IN))*14m 0Vdc
EVALUE
+
-
V2
PARAMETERS: C2 R4 5
Lin = 1m 10k
res = {380*380/P} 3.3u
Ts = {1/100k}
Vrms = 220
P = 1kW
0
103
Prof. S. Ben-Yaakov , Control Design of PWM Converters [207]
200V
100V
SEL>>
0V
v(in)
20A
Inductor Current
10A
0A
730ms 740ms 760ms 780ms 800ms
I(L1)
Time
SEL>>
-100
db(v(ba_out)/v(Don))
100d
0d
Φm=900
-100d
1.0Hz 10Hz 100Hz 1.0KHz 10KHz 100KHz
p(v(ba_out)/v(Don))+180
Frequency
104
Prof. S. Ben-Yaakov , Control Design of PWM Converters [209]
-40
iL/vin=const
-60
30Hz 100Hz 1.0KHz 10KHz 100KHz
db(i(l1)/v(in))
Frequency
PSpice simulation
PFC_no_sens-AC PFC_no_sens-TRAN
105
Prof. S. Ben-Yaakov , Control Design of PWM Converters [211]
Vac DRIVER
Cout Rload
R1
Zero
QS Detector
-
R
R2
Ref
106
Prof. S. Ben-Yaakov , Control Design of PWM Converters [213]
V(OUT)*V(doff)+V(in)*(1-V(Don)-V(Doff)) IC = 400
i(l1)*v(Doff)/(v(don)+v(doff))
1 1
Doff 1-v(Doff) Don
0 0
2*i(L1)*{Rsense}*V(in)/(v(Curr_tresh)*v(out))
2
Curr_tresh Out
in 10n
I1 R3
Error Amplifier
1.6meg
0.5m
R2 V(%IN2)*0.62* 0
1.3meg (V(%IN1) -2.5) R6 E1
Q2 inv
OUT+ IN+
1k OUT- IN-
5.7 Q2N2222
2 1 ea Q1 C2 EVALUE
0
2.1 Q2N2222 1.59u V(%IN+, %IN-)*17783 ref
0 0 +
C3 R4 R5
-
V2 10k
10n 2.5
12k C5
0.68u
0
PSpice simulation
PFC_bord-AC PFC_bord-TRAN
107
Prof. S. Ben-Yaakov , Control Design of PWM Converters [215]
Principle of Operation
Vin
Iin
Ipk(t)
Iav(t)
V Vin ( t )
Ipk ( t ) = 2Iav ( t ) = in Ton = const. if Ton = const.
L Iav ( t )
108
Prof. S. Ben-Yaakov , Control Design of PWM Converters [217]
Io = f(Vout)
T Toff
E = on EDoff =
Don T +T Ton + Toff
on off
R10
G1 {nom_load}
GVALUE
THD
THD meter V(OUT)*V(doff)+V(in)*(1-V(Don)-V(Doff)) OUT-
IN- C1
OUT+
IN+
{Cout}
i(l1)*(sin(6.28*50*time)/abs(sin(6.28*50*time)))
IC = 400
i(l1)*v(Doff)/(v(don)+v(doff))
1 PARAMETERS:
Don Ton
Lin = 320u
0 CT = 2.7n
Vrms = 220
v(Ton)/(V(Ton)+V(Toff)) v(Vcontrol)*200u*{Cch}/(2*i(V_Io)*i(V_Io)+10n) P = 80
Nom_load = {Vo*Vo/P}
Rsense = 1
1 Toff Cout = 47u
Doff Vo = 400
Cch = {15p+CT}
0
v(Toff)/(V(Ton)+V(Toff)) 2*i(L1)*{Lin}/(v(out)-v(in))
Out
R3
ABM3 1meg
TABLE1 R6
i(V_Io) Vreg
300k R5
In Out Vcontrol 1meg
0 1.5v
194u 1.5v V_Io
C3 2.6V +
200u 0v 680n -
0 0
109
Prof. S. Ben-Yaakov , Control Design of PWM Converters [219]
Combined Stage
(Boost-Flyback)
Principle of Operation
ON:
OFF:
110
Prof. S. Ben-Yaakov , Control Design of PWM Converters [221]
Average Model
Boost Inductor Section
R1 L1
in 1 2
{L1}
0.1
310*abs(sin(6.28*50*time)) V(Vc)*V(Doff1)+V(in)*(1-V(Don)-V(Doff1))
R4 Ts = {1/100kHz}
C1
I(L1)*V(Doff1)/(V(Don)+V(Doff1)) 1meg
50u
IC =
Load Section 0
min((2*I(L1)/(V(pk1)+0.1m)-V(Don)),1-V(Don))
V(in)*V(Don)*v(Ts)/{L1}
1
pk1 Doff1
0 1 0.2/5 E1
Boost Doff Generator Don R6 v(out)*5/50
OUT+ IN+
0 OUT- IN-
1k
0 EVALUE
min((2*I(L2)/(V(pk2)+0.1m)-V(Don)),1-V(Don)) V(%IN+, %IN-)*1e5
V(Vc)*V(Don)*{Ts}/{L2} R5 V2
1 5
Doff2 pk2
330k
C3
0
1u 0
Flyback Doff Generator
Feedback and Don Generator
min((2*I(L1)/(V(pk1)+0.1m)-V(Don)),1-V(Don))
V(in)*V(Don)*v(Ts)/{L1}
1 Doff Generator
pk1 Doff1
for Boost Section
0
Boost Doff Generator
min((2*I(L2)/(V(pk2)+0.1m)-V(Don)),1-V(Don))
V(Vc)*V(Don)*{Ts}/{L2}
1
Doff2 pk2 Doff Generator for
0 Flyback Section
Flyback Doff Generator
1 0.2/5 E1
Don R6 v(out)*5/50
OUT+ IN+
0 OUT- IN-
1k
0 EVALUE
Error Amplifier V(%IN+, %IN-)*1e5
R5 V2
and Don 5
Voltage
generator 330k
C3 Divider
1u 0
Feedback and Don Generator
111
Prof. S. Ben-Yaakov , Control Design of PWM Converters [223]
50.0V
37.5V
v(out)
1.0A
Inductor Current
0.5A
SEL>>
0A
671.4ms 680.0ms 690.0ms 700.0ms 710.0ms 721.4ms
I(L1)
Time
Vin=230V, Pout=100W, 50W
Combined Stage
(SEPIC with Transformer)
D in LB Df
LF
C out R load
SW
n:1
Vac
CB
PWM
+ -
E/A
Ref
112
Prof. S. Ben-Yaakov , Control Design of PWM Converters [225]
Principle of Operation
ON:
OFF:
Vout (ILB +ILF)⋅n2
n
Average Model
Vc
R1 L1 I(L2)*V(Don)/(v(doff2)+v(don))
in 1 2 140u
R4 C1
0.0001 {L1} IC =
0 1meg
{Vrms}*1.414*abs(sin(6.28*50*time)) V(in)*(v(Don)+V(Doff1))-(V(out)*{n}+v(Vc))*V(Doff1)
I(L1)*V(Doff1)/(v(doff1)+v(don))
0
out
V(Vc)*V(Don)-V(out)*{n}*max(V(Doff2),V(Doff1))
L2 R2
1 2 PARAMETERS:
C2 R3
{L2} L1 = 90u
0.5 0 10m {load} n=6
IC = 19
L2 = 225u
Vrms = 265
Load = 5
0 Ts = {1/90kHz}
I(L1)*V(Doff1)*{n}/(v(doff1)+v(don))+I(L2)*V(Doff2)*{n}/(v(doff2)+v(don))
1 V6 0.495/5 E1
Don ba_in ba_out R6 v(out)*5/19
OUT+ IN+
0 1Vac OUT- IN-
10k
0Vdc EVALUE
V(%IN+, %IN-)*1e5
0
C4
V2
5
1u
R5
900k 0
min((2*I(L1)/(V(pk1)+0.1m)-V(Don)),1-V(Don))
V(in)*V(Don)*{Ts}/{L1} min((2*I(L2)/(V(pk2)+0.1m)-V(Don)),1-V(Don))
1 V(Vc)*V(Don)*{Ts}/{L2}
pk1 Doff1 1
pk2 doff2
0
0
113
Prof. S. Ben-Yaakov , Control Design of PWM Converters [227]
250mA
0A
I(L1)
25V
Output Voltage
20V
15V
SEL>>
10V
640.0ms 650.0ms 660.0ms 670.0ms 679.7ms
v(out)
Time
Vin=230V, Pout=70W, 50W
PSpice simulation
114
Prof. S. Ben-Yaakov , Control Design of PWM Converters [229]
9. Digital Control
Analog/continuous control
115
Prof. S. Ben-Yaakov , Control Design of PWM Converters [231]
Digital/discrete control
1
2NPWM
2NA/D
VA/D
e - s∆T ⇔
1
LG = K tKMK A/D e- s∆TPS(s )B(z ) z
Sampling Issues
ZOH
Time
∆T
116
Prof. S. Ben-Yaakov , Control Design of PWM Converters [233]
ZOH fs=10KHz
500Hz
1.5KHz
2.5KHz
Sampling Delays
1
TS =
fS
D (n) D (n+1)
Time
output
A/D computation PWM (n+1)
sample (n+2)
sample (n) sample (n+1) (result of sample (n))
Sampling rate = fs
117
Prof. S. Ben-Yaakov , Control Design of PWM Converters [235]
1
TS =
fS
D (n) D (n) D (n+1) Time
output
PWM (n+1)
A/D computation
sample (n+1)
sample (n) (result of sample (n-1))
fs
Sampling rate =
2
Ve(t) R2 R1
- Vc(t) K=
R2 Ve (t ) dV (t ) V (t )
+
= −C c − c
R2 dt R1
τ = R1C
dVc (t )
Differential equation: − KVe (t ) = τ + Vc (t )
dt
K 1
− Ve (s ) = τVc (s ) + Vc (s )
Laplace transform: s s
Vc (s ) K
Transfer function: =−
Ve (s ) sτ + 1
118
Prof. S. Ben-Yaakov , Control Design of PWM Converters [237]
Discretization rules
jω Im[ z ] 1 unstable
S plane Z plane
stable
-1 Re[ z ]
σ 1
stable unstable -1
−1
vo 1 z
= =
v e z + a 1 + az −1
v o (1 + az −1 ) = v e z −1
v o = v o (n − 1) ⋅ a + v e (n − 1)
Unstable if a>1
119
Prof. S. Ben-Yaakov , Control Design of PWM Converters [239]
vo z−1
(z) =
vin 1 − z −2
vo = vo (n − 2) + vin (n − 1)
• Pole-Zero matching
• Zero Order Hold (ZOH)
• Trapezoid (bilinear) transformation
120
Prof. S. Ben-Yaakov , Control Design of PWM Converters [241]
Pole-Zero matching
• Map discrete poles/zeros by zi = e si∆ T
Vc (s ) K Z KP 1
= → ai = ; bi = 0
Ve (s ) sτ + 1 z − e − ∆T τ τ
Vc (s ) V (z )
= c → P = 1 − e − ∆T τ
Ve (s )|s =0 Ve (z )| z =1
=
(
Vc (z ) K 1 − e − ∆T τ
=
m ) m, n - constants
Ve (z ) z−e − ∆T τ z −n
τ
τ + ∆T
121
Prof. S. Ben-Yaakov , Control Design of PWM Converters [243]
Vc (s ) K 2 z −1
= s⇔
Ve (s ) sτ + 1 ∆T z + 1
K ∆T 2
Transfer function: τ + ∆T 2
Vc (z ) K
=
Ve (z ) 2τ z − 1 + 1
∆T z + 1
Vc (z ) K ∆T 2 z + 1
=
Ve (z ) τ + ∆T 2 z − 1
fs=50KHz
Vc (s ) 10
=
Ve (s ) 0.1s + 1
122
Prof. S. Ben-Yaakov , Control Design of PWM Converters [245]
duty/Vc
123
Prof. S. Ben-Yaakov , Control Design of PWM Converters [247]
124
Prof. S. Ben-Yaakov , Control Design of PWM Converters [249]
125
Prof. S. Ben-Yaakov , Control Design of PWM Converters [251]
Z Plane Design
Using the MATLAB SISO tool
1. Define the system structure
2. Define the Plant response
3. Define the compensator template
4. Select the analysis view (Root Locus, Bode, Nichols)
5. Insert design constraints (gain, BW, PM, settling time,
Natural frequency, etc.)
6. You can use the GUI to change pole/zero locations
(either in S or Z and observe the resulting closed loop
response
126
Prof. S. Ben-Yaakov , Control Design of PWM Converters [253]
127
Prof. S. Ben-Yaakov , Control Design of PWM Converters [255]
Closed-loop response
128
Prof. S. Ben-Yaakov , Control Design of PWM Converters [257]
Vo (s )
1.2
1
= 1
d (s ) s 2 s
+ +1
0.8
ωn2 ω nQ 0.6
0.4
0.2
1.8 1.8
Rise time: tr ≈ ⇒ ωn ≈ 0
0 5 10 15 20 25 30 35
ωn tr Time (sec)
π 1
ln Mp
1+
( ) 2
− 1−
2Q 4Q2 π
Overshoot Mp = e ⇒ Q= −
2
ln Mp ( )
π
129
Prof. S. Ben-Yaakov , Control Design of PWM Converters [259]
Template-oriented controller
•Ideal controller to satisfy the design constraints
ACL (z ) 1
B(z )ideal =
1 − A CL (z ) A (z )
Template-based controller
● In each computational event, only data points
around the sampling instant are considered
● The controller uses only information that is in the
vicinity of the sampling instant and is blind to all
other information
● The implemented finite difference equation can be
based on a short-term time response of the
system rather than on the full response
130
Prof. S. Ben-Yaakov , Control Design of PWM Converters [261]
Objective:
• Find a compensator template that will match (or will be
close to) the the ideal response – at least at the first few
samples
• The compensator should have fewer computation cycles
131
Prof. S. Ben-Yaakov , Control Design of PWM Converters [263]
PID controller
Difference Equation (will be implemented on the
digital platform)
Vc [n] = Vc [n - 1] + aVe [n] + bVe [n - 1] + cVe [n - 2]
Only 3 samples!!!
Only 4 computations!!!
Ideal
Amplitude
PID
132
Prof. S. Ben-Yaakov , Control Design of PWM Converters [265]
Design example
133
Prof. S. Ben-Yaakov , Control Design of PWM Converters [267]
Plant response
Amplitude
3.333 ⋅ 108 0.06548 z + 0.06459
PS(s) = ZOH PS(z) =
2 8
s + 2500 s + 1.333 ⋅ 10 z 2 + 1.908z + 0.96
134
Prof. S. Ben-Yaakov , Control Design of PWM Converters [269]
1. 2 Ideal
1
0. 8 PID
Amplitude
0. 6
0. 4
0. 2
0
0 0. 5 1 1.5 2 2.5 3
Time (sec) -3
x 10
135
Prof. S. Ben-Yaakov , Control Design of PWM Converters [271]
PM=40
BW=4KHz
Phase (deg)
136
Prof. S. Ben-Yaakov , Control Design of PWM Converters [273]
Experimental
PM=33
BW=3.2KHz
Load step
PID coefficients
a=3.4
b=-6.15
c=2.93 Vout
137
Prof. S. Ben-Yaakov , Control Design of PWM Converters [275]
Slower Response
Vo = 5V
Tr=500u
Mp=0% No over shoot
Controller response
138
Prof. S. Ben-Yaakov , Control Design of PWM Converters [277]
Closed loop
St ep Response
1. 4
1. 2
0. 8
A mplitude
0. 6
0. 4
0. 2
0
0 0. 5 1 1.5 2 2.5 3
-3
Time (sec) x 10
139
Prof. S. Ben-Yaakov , Control Design of PWM Converters [279]
PM=80
BW=800Hz
Experimental
PM=80
BW=1.5KHz
140
Prof. S. Ben-Yaakov , Control Design of PWM Converters [281]
Load step
PID coefficients
a=1.52
b=-2.81
c=1.38
141
Prof. S. Ben-Yaakov , Control Design of PWM Converters [283]
142
Prof. S. Ben-Yaakov , Control Design of PWM Converters [285]
143
Prof. S. Ben-Yaakov , Control Design of PWM Converters [287]
10. Q&A
144
Prof. S. Ben-Yaakov , Control Design of PWM Converters [289]
The problem :
Converter Filter RO VO
Isolation
barrier
Alternative
Pin
A C
Power Vo Power Vo
stage stage
isolation
feedback
- Gain
-
feedback
+ +
Vref isolation
Vref
B Vo
D
D Power D Power Vo
stage stage
D Gain +
feedback - feedback -
+
isolation +
Vref isolation
Vref
145