You are on page 1of 9

NUST School of Electrical Engineering and Computer Science (Department of Electrical Engineering)

Department of Electrical Engineering

Faculty Member:____________________ Semester:_____________

Dated: ________________ Section: ________________

EE221: Electronics - II
Lab No 2 : Introduction to PSpice
Name Reg. no. Report Marks / 10 Viva Marks / 5 Total/15

Lab No 2 : Introduction to PSpice

Objective: PSpice is a simulation software that runs on personal computers. It can be used to design and analyze almost all manner of complicated electronic circuits. The purpose of this lab assignment is to familiarize students with the use of PSpice. To start: After installation, your Program folder should contain the PSpice software. So, select Start >Programs > Orcad Family Release 9.2 Lite Edition > Capture Lite Edition. This will launch the Capture application. Your screen should appear as in Figure 1

FIGURE 1 Designing a simple circuit: 1. Now, to begin, you must create a new Project. Begin by selecting the File > New > Project menu. 2

2. You should now configure the application so that an Analog or Mixed A/D (analog or mixed analog and digital design) is selected. Please note carefully that the Analog or Mixed A/D checkbox has been highlighted in Figure 2. Name your project and directory you want it to be saved to and click OK.

FIGURE 2 3. Now, upon confirming your selection by clicking on the OK button, another choice will appear. This prompts you as to whether you would like to create a new Project based on a previous Project. For this case, select Create a blank project 4. Now, this will bring up the Capture schematic graphics window, as in Figure 5. This will now allow you to actually draw a circuit with electronic components that can be individually adjusted for their properties. We are ready to begin designing. 5. First, the Ground potential reference point is a circuit node or in the Place menu. We want to Place this node in our circuit. So, you may reach this by pointing to the Place menu. 6. Now, click on Ground, and you will see the Ground dialog box. Click on the Add Library button and select the source library from the PSpice folder. After returning to the dialog box you should see the Libraries highlighted as shown. Now, select the 0/Source selection as in Figure 3. 7. Then, click on OK and you will now find that there is a Ground symbol attached to your mouse Cursor. Place this by clicking with the left mouse button. Then, click with the right mouse button. If you are not careful here, you will accidentally create 3

two ground terminals (one will have to be deleted by right clicking on the part and deleting it).

FIGURE 3 8. Now, we will add a conductor (Wire) to our circuit. Again, proceed to the Place menu, select Wire, and this will now create a drawing tool. You may create the wire by placing the mouse cursor on the terminal at the top of the Ground symbol and then holding down the left mouse button while dragging the mouse cursor upwards (as you can see this is the standard Windows drawing paradigm so this will be familiar to you.) 9. Now, we must start to add Resistor and Source components. To obtain and Place these parts we again navigate to the Place menu. But, this time, click on Part. This will bring up a Place Part dialog box. At this stage, we need to add Parts Libraries to our list of choices. You will need to perform this only once, in the future, the Libraries will appear by default. Click on Add Libraries and select all the libraries listed in the PSpice folder. 10. Now, we can add a Resistor to our circuit. Click on Place > Part and then when the Place Part dialog box appears, highlight the ANALOG library in the Libraries box. This will bring up a list of parts in the Part List box. Now, scroll down to R and click on this. 11. Click the OK button to select this and then you are ready to Place this part. Proceed to place this part as shown in Figure 4.

FIGURE 4

12. To place a power source, follow the same steps as above, but remember to
search for VDC in the Parts dialog box. 13. To change the value of a part, double click on the number representing the value, and enter the required magnitude in the value field. 14. Draw the circuit show in Figure 5 in PSpice. 15. Now, with our circuit complete, we are ready to start a Simulation. First, we must configure the Simulation tool. Proceed to the PSpice menu and click on New Simulation Profile

FIGURE 5

16. Name your simulation and leave the inherit from field to none. When ready click
Create. This will bring up the Simulation Settings Dialog Box. 5

17. Now, the Analysis type we must select is Bias Point. You can reach this by
scrolling through the Analysis type selections and clicking on Bias Point. We do not need to select any of the Output File Options, so simply click on OK. See Figure 6

18. Now, start the Simulation by clicking on PSpice > Run or simply click the Play
button in the tool bar

FIGURE 6

19. To check the bias currents click on the I button in the tool bar. For Power dissipation click
on W.

APPENDIX I
Saving Your Simulation:
Most users have problems while saving their files at their desired places and some careless users even save their files openly on desktop which creates a lot of mess not only at the desktop but for the person trying to find the required file and screenshot. To save your file please follow the following steps: 1. Create a folder by the name of Group<#> Lab Exercise <#>. Here replace Group # with your group number and same goes for the lab exercise that you are performing. 2. Now open the directory where PSpice is installed or go Start Menu to find its shortcut. You need to select OrCad lite edition from the list of icons. It is the main program that generates the object file for our simulation which is later used by other programs to perform their respective functions. 3. After opening the setup a window resembling figure A would open up. All you need to do is press open new file icon on the top left of the window or go into the file menu and scroll down to new and then select project. >>> File Menu >>> New >>> Project

Figure A 7

Now the following window would appear:

Figure-B

Now select browse and go to desktop to select the folder you have created in step 1. This would make sure that all your files are saved in that folder. Moreover you should name your file Lab Exercise #. No need to put your group name here because your folder already contains your group name. Also do not forget to select the type of project you would want to be creating. Choose as shown in figure 4 below:

Figure C 4. Now pay close attention to the figure on the following page. It is of prime importance that you note down the encircled parts as they will make your work easy to do and more efficient. 8

5. Observe the circles and try to understand their functions and features. The encircled p2 is of great importance. It contains tabs to all your files including object file, simulation files and many others. The windows menu is of great importance too! It lets you switch from circuit to circuit within the same project (as will be explained later). Schematic: page 1 is the page where you draw the circuit. Please remember to differentiate between the closing tab of main window and closing tab of schematics window (as shown by red oval shapes on the right of the figure). Main Window
Closing TAB

Schematic Window Closing TAB

RETRIEVING YOUR SIMULATION


1. To retrieve your simulation, simply browse to the directory where you have saved all your

files and double-click to open them. Alternatively you can select File>>>Open>>>Project, then browse to your directory and select the simulation you want to retrieve.

Lab Report :

For the purposes of submitting the lab report, using PSpice make the circuit of the single stage common emitter amplifier that you have studied and show various values on the circuit and attach with the first page of this lab handout.

You might also like