Simulation of Switching Converters - PowerPoint PPT Presentation

1 / 103
About This Presentation
Title:

Simulation of Switching Converters

Description:

Chapter 9 Simulation of Switching Converters Overview PSpice PSpice Simulations using .CIR PSpice Simulations using schematics entry PSpice Simulations Using ... – PowerPoint PPT presentation

Number of Views:125
Avg rating:3.0/5.0
Slides: 104
Provided by: ferHrdow
Category:

less

Transcript and Presenter's Notes

Title: Simulation of Switching Converters


1
Chapter 9
  • Simulation of Switching Converters

2
Overview
  • PSpice
  • PSpice Simulations using .CIR
  • PSpice Simulations using schematics entry
  • PSpice Simulations Using Behavioral Modeling
  • PSpice simulations using vendor models
  • Small-signal analysis of switching converters
  • Creating capture symbols for PSpice simulation
  • Solving convergence problems
  • Matlab
  • Simulink

3
PSpice Simulations using .CIR
An Ideal Open-Loop Buck Converter
Open-loop buck converter simulation SWITCHING
FREQUENCY 1 KHZ DUTY CYCLE 50 VPWM 1 0
PULSE(0 10 0 1US 1US 0.5MS 1MS) PULSE PWM
SOURCE PULSED VOLTAGE 10 V, RISE TIME 1 US,
FALL TIME 1 US, PULSE WIDTH 500 US,
PERIOD 1 MS. L0 1 2 10M C0 2 0 100U RL 2 0
5 .TRAN 50US 20MS .OPTION ITL50 .PROBE .END
4
PSpice Simulations using .CIR
An Ideal Open-Loop Buck Converter
5
PSpice Simulations using .CIR
An Ideal Open-Loop Buck Converter
L 50 mH
6
PSpice Simulations using .CIR
An Ideal Open-Loop Buck Converter
L 5 mH
7
PSpice Simulations using .CIR
An Ideal Open-Loop Buck Converter
L 1.25 mH
8
PSpice Simulations using .CIR
An Ideal Open-Loop Buck Converter
L 10 mH and C 500 uF
9
PSpice Simulations using .CIR
An Ideal Open-Loop Buck Converter
L 1.25 mH and C 500 uF
10
PSpice Simulations using .CIR
Voltage-controlled switch
Sltnamegt N N- NC NC- SNAME .MODEL SNAME VSWITCH
(RON0.01 ROFF1E7 VON0.7 VOFF0)
11
PSpice Simulations using .CIR
Current-controlled switch
Wltnamegt N N- VN WNAME .MODEL WNAME ISWITCH
(RON0.01 ROFF1E7 ION0.1 IOFF0)
12
PSpice Simulations using .CIR
Buck Converter with an Ideal Switch
OPEN-LOOP BUCK CONVERTER WITH AN IDEAL SWITCH
SWITCHING FREQUENCY 1 KHZ DUTY CYCLE 50 VS
1 0 10.0 VPWM 100 101 PULSE(0 1 0 1US 1US 500US
1MS) S1 1 2 100 101 SX RSX 100 0 10G DFW 0 2
D1 L0 2 3 10M C0 3 0 100U RL 3 0 5 .MODEL SX
VSWITCH (RON0.01 ROFF1E7 VON1 VOFF0) .MODEL
D1 D .TRAN 0.05MS 20MS .PROBE .END
13
PSpice Simulations using .CIR
Buck Converter with an Ideal Switch
14
PSpice Simulations using .CIR
Buck Converter with an Ideal Switch
15
PSpice Simulations using .CIR
Using Initial Conditions IC
L0 2 3 100U IC1 C0 3 0 IC5 .TRAN 2NS 200NS UIC
16
PSpice Simulations using schematics entry
Boost converter
17
PSpice Simulations using schematics entry
18
PSpice Simulations using schematics entry
19
PSpice Simulations Using Behavioral Modeling
  • ABM.OLB part library
  • Control system parts

20
Control system parts
21
Control system parts
22
Control system parts
23
Control system parts
24
Control system parts
25
PSpice-equivalent parts
26
PSpice-equivalent parts
27
Operators in ABM expressions
28
Operators in ABM expressions
29
Functions in arithmetic expressions
30
Functions in arithmetic expressions
31
Examples of ABM blocks use
ABM and PARAM
32
Examples of ABM blocks use
Node voltages can be accessed from ABM blocks
33
Examples of ABM blocks use
RMS meter
If(argument,then,else)
If (TIMElt0, 0, SQRT(SDT(PWR(V(IN),2))/TIME))
34
Examples of ABM blocks use
PWM modulator
35
Examples of ABM blocks use
VCO implementation with ABM1
36
PSpice Simulations Using Control Blocks
PWM modulator with control blocks
37
PSpice Simulations Using Control Blocks
Model of an operational amplifier
38
PSpice Simulations Using Control Blocks
Open loop frequency response
39
PSpice Simulations Using Control Blocks
Closed loop amplifier
40
PSpice Simulations Using Control Blocks
Closed loop frequency response
41
Voltage mode PWM boost converter
42
Voltage mode PWM boost converter
43
PSpice simulations using vendor models
.TRAN 0 30m 0 0.1u .OPTIONS STEPGMIN .OPTIONS
ABSTOL 10p .OPTIONS ITL1 400 .OPTIONS ITL4
500 .OPTIONS RELTOL 0.01 .OPTIONS VNTOL 10u
44
PSpice simulations using vendor models
45
Vorperian models for PSpice
46
Vorperian models for PSpice
47
Vorperian models for PSpice
48
Vorperian models for PSpice
VMSSCCM Small signal continuous
conduction voltage mode model Params RMPHITE
--gt External ramp height D --gt
Duty cycle Ic --gt Current flowing
from terminal C Vap --gt Voltage
across terminal A P Rsw --gt Switch
on resistance Rd --gt diode on
resistance Rm --gt which models the
base storage effects Re --gt models
ripple across esr of cap Pins control voltage
-- common --------
passive----- active --
.subckt VMSSCCM A P C VC Params RMPHITE2
D0.4 IC1 VAP20
Rsw1e-6 Rd1e-6 Re1e-6 Rm1e-6 efm 4 0
value v(Vc)/rmphite e2 A 6
valuev(0,4)Vap/d g1 A P valuev(4)IC
gxfr 6 P VALUEI(vms)D exfr 9 P
VALUEV(6,P)D vms 9 8 0 rd 8 C
drd(1-d)rswd(1-d)rerm rope 4 0 1g
rgnd 0 P 1g .ends
49
Small-signal analysis of switching converters
Small-signal AC analysis
50
Small-signal analysis of switching converters
51
Small-signal analysis of switching converters
Open-loop transfer function
52
Small-signal analysis of switching converters
Input impedance
53
Small-signal analysis of switching converters
Input impedance
54
Small-signal analysis of switching converters
Output impedance
55
Small-signal analysis of switching converters
Output impedance
56
Small-signal analysis of switching converters
Small-signal transient analysis
57
Small-signal analysis of switching converters
Small-signal transient analysis
58
Averaged-inductor model for a voltage-mode boost
converter
59
Output voltage obtained with the
averaged-inductor model
60
Measuring the loop gain
61
Measuring the loop gain
62
Frequency compensation
choose f1 100 Hz for a switching frequency of 1
kHz
PID compensation
63
PID compensation
Mag_comp_f1 -7.0985 Ph_comp 32 k1_db
-24.6094 k1 0.0588 k2_db -5.0259 k2
0.5607 R2 588.2076 R3 269.7258 C1
5.0034e-005 C2 1.3496e-006 C3 2.8658e-006
64
Boost switching converter with PID compensator
65
Simulation results with a PID compensator
66
PI compensation
Small-signal model of the boost converter with PI
compensation
67
PI compensation
68
PI compensation using ABM blocks
69
Simulation results of the PI compensation using
ABM blocks
70
PI compensation using vendor models
71
Simulation results of the PI compensation using
vendor models
72
PI compensation using vendor models
Analysis directives .TRAN 0 30m 0 10n SKIPBP
.OPTIONS STEPGMIN .OPTIONS PREORDER .OPTIONS
ABSTOL 10.0p .OPTIONS CHGTOL 0.1p .OPTIONS
ITL2 200 .OPTIONS ITL4 400 .OPTIONS RELTOL
0.01 .OPTIONS VNTOL 10.0u
I/O ERROR -- Probe file size exceeds
2000000000 JOB ABORTED TOTAL JOB TIME
912.11
73
Creating capture symbols for PSpice simulation
  • Vendors often provide PSpice models for their
    circuit components. They are normally provided
    in a text file with extension .LIB if the file
    has a different extension, it should be changed
    to .LIB
  • Start the PSpice Model Editor and from the File
    menu, choose Create Parts
  • Browse to find the input model library (.LIB
    file) and click OK to start
  • This step creates an .OBL file with a schematic
    symbol linked to your model
  • To place the new part into the schematic, open
    Capture, and from the Place menu choose Part.
    Click Add library, then find and add the new
    .OLB file

74
Solving convergence problems
  • PSpice uses the Newton-Raphson algorithm to solve
    the nonlinear equations in these analyses
  • The algorithm is guaranteed to converge only if
    the analysis is started close to the solution
  • If the initial guess is far away from the
    solution, this may cause a convergence failure or
    even a false convergence
  • If the node voltages do not settle down within a
    certain number of iterations, an error message
    will be issued

75
DC analysis error messages
  • The DC Analysis calculates the small-signal bias
    points before starting the AC analysis or the
    initial transient solution for the transient
    analysis
  • Solutions to the DC analysis may fail to converge
    because of incorrect initial voltage guesses,
    model discontinuities, unstable or bistable
    operation, or unrealistic circuit impedances
  • When an error is found during the DC analysis,
    SPICE will then terminate the run because both
    the AC and transient analyses require an initial
    stable operating point in order to start

76
DC analysis error messages
  • No convergence in DC analysis
  • PIVTOL Error
  • Singular Matrix
  • Gmin/Source Stepping Failed
  • No Convergence in DC analysis at Step xxx

77
Transient analysis error messages
  • If the node voltages do not settle down, the time
    step is reduced and SPICE tries again to
    determine the node voltages
  • If the time step is reduced beyond a certain
    fraction of the total analysis time, the
    transient analysis will issue an error message
    Time step too small and the analysis will be
    halted
  • Transient analysis failures are usually due to
    model discontinuities or unrealistic circuit,
    source, or parasitic modeling

78
Solutions to convergence problems
  • There are two ways to solve convergence problems
  • the first only tries to fix the symptoms by
    adjusting the simulator options
  • while the other attacks the root cause of the
    convergence problems
  • Once the circuit is properly modeled, many of the
    modifications of the "options" parameters will no
    longer be required
  • It should be noted that solutions involving
    simulation options may simply mask the underlying
    circuit instabilities

79
Bias point (DC) convergence
  • Checking circuit topology and connectivity
  • Modeling of circuit components
  • PSpice options are checked to ensure that they
    are properly defined

80
Checking circuit topology and connectivity
  • Make sure that all of the circuit connections are
    valid
  • Check for incorrect node numbering or dangling
    nodes
  • Verify component polarity
  • Check for syntax mistakes
  • Make sure that the correct PSpice units (i.e. MEG
    for 1E6, not M, which means mili in simulations)
    are used

81
  • Make sure that there is a DC path from every node
    to ground
  • Make sure that there are at least two connections
    at every node
  • Make sure that capacitors and/or current sources
    are not connected in series
  • Make sure that no (groups of) nodes are isolated
    from ground by current sources and/or capacitors
  • Make sure that there are no loops of inductors
    and/or voltage sources only

82
  • Place the ground (node 0) somewhere in the
    circuit
  • Be careful when floating grounds (e.g., chassis
    ground) are used a large resistor should be
    connected from the floating node to ground. All
    nodes will be reported as floating if "0 ground"
    is not used
  • Make sure that voltage/current generators use
    realistic values, and verify that the syntax is
    correct
  • Make sure that dependent source gains are
    correct, and that E/G element expressions are
    reasonable

83
  • Verify that division by zero or LOG(0) cannot
    occur
  • Voltages and currents in PSpice are limited to
    the range /- 1e10
  • Avoid using digital components, unless really
    necessary
  • Initialize the digital nodes with valid digital
    values
  • Avoid situations where an ideal current source
    delivers current into a reverse-biased p-n
    junction without a shunt resistance

84
Setting up the options for the analog simulation
  • Increase ITL1 to 400
  • Use NODESETs to set node voltages to the nearest
    reasonable guess at their DC values
  • Enable the GMIN stepping algorithm
  • Set PREORDER in Simulation Profiles options
  • Setting the value of ABSTOL to 1 µ
  • PSpice does not always converge when relaxed
    tolerances are used
  • Setting GMIN to a value between 1n and 10n will
    often solve convergence problems
  • Setting GMIN to a value, which is greater than
    10n, may cause convergence problems

85
Transient convergence
  • The transient analysis can fail to complete if
    the time step becomes too small
  • This can be due to either
  • (a) the Newton-Raphson iterations would not
    converge even for the smallest time step size
  • (b) something in the circuit is moving faster
    than can be accommodated by the minimum step size

86
Transient convergence
  • The circuit topology and connectivity should
    first be checked
  • Followed by the PSpice options

87
Circuit topology and connectivity
  • Avoid using digital components, unless really
    necessary
  • Initialize the nodes with valid digital value to
    ensure there are no ambiguous states
  • Use RC snubbers around diodes
  • Add Capacitance for all semiconductor junctions

88
Circuit topology and connectivity
  • Add realistic circuit and element parasitics
  • It is important that switching times be nonzero
  • It is recommended that all inductors have a
    parallel resistor
  • Look for waveforms that transition vertically (up
    or down) at the point during which the analysis
    halts

89
Circuit topology and connectivity
  • Increase the rise/fall times of the PULSE sources
  • Ensure that there is no unreasonably large
    capacitor or inductor

90
PSpice options
  • Set RELTOL.01
  • Reduce the accuracy of ABSTOL/VNTOL if
    current/voltage levels allow it
  • ABSTOL and VNTOL should be set to about 8 orders
    of magnitude below the level of the maximum
    voltage and current
  • Increase ITL4, but no more than 100

91
PSpice options
  • Skipping the bias point is not recommended
  • Any applicable .IC and IC initial conditions
    statements should be added to assist in the
    initial stages of the transient analysis

92
Switching converter simulation using Matlab
Working with transfer functions
Consider a buck converter designed to operate in
the continuous conduction mode having the
following parameters R 4?, L 1.330 mH, C
94 µf, Vs 42 V, Va 12 V
93
Switching converter simulation using Matlab
this is a comment parameters R 4 L 1.330
e-3 Rind 100 e-3 C 94 e-6 Resr 10 e-3 Vs
42 Va 12 DVa/Vs Kd Vs/(1-D)2 Sz11/(Re
srC) Req R-(ResrR/(ResrR)) Sz2
(1/L)(1-D)2 Req Rind/L Re(ResrR)/(
ResrR) Wo (1/sqrt(LC)) sqrt((RindreD(1-
D))/(ResrR)) Q Wo/(((Rindre(1-D))/L)(1/(C
(ResrR))))
94
Switching converter simulation using Matlab
polynomials are entered in descending order of
S. n11/Sz1 1 n2-1/Sz2 1 NUMconv(n1,n2)
the convolution realizes the product of 2
polynomials define denumerator DEN 1/(Wo2)
1/(WoQ) 1 create TF variable sysTF Kd
tf(NUM,DEN) which returns Transfer function
95
Switching converter simulation using Matlab
The location of the poles can be found
using poles roots(DEN) and the frequency
response can be plotted using bode(sysTF)
96
Switching converter simulation using Matlab
The small signal transient step response can be
plotted using Figure this command opens a new
figure window step(sysTF)
97
Switching converter simulation using Matlab
Working with matrices
Consider a buck converter designed to operate in
the continuous conduction mode having the
following parameters R 4?, L 1.330 mH, C
94 µf, Vs 42 V, Va 12 V.
state-space averaged model of a Buck
converter Rload 4 load resistance L
1.330e-3 inductance cap94.e-6
capacitance Ts1.e-4 switching period Vs42
input DC voltage Vref12 desired output
voltage The average duty cycle is DVref/(Vs)
ideal duty cycle
98
Switching converter simulation using Matlab
A 0 -1/L 1/cap
-1/(Rloadcap) B1 1/L 0
during Ton B2 0 0 during
Toff BB1DB2(1-D) C0 1
99
Switching converter simulation using Matlab
OLpoles eig(A)
sysOLss(A,B,C,0) step(sysOL)
100
Switching converter simulation using Matlab
gamma Vs/L 0
closed-loop poles P1e3-0.3298 0.10i
-0.3298 - 0.10i'
Bf gamma(D/Vref) Fplace(A,Bf ,P)
101
Switching converter simulation using Simulink
NUM,DEN TFDATA(sysTF,v)
102
Switching converter simulation using Simulink
sysZPK zpk(sysTF)
zeroes -1.0638e006 1455 poles -2657
-76.6 gain -0.010821
103
Switching converter simulation using Simulink
Write a Comment
User Comments (0)
About PowerShow.com