OP-AMP linux
Hello,
First, I am a linux fun. Second, I am taking a course in linear circuits
and I need to use an opamp in spice. I have installed spice3f4 and
realized that there was not a card for an opamp. I asked my TA about how
to use opamp with my linux version of spice and he told me that I should
go to Win because spice under linux does not have opapms. It would be
something really sad to go to windows so I am trying to get an opamp
model.
I found a macromodel for the ua741 (attached file ua741.inc) and when
I tried to use it (comparator.cir) I got the following errors:
********************
Error on line 30 : e:test:gnd test:99 0 test:poly(2) test:(3,0) (4,0) 0 .5
.5
unknown parameter (test:)
Error on line 31 : f:test:b test:7 test:99 p:test:oly(5) vb vc ve vlp vln
0 10.61e6 -10e6 10e6 10e6 -10e6
unknown parameter (vb)
Fatal error: f:test:b: unknown controlling source p:test:oly
doAnalyses: No such parameter on this device
run simulation(s) aborted
********************
I am new to spice and if something could point me to a model for any opamp
or tell me what am I doing wrong with ua741.ing. I will really appreciate
it.
Thanks in advance, Joaquin
----------------------------------
Joaquin Rapela
PhD Student, Signal and Image Processing Institute
University of Southern California
3740 McClintock Ave, EEB 424
Los Angeles, CA 90089-2564
tel: (213) 740-6430
fax: (213) 740-4651
----------------------------------
* UA741 operational amplifier "macromodel" subcircuit
* created using Parts release 4.01 on 07/05/89 at 09:09
* (REV N/A)
* connections: non-inverting input
* | inverting input
* | | positive power supply
* | | | negative power supply
* | | | | output
* | | | | |
.subckt UA741 1 2 3 4 5
*
c1 11 12 4.664E-12
c2 6 7 20.00E-12
dc 5 53 dx
de 54 5 dx
dlp 90 91 dx
dln 92 90 dx
dp 4 3 dx
egnd 99 0 poly(2) (3,0) (4,0) 0 .5 .5
fb 7 99 poly(5) vb vc ve vlp vln 0 10.61E6 -10E6 10E6 10E6 -10E6
ga 6 0 11 12 137.7E-6
gcm 0 6 10 99 2.574E-9
iee 10 4 dc 10.16E-6
hlim 90 0 vlim 1K
q1 11 2 13 qx
q2 12 1 14 qx
r2 6 9 100.0E3
rc1 3 11 7.957E3
rc2 3 12 7.957E3
re1 13 10 2.740E3
re2 14 10 2.740E3
ree 10 99 19.69E6
ro1 8 5 150
ro2 7 99 150
rp 3 4 18.11E3
vb 9 0 dc 0
vc 3 53 dc 2.600
ve 54 4 dc 2.600
vlim 7 8 dc 0
vlp 91 0 dc 25
vln 0 92 dc 25
.model dx D(Is=800.0E-18)
.model qx NPN(Is=800.0E-18 Bf=62.50)
.ends
OP-AMP Test
vcc 1 0 dc 10
vee 2 0 dc -10
vref 3 0 dc 4
vs 4 0 sine(0 10 1000 0 0)
xtest 4 3 1 2 5 UA741
* Analyses
.tran 1US 3300US
* Output
* Includes
.include ua741.inc
.end
Partial thread listing: