Inverting opamp in LTspice

Thread Starter

swappo

Joined Apr 18, 2008
10
Hello,

I am trying to create the schematic of the circuit from the following website:

http://www.ecircuitcenter.com/Circuits/opinv/opinv.htm

The circuit is in pspice and I need to create it in LTspice. My trouble is with the inverting opamp. I take the following text below and save it as opamp1.sub. In LTspice, I place an opamp2 symbol on my schematic, right click on it, and change "value" to opamp1. Then left click on the ".op" icon and type in ".lib opamp1.sub" in the window that pops up, click OK, and place it on the schematic. I run transient analysis with stop time of .2mS and Maximum Timestep of .005mS. I am getting the following error message.

Too many parameters for subcircuit type "opamp1" (instance: xu1)

I have no problems running the opinv.cir in LTspice but I really want to create the schematic of this circuit for further learning. I am not sure how to get this inverting opamp to work in LTspice. Any suggestions?

.SUBCKT OPAMP1 1 2 6
* INPUT IMPEDANCE
RIN 1 2 10MEG
* GAIN BW PRODUCT = 10MHZ
* DC GAIN (100K) AND POLE 1 (100HZ)
EGAIN 3 0 1 2 100K
RP1 3 4 1K
CP1 4 0 1.5915UF
* OUTPUT BUFFER AND RESISTANCE
EBUFFER 5 0 4 0 1
ROUT 5 6 10
.ENDS
 
Top