adding mosfet/library to LTspice

Discussion in 'Homework Help' started by magnet18, Mar 24, 2014.

  1. magnet18

    Thread Starter Senior Member

    Dec 22, 2010
    1,232
    124
    (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: Mar 24, 2014
  2. magnet18

    Thread Starter Senior Member

    Dec 22, 2010
    1,232
    124
    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-

    Code ( (Unknown Language)):
    1. Circuit: * C:\Program Files (x86)\LTC\LTspiceIV\Draft1.asc
    2.  
    3. Questionable use of curly braces in "m3sk136_0 d g s s model14 l=.0099 w=1 ic= {uic(ic_vds)}, {uic(ic_vgs)}"
    4.     Error: undefined symbol in: "[uic](ic_vds)"
    5. Questionable use of curly braces in "m3sk136_0 d g s s model14 l=.0099 w=1 ic= (uic(ic_vds)), {uic(ic_vgs)}"
    6.     Error: undefined symbol in: "[uic](ic_vgs)"
    7. 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))
    8.     No such parameter on this device
    9. Direct Newton iteration for .op point succeeded.
    10.  
    11. Date: Mon Mar 24 14:37:23 2014
    12. Total elapsed time: 0.088 seconds.
    13.  
    14. tnom = 27
    15. temp = 27
    16. method = modified trap
    17. totiter = 2566
    18. traniter = 2558
    19. tranpoints = 1143
    20. accept = 1092
    21. rejected = 51
    22. matrix size = 6
    23. fillins = 0
    24. solver = Normal
    25. Matrix Compiler1: 182 bytes object code size  0.4/0.2/[0.2]
    26. Matrix Compiler2: off  [0.1]/0.2/0.2
    27.  
    28.  
    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?
     
  3. magnet18

    Thread Starter Senior Member

    Dec 22, 2010
    1,232
    124
    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
     
    Last edited: Mar 24, 2014
Loading...