LTspice – AD8677 Instance Connection Terminals Issue

ltspicesimulationspice

I want to simulate a schematic with an AD8677.
I found the Spice model here.
I renamed the model in ad8677.lib and placed it to my library folder.

Then I made a copy of the generic opamp model opamp2.asy (LTspiceXVII\lib\sym\OpAmps), changed the pin list, edited the attributes as it follows here and renamed it to ad8677.asy

enter image description here

enter image description here

In the simulation, I add the directive

.inc ad8677.lib

When i start a transient simulation i get the following error message:

enter image description here

I do not understand this, because I have defined five PINs in my symbol and gave the same numbering as stated in the ad8677.lib file.

enter image description here

Would be great if someone can point out my mistake.

Thanks!

Best Answer

I think the problem is your SpiceOrder parameters in the symbol. What you've done there is told SPICE that the pin "In+" is the first terminal in the definition, "In-" is the second terminal in the definition, and then that "OUT" is the thirty-ninth terminal in the definition. Since there are only five terminals in the definition, none of them is the thirty-ninth, and the simulator gives up and throws an error message. Obviously the fact that you've said that "V-" is the fiftieth terminal and that "V+" is the ninety-ninth would cause problems as well, but it doesn't even get there.

The numbers used in there are not the correct SpiceOrder parameters to use, they're just the internal names of the nodes in the subcircuit. The correct SpiceOrder for the output would be 5, as it's the fifth terminal in the definition, even though the name of the node connected to it might be 39. That node name could just as well be "Q" or "out" or "Frederick"--it doesn't matter, all that matters to you is that it's the fifth terminal listed in the definition.

Related Topic