adding mosfet/library to LTspice

Thread Starter

magnet18

Joined Dec 22, 2010
1,227
(I didn't want to hijack the other similar thread)

I'm not all that good with spice yet, I managed to include a diode from an external library a couple weeks ago, but I've since forgotten :p

anyway, I need to use the 3sk136 component from the evalaa.lib here-
http://www.datasheetarchive.com/files/spicemodels/misc/evalaa.lib

and I'm a bit confused because it has both a model and subcircuit portion

I tried copying the all the text from the lib, saving it as a .lib and moving it to /home/robert/.wine/drive_c/Program Files (x86)/LTC/LTspiceIV/lib/sub/
(using wine in linux)

but I couldn't manage to get it to work after a half hour of trying different things


My EE class uses components from this library all the time, is there any way to easily import the whole library?

thanks for the help

edit-
here is the text from the model

*
*$ model description: "awb3sk136"
*b Device model created by analog_uprev for 3sk136 on Wed Mar 28 17:51:02 IST 2001
.subckt awb3sk136 D G S S
+ params:
+ IC_VDS=1.10250E-36
+ IC_VGS=1.10250E-36
+ STATE=1
+ TEMP=0
+ L=1
+ STATE_FACTOR=0
+ LEVEL=1
+ VTO=-0.7462
+ KP=0.0162
+ GAMMA=0.0
+ PHI=.6
+ LAMBDA=56.83E-3
+ RD=0.0
+ RS=88
+ CBD=7.88E-12
+ PB=0.8
+ CGSO=4.97E-12
+ CGDO=0.03E-12
M3sk136_0 D G S S model14 L=.0099 W=1 ic= {UIC(ic_vds)}, {UIC(ic_vgs)}
.model model14 nmos
+ level={LEVEL}
+ vto={VTO}
+ kp={KP}
+ gamma={GAMMA}
+ phi={PHI}
+ lambda={LAMBDA}
+ rd={RD}
+ rs={RS}
+ cbd={CBD}
+ pb={PB}
+ cgso={CGSO}
+ cgdo={CGDO}
+
.ends awb3sk136
*$ end model description: "awb3sk136"

i tried the spice directive .inc evalaa.lib, but still can't find it as a nmos part
 
Last edited:

Thread Starter

magnet18

Joined Dec 22, 2010
1,227
So I opened the library with ltspice and had it autogenerate a component following this video

http://www.linear.com/solutions/1083

and I got a warning when I went to run the analysis-

Rich (BB code):
Circuit: * C:\Program Files (x86)\LTC\LTspiceIV\Draft1.asc

Questionable use of curly braces in "m3sk136_0 d g s s model14 l=.0099 w=1 ic= {uic(ic_vds)}, {uic(ic_vgs)}"
    Error: undefined symbol in: "[uic](ic_vds)"
Questionable use of curly braces in "m3sk136_0 d g s s model14 l=.0099 w=1 ic= (uic(ic_vds)), {uic(ic_vgs)}"
    Error: undefined symbol in: "[uic](ic_vgs)"
Error on line 57 : m:u1:3sk136_0 n003«:d» n002«:g» 0«:s» 0«:s» u1:model14 l=.0099 w=1 ic= (uic(ic_vds)), (uic(ic_vgs))
	No such parameter on this device
Direct Newton iteration for .op point succeeded.

Date: Mon Mar 24 14:37:23 2014
Total elapsed time: 0.088 seconds.

tnom = 27
temp = 27
method = modified trap
totiter = 2566
traniter = 2558
tranpoints = 1143
accept = 1092
rejected = 51
matrix size = 6
fillins = 0
solver = Normal
Matrix Compiler1: 182 bytes object code size  0.4/0.2/[0.2]
Matrix Compiler2: off  [0.1]/0.2/0.2
but, as you can see from the attached screenshot, it still (seems to) work, where did I mess up though?

could someone please help explain what's going on with the models and stuff?
 

Attachments

Thread Starter

magnet18

Joined Dec 22, 2010
1,227
here is the assignment for reference -

edit, sorry wrong format, uploaded this time

also, not due till wednesday, so don't chew me out for waiting till the last minute
 

Attachments

Last edited:
Top