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




                                                                                                         1
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
                                                    icon




  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
                                         icon




                                                                                  2
   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
      location
   f) You will continue to be able to place parts that are of
      the type that you selected. Hit <esc> to end placing
      parts.
   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



                                                                                                       3
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
      Copy:
          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).
      Paste:
          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.
      Rotate
          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
      Delete
          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



                                                                                                       4
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
                                                                                         icon




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
                                                                                                     5
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?




IMPORTANT ideas

       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)



                                                                                                                  6
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
                                                                                                                           icon




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
                                                                   C1

                                                                   1n



                                                                        Vcc-
                                                                    4




                                  R1               uA741
                         Vin              Vn         2                             1
                                                                        V-




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




                                                                                                                                7
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



                                                                 C1

                                                                 1n
                  0

                                                                      Vcc-
                                                                  4




                                   R1            uA741
                          Vin           Vn         2                             1
                                                                      V-




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

                         0                   0


                                                                                                             8
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
       1K.
    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
                                      -12
                                    10         p (pico)     E-12
                                      -15
                                    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




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




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




                                                                                                          9

				
DOCUMENT INFO
Shared By:
Categories:
Tags:
Stats:
views:25
posted:6/26/2012
language:English
pages:9