Switchmode Power Supply Simulation With Spice 3.pdf

(4243 KB) Pobierz
787174778.001.png 787174778.002.png 787174778.003.png
Introduction
Introdu ction
l
l
l
Nonlinear Dependent Sources (B element)
l
Switch With Hysteresis (S element)
l
l
Transfer Function Analysis
l
Sensitivity Analysis
l
DC Analysis
l
AC Analysis
l
Transient Analysis
l
Fourier Analysis
l
Temperature Analysis
l
Monte Carlo and Worst Case Analysis
l
Optimizer Analysis
l
SPICE Modeling Of Magnetic Components
SPICE Modeling Of Magnetic Components
l
Introduction
l
Ideal components in SPICE
l
IsSpice Coupled Inductor Model
l
Reluctance and physical models
l
Magnetic Elements
Saturable Core Modeling
l
SPICE 2 Compatible Core Model
l
SPICE 3 Compatible Core Model
l
Example 1 - MPP Core
l
Ferrite Cores
l
Example 2 - Ferrite Core
l
Constructing a Transformer
l
High Frequency Winding Effects
l
EMI Filter Design
EMI Filter Design
l
Basic Requirements
l
Defining the Negative Resistance
l
Example 1 - Input Resistance Analysis
l
Defining the Harmonic Content
l
Example 2 - .FOUR Analysis
l
Example 3 - Using the Optimizer To Calculate Harmonics
l
Example 4- EMI filter design
l
Calculating the input impedance
l
Calculating the harmonic content
l
Calculating the required attenuation
l
Calculating the component values
l
Fourth Order Filters
l
Buck Topology Converters
Buck Topology Converters
l
Hysteretic Switching Regulator
l
Ave rage (State Space) vs. Switching Level Transient Models
l
Average Modeling Example
l
SG1524A Buck Regulator
l
Discontinuous Mode Simulation
l
An Improved Buck Subcircuit
l
Adding Slope Compensation
l
Voltage Mode Control
l
Improved SG1524A Buck Regulator
l
Transient Model
l
Flyback Converters
Flyback Converters
l
A Flyback Subcircuit
l
Dual Output Flyback Converterfly1.cir
l
Audio Susceptibility
l
Feedforward Improvements
l
Flyback Transient Response
l
Simulating Regulation
l
Time Domain Model
l
Adding Slope Compensation
l
Voltage Mode Control
l
Low Dropout Linear Regulator
Low Dropout Linear Regulator
l
Headroom
l
Transient Response
l
Ripple Rejection
l
Control Loop Stability
l
DC-to-AC Conversions
DC-to-AC Conversions
l
Using SPICE to Generate a Sine ROM
l
State Machine Modeling
l
Powering Nonlinear Loads
l
Three Phase Sine Reference
l
Improving Simulation Performance
Improving Simulation Performance
l
Building Circuit Models
l
Simplifying Your Models
l
.OPTIONS
l
State Machine Models
l
Hardware Considerations
l
Solving Convergence and Other Simulation Problems
Sol ving Convergence and Other Simulation Problems
l
What is Convergence? (or in my case, Non-Convergence)
l
General Discussion
l
IsSpice - New Convergence Algorithms
l
Non-Convergence Error Messages/Indications
l
Convergence Solutions
l
DC Convergence Solutions
l
DC Sweep Convergence Solutions
l
Transient Convergence Solutions
l
Modeling Tips
l
Repetitive or Switching Simulations
l
Other Convergence Helpers
l
References
References
l
General
l
Average/State Space Modeling and Simulation
l
Magnetics Design And Modeling
l
Acknowledgment
Acknowledgment
l
About the author
l
Other Contributors
l
Introduction
The technolog y of computer mo deling and simulati on is growing at a r apid pace. As com puters become fast er and more capable, new software provides greater capability. This
improvement in technology is of great benefit to design engineers and to the companies that employ them. This book is intended to show you how to harness the capability of
computer modeling and the simulation of power circuits.
Why Simulate?
On more than one occasion, I have been asked (usually by my superiors) why there always seems to be a quest for newer, faster computers and software. Why are so many
precious budget dollars requested for conferences and training seminars? After giving this question a great deal of thought, I have four answers:
Simulation Saves Money - Design flaws which are not detected until the production cycle may delay schedules and significantly increase production costs. Si mulation is
an aid to the early detection of these errors. Monte Carlo simulation helps to insure maximum production yield.
l
Simulation Saves Time - Circuits can be simulated on a computer much more quickly than they can be built and evaluated.
l
l
Simulation Measures The Immeasurable - Computer simulation allows engineers to evaluate a circuit with the worst case values. It would be quite a challenge to build a
circuit which represents all worst case components, or to measure the effects of solar flares on circuit performance. Simulation allows these types of conditions to be
easily evaluated.
Simulation Promotes Safety - Simulation allows the evaluation of fault conditions which may be dangerous to human life. Airline pilots spend a considerable amount of
time simulating emergency conditions rather than practicing them.
l
About The SPICE Syntax Used In This Book
This book assumes that you already have a working knowledge of SPICE. If this is not the case, it is suggested that you review the manuals that accompany your SPI CE program
before proceeding. The syntax used is generally SPICE 2 based, however, several key SPICE 3 extensions are utilized in the modeling process in order to enhance the simulation
efficiency (See the SPICE 3 and Other SPICE Extensions section).
This book is intended to assist you in usi ng SPICE during the design and analysis process. I strongly encourage you to run the example s imulations in order to get a better
understanding of the capability of the software and the modeling techniques. All of the example circuits in this book are designed to be simulated using Intusoft’s IsSpice; they are
not designed to run on any other version of SPICE software. However, with a few modifications (which are described in the next section), almost any SPICE software can be used
to run the simulations. In addition, the design and modeling techniques are applicable to many different types of simulators. The circuits, schematics, and SPICE netlists are
included on the enclosed floppy disk for your convenience.
I have selected Intusoft’s IsSpice for sever al reasons:
Intusoft's interactive IsSpice simul ator brings state-of-the-art technology to analog and mixed signal design software.
l
It is the best SPICE simulator for power electronics and related applications. The libraries included with the simulator have the largest number of power semiconductor
models in the EDA industry, including IGBTs, SCRs, Triacs, Power MOSFETs, and Power BJTs. All of the models are in unencrypted ASCII text files, so they can be
easily edited.
l
An inexpensive software modeling utility is available. This utility allows you to easily model your own devices from manufacturer’s data sheet parameters.
l
All of the power devices use sophisticated subcircuit structures or AHDL code, thus providing very realistic behavior. IsSpice’s behavioral modeling capabilities are very
powerful and extensive. There is even an AHDL modeling capability which allows user-defined C code subroutines to be added.
l
Intusoft is dedicated to the improvement of their products. They are continually enhancing their software and adding features which increase productivity.
l
Intusoft maintains a knowledgeable technical support staff and works closely with engineers, in order to make their software as productive as possible.
l
Intusoft is competitively priced.
l
The arbitrary dependent sou rce (B eleme nt) allows an instantaneous transfer function to be written as a mathematical expression. The expressions, [ EXPR ], given for V and I may
be any function of node voltages, currents through any element, or any variety of traditional math functions in the system. The keywords TIME, FREQ, and TEMP may also be
Format: B name N+ N- [I= EXPR ] [V= EXPR ]
IsSpice Examples: B1 0 1 I = sqrt(cos(v(1)/(v(2,3))))
B4 outp outn V = exp(i(vdd)^2)
B1 1 0 V=V(2) * abs(I(V1)) + V(3)
B2 2 3 I=V(7) * Sin(Time)
B3 1 2 V=I(R1)
PSpice Equivalent G1 0 1 value={sqrt(cos(v(1)/(v(2,3))))}
Examples: E4 outp outn value={exp(pwr(I(vdd),2))}
E1 1 0 value={V(2) * abs(I(V1)) + V(3)}
G2 2 3 value={V(7) * Sin(Time)}
E3 1 2 value={I(R1)}
HSpice Equivalent G1 0 1 value=‘sqrt(cos(v(1)/(v(2,3))))’
Examples: E4 outp outn value=‘exp(pow(I(vdd),2))’
E1 1 0 value=‘V(2) * abs(I(V1))+V(3)*V(3)’
G2 2 3 value=‘V(7) * sin(TIME)
E3 1 2 value=‘I(R1)’
The Berkeley SPICE 3 arbitrary source syntax begins with the letter B. N+ and N- are the positive and negative nodes, respectively. The values of the V and I parameters
determine the voltages and currents across and through the device, respectively. There is no distinction between current control and voltage controlled sources for the B element.
If I= is given, then the output is a current source. If V= is given, the output is a voltage source. One and only one of these parameters must be given.
If-Then-Else Examples
The [ EXPR ] given in the Math Expressions section above can also contain a special If-Then-Else expression. This syntax is similar to the C programming language, and is unique
to Intusoft’s IsSpice. However, most SPICE vendors have an equivalent syntax for this capability, as shown below in the Pspice examples. The V= and I= parameters have the
same meaning here.
Format: B name N+ N- V = Evaluation ? Output_Value1 or Expression : Output_Value 2 or Expression
More Simply: B name N+ N- V = if Evaluation is true, then V(N+,N-)= Output_Value 1, else v(N+,N-)= Output_Value 2
Evaluation, Output_Value, and Expression may consist of any math expression discussed in the Math Expressions section, or Boolean operators. There is virtually no limit to the
length or complexity of the expressions that can be used. The Evaluation expression can use greater than ">" or less than "<" test. Equal is not allowed.
If-Then-Else Examples
Zgłoś jeśli naruszono regulamin