Analog Innovations

Subcircuits & PSpice Symbols

A Collection of Subcircuits that I have found useful

Flop.gif (954 bytes) VVR.zip   VOLTAGE VARIABLE RESISTOR SYMBOL/SUBCIRCUIT

A voltage variable resistor symbol (self-contained subcircuit) for PSpice.  Import into the symbol library of your choice or make into a subcircuit for early Spice versions.  (The file is text.)  Parameters are Vmax (full-scale control voltage) and Rmax (R value at control input equal to Vmax).   Caution:  Negative control voltage makes a negative resistor!

Flop.gif (954 bytes) VidGen.zip  VIDEO GENERATOR (NTSC)

An NTSC Video Generator useful for testing video detectors, DC restoration, etc.

Flop.gif (954 bytes) D2A2D.zip  D-to-A and A-to-D Interface Subcircuits (with Symbols)

Depending on the amount of Probe Data in PSpice, you are generally limited to around 10-11 plots per Probe window.  I recently encountered difficulties while trying to display the successive approximation bit sequence of a 10-bit A-to-D converter I was designing.  So I developed the  Parts contained in D2A2D.zip to allow converting device-level voltages (Analog) to Digital representation, and, likewise, Digital Stimuli to Analog Stimuli.

Flop.gif (954 bytes) 10-BIT-DAC-BEH.zip  10-BIT DAC (Behavioral) Subcircuit (with Symbol)

When you are designing a system at the device level (transistors, resistors, etc.), it's convenient (and speedy) to represent some subsystems behaviorally while you wring out other system components, e.g. a successive approximation register.  Thus I threw this 10-Bit DAC behavioral model together... trivial actually, but saved me tons of time.  I have now made this a fully parameterized subcircuit with VFS (full-scale-output), VH (high logic level) and VL (low logic level) selectable by the user.

Flop.gif (954 bytes) LM339.zip  LM339 Comparator Subcircuit (Partially Behavioral)

Flop.gif (954 bytes) OP27.zip  OP27 OpAmp Subcircuit (Behavioral)

Flop.gif (954 bytes) LoopGain.zip   ACCURATE LOOP GAIN and PHASE ANALYSIS with Spice and PSpice

Two methods of Loop Gain and Phase Analysis are presented.  The mathematical derivation of an automated method useable in PSpice is shown, accompanied by a symbol library and appropriate macros to add to your PSpice.prb file.

Flop.gif (954 bytes) Op-Amp-Config.zip   CONFIGURABLE OP-AMP SYMBOL for PSpice

This PSpice Symbol/Model is a CONFIGURABLE Op-Amp...you can independently set DC Gain, Gain-Bandwidth, Slew-Rate, Open-Loop Output Resistance, and Positive and Negative Swing Limits.  This Device is Behavioral Modeled and features 90 degree phase shift after the low-frequency corner has been passed.   Thus your simulations will be more accurate than those obtained with just an E-Source.

Flop.gif (954 bytes) FuncGen.zip   FUNCTION GENERATOR/VCO SYMBOL for PSpice

This PSpice Symbol/Model is a Function Generator/VCO...you can independently set maximum frequency, FMAX, at control voltage VMAX, minimum frequency, FMIN, at control voltage VMIN.  This symbol feature Triangle, Square and Sine-Wave Outputs.  This device is useable from DC to approximately 1GHZ.

Flop.gif (954 bytes) 16-Bit-Generators.zip   A Set of Symbols that Output Digital 16-Bits Broadside, Steps or Pulses, for PSpice

This Set of PSpice Symbols allows simulation of Analog circuits that need Digital Addressing (up to 16-Bits).

The first symbol, 16-Bit-Step, allows parametric analysis.  You input a parameter "Decimal" which is converted by the subcircuit to the binary equivalent.  All Bits are available as True and Complement, and levels VH (high, volts) and VL (low, volts) are settable from the schematic.

The second symbol, 16-Bit-Gen, is a 16-Bit Wide Pulse Generator.  User selectable parameters are TB (bit time, seconds), TRF (rise and fall times, seconds), VH (high level, volts), VL (low level, volts), and StartNumber (the decimal number that the generator starts at... not yet functional, bug discovered ;-).  All Bits are available as True and Complement.

Flop.gif (954 bytes) SUBCKT.SLB   Subcircuit Symbol Library for Use with PSpice Schematics

A set of subcircuit symbols from 1-pin to 16-pins, plus some 8, 14, and 16-pin symbols to match package numbering.

Flop.gif (954 bytes) CompliantParts.SLB   DC, F and G Current Sources with Definable Voltage Compliance Limits... in other words, real-world behavior.