Hobby Electronics Basics LM317 Netlist To Device??

Bookmark this page:  YahooMyWeb Yahoo!  Google Google  Windows Live Favorites Windows Live  del.icio.us del.icio.us  digg digg  Add to Netscape Netscape
Subject Author Date
LM317 Netlist To Device?? Randy Gross 11-15-04
Posted by Randy Gross on November 15, 2004, 10:36 pm
Please log in for more thread options
Greetings,

I'm having more than a problem creating this device, LM317, in
CircuitMaker. When I load the "lm317.net" file into CM, I get this
message: "No Spice Analysis Specified in: lm317.net". OK, so I pull up
the spice data help screen and now I'm totally confused. I gathered
that the " % " sign preceeds the designations but, how do I define it
as a device?

This is my first attempt at creating a device from a netlist so any
guidance in this matter will go a long way in restoring my battered
ego;-)

I've included the LM317 Netlist for examination:

*Netlist
*LM317 TI voltage regulator - pin order: In, Adj, Out
*TI adjustable voltage regulator pkg:TO-3
..SUBCKT LM317 1 2 3
J1 1 3 4 JN
Q2 5 5 6 QPL .1
Q3 5 8 9 QNL .2
Q4 8 5 7 QPL .1
Q5 81 8 3 QNL .2
Q6 3 81 10 QPL .2
Q7 12 81 13 QNL .2
Q8 10 5 11 QPL .2
Q9 14 12 10 QPL .2
Q10 16 5 17 QPL .2
Q11 16 14 15 QNL .2
Q12 3 20 16 QPL .2
Q13 1 19 20 QNL .2
Q14 19 5 18 QPL .2
Q15 3 21 19 QPL .2
Q16 21 22 16 QPL .2
Q17 21 3 24 QNL .2
Q18 22 22 16 QPL .2
Q19 22 3 241 QNL 2
Q20 3 25 16 QPL .2
Q21 25 26 3 QNL .2
Q22A 35 35 1 QPL 2
Q22B 16 35 1 QPL 2
Q23 35 16 30 QNL 2
Q24A 27 40 29 QNL .2
Q24B 27 40 28 QNL .2
Q25 1 31 41 QNL 5
Q26 1 41 32 QNL 50
D1 3 4 DZ
D2 33 1 DZ
D3 29 34 DZ
R1 1 6 310
R2 1 7 310
R3 1 11 190
R4 1 17 82
R5 1 18 5.6K
R6 4 8 100K
R7 8 81 130
R8 10 12 12.4K
R9 9 3 180
R10 13 3 4.1K
R11 14 3 5.8K
R12 15 3 72
R13 20 3 5.1K
R14 2 24 12K
R15 24 241 2.4K
R16 16 25 6.7K
R17 16 40 12K
R18 30 41 130
R19 16 31 370
R20 26 27 13K
R21 27 40 400
R22 3 41 160
R23 33 34 18K
R24 28 29 160
R25 28 32 3
R26 32 3 .1
C1 21 3 30PF
C2 21 2 30PF
C3 25 26 5PF
CBS1 5 3 2PF
CBS2 35 3 1PF
CBS3 22 3 1PF
..MODEL JN NJF(BETA=1E-4 VTO=-7)
..MODEL DZ D(BV=6.3)
..MODEL QNL NPN(EG=1.22 BF=80 RB=100 CCS=1.5PF TF=.3NS TR=6NS CJE=2PF
CJC=1PF VAF=100)
..MODEL QPL PNP(BF=40 RB=20 TF=.6NS TR=10NS CJE=1.5PF CJC=1PF VAF=50)
..ENDS LM317

Randy


Posted by Robert Monsen on November 16, 2004, 10:41 am
Please log in for more thread options
Randy Gross wrote:
> Greetings,
>
> I'm having more than a problem creating this device, LM317, in
> CircuitMaker. When I load the "lm317.net" file into CM, I get this
> message: "No Spice Analysis Specified in: lm317.net". OK, so I pull up
> the spice data help screen and now I'm totally confused. I gathered
> that the " % " sign preceeds the designations but, how do I define it
> as a device?
>
> This is my first attempt at creating a device from a netlist so any
> guidance in this matter will go a long way in restoring my battered
> ego;-)
>
> I've included the LM317 Netlist for examination:
>
> *Netlist
> *LM317 TI voltage regulator - pin order: In, Adj, Out
> *TI adjustable voltage regulator pkg:TO-3
> .SUBCKT LM317 1 2 3
> J1 1 3 4 JN
> Q2 5 5 6 QPL .1
> Q3 5 8 9 QNL .2
> Q4 8 5 7 QPL .1
> Q5 81 8 3 QNL .2
> Q6 3 81 10 QPL .2
> Q7 12 81 13 QNL .2
> Q8 10 5 11 QPL .2
> Q9 14 12 10 QPL .2
> Q10 16 5 17 QPL .2
> Q11 16 14 15 QNL .2
> Q12 3 20 16 QPL .2
> Q13 1 19 20 QNL .2
> Q14 19 5 18 QPL .2
> Q15 3 21 19 QPL .2
> Q16 21 22 16 QPL .2
> Q17 21 3 24 QNL .2
> Q18 22 22 16 QPL .2
> Q19 22 3 241 QNL 2
> Q20 3 25 16 QPL .2
> Q21 25 26 3 QNL .2
> Q22A 35 35 1 QPL 2
> Q22B 16 35 1 QPL 2
> Q23 35 16 30 QNL 2
> Q24A 27 40 29 QNL .2
> Q24B 27 40 28 QNL .2
> Q25 1 31 41 QNL 5
> Q26 1 41 32 QNL 50
> D1 3 4 DZ
> D2 33 1 DZ
> D3 29 34 DZ
> R1 1 6 310
> R2 1 7 310
> R3 1 11 190
> R4 1 17 82
> R5 1 18 5.6K
> R6 4 8 100K
> R7 8 81 130
> R8 10 12 12.4K
> R9 9 3 180
> R10 13 3 4.1K
> R11 14 3 5.8K
> R12 15 3 72
> R13 20 3 5.1K
> R14 2 24 12K
> R15 24 241 2.4K
> R16 16 25 6.7K
> R17 16 40 12K
> R18 30 41 130
> R19 16 31 370
> R20 26 27 13K
> R21 27 40 400
> R22 3 41 160
> R23 33 34 18K
> R24 28 29 160
> R25 28 32 3
> R26 32 3 .1
> C1 21 3 30PF
> C2 21 2 30PF
> C3 25 26 5PF
> CBS1 5 3 2PF
> CBS2 35 3 1PF
> CBS3 22 3 1PF
> .MODEL JN NJF(BETA=1E-4 VTO=-7)
> .MODEL DZ D(BV=6.3)
> .MODEL QNL NPN(EG=1.22 BF=80 RB=100 CCS=1.5PF TF=.3NS TR=6NS CJE=2PF
> CJC=1PF VAF=100)
> .MODEL QPL PNP(BF=40 RB=20 TF=.6NS TR=10NS CJE=1.5PF CJC=1PF VAF=50)
> .ENDS LM317
>
> Randy

Randy:

for an example, look in C:CM06ModelsMCEREGS.LIB

There is already an LM317 which looks identical to the one you are
trying to create.

--
Regards,
Robert Monsen

"Your Highness, I have no need of this hypothesis."
- Pierre Laplace (1749-1827), to Napoleon,
on why his works on celestial mechanics make no mention of God.


Posted by Kevin Aylward on November 16, 2004, 1:48 pm
Please log in for more thread options
Randy Gross wrote:
> Greetings,
>
> I'm having more than a problem creating this device, LM317, in
> CircuitMaker. When I load the "lm317.net" file into CM, I get this
> message: "No Spice Analysis Specified in: lm317.net". OK, so I pull up
> the spice data help screen and now I'm totally confused. I gathered
> that the " % " sign preceeds the designations but, how do I define it
> as a device?
>
> This is my first attempt at creating a device from a netlist so any
> guidance in this matter will go a long way in restoring my battered
> ego;-)

I don't know a lot about CM, but a netlist is the spice netlist, not a
model .subckt specification. You are obviously loading in what CM thinks
is a complete spice netlist that has a full run specified in it. You
need to look at the documentation to find out how to add an actual
*model*. Your problem is that you don't yet know what is what in spice.
A spice netlist tells spice how the circuit is constructed and what to
do with it. A model is a only *part* of a final netlist.

The convention for files with models are .lib, .mod, .sub. The
conventions for spice netlists are .cir and .net.

If it were SuperSpice, it would be a no-brainier. Just drag drop a
model.lib to the main window. The model will show up in the docked list
on the left. When you place it is will pop up a dialog allowing you to
chose an existing symbol to attach to it, if it cant figure it out
itself.

Kevin Aylward
salesEXTRACT@anasoft.co.uk
http://www.anasoft.co.uk
SuperSpice, a very affordable Mixed-Mode
Windows Simulator with Schematic Capture,
Waveform Display, FFT's and Filter Design.




Posted by Chaos Master on November 17, 2004, 3:57 am
Please log in for more thread options
aaawelder@yahoo.com says...
> Greetings,
>
> I'm having more than a problem creating this device, LM317, in
> CircuitMaker. When I load the "lm317.net" file into CM, I get this
> message: "No Spice Analysis Specified in: lm317.net". OK, so I pull up
> the spice data help screen and now I'm totally confused. I gathered
> that the " % " sign preceeds the designations but, how do I define it
> as a device?

IIRC, CircuitMaker already has LM317 symbol/model. Otherwise, you must
create a 'macro' element that refers to your model.

Don't ask me how to do this -- I'm no more a CircuitMaker user.

[]s
--
Chaos Master®, posting from Brazil.
"It's not what it seems, not what you think. No, I must be dreaming."

http://marreka.no-ip.com | http://tinyurl.com/46vru
http://renan182.no-ip.org | http://marreka.blogspot.com (in Portuguese)


Posted by Terry Pinnell on November 17, 2004, 12:52 pm
Please log in for more thread options
aaawelder@yahoo.com (Randy Gross) wrote:

>Greetings,
>
>I'm having more than a problem creating this device, LM317, in
>CircuitMaker. When I load the "lm317.net" file into CM, I get this
>message: "No Spice Analysis Specified in: lm317.net". OK, so I pull up
>the spice data help screen and now I'm totally confused. I gathered
>that the " % " sign preceeds the designations but, how do I define it
>as a device?
>
>This is my first attempt at creating a device from a netlist so any
>guidance in this matter will go a long way in restoring my battered
>ego;-)
>
>I've included the LM317 Netlist for examination:
>
>*Netlist
>*LM317 TI voltage regulator - pin order: In, Adj, Out
>*TI adjustable voltage regulator pkg:TO-3

<snip>

I'm not clear what you are trying to do. Is this possibly a learning
exercise, trying to create a model from scratch, but deliberately
choosing a model that already exists so that you can check the result?
You don't say which version, but from your other thread I assume
you're using CM 6. As Robert has said, the CM 6 library already
contains an LM317, and it has the spec you have listed. But, as
already pointed out, that is the 'model subcircuit data', not the
'netlist'.

--
Terry Pinnell
Hobbyist, West Sussex, UK






Similar ThreadsPosted
LM317 Netlist To Device?? November 15, 2004, 10:36 pm
lm317 help March 14, 2008, 3:21 pm
LM317 schematics October 17, 2008, 9:37 pm
How to wire output on one device to input on another device May 19, 2005, 2:29 pm
LM317 Charger Problem March 15, 2005, 10:02 pm
Power Supply for a LM317 September 18, 2008, 9:24 am
LM317 wrong output voltage September 13, 2004, 6:24 pm
Help with a one shot device March 4, 2005, 1:32 pm
Find uses for this device: May 30, 2005, 12:30 am
under powering a device March 31, 2006, 9:58 pm
Interface device August 15, 2006, 2:20 am
Using a Device with Transformer August 19, 2006, 7:45 pm
An "active" device August 2, 2007, 7:24 pm
load device June 20, 2008, 1:01 am
a 4.5V 1A adapter for a 4.5V 600mA device ? October 4, 2004, 10:14 pm