• Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

pin port in lt spice

ronv

Well-Known Member
Most Helpful Member
I tried to import a comparator. I modified an existing op amp symbol for it.
I thought I did it correctly, but I guess not.
Could someone check me out and set me straight?
 

Attachments

alec_t

Well-Known Member
Most Helpful Member
:confused: LM6142A is an opamp, not a comparator.
 

alec_t

Well-Known Member
Most Helpful Member
I tried, but failed, to get a symbol/model combo that worked. Either LTS complained that there was a pin count mismatch between instance and definition, or the comparator output gave a more or less constant level after I'd added a dummy 'pin 1' to the model to cure the mismatch. Hopefully someone else has the answer?
 

atferrari

Well-Known Member
LTSpice group in Yahoo?
 

MikeMl

Well-Known Member
Most Helpful Member
Here you go. I think I fixed it. The pin order inside the .sub file didn't match the LTSpice OPAMP2 symbol pin order. I edited the .sub file to match the expected pin order. Use my edited version of the .sub file and connect it to the standard OPAMP2 symbol...

I think it is better to leave the symbol standard, and make the .sub file match the expected pin order...
 

Attachments

alec_t

Well-Known Member
Most Helpful Member
That's more like it. Thanks, Mike.
 

simonbramble

Active Member
To save this tripping you up in future, LTspice can generate its own symbol based on the pinout of your model. This overcomes errors associated with models not matching up with port pin assignments. The symbol ain't pretty, but at least it works.

This is detailed in my tutorial below:
http://www.simonbramble.co.uk/lt_spice/ltspice_lt_spice_tutorial_4.htm

(see the bit on Creating a Quick Part Outline for 3rd Party SPICE models)

Simon
 

EE World Online Articles

Loading

 
Top