Lecture 24 Computer Modeling and Simulation of PWM Converter Circuits
Lecture 24 Computer Modeling and Simulation of PWM Converter Circuits
In practice converters all employ feedback to stabilize the output to within the user’s
specifications. The chosen controller model employed is usually available from:
1. 1. Control chip manufacturer
2. 2. Controller software
One employs feedback because one expects big improvements in converter performance by
using feedback including:
• Improved system stability to circuit component or switch device changes with
both temperature and aging.
• Higher Zin, Lower Zout for the closed loop system
• A low frequency model allows the use of Bode plots for determining AOL(w). From open
loop gain and phase plots versus frequency we can predict system stability as well as
instability at all operating frequencies. One can also estimate system dynamical
response to transient changes in the load or input by behavior of Aβ the loop gain near
1 I180o.
3. Two generic types of simulators are available for power electronics based simulators:
Circuit oriented and differential equation based
a) Differential Equation Based Simulators
Give total control of the solution to the non-linear differential equations that describe the PWM
circuit and then choose:
The Integration method.
Step time of simulation.
First choose only those important terms in algebraic and differential equations. Neglect as
many elements as possible for the first simulation to save computer time.
Use C language to write the program steps.
Choose your own graphical plotting tools.
b) Equation solver solution sequence
1. Circuit topology choice and switching sequence both determine loop
equations we must solve.
2. The State variable matrix format introduced in Erickson Chapter 7 is useful.
For now consider the circuit equations just in the standard state variable or matrix form:
Use Matlab or Mathematica to do the numerical integration. You have complete freedom to
employ other integration algorithms as well as to change the time sequences to suit your desire
for a complete or just a crude model as we show below on page 9. The point to ponder is
whether or not you have the interest in becoming a computer programmer of power electronics
problems as this is a very time intensive endeavor.
Sample results of simple models are given on page 9 when using the Matlab
simulator.
Illustrative lines of
code in Matlab
The results are plotted below for a buck converter, which will later
With this equation based approach we see both the fast fsw waveform and the slower averaged
output waveforms for the PWM converter evolve during power up of the circuit. In this way we
could estimate any peak excursions that might cause switch failure.
b) Circuit simulators
1) Overview These simulators have been developed to a high level by the needs
of VLSI chip design over the past decades. However, the IC environment is not the power
electronics environment and we will have to take great care. A special form of commercial
circuit simulator that we will favor is termed PSPICE.
The key is to break out the power processor portions from the controller portions.
2) Advantages of circuit simulators
a. Fast/easy as prior library of circuits exists.
b. Segmentation into modules is also easy.
(1) Basic building block PWM converter simulation modules exist. Test each separately then
combine.
2) Easy to change the design
(1) Vary Circuit topology itself
(2) Alter Component values and component models versus f, temperature, etc.
3) Disadvantages of circuit simulators
a. No easy control over
1) Time step of simulation as for power electronics simulation times of seconds are required yet
fsw is giving Ts ≈ 10-100 µ s.
0 (2) No clear best choice of integration method for
1 numerical solution to circuit equations
.2(3) Questionable assumptions of simulator model as these are general purpose tools but
rather are often aimed at IC’s and not always modified to power electronics.
4) Commercial simulators
a. SPICE and PSPICE (student freeware)
Simulation Program with IC Emphasis (SPICE) is widely available.
It has easy to use shells and drop down menus to perform what if circuit analysis such as:
DC and AC sweep analysis,
transient response, parametric analysis of various device / component changes and finally
temperature heating analysis. Two possible starting points with limited capability as compared
to full-blown PSPICE are:
1) PSPICE version 7.1, MicroSim Corporation, 20 Fairbanks, Irvine, CA 92718.
You can also get a student version from the www. Limited to 64 circuit nodes and 30
components.
2) “Power Electronics: Computer Simulation, Analysis, and Education Using
Evaluation Version of PSpice,” on diskette with a manual, Minnesota Power
Electronics, P.O. Box 14503, Minneapolis, MN 55414.
1
2
b) ILLUSTRATIVE PSPICE ANALYSIS Circuit Schematic
L
Controller Input Data: