LTSpice

May 18, 2011 4 Replies

I need to simulate a circuit with an lm393 comparator in it. I went to the yahoo group and got a file called lm393_st.txt. I renamed it lm393.sub and put it in the sub folder. Then I drew my circuit using a universal op amp symbol, which I named .lm393. LTSpice doesn't recognize it, with or without an include statement. What do I do?

I need to simulate a circuit with an lm393 comparator in it. I went to the yahoo group and got a file called lm393_st.txt. I renamed it lm393.sub and put it in the sub folder. Then I drew my circuit using a universal op amp symbol, which I named lm393. LTSpice doesn't recognize it, with or without an include statement. What do I do?


--------------------------------------- Posted through

formatting link


"Michael Robinson" schrieb im Newsbeitrag news:TfWdnUQCtIC5yUnQnZ2dnUVZ snipped-for-privacy@giganews.com...

Hello Michael,

The examples in the LTspice Yahoo group run out of the box. Just unzip the zip-file from Files>Lib to any folder and start the .asc file.

Files > Lib > LM339_LM393.zip

formatting link

Best regards, Helmut

In the library where it says "Comparator LM339 and LM393 Three models for this comparator" I click on "Comparator LM339 and LM393" and it takes me to this link

formatting link

that has various .txt, .asc and .asy files.

I want to use the lm393. I have three choices:

lm393_st.txt, LM393A.5_1_ti.txt, or LM393_ST_TI_AI_test.asc.

As I explained in my previous post, I got nowhere with the text files. So this time I try opening LM393_ST_TI_AI_test.asc in LTSpice.

A schematic opens, but without the symbols for the comparators.

I go back to the collection of comparator files so I can retrieve the symbol LTSpice is calling for.

I find XOPAMP_ST.ASY and save it in the opamp folder in the symbol folder in LTSpice.

It turns out the file linked to from "XOPAMP_ST.ASY" on that page was actually named XOPAMP_ST-2, so I rename it XOPAMP_ST and now when I open the test schematic, I get a symbol in the ST portion of the test circuit.

I want to see if it works, so I delete the other test circuits and click simulate.

I get the message, "Could not open include file 'lm393_st.txt'"

Maybe you can explain what my next step should be.

"Michael Robinson" schrieb im Newsbeitrag news:4dd53665$0$29915$ snipped-for-privacy@usenet-news.net...

formatting link

Hello Michael,

I have send you an email with an attached example.

Best regards, Helmut

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required