Professional Documents
Culture Documents
Converter System Modeling Via MATLAB/Simulink
Converter System Modeling Via MATLAB/Simulink
tr Q
i g = di L + iL + r
Ts Ts
Averaging the inductor voltage
Averaging the capacitor current:
vL(t) For both intervals,
i C = i – i Load
Integration of state
variables
Outputs
Independent
inputs
(used in current
Embedded MATLAB mode control)
code block:
• Load inputs from u
vector
• Set circuit parameters
• Calculate state
equations and outputs
• Place results in output
y vector
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.
Control-to-output transfer function Gvd
Generated by Simulink
iL(t)
ipk
dTs d2Ts Ts t
In DCM, the average inductor current Treat the average inductor current
can be expressed as: as an independent state, and solve
for d2:
Note that d2 = 1 – d in CCM, and
d2 < 1 – d in DCM
Combined CCM-DCM model
Buck converter
Simulink model
State equations:
Buck control-to-output transfer function
CCM vs. DCM
R = 3Ω: CCM
R = 24Ω: DCM
9.5.4. Design example
L
50 µH
+
iload
vg(t) + C R
v(t)
28 V – 500 µF 3Ω
Sensor
– H(s) gain
fs = 100 kHz
Transistor Error
gate driver signal
δ Pulse-width vc G (s) ve –+ Hv
modulator c
VM = 4 V Compensator vref
5V
fc
ϕm
Closed loop