Add To Library Lt Spice

Adding SPICE Models from Manufacturers

The websites of manufacturers are often great resources for additional SPICE models that can be used in Micro-Cap. For importing models into Micro-Cap, the Component Editor provides two wizards, the Import Wizard and the Add Part Wizard, or the user may also add the model manually. The Import Wizard provides the simplest route to importing models and will be the method desribed in this article. For information about the other two methods, reference the Working with Subcircuits chapter in the User's Guide. For this article, three models were downloaded from the internet and placed in a text file called Vendor.lib. Typically, a model file downloaded from the internet can be used directly with the Import Wizard. The Vendor.lib file was created to demonstrate the three possible outcomes that can occur when using the Import Wizard. The three models in the Vendor.lib file are:
AD827 (Analog Devices) - High speed, low power opamp
AD8145 (Analog Devices) - High speed, differential receiver
IRFE330 (International Rectifier) - 400V N-Channel MOSFET
The recommended location to place the downloaded file is the LIBRARY folder under the main Micro-Cap folder. The recommended extension of the file is .LIB. Neither of these are requirements though. Once the file is on the hard drive, the first step in importing the models is to access the Component Editor under the Windows menu. The Component Editor manages all of the circuit components used in the schematics.
In the Component Editor, select the group that you want to import these parts into. The component tree on the right hand side of the Component Editor sets the structure of the Component menu in the schematic editor. Double click on a group name to open or close the group. The Add Group icon can also be used to add a new group to the tree. Highlight the group name that the parts should be in. Then invoke the Import Wizard by clicking on the following icon in the Component Editor toolbar.
The first page in the Import Wizard is the File page which is shown below. This page specifies the library file that contains the models to be imported. The Browse button lets you browse through the hard drive to locate the library. In addition, an option called 'Copy the above file to the library directory' is available. When enabled, this option will copy the library file into the specified path. This option is useful in relocating the library file to the defined library path if it was downloaded into a different folder. Once the library file has been selected, click Next.

Hi can anyone point me to the link for 180nm nmos/pmos model for LTSpice. I am trying to simulate an inverter for 180nm technology and I cant find the 180nm library anywhere.

The next page in the Import Wizard is the Suffix page which is shown below. This page specifies an optional suffix that can be added to all of the subcircuit names within the library file. To add a suffix, enter a string in the 'Suffix to Append to SUBCKT names' field and then click the Append button. This will rewrite all of the subcircuit names in the library file to include this suffix. Note that upon clicking Append, the library file is modified and saved to the hard drive. If the wizard operation is later cancelled, the library file will still contain the modified subcircuit names. An appended suffix can be useful when trying to import a model that has the same name as one that already exists in the component library. The Import Wizard only imports models that have a name that does not exist in the component library and adding a suffix will let the wizard import the model. In most cases, no suffix is needed and this page can be ignored as it will be in this example. Click Next.
  • LTspice IV is a free, high-performance, SPICE simulator software by Linear Technology which is widely used in the industry. The Wurth Electronics Midcom libraries contain LTspice models for over 650 of our power transformers, including designs for lighting and metering applications, PoE and PoE+, isolated DC/DC converters, flyback and offline.
  • AUIR0815S Library AUIR0815STR Library IPS1011 Library IPS1011PBF Library IPS1011R Library IPS1011RPBF Library IPS1011RTRL Library IPS1011RTRR Library.
  • Inside C: Program Files LTC LTspiceIV lib will be three more folders, cmp, sub and sym. It is a good idea to bookmark this location for future use. Click Favorites and add a suitable name. To add for example the CMOS4000 library, download the files CD4000.lib and CD4000.zip.

After the Suffix page, the wizard starts the process of importing all unique models from the library file. Micro-Cap will compare the part(s) in the library to the existing parts in the Component Editor. For subcircuits, it compares both the amount of pins defined within the model along with the names of those pins to all existing subcircuit entries. There are three possibilities that can occur with each model in the library file. If it finds a single match, it will automatically add the part using the template of that match. If it finds no matches, it will place the part in the library with a generic template along with a designation that the part needs more work. If it finds multiple matches, a list of all of the available matches is then shown, and the template that is most applicable to the specified model can then be selected by the user. In addition to the list of matching templates, a second dialog box will also be invoked that displays the netlist of the model being imported. This netlist can often be useful in deciding which of the listed templates provides the best match. In this example, multiple matches are found for the IRFE330 device. The following two dialog boxes are then displayed.


Since the IRFE330 is an N-Channel MOSFET, the template based on the 2N6782 model which uses a DNMOS shape is selected. Clicking OK imports the IRFE330 using the same shapes and pin configuration as the 2N6782 device in the component library. Clicking Cancel will skip this component in the import process.
Once all of the models in the library file have been processed, the Import Status page below will be displayed which lists the results of the Import Wizard operation.
Add

The top section of the status listing describes the results for each individual model in the library file. For the AD827 model, a single match was found and the part has been imported in using a template defined by the AD645_AD component. For the AD8145 model, no match was found and the part has been imported in using a generic template. Note that this part has been flagged with a Needs Work label. For the IRFE330 model, the part has been imported in using a template defined by the 2N6782_IR component which was selected in a prior step.
The bottom section of the status listing describes the total results for the library file. In this case, three subcircuit models were found in the file, and all three were imported. Click Finish to complete the import process.
The parts will now be available in the Component Editor within the group that was selected when the Import Wizard was launched. Double check the parts to make sure the shape and the pin connections are correct. Highlight a part and then click on the Info icon in the toolbar. This will display the SPICE listing for the device which usually contains comments on the pin functions. Drag on the red dots to move the pin connections around as needed. At this point, you can edit the component just like any others in the Component Editor. For this example, the AD827 and IRFE330 need no additional work. The AD8145, which states Needs Work next to the component name in the tree to the right, needs a shape assigned and pins moved to the appropriate locations. Selecting a shape such as Opamp7d and then dragging the pin connections to the ends of the appropriate leads completes the importation of the AD8145.
Return to the main Newsletter page

For all of these components, place the subcircuit and the component in their respective folders, then restart LTspice. The component will then show up as a menu selection.

An LTspice Standard Library Replacement

The whole library replacement / addition as one zip file Place in libcmp as a replacement, or carefully extract what you need (Suggested)

Browse or Search on what is in this zip file, and extract what you need
standard.bjt
standard.dio
standard.jft
standard.mos

A Large LTspice Folder from Bordodynov


Bordodynov has kindly shared his entire LTspice folder with tons of parts and examples.
The whole library replacement with additions plus tons of examples as one zip file - about 33 MEG.
See Screen Shot of files removed from the collection containing AEI SPICE Models
These AEI models were removed because of possible copyright violations. However, search on the internet for these models. They are available.
For example AD8331 models are Available HEREAD8332 hereAD8099 hereMC34063 here

This entire zip file has been expanded so you can view the contents, and it will be available to search engines.
You start by opening folders here:
LTspiceIV-library (Directory Style - Drill Down)
LTspiceIV-examples (Directory Style - Drill Down)
Vendor_List (Directory Style - Drill Down)
Mixed_Part_List (Directory Style - Drill Down)

A note on portability of these 'permanent' LTspice Components:

Many comments are made about the lack of portability of creating these permanent parts in LTspice. The approach preferred by most is to include the symbols and SPICE models directly in the folder of the schematic you are testing. PLEASE NOTE that using this method to create permanent LTspice models does not prevent this portability! Create your permanent part, or add the parts from the list below. When you share this schematic with others, or use it on a computer that does not have this component, just copy the 'asy' file and its associated SPICE reference to the 'asc' file you are providing to the foreign computer.

In this way, you can have the best of both worlds: You can build up a permanent library of useful parts, immediately accessible when you create a circuit AND you have portability!

CFL Circuit

Library

13 Watt 120 VAC Compact Fluorescent

Entire Zip file unzip to its own folder(hierarchical example).
Files Below - Click to view as text, Right Click and Save As to download individually.
CFL.asy
CFL.lib
GE13W120V_CFL.asc
winding.asy
Xfrmr.lib
A good study of the CFL, and excellent use of good layout technique and use of LTspice. Thanks a.s.
Some explanation:Before the arc strikes the series resonant circuit is nearly unloaded and, if the arc did not start, would gradually climb in voltage to whatever the open circuit Q of the resonant tank is times the input voltage. This could take quite a few cycles at the resonant frequency. Q will be limited by the loss in the end electrode heater windings and the resonant inductor. This sort of start does not immediately jump to a high voltage.

The conductivity of the CFL depends on the level of ionization of the gas in the tube, which in turn depends on the power per unit length of arc. As the current increases, heating and ionization builds, leading to a thicker, lower resistance arc. This is why the arc exhibits a negative incremental resistance -- increased current leads to a larger diameter arc.

However, at some point, the narrow cross section of the CFL tube limits further conductivity modulation, leading to saturation and to the arc voltage increasing rather than decreasing with increasing current (positive resistance). I would guess that this effect occurs only at damaging levels of current, but that is only a guess.

End effects, cathode fall (larger) and anode fall (smaller) tend to be quasi-fixed voltages that don't depend too much on current in the normal operating range.

Arc conductivity depends on ionization, which depends on average power input. The simplest model for this is to low pass a behavioral source set up with its output proportional to arc power. Note that this thermal averaging effect is what is responsible the arc appearing as a positive resistance at high frequency (the ions stay hot and conductive for a while even if the current goes to zero).

Comparators

LM339

File:LM339.sub LM339 subcircuit. Place in libsub
File:LM339.asy LM339 component. Place in libsymComparators
File:LM339 test.asc Test circuit using the native LM339. You may want to use the alternate solver.
Datasheet

Diodes

Leaky Schottky Diode BAR43

Leaky Diode Model for LTspice Right Click and Save As to download
Datasheet for BAR43

The model in the zip file is for the BAR43 Schottky Diode, but also shows the use of temperature dependence of reverse leakage, and fairly well follows the datasheet.

Soft Recovery Diode

Soft Diode Model for LTspice Right Click and Save As to download

MOSFET Drivers

VOM1271

File:VOM1271.sub VOM1271 Photovoltaic MOSFET Driver model subcircuit. Place in libsub or in your subdirectory

NMOS

2N7002

File:2N7002.sub 2N7002 subcircuit. Place in libsub
File:2N7002.asy 2N7002 component. Place in libsymnmos
File:2N7002 test.asc Test circuit using the native 2N7002 You may want to use the alternate solver
Datasheet

BS170

IRFB4110pbf

IRFB4110 subcircuit Place in libsub
File:IRFB4110pbf.asy IRFB4110 component. Place in libsymnmos
File:Irfb4110 test.asc Test circuit using the native IRFB4110. You may want to use the alternate solver.
Datasheet

IRLR3110

IRLR3110 subcircuit Place in libsub
File:IRLR3110.asy IRLR3110 component. Place in libsymnmos
File:Irlr3110 test.asc Test circuit using the native IRLR3110. You may want to use the alternate solver.
Datasheet

MGSF2N02ELT1

MGSF2N02ELT1 subcircuit Place in libsub
File:MGSF2N02ELT1.asy MGSF2N02ELT1 component. Place in libsymNMOS
File:MGSF2N02ELT1 test.asc Test circuit using the native MGSF2N02ELT1. You may want to use the alternate solver.
Datasheet

NPN Darlington

TIP142

File:TIP142.sub TIP142 subcircuit. Place in libsub
File:TIP142.asy TIP142 symbol. Place in libsymDarlington
File:TIP142-test.asc Test circuit using the native TIP142
DatasheetAdapted from Yahoo LTspice Group Message 28586

Opamps

LM2902 - National Semiconductor

LM324 - National Semiconductor

LM324 subcircuit Place in libsub
File:LM324-national.asy LM324/NS component. Place in libsymOpamps
File:LM324-national test.asc Test circuit using the native LM324. You may want to use the alternate solver.
Datasheet

LM6132A - National Semiconductor

File:LM6132A.MOD LM6132A subcircuit. Place in libsub
File:LM6132A-national.asy LM6132A/NS component. Place in libsymOpamps
File:LM6132A test.asc Test circuit using the native LM6132A. You may want to use the alternate solver.
Datasheet

LMH6642 - National Semiconductor

Add To Library Lt Spice

File:LMH6642.MOD LMH6642 subcircuit. Place in libsub
File:LMH6642.asy LMH6642 symbol. Place in libsymOpamps
File:LMH6642 test native.asc Test circuit using the native LMH6642. You may want to use the alternate solver.
Datasheet

THS4131

THS4131 subcircuit Extract ths4131.txt & place in libsub
File:THS4131.asy THS4131 component. Place in libsymOpamps
File:THS4131 test1.asc THS4131 test circuit, using native THS4131
Datasheet Original files created by Helmut Sennewald at [1].

TL072

File:TL072.sub TL072 subcircuit. Place in libsub
File:TL072.asy TL072 component. Place in libsymOpamps
File:Pweoverdrivepreamp2.asc Overdrive Preamp circuit, using native TL072
Datasheet Original files adapted from [2].

PMOS

BS250

Si7489DP

File:Si7489dp.sub Si7489DP subcircuit. Place in libsub
File:Si7489.asy Si7489DP symbol. Place in libsymPMOS
File:Test-Si7489.asc Test circuit using the native Si7489DP. You may want to use the alternate solver
Datasheet

SiA431DJ

File:SiA431DJ.sub SiA431DJ subcircuit. Place in libsub
File:SiA431DJ.asy SiA431DJ symbol. Place in libsymPMOS
File:Test-Sia413dj.asc Test circuit using the native SiA431DJ. You may want to use the alternate solver
Datasheet

Add

PNP Darlington

TIP127

File:TIP127.sub TIP127 subcircuit. Place in libsub
File:TIP127.asy TIP127 symbol. Place in libsymDarlington
File:TIP127-test.asc Test circuit using the native TIP127
Datasheet

Power Factor Corrector

UC3853

UC3853 subcircuit Place in folder of circuit file (hierarchical example).
File:UC3853.asy UC3853 symbol Place in folder of circuit file.
File:UC3853.asc UC3853 hierarchical subcircuit Place in folder of circuit file.
File:UC3853 Test.asc UC3853 test circuit.
Above files in one download
Datasheet
Great example creating a model from spec sheets (courtesy of analogspiceman)

Solar Panel Subcircuit

2 cell solar panel complete with test circuit

Voltage Regulators

Ltspice Add Library

TL431

File:TL431.sub TL431 subcircuit. Place in libsub
File:TL431.asy TL431 component. Place in libsymVoltage Regulators
File:TL431 test.asc Test circuit using the native TL431
Datasheet

Add Spice Library To Ltspice

An excellent TL431 model, with comparisons to other models
TL431.zip - an improved model for TL431
See a useful discussion here, 'Realistic SPICE model for TL431'.

Compilation

NEW UPDATED VERSIONLtSpiceIV_Plus_12_2009.exe
LTspicePlus_10_08.exe
Roberto Hugo Rodríguez Zubieta in 2005 created this executable, that provides a large number of extra components. First, backup your existing /lib/cmp directory at a minimum, and you may find it easy to just zip your entire /lib directory down. This executable will overwrite /Lib/Cmp with many more components that is based a dated version of the LTspice originals. The existing files are put into a folder /Lib/Cmp/Original. The dated version is not a problem. From LTspice, under 'Tools', selecting 'Sync Release' will restore all of the new models in the latest libs from LTspice. (At least every one I could see, using a Diff program.) Plus now you have many more.

The rest includes more than 90 files in the format *. sub, to denote that they contain subcircuits of devices or *. lib, for the files that contain families of components. This information is added to the folder /sub and it doesn't overwrite any original data. To the folder /sym is added several subfolders with files corresponding to more than 400 symbols.

Add To Library Lt Spices

In the folder examplesLtSpicePlus, there are more of 600 clever examples to be run, these are mainly in format *. asc, although there are also some few ones in format *. cir; plus in this collection there are also near 100 symbols in format *. asy.

The install is in Spanish! The product result is in English. If you come across some 'Replace' options, etc, be prepared to Google some Spanish words to make sure you know what you are selecting. It's a 3.5MEG download.

If you don't speak Spanish, try those instructions:

  • say 'Aceptar' (Accept).
  • Point the 'Carpeta de Destino' (Destiny Folder) parameter at your LTSpice install-folder, normally it is C:Program FilesLTCLTSpice IV, but it will vary (e.g. in a Portuguese version of Windows it will be 'C:Arquivos de Programas'...).
  • If it complains about 'Los siguinentes ficheros ya existen' (The following files already exist), choose what you consider to be most adequate: Sí/No (Yes/No), 'Sí a todo/No a todo' (Yes to replace all/Replace nothing at all) or 'Renombrar' (Rename). It's your choice, I'd say 'yes' after checking if filesizes are similar (i.e. a library you already have).
  • The extraction will run, it takes a while (lots of files). If finishes correctly and doesn't give any error, probably all went well, try some examples just to be sure.

Roberto has Spanish documentation and tutorials using LTspice at Precisión, guía para desarrollos con Ltspice.

Add To Library Lt Spicewood

Someone wants to build an updated version of this? Contact Roberto: precisionorte -at- gmail.com and he can help get you started.

Retrieved from 'http://ltwiki.org/index.php?title=Components_Library_and_Circuits&oldid=1708'