apice ffh

Embed Size (px)

Citation preview

  • 7/29/2019 apice ffh

    1/8

    523

    APPENDIX ARunning PSpice on PCs

    PSpice programs are available in CDs. The first step is to have the directory

    listing of the files on the program CDs. The next step is to print and read the

    README.DOC file. It contains a brief description of the type of display andhard copy that are allowed by PSpice and Probe. It also contains the system

    requirements and instructions for running PSpice programs.

    PSpice will run on any IBM-PC, Macintosh II, or compatible computer. The

    student version of PSpice does not require the coprocessor for running Probe.

    The display could be on monochrome or color graphics monitors. There is no

    requirement of special features for printers. The types of printers and display can

    be set by editing the PROBE.DEV file or the setup menu. The simulation of a

    circuit requires:

    Installing PSpice software in PCs

    Creating input circuit files

    Run command

    DOS (disk operating system) commands

    PSpice Default Symbol Libraries

    A.1 INSTALLING PSPICE SOFTWARE IN PCS

    The steps to be followed to install a PSpice program in PCs with a hard drive are:

    1. Place the Schematics CD ROM in the CD drive.

    2. From Windows, enter the File Manager, and click with the left mouse

    button (CLICKL) on the CD drive.

    3. CLICKL on setup.exe, File, Run, OK.

    4. OK, to select Install Schematics and PSpice A/D.5. OK, to select default C:OrCAD Dem.

    6.

    7. Click with the left mouse button once on the Design Center icon; the

    window of the Design Center will open.

    2006 by Taylor & Francis Group, LLC

    Yes, to create Design Center icons as shown inFigure A.1.

  • 7/29/2019 apice ffh

    2/8

    524 SPICE for Power Electronics and Electric Power, Second Edition

    A.2 CREATING INPUT CIRCUIT FILES

    The PSpice program has a built-in editor with shell, as shown in Figure A.2. The

    net list or the input circuit file can be created by choosing Create Netlist from

    can also be created by text editors. The text editor that is always available is

    EDLIN. It comes with DOS and is described in the DOS users guide. Notepad

    or WordPad in Accessories within Programs in the Windows environment can

    also be used.The Accessories folder within the Programs folder on the Start menu is shown

    FIGURE A.1 Icons of PSpice Schematics and PSpice A/D. (a) Schematics, (b) PSpice A/D.

    FIGURE A.2 OrCAD PSpice A/D platform.

    (a) (b)

    2006 by Taylor & Francis Group, LLC

    the Analysis menu of PSpice Schematics as shown inFigure A.3. The input file

    inFigure A.4. There are other editors such as Program Editor (from WordPerfect

  • 7/29/2019 apice ffh

    3/8

    Running PSpice on PCs 525

    Corporation). Word processing programs such as WordStar 2000, WordPerfect,

    and MSWord may also be used to create the input file. The word processor

    normally creates a file that is not a text file. It contains embedded characters to

    determine margins, paragraph boundaries, pages, etc. However, most word pro-

    cessors have a command or mode to create a text file without those control

    characters. For example, WordStar 2000 creates text files with the UNIFORM

    format.

    FIGURE A.3 Creating Netlists from PSpice Schematics.

    FIGURE A.4 Selecting text editor from Window programs.

    (a)

    2006 by Taylor & Francis Group, LLC

  • 7/29/2019 apice ffh

    4/8

    526 SPICE for Power Electronics and Electric Power, Second Edition

    A.3 RUNNING DOS COMMANDS

    In the Windows environment, DOS commands are enabled from the Command

    Prompt, which is selected from the Windows Start menu, and then the Accessories

    The DOS commands that are frequently used are as follows:To format a brand new diskette on drive A:, type

    FORMAT A:

    To list the directory of a diskette on drive A:, type

    DIR A:

    To delete the file EX2-1.CIR on drive A:, type

    Delete A: EX2-1.CIR (or Erase A: EX2-1.CIR)

    (b) (c)

    2006 by Taylor & Francis Group, LLC

    for DOS commands as shown in Figure A.6.

    FIGURE A.4 (continued).

    submenu as shown in Figure A.5. Selecting Command Prompt opens the menu

  • 7/29/2019 apice ffh

    5/8

    Running PSpice on PCs 527

    To copy the file EX2-1.CIR on drive A: to the file EX2-2.CIR on drive B:, type

    COPY A:EX2-1.CIRB:EX2-2.CIR

    To copy all the files on a diskette in drive A: to a diskette on drive B:, type

    COPY A: *.*B:

    To type the contents of the EX2-1.OUT on drive A:,

    TYPE A: EX2-1.OUT

    To print the contents of the file EX2-1.CIR on drive A:, first activate the

    printer by pressing Ctrl (Control) and Prtsc (Print Screen) keys together and then

    type

    TYPE A: EX2-1.CIR

    The printer can be deactivated by pressing the Ctrl (control) and Prtsc (print

    screen) keys again.

    FIGURE A.5 Selecting Command Prompt in the Windows environment.

    (a) (b)

    2006 by Taylor & Francis Group, LLC

  • 7/29/2019 apice ffh

    6/8

    528 SPICE for Power Electronics and Electric Power, Second Edition

    A.4 PSPICE DEFAULT SYMBOL LIBRARIES

    The student version of PSpice allows a maximum of ten configured (addressable)

    symbol libraries at a given time. It has nine default libraries (with an extension

    FIGURE A.5 (continued).

    FIGURE A.6 Command Prompt menu.

    (c)

    2006 by Taylor & Francis Group, LLC

    .slb) as shown in Figure A.7. Their functions are described below:

  • 7/29/2019 apice ffh

    7/8

    Running PSpice on PCs 529

    1. abm.slb: Analog behavior models for voltage and current sources

    whose outputs can be controlled by mathematical expressions or tabulardata and a Laplace transform block.

    2. analog.slb: Analog components for passive components (R, L, C),

    coupled inductors, and dependent voltage and current sources.

    3. analog_p.slb: Passive components (R, L, C) with parameterized values.

    4. breakout.slb: Passive and active components in a simplified generic or

    default configuration. It is useful for circuits when detailed models,

    especially for active devices, are not available.

    5. eval.slb: Detailed models for a few specific devices such as Q2N2222

    for BJT, J2N3819 for JFET, uA741 op-amp, and IRF150 power

    MOSFET.

    6. port.slb:Different ports and pins for specifying node connections with-

    out having to have a directly drawn wire connection. It also includes

    ground connection or symbol.

    7. source.slb: Independent current and voltage source models. Different

    models of a voltage (or a current) source are used depending on the

    type of analysis such AC sweep, DC sweep, and transient analysis.

    FIGURE A.7 PSpice default symbol libraries

    2006 by Taylor & Francis Group, LLC

  • 7/29/2019 apice ffh

    8/8

    530 SPICE for Power Electronics and Electric Power, Second Edition

    8. sourcstm.slb: Specialized models of voltage and current source for use

    with Edit Stimulus command in Analysis menu.

    9. special.slb: Specialized parts such as PARAM (short for Parameters)

    for creating parameterized simulations.

    The user can add or remove libraries as desired within the maximum limit

    of ten. Thus, the user can add at least one library without removing any of the

    PSpice default libraries. The sourcstm.slb and analog_p.slb libraries, which are

    not often needed, can be removed to make room for other libraries.

    b l i