LMH6321 Buffer Not Working


 

TI supplies a seemingly straightforward spice model for its LMH6321 Unity Gain Buffer.  It requires a modified opamp symbol with only 4 nodes, (IN V+ V- OUT).
I edited a standard opamp symbol to have only the 4 nodes and get the resulting error message:  "Fatal Error: Port(pin) count mismatch between the definition of subcircuit "lmh6321" and instance: "xu1"
The instance has more connection terminals than the definition."
 
I count only 4 pins on the model and 4 pins on my symbol.  Can you see what I am doing wrong?  I will upload my files to temp.
 
Thanks,
Steve Hogan
 
 
 
 
 
 
 
 
 


 

Make sure your symbol pins are numbered in consecutive order: 1, 2, 3, 4 works, 1, 3, 4, 5 (or any other sequence with a missing number) doesn't, even though the number of pins is correct.


On Sun, Dec 22, 2024, 2:54 PM info via groups.io <info=soundsteward.com@groups.io> wrote:
TI supplies a seemingly straightforward spice model for its LMH6321 Unity Gain Buffer.  It requires a modified opamp symbol with only 4 nodes, (IN V+ V- OUT).
I edited a standard opamp symbol to have only the 4 nodes and get the resulting error message:  "Fatal Error: Port(pin) count mismatch between the definition of subcircuit "lmh6321" and instance: "xu1"
The instance has more connection terminals than the definition."
 
I count only 4 pins on the model and 4 pins on my symbol.  Can you see what I am doing wrong?  I will upload my files to temp.
 
Thanks,
Steve Hogan
 
 
 
 
 
 
 
 
 


 

Those two files don't help, I think. We need the .ASC, and please ZIP files if there is more than 1 to upload.

On 2024-12-22 23:01, Group Notification wrote:

The following items have been added to the Files area of the LTspice@groups.io group.

By: info@...

Description:
LTspice says my symbol has more pins than the model. Please help.

-- 
OOO - Own Opinions Only
Best Wishes
John Woodgate
Keep trying

Virus-free.www.avg.com


 

On Sun, Dec 22, 2024 at 05:54 PM, <info@...> wrote:
I edited a standard opamp symbol to have only the 4 nodes and get the resulting error message:  "Fatal Error: Port(pin) count mismatch between the definition of subcircuit "lmh6321" and instance: "xu1"
The instance has more connection terminals than the definition."
 
I count only 4 pins on the model and 4 pins on my symbol.  Can you see what I am doing wrong?
I think there is nothing technically "wrong" with the symbol file and model you uploaded.  I created a schematic and added your symbol to it (after editing the file's location since that is unique to your computer), and the simulation ran without errors.
 
However, you did use the SpiceModel attribute, which is NOT what I recommended using.  You should have used the ModelFile attribute instead, to specify what model file is to be loaded.  What you used was an "exception" case, and it's risky.  If you get any of the parameters wrong, it might not work the way you wanted it to work.
 
If you edited your symbol after adding it to your schematic already, you may need to delete the symbol from the schematic and then add it back (not Undo, but actually adding a new one).  There are some properties that are "sticky" and may remain even if you later alter the symbol in the symbol editor.  The schematic might retain the old ("sticky") value.
 
Andy
 


 

It is now working properly.

Helmut had an LMH6321.zip demo in the files section. His model was an older one that was only slightly different, but I was able to make my model and asy files work together.

Thanks for your help, still learning.

Steve

 


On 2024-12-22 18:23, Craig Lambert via groups.io wrote:

Make sure your symbol pins are numbered in consecutive order: 1, 2, 3, 4 works, 1, 3, 4, 5 (or any other sequence with a missing number) doesn't, even though the number of pins is correct.


On Sun, Dec 22, 2024, 2:54 PM info via groups.io <info=soundsteward.com@groups.io> wrote:
TI supplies a seemingly straightforward spice model for its LMH6321 Unity Gain Buffer.  It requires a modified opamp symbol with only 4 nodes, (IN V+ V- OUT).
I edited a standard opamp symbol to have only the 4 nodes and get the resulting error message:  "Fatal Error: Port(pin) count mismatch between the definition of subcircuit "lmh6321" and instance: "xu1"
The instance has more connection terminals than the definition."
 
I count only 4 pins on the model and 4 pins on my symbol.  Can you see what I am doing wrong?  I will upload my files to temp.
 
Thanks,
Steve Hogan