J
Joerg
Jim said:Ya got the set-up wrong.
That doesn't explain why the other opamps work just fine.
Jim said:Ya got the set-up wrong.
Jim said:Looks like LTspice order, for OpAmp2 symbol is...
IN+ IN- V+ V- Vout
Jim said:I'm still betting there's two possibilities... pin order wrong, or .AC
set-up wrong.
Jim said:Looks like LTspice order, for OpAmp2 symbol is...
IN+ IN- V+ V- Vout
Jim said:In the great state of Texas it seems to be -IN +IN V- V+ Vout. So I madeJim said:On Sat, 05 Jan 2013 17:10:20 -0700, Jim Thompson
[snip]
Show me the setups... maybe the pin order is doing you in?
...Jim Thompson
Looks like LTspice order, for OpAmp2 symbol is...
IN+ IN- V+ V- Vout
Opamp2TI with the Texan pinout and ... shazam! That was it, now it
runneth. Thanks, Jim.
Now the barbie is ready, got to head outside to cook dinner. It's a
balmy 40F or so I guess.
Joerg, The .asc file you sent privately... the .asc (symbol) shows
only three connections to the OpAmp... five are required. Do you have
latest version of LTspice? I vaguely recall a discussion of problems
with OpAmp2.
Looking at the netlist, the LTspice-proper pin order is...
IN+ IN- V+ V- Vout
Your library has...
-IN +IN V- V+ Vout
So you have it bass-ackwards >:-}
Phil said:[...]Jim Thompson wrote:
Hmm, the OPA model is -IN +IN V- V+ Vout.
Is that customary at TI, or in the old Burr-Brown world? If so the I
should make a OpAmp2TI or something.
It's easier to tweak the model. That way it's right the next time.
Jim said:Opamp2 is the one that has five pins and that works with all the opampsJim said:Jim Thompson wrote:
On Sat, 05 Jan 2013 17:10:20 -0700, Jim Thompson
[snip]
Show me the setups... maybe the pin order is doing you in?
...Jim Thompson
Looks like LTspice order, for OpAmp2 symbol is...
IN+ IN- V+ V- Vout
In the great state of Texas it seems to be -IN +IN V- V+ Vout. So I made
Opamp2TI with the Texan pinout and ... shazam! That was it, now it
runneth. Thanks, Jim.
Now the barbie is ready, got to head outside to cook dinner. It's a
balmy 40F or so I guess.
Joerg, The .asc file you sent privately... the .asc (symbol) shows
only three connections to the OpAmp... five are required. Do you have
latest version of LTspice? I vaguely recall a discussion of problems
with OpAmp2.
I had tried, except for the Burr-Brown/TI parts. So I copied Opamp2.asy
and made another Opamp2TI.asy out of that, now it all works fine. That
way I don't have to muck with the model files because that's always a
dicey proposition.
To avoid a proliferation of symbols (*) I always adjust the pin order
in the subcircuit declaration... but keep the original order following
the ';' (comment) character in case I need to go back... or share with
someone else.
My standard OpAmp (or comparative) symbol pin order is...
IN+ IN- <add any excess pins here> Vout V+ V-
Also gates, as in...
A B ... Q V+ V-
(*) I already have 804 custom symbols >:-}
I've got to break my better half of piling things on high shelves.
Yesterday, during a "get this down for me honey" request, a dish
drainer try came loose from her pile, hit me in the head, then spun
around and cut the back of my hand open :-(
She's just exactly 5' tall, but won't listen when I tell her... just
come and get me and _I'll_ put it away for you. She just stands
"on-tippy-toe" and shoves stuff on top of the stack. The cookie sheet
pile can be hazardous to one's health
After all, a SPICE model is usually something released by a
manufacturer unless you build your own from component data.
Jim said:I'd rather not touch those if possible. It feels like messing with aPhil said:On 1/5/2013 7:36 PM, Joerg wrote:
Jim Thompson wrote: [...]
Looks like LTspice order, for OpAmp2 symbol is...
IN+ IN- V+ V- Vout
Hmm, the OPA model is -IN +IN V- V+ Vout.
Is that customary at TI, or in the old Burr-Brown world? If so the I
should make a OpAmp2TI or something.
It's easier to tweak the model. That way it's right the next time.
datasheet. After all, a SPICE model is usually something released by a
manufacturer unless you build your own from component data.
Pin ORDER doesn't change the model... it just matches up the symbol's
pin order to the subcircuit declaration.
If you were a regular Spice user you'd know all about the importance
of pin order and subcircuit declarations.
As far as "messing", you "messed" with the symbol pin order didn't you
?
I'd rather have symbol consistency. In your world some days the base
of a tranny would be a collector ??
Jim said:That's a good method, although it does add to the clutter of SPICEJim said:Jim Thompson wrote:
Jim Thompson wrote:
On Sat, 05 Jan 2013 17:10:20 -0700, Jim Thompson
[snip]
Show me the setups... maybe the pin order is doing you in?
...Jim Thompson
Looks like LTspice order, for OpAmp2 symbol is...
IN+ IN- V+ V- Vout
In the great state of Texas it seems to be -IN +IN V- V+ Vout. So I made
Opamp2TI with the Texan pinout and ... shazam! That was it, now it
runneth. Thanks, Jim.
Now the barbie is ready, got to head outside to cook dinner. It's a
balmy 40F or so I guess.
Joerg, The .asc file you sent privately... the .asc (symbol) shows
only three connections to the OpAmp... five are required. Do you have
latest version of LTspice? I vaguely recall a discussion of problems
with OpAmp2.
Opamp2 is the one that has five pins and that works with all the opamps
I had tried, except for the Burr-Brown/TI parts. So I copied Opamp2.asy
and made another Opamp2TI.asy out of that, now it all works fine. That
way I don't have to muck with the model files because that's always a
dicey proposition.
To avoid a proliferation of symbols (*) I always adjust the pin order
in the subcircuit declaration... but keep the original order following
the ';' (comment) character in case I need to go back... or share with
someone else.
My standard OpAmp (or comparative) symbol pin order is...
IN+ IN- <add any excess pins here> Vout V+ V-
Also gates, as in...
A B ... Q V+ V-
directives on the sheet.
How is that? On MY schematics will you see any "directives" other
than .LIB ??
That's a lot. But as an IC guy you live SPICE, us circuit guys live CAD.
I have a ton of custom symbols for the schematic editor.
My symbols are _schematic_ symbols just like yours. Many of mine are
"test instruments" ;-)
Jim said:In my world a new package and CAD symbol gets created if even one loneJim said:Phil Hobbs wrote:
On 1/5/2013 7:36 PM, Joerg wrote:
Jim Thompson wrote:
[...]
Looks like LTspice order, for OpAmp2 symbol is...
IN+ IN- V+ V- Vout
Hmm, the OPA model is -IN +IN V- V+ Vout.
Is that customary at TI, or in the old Burr-Brown world? If so the I
should make a OpAmp2TI or something.
It's easier to tweak the model. That way it's right the next time.
I'd rather not touch those if possible. It feels like messing with a
datasheet. After all, a SPICE model is usually something released by a
manufacturer unless you build your own from component data.
Pin ORDER doesn't change the model... it just matches up the symbol's
pin order to the subcircuit declaration.
If you were a regular Spice user you'd know all about the importance
of pin order and subcircuit declarations.
As far as "messing", you "messed" with the symbol pin order didn't you
?
I'd rather have symbol consistency. In your world some days the base
of a tranny would be a collector ??
pin is different from customary. But never in the datasheet, and I
usually never veer from the outline in that datasheet for pin
descriptors and such.
You just made my point... Why should I have more than one symbol for
all the thousands of 5-pin OpAmps?
Jim said:Jim Thompson wrote:
Phil Hobbs wrote:
On 1/5/2013 7:36 PM, Joerg wrote:
Jim Thompson wrote:
[...]
Looks like LTspice order, for OpAmp2 symbol is...
IN+ IN- V+ V- Vout
Hmm, the OPA model is -IN +IN V- V+ Vout.
Is that customary at TI, or in the old Burr-Brown world? If so the I
should make a OpAmp2TI or something.
It's easier to tweak the model. That way it's right the next time.
I'd rather not touch those if possible. It feels like messing with a
datasheet. After all, a SPICE model is usually something released by a
manufacturer unless you build your own from component data.
Pin ORDER doesn't change the model... it just matches up the symbol's
pin order to the subcircuit declaration.
If you were a regular Spice user you'd know all about the importance
of pin order and subcircuit declarations.
As far as "messing", you "messed" with the symbol pin order didn't you
?
I'd rather have symbol consistency. In your world some days the base
of a tranny would be a collector ??
In my world a new package and CAD symbol gets created if even one lone
pin is different from customary. But never in the datasheet, and I
usually never veer from the outline in that datasheet for pin
descriptors and such.
You just made my point... Why should I have more than one symbol for
all the thousands of 5-pin OpAmps?
Because else one has to muck with the text in the lib file. That's a
no-no in a controlled design environment. Just imagine I had a file
called ThompsonAmp.lib and the pin order in there is not right for my
simulator. Suppose I'd change that in the ThompsonAmp.lib file and now
it works. How should I store that file? If it's then stored as
ThompsonAmp.lib and an auditor from the FDA or another agency finds out,
oh boy. Even if I store it under another name the action of changing
something in there must be justified in writing and documented if
working on a sensitive project.
Writing a script to dork the library and then put it back would be
pretty simple.
Cheers
Phil Hobbs
Jim said:Joerg has a knack for making things overly complicated. ...Jim Thompson wrote:
Jim Thompson wrote:
Phil Hobbs wrote:
On 1/5/2013 7:36 PM, Joerg wrote:
Jim Thompson wrote:
[...]
Looks like LTspice order, for OpAmp2 symbol is...
IN+ IN- V+ V- Vout
Hmm, the OPA model is -IN +IN V- V+ Vout.
Is that customary at TI, or in the old Burr-Brown world? If so the I
should make a OpAmp2TI or something.
It's easier to tweak the model. That way it's right the next time.
I'd rather not touch those if possible. It feels like messing with a
datasheet. After all, a SPICE model is usually something released by a
manufacturer unless you build your own from component data.
Pin ORDER doesn't change the model... it just matches up the symbol's
pin order to the subcircuit declaration.
If you were a regular Spice user you'd know all about the importance
of pin order and subcircuit declarations.
As far as "messing", you "messed" with the symbol pin order didn't you
?
I'd rather have symbol consistency. In your world some days the base
of a tranny would be a collector ??
In my world a new package and CAD symbol gets created if even one lone
pin is different from customary. But never in the datasheet, and I
usually never veer from the outline in that datasheet for pin
descriptors and such.
You just made my point... Why should I have more than one symbol for
all the thousands of 5-pin OpAmps?
Because else one has to muck with the text in the lib file. That's a
no-no in a controlled design environment. Just imagine I had a file
called ThompsonAmp.lib and the pin order in there is not right for my
simulator. Suppose I'd change that in the ThompsonAmp.lib file and now
it works. How should I store that file? If it's then stored as
ThompsonAmp.lib and an auditor from the FDA or another agency finds out,
oh boy. Even if I store it under another name the action of changing
something in there must be justified in writing and documented if
working on a sensitive project.
So wrap a schematic level subcircuit to fix the pin order.
?-)
And I remembered another thing I do...
Create a single library containing all the parts used by a schematic.
Of course, anyone using LTspice for document control must be a bit of
a fool... recent versions can't read some past schematics.
Besides, I thought Joerg was using Crapture ?>:-}
Like I said yesterday. Something isn't hooked up right in the model.;-)
Jim said:[snip]I think I know the problem...Thanks for testing it. In case you want to try: When you hang a 10k in
the FB and feed a current into IN-, then runs .NOISE, does it run on
your sim? If yes then it's highly likely that the model doesn't fit LTSpice.
I did this...
.SUBCKT OPA4140 +IN -IN Vout V+ V- ; -IN +IN V- V+ Vout (Rearranged
Order to Match PSpice Symbol)
You need to make sure the "pin" order matches the LTspice OpAmp
symbol... otherwise you will experience pain and agony.
(The TI pin order is just a wee bit unusual. I do this rearrangement
exercise almost daily, so it's second nature to me.)
...Jim Thompson
I found a simple solution which _may_ save Joerg from those meanies at
the FDA >:-}
You presently have as the model...
.SUBCKT OPA4140 -IN +IN V- V+ Vout
|
|
.ENDS OPA4140
Make a subcircuit declaration...
.SUBCKY MyOPA4140 +IN -IN Vout V+ V-
X1 -IN +IN V- V+ Vout OPA4140
.ENDS MyOPA4140
Rearranges the pin order without doing any editing (heavens ;-) to the
original.
Jim said:It's a subcircuit already, so I'd have to declare a subcircuit in aJim said:On Fri, 04 Jan 2013 17:42:51 -0700, Jim Thompson
[snip]
Thanks for testing it. In case you want to try: When you hang a 10k in
the FB and feed a current into IN-, then runs .NOISE, does it run on
your sim? If yes then it's highly likely that the model doesn't fit LTSpice.
I think I know the problem...
I did this...
.SUBCKT OPA4140 +IN -IN Vout V+ V- ; -IN +IN V- V+ Vout (Rearranged
Order to Match PSpice Symbol)
You need to make sure the "pin" order matches the LTspice OpAmp
symbol... otherwise you will experience pain and agony.
(The TI pin order is just a wee bit unusual. I do this rearrangement
exercise almost daily, so it's second nature to me.)
...Jim Thompson
I found a simple solution which _may_ save Joerg from those meanies at
the FDA >:-}
You presently have as the model...
.SUBCKT OPA4140 -IN +IN V- V+ Vout
|
|
.ENDS OPA4140
Make a subcircuit declaration...
.SUBCKY MyOPA4140 +IN -IN Vout V+ V-
X1 -IN +IN V- V+ Vout OPA4140
.ENDS MyOPA4140
Rearranges the pin order without doing any editing (heavens ;-) to the
original.
subcircuit.
Careful of your verbiage. MyOPA4140 and OPA4140 are SEPARATE
DECLARATIONS... in your library file(s)
In your schematic you would have an OpAmp symbol that calls an
MyOPA410 subcircuit that references an OPA4140 subcircuit.
Caution: The Pin order shown above matches MY symbol... for your
purposes make sure it matches the preferred LTspice Pin Order.
Yep.
I actually stumbled onto it in LTspice where they define an LTC6709 by
calling an LTC6708.
As long as it "woiks" you're OK ;-)
Jim said:[...]
It woiks poifectly.
Watched an epidode of "All in the Family" a couple days ago. The one
where Edith accepted an invitation by the Jeffersons and Archie ...
well, you know how he reacted.
"All in the Family" is probably the best sitcom, EVER!
Jim said:What kind of "bang" is it ?:-}