Simulation · LTspice · Tutorial

Creating an LTspice model from a PSpice or TINA-TI model

A step by step guide to importing manufacturer models into LTspice, and making the result portable so you can share a simulation.

LTspice is a SPICE based analogue circuit simulator from Analog Devices (originally Linear Technology), and the most widely used SPICE software in the industry. It is free and ships with many models, but those are either generic or specific to Analog Devices parts. For anything else, you need to import the manufacturer’s model.

This guide covers importing PSpice and TINA-TI models. If the model contains a .SUBCKT definition, the import is straightforward.

Importing from PSpice

This is the easier of the two.

  1. Download the PSpice model from the manufacturer’s website. We use the TI TMUX6212 as the example.

    The PSpice model download on the manufacturer’s product page

  2. The download contains several files. The only one you need is the .lib file, here TMUX6212.lib.

    The files inside the downloaded model archive

  3. Open the .lib file in LTspice.

    The model file opened in LTspice

  4. Select the component name next to .SUBCKT.

    The component name selected next to .SUBCKT

  5. Right click and choose Create Symbol.

    The right click menu with Create Symbol

  6. Click Yes.

    LTspice asking whether to create a symbol for the subcircuit

  7. LTspice generates the symbol, with a .asy extension, in its AutoGenerated folder (for example C:\Users\user\Documents\LTspiceXVII\lib\sym\AutoGenerated; the path depends on your settings).

    The generated symbol

  8. Rearrange the pins if you like, and save the symbol.

  9. Add the symbol to your schematic from the component library. Test the model before relying on it; for this part, simple checks of the logic, switching and power rails are a good start, and you can go further with resistance and bandwidth.

    The component library dialog

    The AutoGenerated folder in the component library

    The symbol placed on a schematic

Importing from TINA-TI

You will need TINA-TI installed.

  1. Product pages often offer a TINA-TI reference design to download. We use the MUX36D04 as the example.

    The TINA-TI reference design download on the product page

  2. The download gives you sbom969a.tsc. Open it in TINA-TI.

    The reference design opened in TINA-TI

  3. Right click the model and choose Enter Macro.

    The right click menu with Enter Macro

  4. The macro file opens. Use Save As to create a .cir file.

    The macro file in TINA-TI

  5. Open the .cir file in LTspice.

    The .cir file opened in LTspice

  6. Select the component name next to .SUBCKT, right click and choose Create Symbol.

    The right click menu with Create Symbol

  7. Click Yes.

    LTspice asking whether to create a symbol for the subcircuit

  8. LTspice generates the .asy symbol in the AutoGenerated folder, as before.

    The generated symbol

  9. Rearrange the pins if you like, save, then add the symbol to your schematic and test it.

    The component library dialog

Making the model portable

Sometimes you want to share a simulation, and the absolute path to the model gets in the way.

  1. Import the model using either method above.

  2. Open the symbol file from the AutoGenerated folder in a text editor.

  3. Remove the absolute path from the model file line. In our example it becomes SYMATTR ModelFile TMUX6212.lib.

    The symbol file with the absolute model path highlighted

  4. The symbol now looks for the model in its own folder. Copy the model file (.lib or .cir, depending on where it came from) next to the symbol.

  5. Keep the schematic, symbol and model file in the same folder. By default the LTspice component dialog only shows two places: your schematic’s folder and the installed component library.

    The component dialog showing the symbol in the schematic’s folder

We hope this helps with your simulations.

Sources: LTspice, Analog Devices; LTspice XVII introduction, LTwiki.

Have a design challenge?