Author Topic: LTSpice Component Lib-Model  (Read 8347 times)

0 Members and 1 Guest are viewing this topic.

Offline lesabbTopic starter

  • Contributor
  • Posts: 37
LTSpice Component Lib-Model
« on: February 22, 2015, 12:48:40 am »
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...thanks

L   

PS: don't want to put in a voltage source to replace it
 

Offline liquibyte

  • Frequent Contributor
  • **
  • Posts: 475
  • Country: us
Re: LTSpice Component Lib-Model
« Reply #1 on: February 22, 2015, 01:02:44 am »
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.
 

Offline lesabbTopic starter

  • Contributor
  • Posts: 37
Re: LTSpice Component Lib-Model
« Reply #2 on: February 22, 2015, 01:13:14 am »
That's great but not familiar with xreg. Total newbie here. I'll check TI. Thanks
 

Offline liquibyte

  • Frequent Contributor
  • **
  • Posts: 475
  • Country: us
Re: LTSpice Component Lib-Model
« Reply #3 on: February 22, 2015, 01:16:29 am »
Check out http://ltwiki.org/?title=Components_Library_and_Circuits#A_Large_LTspice_Folder_from_Bordodynov as well as the rest of that wiki.  I learned quite a bit from there on how things work.
 

Offline lesabbTopic starter

  • Contributor
  • Posts: 37
Re: LTSpice Component Lib-Model
« Reply #4 on: February 22, 2015, 02:11:15 am »
Thank you! This is great! How do I edit the xreg to get +24V?
 

Offline liquibyte

  • Frequent Contributor
  • **
  • Posts: 475
  • Country: us
Re: LTSpice Component Lib-Model
« Reply #5 on: February 22, 2015, 02:33:32 am »
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.
 

Offline lesabbTopic starter

  • Contributor
  • Posts: 37
Re: LTSpice Component Lib-Model
« Reply #6 on: February 22, 2015, 02:39:37 am »
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
 

Offline liquibyte

  • Frequent Contributor
  • **
  • Posts: 475
  • Country: us
Re: LTSpice Component Lib-Model
« Reply #7 on: February 22, 2015, 03:45:43 am »
OK, you have to install the http://ltwiki.org/files/LargeCollection.zip to 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 [Vreg] (F2, double click [Vreg] 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.
 

Offline lesabbTopic starter

  • Contributor
  • Posts: 37
Re: LTSpice Component Lib-Model
« Reply #8 on: February 22, 2015, 01:11:18 pm »
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.
 

Offline liquibyte

  • Frequent Contributor
  • **
  • Posts: 475
  • Country: us
Re: LTSpice Component Lib-Model
« Reply #9 on: February 22, 2015, 03:07:01 pm »
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.
 

Offline lesabbTopic starter

  • Contributor
  • Posts: 37
Re: LTSpice Component Lib-Model
« Reply #10 on: February 22, 2015, 03:39:06 pm »
Thanks! I found it with nice directives on how to do it properly. Thanks for the help.

L
 

Offline liquibyte

  • Frequent Contributor
  • **
  • Posts: 475
  • Country: us
Re: LTSpice Component Lib-Model
« Reply #11 on: February 22, 2015, 04:15:13 pm »
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 is here and the ones specifically useful to LTSpice are this one and this one.
 

Offline lesabbTopic starter

  • Contributor
  • Posts: 37
Re: LTSpice Component Lib-Model
« Reply #12 on: February 22, 2015, 04:39:47 pm »
Great, this will surely help!
 

Offline Smokey

  • Super Contributor
  • ***
  • Posts: 2650
  • Country: us
  • Not An Expert
Re: LTSpice Component Lib-Model
« Reply #13 on: February 23, 2015, 12:16:04 am »
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.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf