Thesis Pte Ltd

Thesis logo
icon
icon

One thesis

Copyright © 2022 Thesis Pte. Ltd. All Rights Reserved

OFFICE

34 Boon Leat Terrace #04-09A Singapore 119866

GET IN TOUCH

One thesis

Copyright © 2022 Thesis Pte. Ltd. All Rights Reserved

Blog

How to create an LTspice model from PSpice or Tina-TI model?

December 17, 2022
2 Mins read

LTspice is a SPICE-based analogue electronic circuit simulator computer software produced by semiconductor manufacturer Analog Devices (originally by Linear Technology).[1] It is the most widely distributed and used SPICE software in the industry.[2] Although LTspice is a great free-to-use SPICE software with many built-in models, the models are either generic models or Analog Devices specific components. You will need to import other manufacturers' models into LTspice. In this post, I will discuss the import of the TINA-TI or PSpice model. If the model contains “SUBCKT”, you can easily do it. 

Importing from PSpice

This import method is the easiest. Let’s follow the following steps:

  1. Download the PSpice model from the manufacturer’s website. For this post, I will use TMUX6212 as an example.
  2. You will find a few files in the model compress file, but the only file of interest here is a .lib file. In this case, it is TMUX6212.lib.
  3. Open that file in LTspice.
  4. Highlight the component name besides “.SUBCKT”.
  5. Right-click and select “Create Symbol”.
  6. Click Yes.
  7. LTSpice will auto-generate the symbol with a “.asy” extension into the auto-generated folder of LTspice (C:\Users\user\Documents\LTspiceXVII\lib\sym\AutoGenerated). Take note that the path depends on your settings.
  8. You can feel free to re-arrange the symbol and save it.
  9. You can add the symbol from the component library to your schematic. Please test the model before using it. In my example, you can conduct simple tests like whether the logic, switching, and power rails work. You can also go deeper to test resistance and bandwidth. I will not discuss the testing method in this post.

Importing from TINA-TI

Before you begin, you need to ensure you have installed TINA-TI. If you have, you may proceed.

  1. A component page usually comes with a TINA-TI simulation reference design schematic to download. In my case, I will use MUX36D04 as an example.
  2. Downloading the reference design will give you “sbom969a.tsc”.
  3. Open that file in TINA-TI.
  4. Right-click on the model and select “Enter Macro”.
  5. This action will open the macro file. Now perform a “Save As”, and this will create a .cir file.
  6. Open the .cir file in LTspice.
  7. Highlight the component name besides “.SUBCKT” and right-click. Then select “Create Symbol”.
  8. Click YES
  9. LTSpice will auto-generate the symbol with a “.asy” extension into the auto-generated folder of LTspice (C:\Users\user\Documents\LTspiceXVII\lib\sym\AutoGenerated). Take note that the path depends on your settings.
  10. You can feel free to re-arrange the symbol and save it.
  11. You can add the symbol from the component library to your schematic. Please test the model before using it. In my example, you can conduct simple tests like whether the logic, switching, and power rails work. You can also go deeper to test resistance and bandwidth. I will not discuss the testing method in this post.

How to make the model portable?

Occasionally, you want the imported model to be portable so that you can share the simulation schematic.

  1. Follow the above import instruction for either PSpice or TINA-TI.
  2. Go to the AutoGenerated folder and open the symbol file using a text editor.
  3. Remove the absolute path of the model file. I will modify the following line to “SYMATTR ModelFile TMUX6212.lib” in my example.
    1. This will change the symbol to read from the lib file within the same folder.
  4. Copy the model file into the same folder as the symbol. The model file can be either a .lib file or a .cir file, depending on where you import from.
  5. To use this symbol in your schematic, you need to place the schematic, symbol and model file into the same folder because the LTspice component select dialogue only shows two directories by default - your schematic directory and the installation component library directory.

I hope you will find this post useful in your simulation journey.


Kickstart Your Product Idea
As your strategic product partner, THESIS is always ready to help you innovate and value-add on your products.

Contact us:
contact@onethesis.com
www.onethesis.com
www.linkedin.com/company/onethesis
www.twitter.com/onethesistech
www.instagram.com/onethesis/


[1]  "LTspice". Analog Devices. Archived from the original on December 3, 2018.

[2]  "LTspice XVII Introduction". LTwiki. Archived from the original on December 2, 2018.

Desginrush x Thesis
Read more
THESIS and DesignRush Forge Partnership
September 7, 2023
0 Mins read

Introduction We are thrilled to announce that THESIS has entered into a partnership with DesignRush, a leading agency directory that connects brands with top full-service agencies, web design companies, digital marketing firms, and top technology companies. This exciting collaboration aims to combine THESIS’s expertise in UI/UX, Software and Mobile app development with Design Rush‘s extensive […]

Embedded Vision Camera IoT Solution
Read more
Embedded Vision Camera IoT Solution
August 20, 2023
4 Mins read

Introduction The advent of embedded camera solutions stands as a defining achievement within the domain of contemporary electronics engineering. This convergence of hardware and software proficiency epitomizes the seamless amalgamation of imaging technology into an array of devices and systems. Ranging from handheld gadgets like smartphones to the sophisticated realms of industrial machinery and automotive […]

openearble
Read more
Openearable – opensource earpiece design
May 4, 2023
1 Mins read

Openearable [https://open-earable.teco.edu/] is a state-of-the-art open-source “earable” platform using the Arduino Nano 33 BLE Sense ecosystem. It offers a flexible and modular approach to building “earable” devices, allowing developers to customize the device to their preferences effortlessly. The core module of the platform is based on the Arduino Nano 33 BLE Sense board, equipped with […]