LTSpice Component Lib-Model - Page 1
Forum section: electronics / beginners

author: lesabb
author_rank: Contributor
timestamp: February 22, 2015, 12:48:40 am
content: Hello all, just started using LTSpice and it's helping me a lot to understand stuff. I'm building a PSU using a TL783 and trying to measure output and other things. Where can I find LTSpice models for regulators like 78XX, 317, 783, etc...thanksLPS: don't want to put in a voltage source to replace it

author: liquibyte
author_rank: Frequent Contributor
timestamp: February 22, 2015, 01:02:44 am
content: I'm in the middle of an os change so I can't verify right at this moment but I believe xreg can do the 78XX and 317. Not sure about the 783 though. TI has an extensive pspice model collection that I've used quite a bit.

author: lesabb
author_rank: Contributor
timestamp: February 22, 2015, 01:13:14 am
content: That's great but not familiar with xreg. Total newbie here. I'll check TI. Thanks

author: liquibyte
author_rank: Frequent Contributor
timestamp: February 22, 2015, 01:16:29 am
content: Check outhttp://ltwiki.org/?title=Components_Library_and_Circuits#A_Large_LTspice_Folder_from_Bordodynovas well as the rest of that wiki. I learned quite a bit from there on how things work.

author: lesabb
author_rank: Contributor
timestamp: February 22, 2015, 02:11:15 am
content: Thank you! This is great! How do I edit the xreg to get +24V?

author: liquibyte
author_rank: Frequent Contributor
timestamp: February 22, 2015, 02:33:32 am
content: You can "edit" the component much like you do a resistor or a cap to enter values. I think there's a field "xreg" or some such that you can click on (doubleclick?) that will reveal a drop down where you can pick the model of the regulator that you want to use. As far as getting 24V out of it, that depends on the input and the resistors used on output and adjust. You can even use a pot as the adjust to gnd resistor and change the value of it from 0 to 1 and model a variable voltage PS. The fun part comes with learning how to put various loads on the output to model more accurate real world behavior such as ctrl-right click on a component to measure its power. Just read the various tutorials on the net and play around with it and you'll learn how it all works.

author: lesabb
author_rank: Contributor
timestamp: February 22, 2015, 02:39:37 am
content: OK. If I right click it to assign a value like a resistor or something I see a few lines: Prefix, Name, SpiceModel, Value, Value2, etc..But changing those gives me error messages

author: liquibyte
author_rank: Frequent Contributor
timestamp: February 22, 2015, 03:45:43 am
content: OK, you have to install thehttp://ltwiki.org/files/LargeCollection.zipto get the xreg I was talking about. You'll have to install the contents of the lib folder in that archive into the same folder in the LTSpice install folder. The particular xreg I've been referring to is in the folder  (F2, double click  it's at the bottom). Place that in the schematic and right click on it then double click the spice model and you should get a drop down with the different models available.Sorry it took so long but I had to install wine and then LTSpice and then the library. I just switched back to Gentoo so wine had to compile first.

author: lesabb
author_rank: Contributor
timestamp: February 22, 2015, 01:11:18 pm
content: Thanks a bunch! All that worked OK but there is no 7824 or 783 in the list. Any idea what i can do to edit one of the list into a 7824 for example? or where to find a 783.

author: liquibyte
author_rank: Frequent Contributor
timestamp: February 22, 2015, 03:07:01 pm
content: Most spice models aren't all inclusive like that particular one is. What you'll have to do now is us a generic part and pull in the spice model from the program itself (i.e. using an include directive .include TL071.301.sub). I don't think the TI spice models include those so you'll have to Google around a bit to see if they've been made by someone else or try making them yourself. I've not had to learn how to make one yet so you're on your own if you can't find them, or unless someone else here has and is willing to share. The wiki mentioned above has fair tutorials on how to do includes and such and it's not hard once you get used to it.

author: lesabb
author_rank: Contributor
timestamp: February 22, 2015, 03:39:06 pm
content: Thanks! I found it with nice directives on how to do it properly. Thanks for the help.L

author: liquibyte
author_rank: Frequent Contributor
timestamp: February 22, 2015, 04:15:13 pm
content: Glad I could help. LTSpice is fun and can be really useful, just be aware of its limitations and understand (or at least do) the math behind what you're trying to achieve and things usually work out ok. Most of the big vendors have pspice models so you can usually find the parts you're trying to work with. TI has really good ones, Linear parts are generally encrypted so are not as useful for learning, ON has models that are on par with TI's for the most part. Everyone has their own way of doing things so you'll have to get used to each vendor but I usually just google "part pspice" or "part ltspice" and end up on the page of what I'm looking for. TI's complete spice model library ishereand the ones specifically useful to LTSpice arethis oneandthis one.

author: lesabb
author_rank: Contributor
timestamp: February 22, 2015, 04:39:47 pm
content: Great, this will surely help!

author: Smokey
author_rank: Super Contributor
timestamp: February 23, 2015, 12:16:04 am
content: I know you said you don't want to put in a voltage source, but... why? Is there some aspect of a regulator that you think is effecting your circuit? Do you have some reason to believe that the device models for the regulators accurately model all the physical quirks of the real regulators? You can always add extra parameters to a voltage source like series resistance and capacitance if that's what you are looking for.In my opinion one of the important spice skills is knowing what you can replace with an abstract block so the simulation can focus on the parts of the circuit you actually need to model. Too much stuff, and it probably won't converge anyway.