Professional Documents
Culture Documents
Converter System Modeling (Simulink)
Converter System Modeling (Simulink)
MATLAB/Simulink discussion
A structured way to write the converter averaged equations,
suitable for implementation in Simulink:
State-space averaging
Some basic converter models, implemented in Simulink
How to plot small-signal transfer functions in Simulink
Modeling the discontinuous conduction mode
i g = di L +
tr
Q
iL + r
Ts
Ts
vL(t)
i C = i i Load
dTs
Ts
vL = d vg i R on + R L vout + d i R on + R L vout
with vout = v + i i Load esr
so vL = dvg i R on + R L v i i Load esr
tr
Q
iL + r
Ts
Ts
Embedded MATLAB
code block:
Load inputs from u
vector
Set circuit parameters
Calculate state
equations and outputs
Place results in output
y vector
(used in current
mode control)
Time-domain simulation
Synchronous buck example, Simulink
Simulink model
employing
synchronous buck
model, with voltage
mode control
Save this as a script (.m file) and run it whenever you want to
generate a Bode plot
This script finds the steady-state operating point and linearizes the
model
The last line opens the LTI Viewer tool, which generates various
small-signal plots including Bode, step response, pole/zero, Nyquist,
etc.
Modeling DCM
Buck example, Simulink model
iL(t)
ipk
dTs
Ts
d2Ts
State equations:
R = 3: CCM
R = 24: DCM
C
500 F
iload
v(t)
R
3
H(s)
Transistor
gate driver
Error
signal
ve
Pulse-width vc G (s)
c
modulator
VM = 4 V Compensator
46
fs = 100 kHz
Sensor
gain
Hv
vref
5V
Chapter 9: Controller design
fc
Open loop
Closed loop