Signals 
 Home
Matlab Tutorial 
 Links
Discrete  
 Convolution
Continuous  
 Convolution
Cross Correlation
Fourier Transform
Exam 1 Material
Exam 2 Material
Final Exam Material
Fourier Series 
  via FFT
Xtreme DSP
Other Links
Celoxica
PSpice Op Amp Bode Plot

For this PSpice tutorial, I am using the free downloadable PSpice that I have loaded in the 238 Lab (room 216).  Dr. Pattichis will sign a form to get you a key.   PSpice is loaded on any of the machines.  I am sorry that the pictures didn't turn out as clear as I would have liked but believe they are good enough to give you the meaning.

Go to Start=>Programs=>PSpice Student=>Capture Student

Choose File=>New=>Project

screen1

This should bring you to a screen like the one above.  Choose a name and location for your project.  Make sure you choose Analog or Mixed A/D. 

On the next screen, choose create blank project unless you have a previous project you are using as a template.

You will now be presented with a blank schematic sheet.  I am going to make a Bode plot of the low pass filter shown below.  The same process would apply to any circuit.

screen2

Now I am going to place some parts.  On capture, I go to Place=>Part.  It brings me up to a screen where I can choose parts and libraries for my schematic.  I really like the LM324 operational amplifier for modeling purposes.  I type it into the part name box. 

screen3

If it doesn't automatically find it, then you don't have that library added to this project.  What you do then is click on part search. It will bring you to the search window.   Click on begin search.  It should find a LM324 and offer to use it and load the library to the project.  Accept this and place one of the LM324s on the schematic.  Sometimes I have a little trouble finding the 324 so I first let PSpice search for a uA741 (another op amp).  Once it finds this one, the 324 is in the same library.  Next place a "r/analog" and a "c/analog" onto the sheet.  You can place one of each and just copy and paste as required.  If you copy and paste, you will need to change the resistor numbers and values.  You can do this by just clicking on the numbers or values.  Then place wire and connect them all together.  You should end up with a schematic that looks like this.  Note that I placed a 500 ohm load resistor in the circuit.

screen4

Now I need to place the voltage sources and ground.  To make the operational amplifier work properly, I need to apply a DC bias.  Also, for grounding, I use a device called a "0/source".    I am going to use the following parts:  VAC/source, VDC/source, and 0/Source.  If you have trouble with the 0/Source, it can be found by clicking on the gnd button on the right.  Do not touch wires together to make connections.  Use wires to make connections.  I end up with the following schematic. 

screen5

Click on the save button and then on PSpice=>Create Netlist.  If you have no errors, you will receive no message.  If you have errors, you will receive a notice.  Fix your errors.  Some common problems are bad connections and calling the different parts the same name.  Every time you change the schematic, resave and recreate the netlist.

Click on PSpice=>New Simulation Profile.  Give it a name and click create.  Under Simulation settings, use the drop down menu to choose AC Sweep/Noise.  I set my screen up like the pictue below.   This will start at 10 Hz and go to 100 kHz. 

screen6

Click on OK when you are complete.  Go back to the schematic page.  Go to PSpice=>markers=>advanced and choose dB magnitude of voltage and phase of voltage.  Place the markers on the line with the load resistor like shown below.  Save and recreate the netlist.

screen7

In the upper left corner of the schematic screen you will see a blue arrow the does the "run pspice active simulation" command.  Push it.  You will get a plot showing the magnitude and phase.  To clean it up some, from the Plot menu, choose Add Y-Axis.  Below the x-axis, click the text Vp(out).  It turns red when selected.  From the Edit menu, choose Cut.  From the Edit menu, select Paste.  You should end up with a plot of magnitude and phase like the one below.  The picture didn't come out to good here but it is a very nice print of the phase and magnitude that prints out very nicely.

screen8
[Signals Home] [Matlab Tutorial Links] [Discrete  Convolution] [Continuous  Convolution] [Cross Correlation] [Fourier Transform] [Exam 1 Material] [Exam 2 Material] [Final Exam Material] [Fourier Series  via FFT] [Xtreme DSP] [Other Links] [Celoxica]