1. orcad pspice notes

22
ORCAD 9.1 Software When installing the software, you may be given an option of which features to install. Pick both Capture and PSPICE . When saving files to a floppy disk, be sure to create a folder on the disk to store the project. Without a folder, some of the required files created by ORCAD seem to get lost and you may have trouble re-opening the file. Run the software by selecting Start - Programs - ORCAD - Capture Basic steps in creating and analyzing a circuit using PSPICE 1) Create a project Select File – New – Project from the main menu When the New Project box appears, specify the following: o Assign the project a Name (any name is fine) o Create project using Analog or Mixed-Signal Circuit Wizard o Pick the Location (be sure to use a folder if on a floppy) If asked to use an existing hierarchical template or begin a blank project, pick a blank project. If asked to Add Libraries, add the EVAL.OLB library 2) Draw the schematic 3) Create a simulation profile (select PSPICE – New Simulation Profile from the main menu) 4) Run the simulation (select PSPICE – Run from the main menu) 5) View the results (select PSPICE – View Output File from the main menu) Demonstration topics Menu overview Parts libraries - overview Inserting components (use Parts - Insert or use icon on toolbar) Rotating components (R or Ctrl + R) – about the positive terminal Flipping components (F or Ctrl + F) Alternate method: right click on component and select rotate or flip options Editing properties (Edit – Properties or double-click on the component) 1

Upload: yarwindran-mogan

Post on 28-Mar-2015

330 views

Category:

Documents


14 download

TRANSCRIPT

Page 1: 1. OrCAD Pspice Notes

ORCAD 9.1 Software When installing the software, you may be given an option of which features to install. Pick both Capture and PSPICE.When saving files to a floppy disk, be sure to create a folder on the disk to store the project. Without a folder, some of the required files created by ORCAD seem to get lost and you may have trouble re-opening the file.Run the software by selecting Start - Programs - ORCAD - Capture

Basic steps in creating and analyzing a circuit using PSPICE 1) Create a project

Select File – New – Project from the main menu When the New Project box appears, specify the following:

o Assign the project a Name (any name is fine)o Create project using Analog or Mixed-Signal Circuit Wizardo Pick the Location (be sure to use a folder if on a floppy)

If asked to use an existing hierarchical template or begin a blank project, pick a blank project.

If asked to Add Libraries, add the EVAL.OLB library

2) Draw the schematic3) Create a simulation profile (select PSPICE – New Simulation Profile from the main menu)4) Run the simulation (select PSPICE – Run from the main menu)5) View the results (select PSPICE – View Output File from the main menu)

Demonstration topics• Menu overview• Parts libraries - overview• Inserting components (use Parts - Insert or use icon on toolbar)• Rotating components (R or Ctrl + R) – about the positive terminal • Flipping components (F or Ctrl + F)

Alternate method: right click on component and select rotate or flip options• Editing properties (Edit – Properties or double-click on the component)• Editing a component’s value or name by double-clicking on the item• Wiring a schematic: use Place – Wire or use the wire icon on the toolbar• Including a ground:

– PSPICE is based on nodal analysis so a ground is required– Always use the ground named 0 (or 0/SOURCE indicating which library it is in)– Insert the ground by selecting Place – Ground – 0/SOURCE (or use the GND symbol

shown on the toolbar)– If the 0/SOURCE ground is not shown, select Add Library, then open the PSPICE

folder, then double-click on the SOURCE library• PSPICE is not case-sensitive

1

Page 2: 1. OrCAD Pspice Notes

Allowable prefixes are shown in the table below

• When PSPICE reads a component value:• No space is allowed between the value and the prefix or unit name• PSPICE essentially only looks at the first letter after the value to see if it is a valid prefix.

All other letters are ignored, so unit names can be entered in a variety of ways. Several examples of specifying a 100 kW resistor are shown below:

• Labeling nodes (use the N1 tool on the toolbar). It is a good idea to label all nodes except the ground node (which is already labeled as node 0).

• Displaying properties: Some properties are automatically displayed, but others are not. In general, display any property that you set or change.

• Adding text to a schematic: Select Place – Text from the main menu

Analysis available includes:– Bias Point

• Automatically finds all node voltages and places the results in the .OUT file. • Current, voltage, and power values for each component can also be printed

on the schematic by selecting the following from the menu:• PSPICE - Bias Points - Enable• PSPICE - Markers - (Select quantity to be displayed)

– DC Sweep • No spaces allowed between value and unit for starting & ending value in

sweep (similar to specifying values of components)• If the starting and ending values are the same, use an Increment of 1

2

Page 3: 1. OrCAD Pspice Notes

Voltage printers & current printers– use their (DC =) property and display it– use a DC sweep (analysis type) or the printer is ignored!– Insert current printers like an ammeter (break the circuit and place in series)– Insert voltage printers like a voltmeter (across the component (in parallel))– Look for the negative sign on the printer for correct polarity– Forms for voltage: V(R2), V(A), V(A,B)– The results are printed in the .OUT file

• Dependent sources– Located in the analog library (analog.olb)– Use E, F, G, and H (not EPOLY, FPOLY, GPOLY, and HPOLY)– Each source has a round symbol that can be thought of as the source. The other

terminals are for the control variable.– Double click on the source to set the GAIN property (default value = 1). Be sure to

change the property settings so that the GAIN is displayed.

3

Page 4: 1. OrCAD Pspice Notes

ORCAD CAPTURE (PSPICE)

GETTING STARTED

1. Click on start program OrCAD release 10.5 capture CIS

2. Orcad Capture window will appear as shown.

3. Click file new project

4. Make sure Analog or Mixed A/D button is chosen

5. Fill in name with a filename (ex. RC AMPLIFIER )

6. Select location where you will store your project

7. Click OK

4

Page 5: 1. OrCAD Pspice Notes

|8. Create PSpice Project will appear.

9. Make sure you click Create a blank project

10. Click OK

11. An empty schematic page and a project window will appear The Project Manager window shows the Design Resources, Outputs and PSpice Resources. We will use this window to organize all of our project designs. It is especially useful in complex, multi project environments The Schematic window represents the “protoboard” onto which the circuit will be drawn. After circuit analysis, additional windows will be opened to display result.

5

Log of events or errors (not used by this text)

Schematic window

Menu bar

Project Manager Window

Page 6: 1. OrCAD Pspice Notes

12. Click the Place Part button

13. Click Add Library

14. Select all the libraries in Pspice folder only. Program file Orcad Capture Library PSpice

15. Click Open

6

Place Partbutton

Page 7: 1. OrCAD Pspice Notes

16. Type the component name at the part list

17. Click OK

18. The symbol that you chose will appear at the bottom right column.

19. The value shown is the default value, you can change it later.

20. Drag the part to the desired location.

21. Right click on the mouse end mode, or click Esc.

22. Repeat process for other components.

7

Part List

Simulation

Layout

Click Ctrl + A, to select all

Components that already used can select here.

Page 8: 1. OrCAD Pspice Notes

R 11 k

2

1

23. There are several components that have more then 1 part per pack. Ex. 7404, Not gate have 6 parts per pack.

24. Every gate label by different label. Ex.

CHANGE THE COMPONENT POSITION

1. Click Rotate and the component will turns clockwise 90o.

2. Or click “r”

3. Click Mirror Horizontally or Mirror Vertically to flip the part about the horizontal (X) or vertical (Y) axes.

8

Have 6 parts per pack

U 1 A

7 4 0 4

1 2U 1 B

7 4 0 4

3 4

U 1 C

7 4 0 4

5 6

Q 12 N 4 2 2 2 A

U 1 A

7 4 0 4

12

Page 9: 1. OrCAD Pspice Notes

TO PLACE GROUND

1. Click the icon on the right side of window

2. Select 0/source.

TO CHANGE COMPONENT VALUE

1. Double click at the component value.

2. The display properties window will appear.

3. Put the correct value and click OK.

EDIT PART

1. If the IC pins need to change, click right edit part.

2. Change size or pins position as you like.

9

Put the value here

Before editing

Page 10: 1. OrCAD Pspice Notes

U 2

5 5 5 a ltG N D

1

TR I G G E R2

O U TP U T3

R E S E T4

C O N TR O L5

TH R E S H O L D6

D I S C H A R G E7

V C C8

3. After editing choose close edit part window and the window shown will appear.

4. Choose update current if to change one component only and choose update all to change all the same components.

5. Click yes at the warning window.

6. The new IC graphic after editing.

WIRING

1. Select the icon

2. Click at the component end node.

3. Drag to the other or suitable component end node.

Tit le

S ize D o c u m e n t N u m b e r R e v

D a t e : S h e e t o f

<D o c > <R e v C o d e >

<Tit le >

A

1 1W e d n e s d a y , M a y 3 1 , 2 0 0 6

before

TITLE BLOCK

1. Double click the <Title> word.

2. Change it to the suitable title..

3. Same process for change <doc> and <rev code>

after

Title

Size Document Number Rev

Date: Sheet of

Schematic Diagram V1.0

RC-coupled audio amplifier

A

1 1Wednesday, May 31, 2006

10

After editing

The component end node.

C 1

1 nR 4

3

1

2R 51 k

2

1

Q 2

Q 2 N 3 9 0 4

Page 11: 1. OrCAD Pspice Notes

ANNOTATE

1. Click the icon

2. Project window manager will appear.

3. Click to highlight the design file (*.dsn).

4. Click tools annotate or icon

5. At the annotate window click “Reset…” then click yes at the warning window. The component part name will change into “?”

6. Repeat step 1 to 4. This time click “Incremental..”. The component change to suitable part name.

11

Step 5

Step 6

Page 12: 1. OrCAD Pspice Notes

DESIGN RULES CHECK (DRC)

1. Click to highlight the design file (*.dsn).

2. Click tools design rules check

or icon

3. Click Ok and Yes at the warning window.

Example of log session if have warning or wrong connection at the circuit

12

Page 13: 1. OrCAD Pspice Notes

Examples of log session have no warning.

SPECIFYING THE TYPE OF CIRCUIT ANALYSIS

1. Click the icon

2. New Simulation window will appear.

3. Fill in the name then click “Create”.

4. Simulation setting window will appear.

5. Change the “run to time” to 5m (milli)

6. Click OK.

13

Page 14: 1. OrCAD Pspice Notes

7. Click PSpice Run or icon

8. PSpice A/D window will appear a shown.

Q 4

Q 2 N 2 2 7 0

2 6 . 1 9 m W

5 7 . 3 8 u A

9 . 4 2 4 m A

-9 . 4 8 1 m A

R 71 0 08 . 9 8 9 m W

9 . 4 8 1 m A2

1

R 21 8 k2 . 2 2 7 m W

3 5 1 . 7 u A2

1

2 . 0 0 0 V

3 . 7 2 3 V

2 . 0 0 0 V

4 . 8 4 4 V

C 41 0 0 u FC M A X

9 . 0 0 0 V

2 . 6 6 9 V

R 18 . 2 k8 6 8 . 6 u W

3 2 5 . 5 u A2

1

C 2

2 5 u FC M A X

R 44 7 08 . 2 2 1 m W

4 . 1 8 2 m A2

1

R 53 3 k1 . 6 3 6 m W

2 2 2 . 6 u A2

1

9 4 8 . 1 m V

R 9

1

0 W0 A

211 . 6 5 3 V

1 . 9 6 6 V

V 19 V d c -1 2 7 . 4 m W

1 4 . 1 5 m A

Q 3

Q 2 N 3 9 0 4

1 1 . 9 8 m W

2 6 . 2 6 u A

4 . 1 5 6 m A

-4 . 1 8 2 m A

R 61 0 k2 7 3 . 1 u W

1 6 5 . 3 u A2

1 0 V

0

2 . 0 0 0 V

C 1

2 5 u FC M A X

R 85 6 04 9 . 7 3 m W

9 . 4 2 4 m A2

1

C 31 0 0 u FC M A X

V 2

F R E Q = 1 kV A M P L = 1 0V O F F = 2 0 W

0 A

R 31 k1 7 . 2 7 m W

4 . 1 5 6 m A2

1

BIAS VOLTAGE AND CURRENTS

1. Click the icon for enable bias voltage, for enable bias current and for enable bias power to display.

14

OUTPUT TEXTDisplay the progress of the simulationIf error encountered in circuit schematic:a brief error message will appear

- simulation cannot continue until errors are fixed

Monitor the values of parameters that may change as the simulation progress. No such parameters in simple bias example.

Page 15: 1. OrCAD Pspice Notes

OUTPUT GRAPH

1. Select trace add trace or click icon

2. The add traces window will appear.

3. At simulation output variables column select which point you want to have the output graph. For example V(V2:+). Mean Voltage at point + for V2.

4. Click OK.

15

Page 16: 1. OrCAD Pspice Notes

5. The output data will display.

6. Go back to add trace and select V(Q4:C)

7. The output data will display as shown.

16

Page 17: 1. OrCAD Pspice Notes

ADDING TEXT

1. Click Plot Label Text

2. Or click the icon

3. The text label window will appear.

4. Insert “INPUT” OK

5. Put at the location that you need.

ADDING ARROW

1. Click Plot Label Arrow

2. Click the location you want to show.

17

Page 18: 1. OrCAD Pspice Notes

R 18 . 2 k

2

1

0

C 2

2 5 u FC M A X

I

Q 3

Q 2 N 3 9 0 4

R 31 k

2

1

V 2

F R E Q = 1 kV A M P L = 1 0V O F F = 2

V+

W

R 21 8 k

2

1

C 41 0 0 u FC M A X

R 44 7 0

2

1

V

R 9

1

21

C 1

2 5 u FC M A X

V-

OUTPUT GRAPH USING MARKER

1. Click the icon for voltage/level marker, for voltage differential marker, for

current marker and for power dissipation marker.

2. Put the marker at the point you want. Then click . The output graph output will appear.

ADD PLOT

1. Click Plot Add plot to window

2. Other plot window will appear as shown, “SEL” means select plot.

18

Page 19: 1. OrCAD Pspice Notes

3. Then you can separate the output graph.

ADDING MARK LABEL

1. Click Trace Cursor Display

2. Or click icon

3. The cursor mark will appear. To

label the mark click the icon .

19