You are on page 1of 20

ECE402, Purdue University, WL

Basic Use of PSpice via ORCAD Capture

Created by Nithin Raghunathan, August 2007

ECE402, Purdue University, WL

This tutorial is student generated and/or inspired. The purpose is to allow design students to learn to do simple analog simulations using PSpice as modified by Orcad and Cadence.

Action 1. Start the Project.

Page A-1 A-2 A-2 A-2 A-9 A-3 A-5

Page B-1 B-2 B-2 B-3 B-3 B-3

Notes

2. “Construct” the circuit.
a. Use “PSpice” devices. b. Picking and placing components c. Use appropriate Signal Sources for: 1) Transient Analysis (Time Domain Response) 2) AC Analysis (Frequency Response) 3) DC Analysis

Others do not work. R, C, and Ground Summary of Sources VSIN (series sources) VAC (series sources)

3. Selecting and Placing Markers 4. “Simulate” the performance of the circuit.
a. Set-up a new “Simulation Profile.” 1) Transient Analysis (Time Domain Response) 2) AC Analysis (Frequency Response) 3) DC Analysis b. Run the simulation. c. Edit the “Simulation Profile.” 1) Transient Analysis (Time Domain Response) 2) AC Analysis (Frequency Response) 3) DC Analysis d. Run another simulation

A-4

B-5

Linear and dB

A-4 A-6 A-5

B-6

B-7

B-8 B-9 B-10 B-10

5. Save the Project 6. Recall and Restart

Open Capture CIS 2. Also in the location field: select a directory location where you want to save the project files. 4. WL 1.1 > Capture CIS. Enter a name for your schematic that you would want to simulate. In the dialog box that appears. select: “Create a blank project” to start a new project. you could select an existing project that you have created so that the settings would transfer to your current project. To start A NEW SPICE SIMULATION. For advanced users. Click OK. click File menu > New > Project. Purdue University. Start menu > Programs > ECE Software > Cadence PSD 15. A-1 . Note : Selecting Schematic would only enable you to draw a schematic and will not enable you to do a PSpice simulation.) For those using the student version Start menu > Programs > Orcad Family Release 9. Make sure the Analog or Mixed A/D is selected. A dialog box appears as follows. Select PCB Design Studio with Capture CIS from drop down menu. (You may need to wait 5 to 20 seconds for the Design Studio blurb to vanish.2 Lite edition >Capture CIS Lite edition 3.ECE402.

A resource bar should appear on the right-hand edge of the screen. Add PSpice components: “Add Library.” select all the components in the PSpice folder Open. As a precaution: When adding Parts from the Parts window select components which display this symbol below the preview box. Purdue University.ECE402. click on the small “AND Gate” at the top of the bar. To place a component. This indicates that there is a PSpice model available for the part and would therefore ensure a smoother simulation 6. WL 5. For the purpose of this tutorial. Click on the blank schematic page. At this point you can begin to enter the circuit you wish to simulate. you will be creating a simple RC filter and run two types of analysis a time domain analysis and a frequency simulation A-2 . The Schematic window should open.

olb of the PSpice directory. Note: Use the 0/SOURCE from the place ground window as the ground for your circuit as this is the PSpice ground. in this case. 8. Give a name for the simulation you would want to run. 1V for the amplitude and frequency 1 kHz. Purdue University. first create a circuit as shown below. A-3 . In this case. The source needed for transient analysis. WL 7. This is done using the new 9. the parameter indicated for the source is 0V offset. For the Transient analysis. Specify the parameters for the source by double clicking the parameter and indicating the value in the value field. Now you would need to create a simulation profile. has to be a sinusoidal source called “Vsin” available in the source. in this tutorial it’s been named as “trans” and then click on the create button.ECE402. simulation profile button on the toolbar .

ECE402. WL 10. The next step in the process is to place a voltage marker at the node point that’s needed to be observed in the circuit. Next place the marker on the pin or node where you would want o observe the voltage and then right click and select end mode or press the ESC button on the keyboard. power or differential voltage markers . power . 11. First select the voltage marker by clicking on the voltage marker button on the toolbar . this would return you back to the schematic window. After the marker is placed. the voltage is observed at the output of the RC filter which is between R1 and C1. Under the Analysis tab. or differential voltage marker using the current buttons on the toolbar to measure the current or power at a node or the voltage between two nodes respectively A-4 . Purdue University. Now a new dialog box called the “Simulation Settings – trans” opens up. In this case. note that this has been set to 10ms in this case and then click OK. the circuit should look something like this: Similarly you can add current. select the Time Domain in Analysis type drop down box. Setting the ending time for thee simulation.

In this tutorial the values have been set to 1V Ac and 0V Dc.olb library in the PSpice folder.ECE402. Note: Use the 0/SOURCE from the place ground window as the ground for your circuit as this is the PSpice ground. WL 12. A-5 . Purdue University. For the Frequency Analysis: Follow steps 1-4 to create the circuit shown below. 13. This starts up PSpice and brings up the output waveform in PSpice window as shown below if there are no errors in the schematic and PSpice settings. Now the transient simulation is complete. This is done by clicking on the run PSpice button on the toolbar. Set the maximum ac voltage and the dc voltage for this source by double-clicking on the parameters. The source used in this circuit is the Vac source found in the source. Now it’s time to run the PSpice simulation.

Follow Steps 7 except in this case the simulation profile is named as freq. For the frequency analysis the AC Sweep/Noise option is selected form the analysis type drop down box.End frequency and the Points/decade have been set to 10 Hz . Click the OK to apply the setting .ECE402. Purdue University. Note that in this tutorial the Start frequency . Also select the sweep type and the starting and ending frequency and laso the number points per decade.1 kHz and 100 respectively. WL 14. A-6 . this takes you back to the schematic window and then follow step 9. Now the Simulation Setting – freq dialog box opens.

after the simulation has run by clicking on the Enable Bias Voltage Display button in the toolbar . This starts up PSpice and brings up the output waveform in PSpice window as shown below if there are no errors in the schematic and PSpice settings. Now in addition to all this the DC bias for the circuit can been seen in Capture schematic. This completes the PSpice tutorial A-7 . Purdue University. WL 15. Now run the PSpice simulation clicking on the run PSpice button on the toolbar. Now the frequency simulation is complete. 16.ECE402.

The purpose is to allow design students to learn to do simple analog simulations using PSpice as modified by Orcad and Cadence. WL This tutorial is student generated and/or inspired. Action 1.” 1) Transient Analysis (Time Domain Response) 2) AC Analysis (Frequency Response) 3) DC Analysis b. and Ground Summary of Sources VSIN (series sources) VAC (series sources) 3. a. Page A-1 A-2 A-2 A-2 A-9 A-3 A-5 Page B-1 B-2 B-2 B-3 B-3 B-3 Notes 2. Use appropriate Signal Sources for: 1) Transient Analysis (Time Domain Response) 2) AC Analysis (Frequency Response) 3) DC Analysis Others do not work. Run another simulation A-4 B-5 Linear and dB A-4 A-6 A-5 B-6 B-7 B-8 B-9 B-10 B-10 5. Start the Project.ECE402.” 1) Transient Analysis (Time Domain Response) 2) AC Analysis (Frequency Response) 3) DC Analysis d. R. Set-up a new “Simulation Profile. c. Use “PSpice” devices. Run the simulation. C. Edit the “Simulation Profile. Purdue University. Picking and placing components c. Recall and Restart . “Simulate” the performance of the circuit. Save the Project 6. “Construct” the circuit. a. Selecting and Placing Markers 4. b.

Enter a name for your schematic that you would want to simulate. Open Capture CIS 2. (You may need to wait 5 to 20 seconds for the Design Studio blurb to vanish. you could select an existing project that you have created so that the settings would transfer to your current project. Also in the location field: select a directory location where you want to save the project files. Select PCB Design Studio with Capture CIS from drop down menu.) For those using the student version Start menu > Programs > Orcad Family Release 9. Make sure the Analog or Mixed A/D is selected. Purdue University. Click OK.ECE402. In the dialog box that appears. 4. Start menu > Programs > ECE Software > Cadence PSD 15. Getting Started.2 Lite edition >Capture CIS Lite dition 3. For advanced users. A dialog box appears as follows.1 >Capture CIS. select: “Create a blank project” to start a new project. B-1 . To start a new PSpice simulation click File menu > New > Project. Note : Selecting Schematic would only enable you to draw a schematic and will not enable you to do a PSpice simulation. 1. WL INTERMEDIATE EXAMPLE.

WL 5. This indicates that there is a PSpice model available for the part and would therefore ensure a smoother simulation B-2 . As a precaution: When adding Parts from the Parts window select components which display this symbol below the preview box. A resource bar should appear on the right-hand edge of the screen. Also. Purdue University. Click on the blank schematic page.ECE402. Click on the small “AND Gate” at the top of the bar.olb. add analog. The Schematic window should open.olb sourcstm.olb source.olb special. Click on “Add Library. At this point you can begin to enter the circuit you wish to simulate. Open.olb nat_semi.” Select all PSpice components.

WL INTERMEDIATE EXAMPLE.” B-3 . connect it to the negatove 15 volt supply. enter LM741/NS.olb”. Click on the component.” “Begin Search. OK.” 6. Purdue University. OK. R/ANALOG. connect it to the positive 15 volt supply. You will also need Power Supplies and “Bubbles. OK.” “VDC/source. ( 2 15 V ) To place a bubble on VCC.olb”. click on the cute little AND Gate icon. “Constructing the Circuit. C/ANALOG. 7. click on “Parts Search. select the ICON labeled PWR. select the ICON labeled PWR. copy the VCC bubble (+15 V) to the page. choose copy and click on the page. for VCC (115 V ) and VEE.ECE402. 0/SOURCE (COMMON or GND). Then flip the bubble by right-clicking on the bubble and choosing “Mirror Vertical. OK. To get the LM741/NS. if you prefer) VCC V2 15Vdc V1 0 VEE 15Vdc To connect the power pins on the LM741/NS.” “VDC/source. You will need these parts shown in the figure on Page B-5. 8. Click on the label and change the name to VCC (or 115 V. You will also need LM741/NS. if you prefer) To place a bubble on VEE. You will need two copies of the VDC “Battery” that are set to 15 V. Click on the label and change the name to VEE (or 215 V.” “Begin Search. click on “Parts Search.” To get the battery symbol. enterVDC. click on the cute little AND Gate icon.

they may be put in series. copy the LM741 circuit. OK.” “Begin Search.” Unfortunately. To get E1. and attach it to the top.” “E/analog. Then. enter E/ANALOG. It is used in this example to show the difference between a real Op Amp and an ideal Op Amp. is a perfect amplifier: infinite input resistance. OK. enter VSIN. 10. E. The voltage controlled voltage source. OK.” + - + - E . To get VAC/SOURCE.olb”. WL 9. VSIN for transient analysis and VAC for frequency response analysis. Now a copy of that bubble may serve as the signal input to your circuits. click on the cute little AND Gate icon. click on “Parts Search. double-click on the little circle and enter 100000 into the GAIN column. OK. Purdue University. If it doesn’t appear as a highlighted component: click on “Parts Search.ECE402.” “Begin Search. delete the 741 and power bubbles from the copy. If it doesn’t appear as a highlighted component. E1 Since the open loop gain of the 741 is around 100. you now need two signal sources.000.olb”. OK.olb”. click on the cute little AND Gate icon. and gain not affected by frequency. To do this. enter VAC. zero ohms output resistance. Since they are not used simultaneously. Signal Sources and “Bubbles. B-4 + - While the component is highlighted. name it SIGNAL. Then click on the lower X That will set the value of the gain and return to your circuit. If it doesn’t appear as a highlighted component: click on “Parts Search. click on the cute little AND Gate icon. To get VSIN/SOURCE. OK. Get a new PWR bubble. E1 + - E Now insert the E1 into the circuit and wire it up. right-click on a clear spot on the grid and select “mirror vertically. Then put the two in series connected to 0/SOURCE as common at the bottom.” “Begin Search. we will set the open loop gain of the ideal Op Amp at 100.000.” “VSIN/source. To set up the same circuit as the Op Amp.” “VSIN/source. Voltage Controlled Voltage Source.

WL C1 VCC 159p R2 SIGNAL V4 SIGNAL R1 2 V3 VOFF VAMPL FREQ 1k OUT LM741/NS 7 3 + U1 OS1 10k VEE 4 V2 15Vdc V1 0 5 6 1 V 15Vdc VEE VR4 10k V+ OS2 0 0 VCC C2 159p SIGNAL R3 1k E1 0 Final Schematic Diagram with Voltage Markers 12. B-5 + - + - V . Purdue University. Apply voltage markers to the outputs of the amplifiers.ECE402.

” “Run to time” is the duration of the time-domain simulation. Choose 0.ECE402.5 usec for smooth curve 14. Starting a Time Domain Simulation: Transient Mode. “Conducting the Analysis. WL INTERMEDIATE EXAMPLE. Purdue University. B-6 . Running the analysis Hit OK to set this simulation. New Simulation Profile. Hit “Create.” 13. Enter “transient”.

WL . B-7 . Purdue University.ECE402.

“Conducting the Analysis.” 15. Purdue University. 16.ECE402. WL INTERMEDIATE EXAMPLE. Running the analysis . Edit Simulation Settings. B-8 . Starting a Frequency Domain Simulation: AC Sweep Mode. Hit OK to set this simulation.

ECE402. WL B-9 . Purdue University.

3. Open Capture CIS 2. Recall and Restart the Project 1. Select PCB Design Studio with Capture CIS from drop down menu.10 . WL 17. Purdue University. Save the Project 1. File. 18.ECE402. Project. Start menu > Programs > ECE Software > Cadence PSD 15. File. click on the appropriate “ .opj “ file. Close or 2. Open. B .1 > Capture CIS. Save. Click OK.