PSPICE is general-purpose circuit program that can be applied to simulate and calculate the performance of electrical and electronic circuits. A circuit is described to a computer by using a file called the circuit file, which is normally typed in from a keyboard. The circuit file contains the circuit details of components and elements, the information about the sources, and the command for what to calculate and what to provide as output. The circuit file is the input file to the PSPICE program, which, after executing the commands, produces results in another file called the output file. 1. Format of circuit files : - i) Title ii) Circuit description iii) Analysis description iv) Output description v) END (end of file statement) Note : 1) The first line is the title line, and it may contain any type of text. 2) The last line must be the End command. 3) Continuation of line is identified by a plus sign (+) in the first column of the next line. 4) A comment line may be included anywhere, preceded by on asterisk (*).
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
PSPICE is general-purpose circuit program that can be applied to
simulate and calculate the performance of electrical and electronic circuits. A
circuit is described to a computer by using a file called the circuit file, which
is normally typed in from a keyboard. The circuit file contains the circuit
details of components and elements, the information about the sources, and
the command for what to calculate and what to provide as output. The circuit
file is the input file to the PSPICE program, which, after executing the
commands, produces results in another file called the output file.
1. Format of circuit files: -
i) Title
ii) Circuit description
iii) Analysis description
iv) Output description
v) END (end of file statement)
Note: 1) The first line is the title line, and it may contain any type of text.
2) The last line must be the End command.
3) Continuation of line is identified by a plus sign (+) in the first
column of the next line.
4) A comment line may be included anywhere, preceded by on
asterisk (*).
2. Format of output files: -
The results of simulation by PSPICE are stored in on output file. The
output file may be divided into following types:
i) A description of the circuit itself that includes the net list, the device
list, the model parameter list, and so on.
ii) Direct output from some of the analysis without .PLOT and
.PRINT Commands. This includes the output from. .OP, .TF,
.SENS, NOISE and. FOUR Analyses.
iii) Prints and plots by . PRINT and . PLOT commands, These
include the output from the .DC, .AC, and .TRAN analysis.
iv) Run statements. These include the various kinds of summary
information about the whole run, including times required by
various kinds of analysis and the amount of memory used.
v) In electrical circuits, subscriptions are normally assigned to symbols
for voltages, currents and circuit elements. However, in PSPICE, the
symbols are represented without subscripts. For example, VS, IS, and
RI are represented by VS, IS and RI, respectively.
3. Element values: - There are two types of suffixes: The scale suffix and units suffix.
Scale Suffix:
Scale suffix Value
F 1E-15 P 1E-12 N 1E-9 U 1E-6
MIL 25.4E-6 M 1E-3 K 1E3
MEG 1E9 G 1E9 T 1E12
Note: ‘M’ means “milli” not “mega”
Unit Suffix:
Unit Suffix Its Unit OHM Ohm (Ω)
V Volt H Henry A Amp F Farad HZ Hertz
DEG Degree
Note: The first suffix is always the scale suffix, and the unit suffix
follows the scale suffix.
3. Nodes: -
The location of an element is identified by the node numbers. Each
element is connected between two nodes. Node numbers must be integers
from 0 to 9999 for Spice 2, but need not be sequential. PSPICE allows any
alphanumeric string up to 131 characters long. The node names shown in
table are reserved and cannot be used.
Reserved node names Value Description 0 0volts Analog Ground $ D-HI 1 Digital High level $ D-LO 0 Digital low level
$ D-X X Digital unknown level
4. Circuit Elements:-
Circuit Elements are identified by names. A name must start with a
letter symbol corresponding to the element, but after that it can contain either
letters or numbers. Names can be up to 8 characters long for SPICE 2, and up
to 131 characters long for PSPICE. However, names longer than 8 characters
are not normally necessary and not recommended.
Table shows the first letters of elements and sources.
Table: A: Symbols of circuit elements and sources.
First Letter Circuit elements and Sources
B Ga As MES field – effect transistor
C Capacitor
D Diode
E Voltage controlled voltage source
F Current controlled current source
G Voltage controlled voltage source
H Current controlled voltage source
I Independent source.
J Junction field transformer
K Mutual Inductors (transformer)
L Inductor
M Mos. Field effect transistor.
Q Bipolar junction transistor.
R Resistor
S Voltage controlled switch
T Transmission line
V Independent voltage source
W Current controlled switch.
Passive Elements: -
5.1.1. DC Circuit Analysis: -
Resistor:-
The symbol for a resistor is ’R’.
The name of resistor must start with ‘R’.
The General form of Resistor is:
R<name> N+ N- R NAME R VALUE.
Example: -
a) R5 1 2 5
b) RL 5 2 1K
5.1.2. Transient Analysis: -
5.1.2(a) Inductor:-
The symbol for an inductor is ‘L’
The name of inductor must start with L.
The General form of inductor is:
L<name> N+ N- L NAME L VALUE IC = IO Example: -
a) LI 1 3 5MH
b) L LOAD 5 6 10H
5.1.2 (b) Capacitor:-
The symbol for capacitor is ‘c’.
The name of capacitor must start with ‘c’.
The General form of capacitor is:
C<name> N+ N- C NAME C VALUE IC = VO.
Example: -
a) C2 1 0 9UF
b) C LOAD 5 2 10F
5.2 Sources:- The General format for source is
< Source name > < positive node > < negative node > < source model >
5.2(i) DC Circuit Analysis: -
5.2.1: Independent DC Sources:-
The Independent DC sources can be time invariant or time variant.
They can be currents or voltages.
5.2.1.1.(a). Independent DC Voltage Source:-
Voltage source Current source
The symbol for an independent voltage source is ‘V’
The General form is:
V < name > N+ N- [DC < value >]
Example: -
V5 5 1 DC 5V
VS 1 2 5V
5.2.1.1(b) Independent DC Current Source:- The symbol of an independent current sources in ‘I’.
The General form is:
I < name > N+ N- [DC(value)]
Example:-
I3 1 0 DC 1A ;
I4 1 5 1A
5.2.1.2. Dependent Sources: -
The four types of dependent sources are:
Voltage controlled voltage source
Current controlled current source
Current controlled voltage source.
Voltage controlled cu rent sou
r rce
Voltage controlled voltage source. Voltage controlled current source
Current controlled current source. Current controlled voltage source.
These sources can have either a fixed value or a polynomial expression.