John,
Are there any special considerations with using
P-spice op-amp macro models with LTspice? I'm
trying to simulate a circuit that uses a Burr
Brown/TI electrometer op-amp (OPA128 or OPA129)
and I'm getting incorrect results...
As has been pointed out, the non-E version of
the models do leak much more than the product.
That's the model. The E versions are supposed
model input bias current and it still leaked
too much in LTspice.
I just found out why the E models have large
bias currents in LTspice. It turns out that
all current sources in PSpice are shorted out
with a very small conductivity equal to GMIN
which defaults to 1e-12.
All versions of the models have use JFETs for
the input stage. The JFET supplies GMIN
conductivity between gate-source and gate-
drain. With +/-15V supply voltage this leads
to an input bias current of 15pA. In LTspice
you can set GMIN to zero, so you an turn off
this leakage. But PSpice can't converge with
GMIN=0.
So the -E versions of the models add a current
source to cancel the JFET leakage. So far
so good. Unfortunately, all current sources
in PSpice also supply their own additional GMIN
of conductivity. That is, PSpice shorts out
all current sources with a resistivity of 1e12
Ohms. There's no reason for this, it's just
bad SPICE design as far as I can tell. So the
additional current source to cancel the JFET
leakage has to cancel it's own leakage, too.
That's what makes the expression of the G-
sources so complicated. Also, when you run
the -E version in LTspice, the bias current
doesn't go to zero where if you run it in
PSpice, it will. I will probably and an
option in the control panel of LTspice to
duplicate this leakage as an option in the
near future.
Thanks to Helmut for help in isolating the
problem.
Below is a deck that shows the PSpice vs LTspice
leakage of currents. In LTspice you will get
the correct answer, but in PSpice, you will
get an error because the current sources don't
have infinite impedance.
--Mike
*
* V(y) should be 100KV
R1 Y 0 1e11
G1 0 Y N001 0 1
Vin3 N001 0 1u
* V(x) should be -100KV
R2 X 0 1e11
G2 X 0 value = { 1u }
* V(z) should be -100KV
I1 Z 0 1u
R3 Z 0 1e11
.tran 1m 1
.options gmin=1e-10
.probe
.end
__________________________________________________
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online