PSpice Guide


Quick Links

  1. Create A Project
  2. Schematic Capture
  3. Part Libraries
  4. Numbers and Units
  5. Element Properties
  6. DC Bias Point Analysis
  7. DC Sweep Analysis
  8. Breakout Diode (LED)
  9. Nonlinear Resistor (Lamp)
  10. Element Parameter Sweep Analysis
  11. Worst Case Analysis
  12. Monte Carlo Simulation
  13. Transient Analysis
  14. AC Sweep Analysis

1. Create A Project

Under "Orcad Family Release 9.2 Lite Edition" select "Capture CIS Lite Edition". In Orcad Capture click on "File", then "New"", and "Project...". You should see a screen similar to the following.

Orcad Capture: Starting new project

If you want to run PSpice later, make sure the "Analog or Mixed A/D" radio button is selected. Choose a directory and a filename and click "OK". Select "Create a blank project" in the following window.

Orcad Capture: Create PSpice project

Now you should be ready to enter the schematic of a circuit.


2. Schematic Capture

The figure below shows the blank schematic page after creating a new project in Orcad Capture.

Orcad Capture: Blank Schematic

To draw a circuit, parts are placed on the schematic and then connected by wires. Parts are organized in libraries which are added to your project as you go along. Click on "Place" and select "Part..." to obtain a window similar to the following.

Orcad Capture: Place Part Dialog

Before a part can be selected, its library (located at Orcad92Lite/Capture/Library/PSpice) must be added to the project. For the circuits 1 and 2 classes the most important libraries are "analog.olb", "eval.olb", and "source.olb". The following figure shows the libraries to select from.

Orcad Capture: Available Libraries

After adding the ANALOG and SOURCE libraries, resistors, capacitors, inductors and voltage and current sources become available.

Orcad Capture: Add Analog and Source Libraries

To place a resistor on the schematic, first select it from the ANALOG library as shown next.

Orcad Capture: Selecting R from Analog Library

Then click on "OK". Now move the resistor to the desired location on the schematic and click to drop it.

Orcad Capture: Placing R on Schematic

To place more parts of the same type, move to the next location and click again at the location where you want the part to go. To rotate, mirror, or flip a part, or to end placing parts of this type right-click on the schematic and select the appropriate option.

Orcad Capture: Place Part Options

Voltage and current sources are in the SOURCES library. The following figure shows the selection of a dc voltage source (or battery).

Orcad Capture: Selecting VDC from Source Library

IMPORTANT. Every PSpice project needs a PSpice Ground to establish a reference potential. The PSpice Ground has symbol , which is different from ordinary ground with symbol . To get the PSpice Ground part, first click on "Place" and then select "Ground...". You may have to add the PSpice SOURCE library (PSpice/source.olb). Then select part "0" as shown below.

Orcad Capture: Selecting PSpice GND from Source Library

Place as many PSpice Grounds as needed. Now your schematic is ready for wiring.

Orcad Capture: Parts Placed, Wiring is Next

To enable wiring mode, click on "Place" and then select "Wire", or click on the third vertical toolbar button. Wires ar placed by clicking at the starting node, if necessary at corners along the way, and then again at the end node.

Orcad Capture: Wiring the Parts

To remove a wire or a part, select it and press the delete (Del) key. The next figure shows the circuit diagram, wired as a voltage divider. Note the Off-Page Connector (selected under "Part" and "Off-Page Connector...") which has been added to show the output of the circuit explicitly.

Orcad Capture: Voltage Divider with Off-Page Connector Output

Finally, a title is added to the circuit (click on "Place" and select "Text..."), the output connector is relabeled, and the desired element values are entered. To change the value of an element, double-click on the current value and enter the new value. The completed circuit, which is ready for analysis in PSpice, is shown in the following figure.

Orcad Capture: Voltage Divider, Labeled and Element Values Entered


3. Part Libraries

The following figure shows the PSpice libraries that are available on Orcad 9.2 Lite Edition.

Orcad Capture: Available Libraries

The most important libraries for Cicuits 1 and 2 are analog.olb, breakout.olb, eval.olb, source.olb, and special.olb. The next figure shows the most commonly used parts and the libraries from which they are available.

Orcad Capture: Most Commonly Used Parts and Their Libraries


4. Numbers and Units

Numerical values for parts can be integers (5, -12, 15) or real numbers (-1.75, 3.1415, 0.7071). In either case the numbers can be followed by an integer exponent (1E6, 2.2e-9) or by a symbolic scale factor (530u, 1.2meg). These scale dactors are summarized in the following table.

Letter Suffix Multiplying Factor Name of Suffix
T or t 1e12 tera
G or g 1e9 giga
MEG or meg 1e6 mega
K or k 1e3 kilo
M or m 1e-3 milli
U or u 1e-6 micro
N or n 1e-9 nano
P or p 1e-12 pico
F or f 1e-15 femto

Letters which are not sclae factors and which immediately follow either a number or a scale factor are ignored. Thus, 12, 12V, 12A, 12Hz, 12H all represent the same number. Similarly 3.3m, 3.3mOhm, 3.3mV, 3.3MOhm all represent the number 3.3e-3 or 0.0033. Note: A resistor value of 3.3 megaohm is entered in PSpice as 3.3meg or 3.3megohm or 3.3MEGohm, but not as 3.3MOhm.


5. Element Properties

Select any element and right-click on it. In the window that pops up choose "Edit Properties..." to launch the property editor. This is shown for a resistor in the following figure.

Orcad Capture: Property Editor for Resistor

Resistors are usually assumed to be perfect in PSpice. But the resistor model can be altered to specify a resistor tolerance, e.g., 10% as shown below.

Orcad Capture: Make 10% Tolerance Resistor

To show the tolerance explicitly in the schematic, select the "Tolerance" field in the Property Editor and then click on "Display..." to bring up a Display Properties window as shown below.

Orcad Capture: Display Resistor Tolerance

Select the desired Display Format and then click "OK"


6. DC Bias Point Analysis

The simplest type of circuit analysis with PSpice is a dc bias point analysis. For this analysis only the parts of the circuit that are affected by dc voltages and currents are simulated in PSpice. The results that are obtained from a dc bias point analysis are the dc voltages across all elements, the dc currents through all elements, and the power absored or delivered by each element. As an example, start from the voltage divider circuit shown below.

Orcad Capture: Voltage Divider, Labeled and Element Values Entered

To set up a PSpice simulation, click on "PSpice" and then select "New Simulation Profile". Enter a filename for the simulation, e.g., dc_bias as shown below.

Bias Point Analysis: New Simulation Profile

Click on "Create" and then choose the "Bias Point" option in the window that pops up. Leave the checkmark options blank as shown in the next figure and then click "OK".

Bias Point Analysis: Selecting Bias Point Option

Now you're ready to run PSpice by selecting the menu option "PSpice" and then "Run". The output from the simulation can be a text file, a plot, or both. For the simple example used here no parameters vary and thus no plot is generated. To see the text file, select "View" and then "Output File". A portion of this is shown in the next figure.

Bias Point Analysis: Output File from Simulation

As expected, the voltage at the output connector (OUT) is 5V. A handy feature of the Orcad Capture application is that the voltages, currents, and powers computed during the Bias Point simulation can be viewed directly in the schematic as shown below.

Bias Point Analysis: Results from Simulation

Use the "V", "I" and "W" buttons on the horizontal menu bar to turn the voltage, current, and power results on or off.


7. DC Sweep Analysis

Here is the schematic of a voltage divider with IPFRINT and VPRINT1 devices to record the current into the voltage divider and the voltage at the output of the voltage divider. IPRINT and VPRINT1 are both from the SPECIAL PSpice library. Note: VPRINT1 always measures voltage with respect to (PSpice) ground. Use VPRINT2 to measure voltage between two arbitrary nodes in the circuit.

Orcad Capture: Voltage Divider 2 Schematic

To obtain an output from IPRINT and VPRINT you need to specify what they should record. Click on the print device to select it and then right-click and select "Edit Properties...". In the Property Editor enter "Y" in the "DC" column as shown below for the VPRINT device. This tells the VPRINT device to print dc voltages. Repeat for IPRINT to print dc current.

Orcad Capture: Select DC Printing

Next, click on "PSpice" and select "New Simulation Profile". Enter a name for the simulation profile in the window that pops up.

Orcad Capture: New Simulation Profile

The sweep variable in this example the voltage source V1. For this example V1 is swept linearly from 0V to 20V in 1V increments.

Orcad Capture: DC Sweep Simulation

Click on "PSpice" and select "Run" to run the DC Sweep analysis. To see the results from the PRINT devices click on "View" and then select "Output File" in the PSpice result window. Scroll down to the columns headed V_V1 (the voltage of the source V1) and I(V_PRINT) (the current recorded by IPRINT).

PSpice Simulation: IPRINT Output

Similarly, scroll down to the columns headed V_V1 (the voltage of the source V1) and V(OUT) (the voltage recorded by VPRINT1 at the off-page connector labeled Out).

PSpice Simulation: VPRINT1 Output


8. Breakout Diode (LED)

Use of Breakout Diode to Model LED

Invoke the PSpice Model Editor

Breakout Diode Model before Editing

Breakout Diode Model after Editing

Settings for DC Sweep Simulation

Graph after DC Sweep Simulation in PSpice

View Axis Settings for Graph from PSpice

Change X Axis Variable to V(D1:1)

Add Trace for I(D1)

Display i-v Characteristic of LED (Diode)

i-v Characteristic of LED after Graph Rescaling


9. Nonlinear Resistor (Lamp)

Nonlinear Resistor Circuit for Lamp Simulation

HPOLY Coefficients Before Editing

HPOLY Coefficients After Editing

Simulation Profile for PSpice

Circuit Ready for PSpice Simulation

PSpice Simulation Result: i-v Graph

PSpice Simulation Parameters: Text File


10. Element Parameter Sweep Analysis

Voltage Divider with Load

Voltage Divider with Load, Selection of Parameter Part

Voltage Divider with Load, Property Editor for Parameter Part

Voltage Divider with Load, Creating New Property with Name RL

Voltage Divider with Load, New Property Entered and Selected

Voltage Divider with Load, Select Display Properties for RL Parameter

Voltage Divider with Load, Global Parameter Defined and Displayed

Voltage Divider with Load, Change Value of R3 to Global Parameter RL

Voltage Divider with Load, Specify Simulation Settings

Voltage Divider with Load, Place Voltage Marker

Voltage Divider with Load, Result of Sweeping Value of RL


11. Worst Case Analysis

Real resistors have tolerances, e.g. plus/minus 5% and this affects the behavior of circuits. By default the PSpice model assumes perfect resistors with resistance values exactly as specified. The voltage divider circuit below is used to show how resistor tolerances can be simulated and how a worst case analysis can be used to see to which extent these tolerances can affect the output from the circuit.

Voltage Divider for Worst Case/Monte Carlo Analysis

To specifiy a tolerance for a resistor, first select the resistor, then right-click on it and select "Edit Properties...". Scroll to the column labeled Tolerance and enter 10% as shown below.

Setting 10% Tolerance for Resistor R2

To make the tolerance setting visible in the schematic, select the Tolerance field and then click on "Display...". Check the "Value Only" button as shown next.

Change Display Properties to Make Tolerance Visible

Repeat this for all resistors whose tolerances you want to take into account. Then generate a new PSpice simulation profile.

Create New Simulation Profile

Select "DC Sweep" for the Analysis type and fill in values for the desired range of input voltages (or currents).

DC Sweep Simulation Settings: Primary Sweep

Next choose the Monte Carlo/Worst Case Option and select the "Worst-case/Sensitivity" button. Specify the output variable and choose to vary devices that have device tolerances only (no LOT tolerances).

DC Sweep Simulation Settings: Monte Carlo/Worst Case

Click on the "More Settings..." button and specify the function to be performed (YMAX, MAX, MIN) by the simulation and the Worst-Case direction (Hi or Low).

DC Sweep Simulation Settings: Monte Carlo/Worst Case, More Settings...

Here is the schematic of the voltage divider, ready for worst-case simulation. The goal is to find out what the output voltage will be for the worst combination of resistance values for R1 and R2 within the specified 10% tolerance.

Circuit Ready for PSpice Worst Case Simulation

After the simulation you have to choose which results should be displayed in the plot window. The Available Sections shown below are NOMINAL and WORST CASE ALL DEVICES. Select both so that you can see the difference between the output of the ideal and the real (with tolerances) circuit.

Simulation Results: Available Sections

To see where a particular trace came from, right-click on it and select "Information".

Simulation Result Graph: Section Information

Now suppose that rather than displaying V(OUT) versus V_V1, you'd be interested in plotting the ratio V(OUT)/V(IN). To do this, first select "Trace" and then "Delete All Traces" as shown below.

Simulation Result Graph: Delete All Traces

Then, again under "Trace", select "Add Trace...". Select the V(OUT) Simulation Output Variable first, then type a "/" in the Trace Expression box, followed by selecting the V(IN) Simulation Output Variable.

Simulation Result Graph: Add Trace

Click "OK" to obtain the following graph that shows the nominal V(OUT)/V(IN) ratio at 0.333 and the worst-case (in Hi direction) V(OUT)/V(IN) ratio at 0.364.

Simulation Result Graph: V(Out)/V(In) Display

Next click on "View" and select "Output File" in the PSpice probe window to see the parameters of the worst-case analysis. The screen snapshot below shows the worst-case device values (in Hi direction). Not too surprisingly, the value of resistor R1 is reduced by 10% whereas the value of resistor R2 is increased by 10%.

Simulation Output File: Worst Case Device Values

Finally, the next figure shows the summary of the worst-case analysis. It shows that the output voltage is 0.4636 V higher (than the nominal value of 5 V) for the worst combination of resistance deviations due to resistor tolerances.

Simulation Output File: Maximum Deviation from Nominal


12. Monte Carlo Simulation

Simulation Settings for Monte Carlo Simulation

Monte Carlo Simulation: Selection of Results to Display

Monte Carlo Simulation: Initial Result Graph

Monte Carlo Simulation: Delete All Traces

Monte Carlo Simulation: Generate V(OUT)/V(IN) Trace

Monte Carlo Simulation: V(OUT)/V(IN) Plots

Monte Carlo Simulation: Maximum Deviations from Nominal


13. Transient Analysis

-- To be completed --


14. AC Sweep Analysis

-- To be completed --