¿ªÔÆÌåÓý

using vendor supplied P-spice op-amp models


 

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. I downloaded the models from TI's website. The
circuit's been built and thoroughly debugged, so I'm confident in the
design.

When I couldn't get the circuit to operate correctly, I entered a
simple test circuit to verify some of the basic op-amp
characteristics. I found that the input bias current was way to high
(about 12nA instead of 100fA), and the gain-bandwidth of the OPA129
was high by about a factor of 10. I suspect that the models are just
screwed up, but since I'm new to LTspice I'm not completely confident
with my conclusion. Any help would be greatly appreciated.

Thanks,
John


 

--- In LTspice@..., "john_oztek" <joconnor@o...> wrote:
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. I downloaded the models from TI's website.
The
circuit's been built and thoroughly debugged, so I'm confident in
the
design.

When I couldn't get the circuit to operate correctly, I entered a
simple test circuit to verify some of the basic op-amp
characteristics. I found that the input bias current was way to
high
(about 12nA instead of 100fA), and the gain-bandwidth of the OPA129
was high by about a factor of 10. I suspect that the models are
just
screwed up, but since I'm new to LTspice I'm not completely
confident
with my conclusion. Any help would be greatly appreciated.
Hello John,
I tried to verify your results and the bias currents are indeed a lot
higher than expected. I looked around in the LTSPICE settings for
possible leakage currents and other precision important parameters.
Finally I have found that we need the command line

.OPTIONS gmin=0 (or at least <1e-18)

It defines the minimum conductance added to every node.
The simulated input bias current is then 40pA for the OPA128 and
OPA129.
The AC-gain results are really by a factor of ten too high for the
OPA129/OPA129E.

I still don't know why the enhanced models OPA128E and OPA129E still
shows bias currents of about 30pA instead of 40fA.
I tried the OPA129E with the PSPICE 8.0 demo.
Surprise, surprise! Even with the OPA129E, the bias current has been
40fA. Something seems to go wrong in LTSPICE with this enhanced model
in the .OP calculation.

The .AC simulation shows exactly the same results in PSPICE as in
LTSPICE.

Best Regards
Helmut


 

--- In LTspice@..., "Helmut Sennewald"
<helmutsennewald@y...> wrote:
--- In LTspice@..., "john_oztek" <joconnor@o...> wrote:
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. I downloaded the models from TI's website.
The
circuit's been built and thoroughly debugged, so I'm confident in
the
design.

When I couldn't get the circuit to operate correctly, I entered a
simple test circuit to verify some of the basic op-amp
characteristics. I found that the input bias current was way to
high
(about 12nA instead of 100fA), and the gain-bandwidth of the
OPA129
was high by about a factor of 10. I suspect that the models are
just
screwed up, but since I'm new to LTspice I'm not completely
confident
with my conclusion. Any help would be greatly appreciated.
Hello John,
I tried to verify your results and the bias currents are indeed a
lot
higher than expected. I looked around in the LTSPICE settings for
possible leakage currents and other precision important parameters.
Finally I have found that we need the command line

.OPTIONS gmin=0 (or at least <1e-18)

It defines the minimum conductance added to every node.
The simulated input bias current is then 40pA for the OPA128 and
OPA129.
The AC-gain results are really by a factor of ten too high for the
OPA129/OPA129E.

I still don't know why the enhanced models OPA128E and OPA129E
still
shows bias currents of about 30pA instead of 40fA.
I tried the OPA129E with the PSPICE 8.0 demo.
Surprise, surprise! Even with the OPA129E, the bias current has
been
40fA. Something seems to go wrong in LTSPICE with this enhanced
model
in the .OP calculation.

The .AC simulation shows exactly the same results in PSPICE as in
LTSPICE.

Best Regards
Helmut
Helmut,

Thanks for looking into this and going to the trouble of duplicating
my results. I've also had problems with the enhanced model for the
INA128 instrumentation amplifier. The standard model seems to work
OK although it does have a little trouble converging. One thing for
sure, it's definitely worth the effort of proving the model in a
simple circuit against data sheet specs, particularly when second
order effects are critical.

Thanks,
John


 

--- In LTspice@..., "john_oztek" <joconnor@o...> wrote:
--- In LTspice@..., "Helmut Sennewald"
<helmutsennewald@y...> wrote:
--- In LTspice@..., "john_oztek" <joconnor@o...>
wrote:
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. I downloaded the models from TI's
website.
The
circuit's been built and thoroughly debugged, so I'm confident
in
the
design.

When I couldn't get the circuit to operate correctly, I entered
a
simple test circuit to verify some of the basic op-amp
characteristics. I found that the input bias current was way
to
high
(about 12nA instead of 100fA), and the gain-bandwidth of the
OPA129
was high by about a factor of 10. I suspect that the models
are
just
screwed up, but since I'm new to LTspice I'm not completely
confident
with my conclusion. Any help would be greatly appreciated.
Hello John,
I tried to verify your results and the bias currents are indeed a
lot
higher than expected. I looked around in the LTSPICE settings for
possible leakage currents and other precision important
parameters.
Finally I have found that we need the command line

.OPTIONS gmin=0 (or at least <1e-18)

It defines the minimum conductance added to every node.
The simulated input bias current is then 40pA for the OPA128 and
OPA129.
The AC-gain results are really by a factor of ten too high for
the
OPA129/OPA129E.

I still don't know why the enhanced models OPA128E and OPA129E
still
shows bias currents of about 30pA instead of 40fA.
I tried the OPA129E with the PSPICE 8.0 demo.
Surprise, surprise! Even with the OPA129E, the bias current has
been
40fA. Something seems to go wrong in LTSPICE with this enhanced
model
in the .OP calculation.

The .AC simulation shows exactly the same results in PSPICE as in
LTSPICE.

Best Regards
Helmut
Helmut,

Thanks for looking into this and going to the trouble of
duplicating
my results. I've also had problems with the enhanced model for the
INA128 instrumentation amplifier. The standard model seems to work
OK although it does have a little trouble converging. One thing
for
sure, it's definitely worth the effort of proving the model in a
simple circuit against data sheet specs, particularly when second
order effects are critical.
Hello John,
I have to take back my statement that LTSPICE was wrong with the
OPA129E input bias current. I further investigated the enhanced(E)
model and it is obvious that it isn't modelled correctly for bias
current. Now it seems the PSPICE simulation has been wrong with the
OPA129E.

These are the two critical lines of the enhanced model.

g11 2 4 poly(4) (10,2) (11,2) (4,2) (66,0) 0 1E-12 1E-12 1E-12
100E-9

g21 1 4 poly(4) (10,1) (12,1) (4,1) (68,0) 0 1E-12 1E-12 1E-12
100E-9

Node 1 and 2 are the input pins. g11 and g21 should simulate input
currents proportional to the negative supply voltage(4), the common
source point(10) the drain(11 close to V-) and node 66 which is close
to (0). Assuming 15V for the negative supply gives bias currents of
15V*1e-12 = 15pA.

Finally I am wondering how PSPICE can calculate 40fA bias current.

Best Regards
Helmut


 

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. I downloaded the models from TI's website. The
circuit's been built and thoroughly debugged, so I'm confident in the
design.

When I couldn't get the circuit to operate correctly, I entered a
simple test circuit to verify some of the basic op-amp
characteristics. I found that the input bias current was way to high
(about 12nA instead of 100fA), and the gain-bandwidth of the OPA129
was high by about a factor of 10. I suspect that the models are just
screwed up, but since I'm new to LTspice I'm not completely confident
with my conclusion. Any help would be greatly appreciated.
I get similar problems with the OP27A, although in my case it is the noise that
is reported about 2 orders more than the data sheet and hand calculations
suggest. The bias currents look right. Other vendors opamps seem to behave.

I ran a test circuit on Accusim II (Eldo SPICE-like kernal) and the OP27A gave
sensible answers. I ported the netlist back to LTSPICE and although the AC
analysis ran, the noise analysis gave up . I put the Accusim OP27A model into
LTSPICE library and it gave the same wrong noise on my test circuit.

Brian



--
Brian Howie | Tel: 0131 343 5590
BAE SYSTEMS | Fax: 0131 343 5050
Sensor Systems Division | Email brian.howie@...
Silverknowes | bhowie@...
Edinburgh EH4 4AD | Web site www.baesystems.com


***
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
***


 

--- In LTspice@..., "Helmut Sennewald"
<helmutsennewald@y...> wrote:
--- In LTspice@..., "john_oztek" <joconnor@o...> wrote:
--- In LTspice@..., "Helmut Sennewald"
<helmutsennewald@y...> wrote:
--- In LTspice@..., "john_oztek" <joconnor@o...>
wrote:
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. I downloaded the models from TI's
website.
The
circuit's been built and thoroughly debugged, so I'm
confident
in
the
design.

When I couldn't get the circuit to operate correctly, I
entered
a
simple test circuit to verify some of the basic op-amp
characteristics. I found that the input bias current was way
to
high
(about 12nA instead of 100fA), and the gain-bandwidth of the
OPA129
was high by about a factor of 10. I suspect that the models
are
just
screwed up, but since I'm new to LTspice I'm not completely
confident
with my conclusion. Any help would be greatly appreciated.
Hello John,
I tried to verify your results and the bias currents are indeed
a
lot
higher than expected. I looked around in the LTSPICE settings
for
possible leakage currents and other precision important
parameters.
Finally I have found that we need the command line

.OPTIONS gmin=0 (or at least <1e-18)

It defines the minimum conductance added to every node.
The simulated input bias current is then 40pA for the OPA128
and
OPA129.
The AC-gain results are really by a factor of ten too high for
the
OPA129/OPA129E.

I still don't know why the enhanced models OPA128E and OPA129E
still
shows bias currents of about 30pA instead of 40fA.
I tried the OPA129E with the PSPICE 8.0 demo.
Surprise, surprise! Even with the OPA129E, the bias current has
been
40fA. Something seems to go wrong in LTSPICE with this enhanced
model
in the .OP calculation.

The .AC simulation shows exactly the same results in PSPICE as
in
LTSPICE.

Best Regards
Helmut
Helmut,

Thanks for looking into this and going to the trouble of
duplicating
my results. I've also had problems with the enhanced model for
the
INA128 instrumentation amplifier. The standard model seems to
work
OK although it does have a little trouble converging. One thing
for
sure, it's definitely worth the effort of proving the model in a
simple circuit against data sheet specs, particularly when second
order effects are critical.
Hello John,
I have to take back my statement that LTSPICE was wrong with the
OPA129E input bias current. I further investigated the enhanced(E)
model and it is obvious that it isn't modelled correctly for bias
current. Now it seems the PSPICE simulation has been wrong with the
OPA129E.

These are the two critical lines of the enhanced model.

g11 2 4 poly(4) (10,2) (11,2) (4,2) (66,0) 0 1E-12 1E-12 1E-12
100E-9

g21 1 4 poly(4) (10,1) (12,1) (4,1) (68,0) 0 1E-12 1E-12 1E-12
100E-9

Node 1 and 2 are the input pins. g11 and g21 should simulate input
currents proportional to the negative supply voltage(4), the common
source point(10) the drain(11 close to V-) and node 66 which is
close
to (0). Assuming 15V for the negative supply gives bias currents of
15V*1e-12 = 15pA.

Finally I am wondering how PSPICE can calculate 40fA bias current.

Best Regards
Helmut
Helmut,

Thanks again for looking so thoroughly into this. I'm surprised that
they use such a complicated expression for bias current, unless the
terms help implement the bias current temperature coefficient.
According to the data sheet, the bias current is relatively constant
over a wide range of common mode voltage, implying that the
difference between the inputs and the negative supply should have
little effect on this parameter. Like any JFET op-amp, bias current
increases exponentially with temperature, so temperature is by far
the dominant variable. I do find it surprising that such a critical
characteristic would be modeled incorrectly, as there is no reason to
use this op-amp other than for it's extremely low bias current.

Thanks,
John


 

--- In LTspice@..., brian.howie@b... wrote:



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. I downloaded the models from TI's website.
The
circuit's been built and thoroughly debugged, so I'm confident in
the
design.

When I couldn't get the circuit to operate correctly, I entered a
simple test circuit to verify some of the basic op-amp
characteristics. I found that the input bias current was way to
high
(about 12nA instead of 100fA), and the gain-bandwidth of the
OPA129
was high by about a factor of 10. I suspect that the models are
just
screwed up, but since I'm new to LTspice I'm not completely
confident
with my conclusion. Any help would be greatly appreciated.
I get similar problems with the OP27A, although in my case it is
the noise that
is reported about 2 orders more than the data sheet and hand
calculations
suggest. The bias currents look right. Other vendors opamps seem to
behave.

I ran a test circuit on Accusim II (Eldo SPICE-like kernal) and
the OP27A gave
sensible answers. I ported the netlist back to LTSPICE and although
the AC
analysis ran, the noise analysis gave up . I put the Accusim OP27A
model into
LTSPICE library and it gave the same wrong noise on my test
circuit.

Brian



--
Brian Howie | Tel: 0131 343 5590
BAE SYSTEMS | Fax: 0131 343 5050
Sensor Systems Division | Email brian.howie@b...
Silverknowes | bhowie@i...
Edinburgh EH4 4AD | Web site www.baesystems.com


***
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
***
Brain,

On one hand, I'm frustrated to learn there are so many issues with
vendor supplied models. This sort of problem can send you down a rat
hole for quite some time, and leave you worrying about the soundness
of your design. On the other hand, I know that I'm going to only use
simulation to validate my initial design and analysis, and not use it
as a substitute for other analytical methods. This experience only
supports my convictions and helps keep me honest.

- John


 

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


 

Brain,

On one hand, I'm frustrated to learn there are so many issues with
vendor supplied models. This sort of problem can send you down a rat
hole for quite some time, and leave you worrying about the soundness
of your design. On the other hand, I know that I'm going to only use
simulation to validate my initial design and analysis, and not use it
as a substitute for other analytical methods. This experience only
supports my convictions and helps keep me honest.
The golden rule in analogue design is that n simulators give n different
answers, you have to be able to hand-verify results to some extent.

I tell the engineers here, half-jokingly that simulation tools and models are
for amusement only since both the tool and device vendors don't guarantee the
accuracy of anything.

Brian

--
Brian Howie | Tel: 0131 343 5590
BAE SYSTEMS | Fax: 0131 343 5050
Sensor Systems Division | Email brian.howie@...
Silverknowes | bhowie@...
Edinburgh EH4 4AD | Web site www.baesystems.com


***
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
***


 

--- In LTspice@..., Panama Mike <panamatex@y...> wrote:
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
Mike,

I was really puzzled by the complicated G-source expression. That
all makes sense now.

Thanks,
John




__________________________________________________
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online


 

John,

I was really puzzled by the complicated G-
source _expression. That all makes sense now.
Yeah. I just put up a version, 2.00l. It lets you
duplicate the leakage of PSpice current sources in
LTspice. Go to Tools=>Control Panel=>SPICE and
check "Add GMIN across current sources" Then you
will see the input bias drop to zero on the -E
models.

There's still a couple differences between PSpice
and LTspice even after checking the box. PSpice
does not report the current's gmin leakage current,
which is just a dumb mistake that I don't
duplicate. Also, in PSpice the current sources
don't leak in the .ac analysis, just .op and .tran.
Which is a complete inconsistency and just another
error I didn't duplicate in LTspice.

There's one other thing to keep in mind when
working with high impedance circuits. You might
want to tighten abstol. That controls the
absolute(vs. relative) acceptable current
error. It defaults to 1pA.

--Mike

__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!


 

--- In LTspice@..., Panama Mike <panamatex@y...> wrote:
John,

I was really puzzled by the complicated G-
source _expression. That all makes sense now.
Yeah. I just put up a version, 2.00l. It lets you
duplicate the leakage of PSpice current sources in
LTspice. Go to Tools=>Control Panel=>SPICE and
check "Add GMIN across current sources" Then you
will see the input bias drop to zero on the -E
models.

There's still a couple differences between PSpice
and LTspice even after checking the box. PSpice
does not report the current's gmin leakage current,
which is just a dumb mistake that I don't
duplicate. Also, in PSpice the current sources
don't leak in the .ac analysis, just .op and .tran.
Which is a complete inconsistency and just another
error I didn't duplicate in LTspice.

There's one other thing to keep in mind when
working with high impedance circuits. You might
want to tighten abstol. That controls the
absolute(vs. relative) acceptable current
error. It defaults to 1pA.

--Mike

_
Mike,

I downloaded the new release this morning and simulated my circuit
again. Sure enough, the input bias current is now reasonable and the
simulation behaves like the actual circuit. Thanks for looking into
this and getting a fix up so quickly.

- John


_________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your
desktop!