¿ªÔÆÌåÓý

Implementing BSS138 spice model


 

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


 

--- 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:&#92;program files&#92;LTC&#92;LTspiceIV&#92;lib&#92;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


 

--- 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:&#92;program files&#92;LTC&#92;LTspiceIV&#92;lib&#92;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


Tony Casey
 

--- In LTspice@..., "pindsen" <windven@...> wrote:



--- 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:&#92;program files&#92;LTC&#92;LTspiceIV&#92;lib&#92;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
Hello Carsten,

The X prefix tells the SPICE netlister that the device is represented by a subcircuit, and not an intrinsic model.

If the subcircuit is placed in the same directory as the schematic, then the include line is simply:
.inc subcircuitfilename.ext

Regards,
Tony


 

--- In LTspice@..., "Tony Casey" <tony@...> wrote:



--- In LTspice@..., "pindsen" <windven@> wrote:



--- 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:&#92;program files&#92;LTC&#92;LTspiceIV&#92;lib&#92;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
Hello Carsten,

The X prefix tells the SPICE netlister that the device is represented by a subcircuit, and not an intrinsic model.

If the subcircuit is placed in the same directory as the schematic, then the include line is simply:
.inc subcircuitfilename.ext

Regards,
Tony
Hi Tony and others,
Three more questions:
1) If prefix for an nmos.asy symbol is stated as MN, what does that mean?
2) Could you also try to explain what an intrinsic model is, I don't think I exactly understand that?
3) Is it possible to place a model elsewhere than under the &#92;lib&#92;sub folder or schematic folder besides from an website?

Regards
Carsten


Tony Casey
 

<snip>
Hi Tony and others,
Three more questions:
1) If prefix for an nmos.asy symbol is stated as MN, what does that mean?
2) Could you also try to explain what an intrinsic model is, I don't think I exactly understand that?
3) Is it possible to place a model elsewhere than under the &#92;lib&#92;sub folder or schematic folder besides from an website?

Regards
Carsten
</snip>
Hello Carsten,

1. The MN prefix tells SPICE that the device is an N-channel MOSFET.
2. An intrinsic device is a fancy name for a circuit element that is built in to the SPICE code. Please read the LTspice>Circuit Elements section of the Help for a complete list.
3. It is frequently recommended to avoid placing any user files in any part of installation tree, particularly if you expect to have to share simulation files with co-workers etc (it may also be overwritten in an update if Mike introduces a file of the same name - unlikely, but possible). This is because you cannot everyone else will have the same files there; you should only assume they will have the installation defaults. The advice is therefore to place any user files (.models, subcircuits, .meas scripts) in the folder containing the top level schematic. LTspice will always find them there. In principle, you can place a model anywhere if you provide an absolute path to the file in the .inc statement, but it's asking for trouble. Nevertheless, people continue to ignore the advice.

Regards,
Tony


 

--- In LTspice@..., "Tony Casey" <tony@...> wrote:

<snip>
Hi Tony and others,
Three more questions:
1) If prefix for an nmos.asy symbol is stated as MN, what does that mean?
2) Could you also try to explain what an intrinsic model is, I don't think I exactly understand that?
3) Is it possible to place a model elsewhere than under the &#92;lib&#92;sub folder or schematic folder besides from an website?

Regards
Carsten
</snip>
Hello Carsten,

1. The MN prefix tells SPICE that the device is an N-channel MOSFET.
2. An intrinsic device is a fancy name for a circuit element that is built in to the SPICE code. Please read the LTspice>Circuit Elements section of the Help for a complete list.
3. It is frequently recommended to avoid placing any user files in any part of installation tree, particularly if you expect to have to share simulation files with co-workers etc (it may also be overwritten in an update if Mike introduces a file of the same name - unlikely, but possible). This is because you cannot everyone else will have the same files there; you should only assume they will have the installation defaults. The advice is therefore to place any user files (.models, subcircuits, .meas scripts) in the folder containing the top level schematic. LTspice will always find them there. In principle, you can place a model anywhere if you provide an absolute path to the file in the .inc statement, but it's asking for trouble. Nevertheless, people continue to ignore the advice.

Regards,
Tony
Hi Tony,
Thank you for your fine and quick answer. I don't have any further questions, I think I understand :-).
Regards
Carsten