E
eXnol
Guest
Hi everyone,
Just last day I was searching all over the net to find out how this is done. In order for you to not have the trouble I went through, I am posting it here.
TRYING TO CREATE IRF540N from IRF540N.SPI
This is the process I have used to add .LIB files from ONsemi and .SPI files from IRF into my LTSPICE program.
In case of SPI file just rename it to a LIB file. Then place the LIB file in /SPICE/LIB/sub directory
Select a component file (with extension .asy) that looks like your new one from lib\sym
Lets say nmos.asy
(If you want to place the new component under a new category, create a new Directory here as CATEGORYNAME) and copy the file lib\sym\nmos.asy to lib\sim\CATEGORYNAME\IRF540N.asy
Open 1N5338B.asy in a text editor, and make the following changes:
* change SYMATTR Prefix D to SYMATTR Prefix X
(This says that the model we're using is a .subckt.)
* change SYMATTR Value D to SYMATTR Value IRF540N
(This says that the name that will show up on the schematic is IRF540N.)
* add a line SYMATTR ModelFile IRF540N.LIB
(This says that the name of the file containing the subcircuit we're using is 1N5338B.LIB.)
* add a line SYMATTR SpiceModel IRF540N
Restart LTSpice and you will have the component there.
DERIVED from what was found on this page : **broken link removed**
Just last day I was searching all over the net to find out how this is done. In order for you to not have the trouble I went through, I am posting it here.
TRYING TO CREATE IRF540N from IRF540N.SPI
This is the process I have used to add .LIB files from ONsemi and .SPI files from IRF into my LTSPICE program.
In case of SPI file just rename it to a LIB file. Then place the LIB file in /SPICE/LIB/sub directory
Select a component file (with extension .asy) that looks like your new one from lib\sym
Lets say nmos.asy
(If you want to place the new component under a new category, create a new Directory here as CATEGORYNAME) and copy the file lib\sym\nmos.asy to lib\sim\CATEGORYNAME\IRF540N.asy
Open 1N5338B.asy in a text editor, and make the following changes:
* change SYMATTR Prefix D to SYMATTR Prefix X
(This says that the model we're using is a .subckt.)
* change SYMATTR Value D to SYMATTR Value IRF540N
(This says that the name that will show up on the schematic is IRF540N.)
* add a line SYMATTR ModelFile IRF540N.LIB
(This says that the name of the file containing the subcircuit we're using is 1N5338B.LIB.)
* add a line SYMATTR SpiceModel IRF540N
Restart LTSpice and you will have the component there.
DERIVED from what was found on this page : **broken link removed**