--- In LTspice@..., "Helmut" <helmutsennewald@...> wrote:
--- In LTspice@..., "pindsen" <windven@> wrote:
Hi,
I need an BSS138 in my LTSpice simulation.
Since I can't find that component in the program itself, I need to make it.
I have done the following steps but LTspice won't simulate:
1) Downloaded a Zetex BSS138 spice subcircuit and placed it in a "BSS138.sub" file
2) The spice file is placed in c:\program files\LTC\LTspiceIV\lib\sub
3) Included a nmos symbol (nmos.asy) in the design
4) Renamed the symbol to BSS138/ZTX
5) Add a spice directive command ".inc BSS138.sub"
6) Hit the run button
7) LTspice can't simulate and says "Can't find definition of model "bss138".
The Zetex spice model can be seen here:
*ZETEX BSS138 Spice Mosfet Subcircuit Last revision 11/91
*
.SUBCKT BSS138/ZTX 3 4 5
* Nodes D G S
M1 3 2 5 5 MOD1
RG 4 2 343
RL 3 5 6E6
D1 5 3 DIODE1
.MODEL MOD1 NMOS VTO=1.109 RS=1.474 RD=1.59 IS=1E-15 KP=0.597
+CGSO=23.5P CGDO=4.5P CBD=53.5P PB=1 LAMBDA=267E-6
.MODEL DIODE1 D IS=1.254E-13 N=1.0207 RS=0.222
.ENDS
Can anyone help?
Best regards
Carsten Wind
Denmark
Hello Carsten,
4a)
Ctrl-right-mouse-click on the placed symbol nmos.
Change Prefix:MN to Prefix:X
2) I always recommend to save model files in the folder of the
schematic.
Best regards,
Helmut
Hello Helmut,
Thanx for your answer.
I did what you proposed in 4a) and it worked :-) But what does it do? What is Prefix and what does a change from MN to X do?
Then, how should the .include statement look like if the model files is placed in the folder of the schematic?
Best regards
Carsten Wind