next up previous contents
Next: Procedure Up: PSpice Previous: PSpice

Basic PSpice information

  
Figure: Example PSpice circuit.

All PSpice programs should contain the following: a heading, this should be the first line of the program; a `.end' line which should be the very last line of the program. Between these two lines there should be commands to specify the circuit which is to be analyzed. To specify a circuit, first label the nodes in the circuit (see Figure gif) with node 0 always being the ground node. Once your circuit is labeled, enter each element in the circuit as follows:

, , and are names of the elements which should begin with V, I and R respectively. Examples include V1, I12, R1 and VDUMMY. Only the first letter is important.

To completely specify our example circuit we would write the following code:

Example Circuit 1

V1 1 0 5
R1 1 2 5k
R2 2 0 1000

.tran 0.02 2.0
.probe
.end

To evaluate your PSpice code, type it into a file ending with a .cir suffix (eg.spice1.cir). Type the command pspice. When prompted, enter the filename you chose. After PSpice has finished running, type the command probe.

For more information on PSpice, refer to the PSpice section in the EE-61 Course-Pak.



cec@ee.duke.edu