Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > General Electronics Chat


General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion?

Reply
 
LinkBack Thread Tools Display Modes
Old 8th August 2006, 01:07 PM   (permalink)
Default Lt spice model for an LM317

I've had a look around the web and havn't been able to find an Lt spice model for LM317

does anyone have a model for lm317 or any suggestions for where I might find one?
user1453 is offline  
Old 8th August 2006, 01:41 PM   (permalink)
Default

Did you try the LTSpice Yahoo Group?
Papabravo is offline  
Old 8th August 2006, 04:11 PM   (permalink)
Default

Quote:
Originally Posted by user1453
I've had a look around the web and havn't been able to find an Lt spice model for LM317

does anyone have a model for lm317 or any suggestions for where I might find one?
Here ya go. Unzip this file. Save LM317.sub to the SUB folder in LIB. Save LM317.asy to the MISC folder, which is under the SYM folder in LIB.
Attached Files
File Type: zip lm317.zip (1.1 KB, 164 views)
__________________
Ron

Roff is offline  
Old 8th August 2006, 04:15 PM   (permalink)
Default

thanks alot it worked
user1453 is offline  
Old 29th December 2008, 04:02 PM   (permalink)
Default

Does any one have a model for the LM337?

If not is it possible to modify this model so it behaves like an LM337?

Could I just swap the NPN and PNP transistors and diodes over?

Sorry for bumping such an old thread, I just thought it would be easier to post in this one rather creating a new thread.
__________________
I also post at the following sites:
http://www.stop-microsoft.org http://www.heated-debates.com
Screen name: Aloone_Jonez
And http://www.silicontronics.com, same screen name as here.
Hero999 is offline  
Old 29th December 2008, 04:40 PM   (permalink)
Default

I have this. I don't know if it works.
Code:
*
*LM337 negative voltage regulator
*Connections   Input Adj. Output
.subckt LM337   8       1      19
.MODEL QN NPN (BF=50 TF=1N CJC=1P)
.MODEL QPOUT PNP (BF=50 TF=1N RE=.2 CJC=1P)
.MODEL QP PNP CJC=1P TF=2N
.MODEL DN D
.MODEL D2 D BV=12 IBV=100U
R10 25 6 1K
Q3 8 17 16 QPOUT
Q4 8 25 17 QP
R18 19 17 250
R19 19 16 .3
G1 8 6 1 18 .1
C7 6 2 .04U
R24 2 8 100
I_ADJ 0 1 65U
R26 8 25 200K
Q5 25 4 19 QP
R27 16 4 200
R28 7 4 7K
D1 8 7 D2
D2 8 6 DN
V1 18 19 1.25
.ENDS
__________________
Ron

Roff is offline  
Old 30th December 2008, 12:38 AM   (permalink)
Default

I'm having problems getting this to work. I think it's me not knowing what I'm doing.

Does this part mean, Input = pin 8, Adj = pin 1 and output = pin 14?
Code:
*Connections   Input Adj. Output
.subckt LM337   8       1      19
I've tried using the 20 pin symbol and it didn't work, I tried using my a modified version of the LM317 symbol and it didn't work.

EDIT:
I've edited it again so it looks the same as the LM317 and it works, so what do those numbers mean?
__________________
I also post at the following sites:
http://www.stop-microsoft.org http://www.heated-debates.com
Screen name: Aloone_Jonez
And http://www.silicontronics.com, same screen name as here.

Last edited by Hero999; 30th December 2008 at 12:45 AM.
Hero999 is offline  
Old 30th December 2008, 02:14 AM   (permalink)
Default

Quote:
Originally Posted by Hero999 View Post
I'm having problems getting this to work. I think it's me not knowing what I'm doing.

Does this part mean, Input = pin 8, Adj = pin 1 and output = pin 14?
Code:
*Connections   Input Adj. Output
.subckt LM337   8       1      19
I've tried using the 20 pin symbol and it didn't work, I tried using my a modified version of the LM317 symbol and it didn't work.

EDIT:
I've edited it again so it looks the same as the LM317 and it works, so what do those numbers mean?
8 1 19 are the numbers of the input, adj, and output, respectively, in the subcircuit netlist. The numbers have no significance. They could have been called manny, moe, and jack, as long as they had the same names in the netlist. What is important is their order. The order corresponds to the PinName and SpiceOrder lines in the .asy file. I have a generic DIP3 symbol (DIP3.asy) that I can use for LM337. LTspice assigns node 8 to pin 1, node 1 to pin 2, and node 19 to pin 3 in that symbol.
I have an LM317 symbol that I (think I) created. I could adapt it to LM337, but have not done so.
__________________
Ron


Last edited by Roff; 30th December 2008 at 02:15 AM.
Roff is offline  
Old 30th December 2008, 02:58 PM   (permalink)
Default

Here are my LM317 and LM337 symbols.

They're edited versions of your symbol but I added text as I want to use them both in the same circuit and it's less confusing this way.

Thanks to you, the LM337 works now.

Code:
Version 4
SymbolType CELL
RECTANGLE Normal 64 48 -64 -48
TEXT 0 -29 Center 0 LM317
SYMATTR Value LM317
SYMATTR Prefix X
SYMATTR Value2 LM317
SYMATTR Description LM317 voltage regulator
SYMATTR ModelFile LM317.sub
PIN -64 0 LEFT 8
PINATTR PinName IN
PINATTR SpiceOrder 1
PIN 0 48 BOTTOM 8
PINATTR PinName ADJ
PINATTR SpiceOrder 2
PIN 64 0 RIGHT 8
PINATTR PinName OUT
PINATTR SpiceOrder 3
Code:
Version 4
SymbolType CELL
RECTANGLE Normal 64 48 -64 -48
TEXT 0 -29 Center 0 LM337
SYMATTR Value LM337
SYMATTR Prefix X
SYMATTR Value2 LM337
SYMATTR Description LM317 voltage regulator
SYMATTR ModelFile LM337.sub
PIN -64 0 LEFT 8
PINATTR PinName IN
PINATTR SpiceOrder 1
PIN 0 48 BOTTOM 8
PINATTR PinName ADJ
PINATTR SpiceOrder 2
PIN 64 0 RIGHT 8
PINATTR PinName OUT
PINATTR SpiceOrder 3
__________________
I also post at the following sites:
http://www.stop-microsoft.org http://www.heated-debates.com
Screen name: Aloone_Jonez
And http://www.silicontronics.com, same screen name as here.
Hero999 is offline  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 10:37 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

eXTReMe Tracker