UNIVERSITY of PENNSYLVANIA

DEPARTMENT OF ELECTRICAL ENGINEERING

SPICE Example: DC Sweep, and Thevenin Equivalent Circuit

This is an example of a SPICE input file that will calculate the DC Node voltages, the Thevenin Equivalent Circuit and also sweep the input voltage source.

Input file: (the lines starting with a "*" are comment lines and are inserted for clarity only).

The result of the SPICE simulation is given below.

DC Sweep:

a: v(1,2)
b: v(2,4)


    volt       v(1,2)
(ab      )       0.            5.0000       10.0000       15.0000      20.0000 
                     +             +             +             +             + 
   0.         0.    -2------+------+------+------+------+------+------+------+-
   2.0000    54.507m a    b +      +      +      +      +      +      +      + 
   4.0000   109.015m a      +   b  +      +      +      +      +      +      + 
   6.0000   163.522m a      +      + b    +      +      +      +      +      + 
   8.0000   218.029m +a     +      +      +b     +      +      +      +      + 
  10.0000   272.537m +a     +      +      +     b+      +      +      +      + 
  12.0000   327.044m +a     +      +      +      +    b +      +      +      + 
  14.0000   381.551m +a     +      +      +      +      +  b   +      +      + 
  16.0000   436.059m +a     +      +      +      +      +      + b    +      + 
  18.0000   490.566m +a     +      +      +      +      +      +      b      + 
  20.0000   545.073m-+-a----+------+------+------+------+------+------+----b-+-
                     +             +             +             +             + 

     volt       i(vmeas)
(a       )       0.          200.0000u     400.0000u     600.0000u    800.0000u
                     +             +             +             +             + 
   0.         0.    -a------+------+------+------+------+------+------+------+-
   2.0000    48.637u +  a   +      +      +      +      +      +      +      + 
   4.0000    97.275u +      a      +      +      +      +      +      +      + 
   6.0000   145.912u +      +  a   +      +      +      +      +      +      + 
   8.0000   194.549u +      +      a      +      +      +      +      +      + 
  10.0000   243.187u +      +      +  a   +      +      +      +      +      + 
  12.0000   291.824u +      +      +     a+      +      +      +      +      + 
  14.0000   340.461u +      +      +      +  a   +      +      +      +      + 
  16.0000   389.099u +      +      +      +     a+      +      +      +      + 
  18.0000   437.736u +      +      +      +      +  a   +      +      +      + 
  20.0000   486.373u-+------+------+------+------+-----a+------+------+------+-
                     +             +             +             +             + 

***** operating point status is all simulation time is 0.

node =voltage node =voltage node =voltage
+0:1 = 10.0000 0:2 = 9.7275 0:3 = 9.4340 +0:4 = 0.

**** voltage sources

Currents in Voltage sources:

NOTICE: The power dissipation givin in the output is the one of the independent voltage sources only, and does not include the power generated in the dependent sources or the independent current sources.

**** current-controlled current sources

**** small-signal transfer characteristics

The THEVENIN Equivalent resistance is given by the above output resistance RT=5.66 KOhm. The DC Thevenin voltage is given by the node voltage at the open circuit terminal: VT=9.434V (see operating point solution, above).

Back to Spice Guidelines


Jan Van der Spiegel;
jan@ee.upenn.edu
Created Oct. 29, 1995; Updated Oct. 29, 1995