How to use PSPICE - DOC - DOC

Document Sample
How to use PSPICE - DOC - DOC Powered By Docstoc
					                                        How to use PSPICE

I.   Launching PSpice

 1) Launch Cadence:
       School Version: Start→ Release 16.3 → Design Entry CIS
       Demo Version: Start →Cadence-→ OrCAD 16.5 Lite → OrCAD Capture CIS Lite

 2) School: From the Pop-up Menu select:
       Studio Selection Suite: PCB Design CIS XL,        hit <OK>

 3) Create a new project
    a) On the top toolbar select: File->New->Project

     You will see the pop-up menu shown below

     b) Select a path for your project. (If you are running the tool at school, you need to browse and
        place the part in your student account on the H: drive)
     c) Enter a name for your project
     d) Make sure to select Analog or Mixed A/D, otherwise you will not be able to simulate
     e) Click <OK> to close the window

 4) School: You will see a pop-up menu select: Create blank project

II.   Creating a Schematic
  (Note the schematic that is produced might not be appropriate for PCB layout)

  Adding Libraries and Placing parts

  5) To place a part:
      Hit bindkey p OR
      Select Place part icon (toolbar on rhs) OR
      Select Place->Part (Top toolbar)

                                                    Place part

  The parts that you will be adding are in Libraries that need to be loaded.

  6) To add a Library:
     a) Select the add Library Icon in the Place Part Pop-up menu

                                         Add Library

   b) In the Browse File pop-up menu browse to Add the library path (see below)
              Demo version path: C: OrCAD/OrCAD_16.5_Lite/tools/capture/library/Pspice
              School version path: C: Cadence/SPB_16.3/tools/capture/library/Pspice

   c) Click on the blank part of the window and hit <ctrl a> to select all the libraries (see below)
   d) Select Open to add the selected libraries (see below)

                                                                               Add path

                                                                 click here
                                                                 and select
                                                                 <ctrl a>

The libraries have now been added and you can place parts

7) Placing Parts
   a) In the Place part pop-up menu enter the name of the
      part that you wish to add (Here we have entered R)
   b) IMPORTANT: You can find the part R in several
      libraries. Select the part R from the library Analog.
      (Notation: R/ANALOG)
   c) Hit <enter> to add the part
   d) If the part was not in the design cache you will see a                          Select the
      pop-up menu. Hit <yes> If you should get this                                   part R from
      menu.                                                                           the
   e) Move your cursor on the schematic to where you                                  ANALOG
      want to place the part. Click your mouse at the                                 library
   f) You will continue to be able to place parts that are of
      the type that you selected. Hit <esc> to end placing
   g) If you wish to rotate or flip a part as you place it use
      the following bindkeys
               Rotate          r
               Horizontal flip h
               Vertical flip   v

Common Editing Commands

      Move parts:
          Select the part (or parts) you wish to move with your mouse
          Drag the part(s) to the new location
      Undo: hit ^z
          Select the part (or parts) you wish to copy with your mouse
          Hit ^c
          The object in now in the clipboard
          If you are writing a laboratory report this clip board is available to Microsoft products. So
             you can use this command to paste entire schematics in your reports (^v).
          Hit ^v
          Move your cursor to where you want to place the object that is in the clipboard
          Click your cursor at the desired location.
          Select the desire part Hit bindkey r OR from the main menu: Edit-> rotate
      Mirror (flip) horizontally or vertically
          Select the desire part. From the main menu: Edit-> mirror
          Select the desired portion of the circuit. Hit <delete>

Using the common editing commands to place the following parts on the schematic

                Part Name            Demo and School Libraries
                Vsin                 Source
                Vdc                  Source
                R                    Analog
                C                    Analog
                IC2                  Special
                uA741                Eval

Connecting parts with wires

After placing the parts you will need to connect them with wires (also called nets).

Adding wires:

8) Select the Place wire icon (toolbar on rhs) OR use bindkey w.

                                                                                         Place wire

9) Draw the wires (shown below)

    a) Click your mouse at the starting position of your wire
    b) Move (do not drag) your mouse to the location where you want a bend. Click your mouse. (you
       may repeat this step for multiple bends)
    c) Move (do not drag) your mouse to the end location click again.
    d) Hit the <esc> key to exit the place wire command.

                                     Click mouse (starting point)
                                                    Move mouse
                                             Click mouse (bend)
                                                    Move mouse
                                         Click mouse (end point)
                                     Hit <esc> to end command
Add wires to create the following connectivity

Naming wires:
It is much easier to maintain a design if you name the wires (nets) on your schematic. Try to create schematics
that are readable and less cluttered with wires

Below are two equivalent schematics. Which is more readable/maintainable?


       If wires have the same name (net alias) they are viewed as being connected
       To simulate a PSpice schematic there needs to be a net named 0 (zero)

Naming wires

10) Name a wire (net) by:
     Selecting bindkey n OR
     Selecting the place net alias icon (rhs toolbar) OR
     Selecting teh Place->net alias (top toolbar)

         Note: do NOT use the place text icon. PSpice text offers no functionality. It is, however,
         helpful for annotating schematics with comments.

11) In the resulting pop-up menu enter the name (Vin for this example)                                                     Place net
12) Click your mouse on the net that you wish to name                                                                      alias icon
13) Hit <esc> to end the place net alias command

                                                                                                                           Place text

Name the wires on your schematic as follows

                                   Note these wires have the same
                                   name and are connected

       Vcc+              Vcc-

                                                                         IC= 0
        V2                   V3                                +        -              Note the opamp part has been
0Vdc             0Vdc                                                                  flipped so Vn is on top. This has
                                                                                       caused the power terminals to be
                                                                                       upside down



                                  R1               uA741
                         Vin              Vn         2                             1

                                                           -                 OS1
                                  1k                                               6            Vo
        VOFF                                                             OUT
        VAMPL                                        3                             5
        FREQ                                               + 7           OS2
          AC =                                             U1           V+

Adding Ground
Again, to simulate a schematic there needs to be a net named 0 (zero). Using the place wire alias you can name
a wire zero, or you can place a part that will do the same thing

14) Add a ground:
    a) Selecting bindkey G OR place ground icon (toolbar on rhs)

       b) In the resulting place Ground pop-up menu - Select: 0/CAPSYM
       c) Hit <OK> to start placing parts

       d) On your schematic add ground parts as shown.
       e) Hit : <esc>to end the place ground part command
        Vcc+              Vcc-

                                                                       IC= 0
         V2                   V3                             +        -
0Vdc              0Vdc




                                   R1            uA741
                          Vin           Vn         2                             1

                                                         -                 OS1
                                   1k                                            6   Vo
         VOFF                                                          OUT
         VAMPL                                     3                             5
         FREQ                                            + 7           OS2
           AC =                                          U1           V+

                         0                   0

Changing the names of parameters of parts:
Parts are placed with default parameters, for example, resistors default to having a resistance of 1K.
15) Changing part parameters
    a) Click on the parameter that you wish to change, for example, for the resistor you would click on
    b) Enter the new value in the resulting menu
    c) Hit <OK>.

Sampling of notations that PSPICE recognizes

          PSpice Notation                      PSpice Notation
   3                                   -3
10        K             E3          10         m            E-3
   6                                  -6
10        Meg (not M) E6            10         u            E-6
   9                                  -9
10        G             E9          10         n            E-9
                                    10         p (pico)     E-12
                                    10         f (femto)    E-15

16) Edit the part properties on your schematic as follows

       Resistor: 2K
       Capacitor: 0.5m

       DC Voltage Sources:
         Vcc+           Vcc-

          V2             V3
+10Vdc          -10dc

Sinusoidal Voltage Source:
Note:                                                   V1
VOFF - DC offset                            VOFF = 0
                                            VAMPL = 1
VAMP – sinusoidal amplitude                 FREQ = 1K
FREQ - frequency                              AC =
AC (AC magnitude)

17) After you have created your schematic save your work Top Toolbar: File->Save


Shared By: