home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hacker Chronicles 2
/
HACKER2.BIN
/
921.README.DOC
< prev
next >
Wrap
Text File
|
1990-04-30
|
10KB
|
211 lines
Note: a good book to get you going on spice is "COMPUTER-AIDED CIRCUIT
ANALYSIS USING SPICE" By Walter Banzhaf (a Prentice Hall Publication)
1.0) Introduction
This file describes how to setup and run the Prentice-Hall "student"
version of PSpice and Probe.
PSpice is an analog circuit simulator. It calculates the voltages and
currents of a circuit under a variety of different circumstances, such as
DC, AC, and in time. The program SPICE was developed at the University of
California at Berkeley in the early 1970's and has become a de facto
standard in the area of analog simulation. The input and output of PSpice
conform to that standard. Also, PSpice has many extensions which give it
a wide applicability.
Probe is a waveform viewer. It displays the results from PSpice
graphically and interactively. If you think of PSpice as a "software
breadboard", then think of Probe as a "software oscilloscope".
Also included in this package is the Monte Carlo analysis option for
PSpice. Monte Carlo analysis allows tolerances to be assigned to
component values and used in repeated simulations. This option is built
into the student version of the PSpice program.
2.0) System Configuration
PSpice will run on the IBM PC and PS/2 families of computers, including
machines based on the 8088, 8086, 80286, and 80386. PSpice needs 512
kilobytes of memory (RAM). Either the monochrome or color display may be
used. Any printer may be used. For this student version of PSpice the
floating-point co-processor (8087, 80287, or 80387) is optional. If
present the program will run at full speed. Otherwise it will run 5-15
times slower. The production version requires the co-processor; it is not
optional.
PSpice runs under MSDOS 2.0+ and requires the system to have been booted
with a CONFIG.SYS file which contains the statement:
FILES=16
It is also recommended that the CONFIG.SYS file contain the statement:
BUFFERS=16
All of these comments apply to Probe, also.
3.0) Running PSpice
PSpice is 1 program and 1 overlay file (PSPICE1.EXE and PHSPICE.OVL). For
systems with a fixed disk, simply copy the all the files on both diskettes
into a directory and then start PSpice with the command:
PSPICE input-file output-file
For systems without a fixed disk, you must have the program and overlay
file on diskettes in drives A and B. Diskette 1 goes into drive A;
diskette 2 goes into drive B. Also, you must have both drives in a DOS
PATH command, such as:
PATH A:; B:
See your DOS manual for more information on the PATH command. Once this
is done, PSpice is run with the command:
FPSPICE input-file output-file
For all the above cases, the input-file and output-file may have path
names. The program files, too, can be on any directory specified by a
previous DOS PATH command.
The input file must be specified, but its extension need not be. Its
extension defaults to .CIR. The output file is optional, its name
defaults to the input file's name and its extension defaults to .OUT.
This command will run EXAMPLE1.CIR and put the results into a file named
EXAMPLE1.OUT:
PSPICE EXAMPLE1
If the input file is not specified you will be prompted for it. The
output file may be a device, such as the printer. This command would run
EXAMPLE1 to the printer:
PSPICE EXAMPLE1 PRN
assuming that you have the standard DOS reserved names.
4.0) Format of the Input and Output Files
The input and output files are ordinary text files and follow the same
rules as those for the UC Berkeley SPICE program, version 2G.6, with these
omissions:
1) There is no distortion (.DISTO) analysis. We recommend using the
.TRAN and .FOUR to calculate harmonic distortion. This method
correctly accounts for clipping, which .DISTO does not.
2) There is no .ALTER command.
In addition, numerous enhancements to the Berkeley SPICE have been added
including GaAs MESFET devices, Monte Carlo analysis, ideal switches, non-
linear transformers, and standard parts libraries. For more details on
these and other PSpice enhancements, the PSpice User's Guide may be
purchased separately from the PSpice program.
5.0) Restrictions for the student version
This student version of PSpice will run in 512kbytes. It will run with or
without the floating-point co-processor. All the features of the
production PSpice as of December 1987 are included except that the circuit
size is restricted to a maximum of about 10 transistors. Note that for
schools teaching introductory electronics courses, 10 transistors may be
all that is needed. The production version of PSpice comes with a library
of models for about 200 standard devices (diodes, bipolar transistors such
as the 2N2222, power MOSFET's, opamps, comparators, and transformer
cores). The student version includes a reduced version of this library
with about 10 parts. The library is in the files with extension ".LIB" on
the first diskette. These are ASCII-text files and we recommend that you
print them out for more information on them.
6.0) Running Probe
These first diskette also contains Probe, the graphics post-processor for
PSpice. Probe is run by adding the statement:
.PROBE
to the input file to PSpice. Then, PSpice stores all the node voltages
and device currents calculated during the simulation into a file called
PROBE.DAT. The presence of the PROBE.DAT file will cause Probe to be run
automatically as soon as PSpice is finished. In addition, once the
PROBE.DAT file is created, Probe can be run by itself (that is, without
re-running PSpice) by typing
PROBE
To run Probe the first time, we recommend adding a ".PROBE" statement to
EXAMPLE1.CIR with a text editor and then typing:
PSPICE EXAMPLE1
PSpice will simulate EXAMPLE1 and create a PROBE.DAT file. After PSpice
is finished Probe will start up automatically.
Probe accepts commands through a menu displayed at the bottom of the
screen. Most of these commands are self-explanatory. To put up a
waveform, use the Add Trace command. When it asks for a variable or
expression, enter a voltage or current in the same format as for a .PRINT
or .PLOT statement in PSpice. For instance,
V(4,5) will show the voltage across nodes 4 and 5
IC(Q1) will show the collector current at transistor Q1
The Add Trace command also allows you to enter arithmetic expressions of
voltages and currents. For instance,
V(4)-V(5) will show the same waveform as V(4,5)
V(4,5)*I(CLOAD) will show the instantaneous power through CLOAD
The PROBE.DEV file contains a list of the devices attached to your system.
The allowed devices for "Display = " are:
Text: Non-graphics display
IBM: IBM CGA (640x200 no color) adaptor
IBMEGA: IBM EGA (640x350 with color) adaptor
GenericEGA: non-IBM EGA (640x350 with color) adaptor
Hercules: Hercules graphics (720x348 no color) adaptor
AT&T: AT&T 6300 (640x350 no color) adaptor
FutureNet: DASH2 graphics (640x350 no color) adaptor
The allowed devices for "Hard-copy = " are:
Text: Non-graphics printer
Text132: Non-graphics printer (132 columns)
Epson: Epson FX-80 printer
Epson132: Epson FX-100 printer
EpsonMX: Epson RX and MX-80, Okidata IBM Compatible, Okidata
with Plug N' Play, and Epson-compatible printers
EpsonMX132: Epson RX and MX-100 printers
Okidata: Okidata ML92 printer
Okidata132: Okidata ML93 printer
Toshiba: Toshiba P351 in 180 dots/inch mode
Toshiba132: Toshiba P351 (132 columns)
Printronix: Printronix P300 and P600 printers (80 columns)
Printronix132: Printronix printers (132 columns)
IBMClr: IBM color printer (black only)
IBMClr132: IBM color printer (black only, 132 columns)
IBMClrSlw: IBM color printer (color)
IBMClrSlw132: IBM color printer (color, 132 columns)
CItoh: C. Itoh color printer (black only)
CItoh132: C. Itoh color printer (black only, 132 columns)
CItohSlw: C. Itoh color printer (color)
CItohSlw132: C. Itoh color printer (color, 132 columns)
HP Hewlett-Packard 7400 and 7500 series plotters (2 pens)
HP6 Hewlett-Packard 7400 and 7500 series plotters (6 pens)
HI Houston Instruments DMP pen plotter
HPLJ Hewlett-Packard LaserJet printer
We recommend that you use "Text" first before trying out your system's
graphic devices. Note: this student version of Probe is for IBM and IBM-
compatible PC's only (for example, will not run on the Texas Instruments
professional PC).
This student version of Probe will run with or without the floating-point
co-processor. It draws traces from 5 to 10 times slower without the co-
processor. This student Probe has all the capabilities of the production
Probe as of December 1987, but does not support text-format datafiles.
The production Probe requires the co-processor; it is not optional.