EENG 2920: Circuit Design and Analysis Using PSpice Class 3: DC and Transient Analysis Oluwayomi Adamo Department of Electrical Engineering College of.

Slides:



Advertisements
Similar presentations
EEL102 Introduction to SPICE. Spice – Introduction Spice is a short form of : Simulated Program with Integrated Circuit Emphasis Used for circuit analysis.
Advertisements

Directions given for PSpice Schematics. AttributeDescription DELAYThe time delay before the pulses are started. ONTIMEThe length of time that the pulse.
Capacitor and Inductor Using PSpice First Edition: 18/8/09.
Getting Started with Cadence Compiled by Ryan Johnson April 24, 2002  Open Orcad Capture under Engineering Software  Under FILE, choose NEW, PROJECT.
This lesson covers the following outcomes Unit 54 P1, P7, P8 Unit 6 P10, P11.
PSPICE Tutorial Spring 2015
PSpice Tutorial October 13, 2004 Franklin Chiang.
Oluwayomi B. Adamo Department of Electrical Engineering
PSPICE Tutorial. Introduction SPICE (Simulation Program for Integrated Circuits Emphasis) is a general purpose analog circuit simulator that is used to.
Introduction to SPICE. History  SPICE stands for Simulation Program with Integrated Circuit Emphasis  In 1960 ECAP was developed by a team of IBM programmers.
INTRODUCTION Spice Excel. SPICE Simulation Program with Integrated Circuit Emphasis.
Introduction to PSpice Simulation Software. The Origins of SPICE In the 1960’s, simulation software begins –CANCER Computer Analysis of Nonlinear Circuits,
Automatic Holiday Light Display. Goal of Experiment Design an automatic light display in which a set of blinking lights (LEDs) turns on as the amount.
Experiment 11: An Inverting Amplifier
PSPICE - Review Kishore C. Acharya. Kishore Acharya2 Starting Simulation with PSPICE Launch PSPICE design Manager Create a New Work Space or Open an Existing.
1 Lecture #8 EGR 272 – Circuit Theory II Reference: Read Ch. 1-3 in Schematic Capture Using Cadence PSPICE for general info on PSPICE Read Ch. 5-6 in Schematic.
EE311: Junior EE Lab 555 Timer J. Carroll 8/26/03.
PSPICE Graphical Tutorial Based on the PSPICE in BR 123.
Getting Started with Cadence Prepared by Ryan Johnson, 2002  Open Orcad Capture under Engineering Software  Under FILE, choose NEW, PROJECT  The following.
HossamTalaat - MATLAB Course - KSU - 21/1/24 1 IEEE Student Branch - College of Engineering - KSU Getting started with Simulink By Prof. Hossam Talaat.
Series RC Circuit. Shunt resistor It is good practice to short the unused pin on the trimpot when using it as a variable resistor Velleman function generator.
Pulse Width Modulation (PWM) LED Dimmer Circuit
Analysis and Design of Power Electronic Circuits using Orcad
Week 9: Series RC Circuit Experiment 14. Circuit to be constructed Shunt resistor It is good practice to short the unused pin on the trimpot when using.
Pulse Width Modulation (PWM) LED Dimmer Circuit
Experiment 11: Non-Inverting Amplifier With Modifications that Require the Use of the Velleman Oscilloscope.
Electric Circuit Capacitors Electric Circuits Capacitors DK 12.
Experiment 12 Non-Inverting Amplifier. Experimental Procedure Clarification in Step 3 (Modeling) – To perform the DC Sweep in the sinusoidal voltage source.
The George Washington University School of Engineering and Applied Science Department of Electrical and Computer Engineering Circuit Design Verification.
Abdülkadir ERYILDIRIM Turgut Ozal University. The Objectives:  Open and Save New Project File  Create a Circuit Schematic  Get Place, Place Parts i.e.
Fundamentals of Power Electronics and Power System with MATLAB
EENG 2610: Circuit Analysis Class 12: First-Order Circuits
Chapter 8: The Complete Response of RL and RC Circuits ©2001, John Wiley & Sons, Inc. Introduction To Electric Circuits, 5th Ed Chapter 8 The Complete.
Electronic Circuits Laboratory EE462G Lab #4 DC Power Supply Circuits Using Diodes.
Automatic Holiday Light Display. Goal of Experiment Design an automatic light display in which a set of blinking lights (LEDs) turns on as the amount.
Alternating Current Electricity Lesson 11. Learning Objectives To know what is meant by alternating current. To know how to calculate the rms value of.
1 Circuit Simulation using PSPICE PSPICE Seminar.
Basic Pspice Instructions Stuart Tewksbury
CIRCUIT ANALYSIS USING NGSPICE
Analog Discovery Arbitrary Function Generator for Windows 7 by Mr
Lecture on PSpice. Introduction to SPICE  SPICE was originally developed at the University of California, Berkeley (1975).  Simulation Program for Integrated.
Square Wave Sources: Digclock and Vpulse Directions given for PSpice Schematics.
Vadodara Institute of Engineering kotanbi Active learning Assignment on Single phase AC CIRCUIT SUBMITTED BY: 1) Bhatiya gaurang.(13ELEE558) 2)
EENG 2610: Circuit Analysis Class 11: Capacitor and Inductor Combinations RC Operational Amplifier Circuits Oluwayomi Adamo Department of Electrical Engineering.
WEBENCH Schematic Editor Hands On Problems
Introduction to PSpice
0 Chap 2. Operational amplifiers (op-amps) Circuit symbol of an op-amp Widely used Often requires 2 power supplies + V Responds to difference between.
Introduction to Elementary Circuit Simulations with PSpice
Modeling of Power Converters using Matlab and Simulink
Experiment 10: Inverting Amplifier With Modifications that Require the Use of the Velleman Oscilloscope.
Phasors and Kirchhoff’s Current Law
T RANSIENTS AND S TEP R ESPONSES ELCT222- Lecture Notes University of S. Carolina Fall2011.
Week 4: Experiment 24 Using Nodal or Mesh Analysis to Solve AC Circuits with an addition of Equivalent Impedance.
It’s always important that all of your nodes be numbered. So the way to do that is to go to Options at the top of the screen then select Preferences. When.
Chapter 9 CAPACITOR.
Transient Response. Transient Analysis Plot of the voltages or currents as a function of time. – Output plot mimics the oscilloscope display. If simulating.
Introduction to LTspice IV
EMT 251 SPICE NETLIST.
Introduction to PSPICE
PSPICE Quickstart Revision 0
ORCAD PSPICE.
Review for Fun II Test 1.
EENG 2610: Circuit Analysis Class 13: Second-Order Circuits
Week 9: Series RC Circuit
INTRODUCTION Spice Excel.
Mechatronics Engineering
A Differentiator Circuit
Chapter 4 – Operational Amplifiers – Part 2
global parameter model parameter temperature
Presentation transcript:

EENG 2920: Circuit Design and Analysis Using PSpice Class 3: DC and Transient Analysis Oluwayomi Adamo Department of Electrical Engineering College of Engineering, University of North Texas

EENG 2920, Class 3 2 Modeling of Elements PSpice simulation of circuits is based on the models of circuit elements. A model that specifies a set of parameters for an element is specified in PSpice by the “.MODEL” command.  The general form of the model statement is.MODEL MNAME TYPE (P1=A1 P2=A2 …) TYPE is the type name of the elements and must have the correct model type name (shown in Table 3.2, page 43)  There can be more than one model of the same type in a circuit with different model names.

EENG 2920, Class 3 3 Resistor Models The name of a resistor must start with R. Models in PSpice Capture  The user can assign the model name of the breakout devices in the library “breakout.olb”  The user can edit the model parameters. Model Parameters for Resistors (Table 3.1, page 41)  R: Resistance, no unit, default: 1.  TC1: linear temperature coefficient, unit: o C -1, default: 0.  TC2: quadratic temperature coefficient, unit: o C -2, default: 0.  TCE Exponential temperature coefficient, unit: o C -1, default: 0. Resistance as a function of temperature:  T and T0 are the operating temperature and the room temperature, respectively, in degree Centigrade

EENG 2920, Class 3 4

5 A Simple Demo of PSpice Model Editor This step-by-step demo will show how to do the following:  Add library breakout.olb  Place breakout elements, e.g., Rbreak  Invoke PSpice Model Editor  Create new resistor models  Label breakout resistor models  Run simulations  Show voltages and currents  Edit model parameters  Also demonstrate how to edit property Note: In the Capture CIS that we are using in labs, we have to write “R=.9”, instead of “R=0.90”; that is, you have to remove 0 at both ends. The Lite version does not have such bugs.

EENG 2920, Class 3 6 Example 3.2 Create a new blank Analog or Mixed A/D project E3_2 Draw the following circuit:  Resistors are from the library “breakout.olb”, Rbreak  Select one of the Rbreak resistor, right-click mouse, select “Edit PSpice Model”  Create resistor models Rmod1 and Rmod2, save the models:  Correctly label the breakout resistor models:

EENG 2920, Class 3 7 Create simulation profile “sim1”  Analysis type is “Bias Point” Run simulation, show the following simulation results Try the following menu commands  PSpice – Bias Points  PSpice – Create Netlist, and PSpice – View Netlist Figure 3.2.1:

EENG 2920, Class 3 8 Example 3.3 Create a new blank Analog or Mixed A/D project E3_2 Draw the following circuit:  Define node numbers: 1, 2, 3, 4. Create a new simulation profile sim1  Analysis type is Bias Point  Define parameters to Calculate Small Signal DC Gain (.TF) as shown in the figure: Vin V(2,4)

EENG 2920, Class 3 9 Run simulation and obtain the following simulation results: Check Output File for the Small Signal Characteristics  Go to menu PSpice – View Output File: Figure 3.3.1: Figure 3.3.2:

EENG 2920, Class 3 10 Transient Analysis A transient analysis deals with the behavior of an electric circuit as a function of time. If a circuit contains an energy storage elements, a transient can also occur in a DC circuit after a sudden change due to switches opening and closing. PSpice allows simulating transient behaviors, by assigning initial conditions to circuit elements, generating sources, and the opening and closing of switches. The simulation of transients in circuits with linear elements requires modeling of  Resistors, capacitors, and inductors,  Model parameters of elements,  Operating temperature,  Transient sources.

EENG 2920, Class 3 11 Capacitor The symbol for a capacitor is C. The name of a capacitor must start with C, and the general form is:  C N+ N- CNAME CVALUE IC=V0 where IC is the initial condition, i.e., the initial voltage of the capacitor. Model parameters for capacitors (Table 4.1, page 86)  C: capacitance multiplier, no unit, default: 1.  VC1: linear voltage coefficient, unit: V -1, default: 0.  VC2: quadratic voltage coefficient, unit: V -2, default: 0.  TC1: linear temperature coefficient, unit: o C -1, default: 0.  TC2: quadratic temperature coefficient, unit: o C -2, default: 0. Capacitance as a function of voltage and temperature:  T and T0 are the operating temperature and the room temperature, respectively, in degree Centigrade The capacitor device from “breakout.olb” can be edited and new models can be defined in the same way as resistor. For example, .MODEL Cmod1 CAP (C=1 VC1=0.01 VC2=0.002 TC1=0.02 TC2=0.005)

EENG 2920, Class 3 12 Inductor The symbol for an inductor is L. The name of an inductor must start with L, and the general form is:  L N+ N- LNAME LVALUE IC=I0 where IC is the initial condition, i.e., the initial current of the inductor. Model parameters for inductors (Table 4.2, page 88)  L : inductance multiplier, no unit, default: 1.  IL1 : linear current coefficient, unit: A -1, default: 0.  IL2 : quadratic current coefficient, unit: A -2, default: 0.  TC1 : linear temperature coefficient, unit: o C -1, default: 0.  TC2 : quadratic temperature coefficient, unit: o C -2, default: 0. Inductance as a function of voltage and temperature:  T and T0 are the operating temperature and the room temperature, respectively, in degree Centigrade The inductor device from “breakout.olb” can be edited and new models can be defined in the same way as resistor and capacitor. For example, .MODEL Lmod1 IND (L=1 IL1=0.1 IL2=0.002 TC1=0.02 TC2=0.005)

EENG 2920, Class 3 13 Exponential Source The symbol of exponential sources is EXP, and the general form is  EXP (V1 V2 TRD TRC TFD TFC) Model parameters (Table 4.3, page 91)  V1: initial voltage, unit: V, default: none  V2: pulsed voltage, unit: V, default: none  TRD: rise delay time, unit: S, default: 0  TRC: rise-time constant, unit: S, default: TSTEP  TFD: fall delay time, unit: S, default: TRD+TSTEP  TFC: fall-time constant, unit: S, default: TSTEP Among the parameters, V1 and V2 must be specified by the user.

EENG 2920, Class 3 14 Pulse Source The symbol of pulse sources is PULSE, and the general form is  PULSE (V1 V2 TD TR TF PW PER) Model parameters (Table 4.4, page 92)  V1: initial voltage, unit: V, default: none  V2: pulsed voltage, unit: V, default: none  TD: delay time, unit: S, default: 0  TR: rise time, unit: S, default: TSTEP  TF: fall time, unit: S, default: TSTEP  PW: pulse width, unit: S, default: TSTOP  PER: period, second, default: TSTOP Among the parameters, V1 and V2 must be specified by the user. TSTEP and TSTOP are the incrementing time and stop time, respectively, during the transient analysis.

EENG 2920, Class 3 15 Piecewise Linear Source The symbol of piecewise linear sources is PWL, and the general form is  PWL (T1 V2 T2 V2 … TN VN)  A point in a waveform can be described by (Ti, Vi) or (Ti, Ii) and every pair of values specifies the source value at time Ti. The voltage at time between the intermediate points is determined by PSpice using linear interpolation. Model parameters (Table 4.5, page 94)  Ti : time at a point, unit: second, default: none  Vi : voltage at a point, unit: V, default: none

EENG 2920, Class 3 16 Single-Frequency Frequency Modulation The symbol for a source with single frequency modulation is SFFM, and the general form is  SFFM (VO VA FC MOD FS) Model parameters (Table 4.6, page 95)  VO: offset voltage, unit: V, default: none  VA: amplitude of voltage, unit: V, default: none  FC: carrier frequency, unit: Hz, default: 1/TSTOP  MOD: modulation index, unit: none, default: 0  FS: signal frequency, unit: Hz, default: 1/TSTOP Among the parameters, VO and VA must be specified by user and can be either voltages or currents.

EENG 2920, Class 3 17 Sinusoidal Source The symbol for sinusoidal source is SIN, and the general form is  SIN (VO VA FREQ TD ALP THETA) Model parameters (Table 4.7, page 96)  VO: offset voltage, unit: V, default: none  VA: peak voltage, unit: V, default: none  FREQ: frequency, unit: Hz, default: 1/TSTOP  TD: delay time, unit: S, default: 0  ALPHA: damping factor, unit: 1/S, default: 0  THETA: phase delay, unit: degrees, default: 0 Among the parameters, VO and VA must be specified by user and can be either voltages and currents. The waveform stays at 0 for a time of TD, and then the voltage becomes an exponentially damped sine wave. The exponentially damped sine wave is described by:

EENG 2920, Class 3 18 PSpice Demo Draw circuit  To show how to set up PWL source parameters: T1=0, T2=1ns, T3=1ms, V1=0, V2=1, V3=1  To show how to display component pin ID. Simulation profile  Analysis type: Time Domain (Trasient)  Run to time: 500us, Max step size: 1us Menu command “Pivot” in property editor  To show how to make the appearance of the Property Editor more user friendly. “Copy to clipboard” in PSpice AD  To show how to copy clearly visible plots to Word. Figure Figure 4.1.1

EENG 2920, Class 3 19 Example 4.2 Draw a circuit as shown in the figure:  The voltage source is VPULSE from “source.olb”  Add a voltage marker and a current marker Create a new simulation profile  Analysis type is “Time Domain (Transient)”  Run to time: 400us  Maximum step size: 1us Run simulation to obtain the results: In PSpice AD, use menu command “Plot – Add Plot to Window ” to add a new plot in the same window. Figure 4.2.1: Figure 4.2.2:

EENG 2920, Class 3 20 Example 4.3 Draw circuit:  The source is VPWL from “source.olb”  The parameters of VPWL is T1=0, T2=1ns, T3=1ms, V1=0, V2=1, V3=1. These parameters are set in the Property Editor: Select VPWL device, right-click mouse, select “Edit Properties …” Create a new simulation  Analysis type is Time Domain (Transient)  Run to time: 400us  Maximum step size: 1us Run simulation to obtain the result: Please observe how the circuits respond to the same step input voltage signal. Figure Figure 4.3.2:

EENG 2920, Class 3 21 Example 4.4 Draw circuit:  The source is VSIN from “source.olb”  The parameters of VSIN is shown in the circuit. Create a new simulation  Analysis type is Time Domain (Transient)  Run to time: 500us  Maximum step size: 1us Run simulation to obtain the result: Figure 4.4.1: Figure 4.4.2:

EENG 2920, Class 3 22 Example 4.5 Draw circuit as shown in figure:  R, L, C are all from “breakout.olb”  Define models RMOD, LMOD, and CMOD as shown in the figure on the bottom. Use the new models in the circuit.  Define initial conditions (IC) of L and C in the property editor.  The PWL voltage source is the VPWL from “source.olb”. The VPWL source parameters are: (T1=0, T2=10ns, T3=2ms, V1=0, V2=10, V3=10) Create a new simulation profile  Analysis type is: Time Domain (Transient). Run to time: 1ms, Max step size: 5us.  Temperature (sweep): Run at 50°C. Obtain the simulation result in the figure: Figure Figure 4.5.2

EENG 2920, Class 3 23 Example 4.6 Repeat Example 4.5 with the following difference:  L1 has no initial condition  The initial condition for C1 has been changed to -4V. Notice that the response is completely different from Example 4.5, because the initial conditions of L and C are different. Figure Figure 4.6.2