One of the most popular programs for simulating electronic circuits is PSPICE. Most manufacturers of electronic components do not have their own simulation programs. But in order to facilitate the work of engineers, they provide PSPICE models of their products. Fortunately, we are not limited only to PSPICe. In this post I will show you how to import PSPICE models into TINA TI.
At the beginning we go to the website of the manufacturer of the electronic component. In my case it will be VISHAY company with Schottky diode 1N5817 (link)
Then go to Design Tools tab and click SPICE Model: 1N5817 (*.txt).
We will then see the content of the model:
It is important that the model has the .subckt and .MODEL sections. We copy the content of the model, paste into a text editor and save as a file with the * .CIR extension, e.g. 1N5817.CIR.
We’re launching the TINA-TI( I use version 22.214.171.1247). After starting, select : File -> Import -> PSpice Netlist (*.CIR).
A window will open in which you can select a file that you have saved to your hard drive. The file will be imported into the Netlist Editor. After importing the model we need to check it. To do this, click the “Compile” icon. If the message “Successfully compiled” appears, it means that the imported model is correct.
Now we select from the menu: Tools -> New Macro Wizard.
Enter the name of our macromodel in the window (in my case: 1N5817). Select “From file”. Click the folder icon and select the file “1N5817.CIR” that you saved earlier. Click the “Next” button.
Select “Load shape from library”. From the “Shape type” drop-down list, select “Diodes”. Unselect “Show suggested shapes only”. From the drop-down list of symbols we select the one we are interested in (I chose “DS”). Click the “Next” button.
Now we have to assign the pin numbers to the symbol. The pin numbers are taken from the model in the .subckt section.
To assign the pins, left-click on the square with the pin number and drag it over the symbol. This is what we do with both numbers.
Click the “Next” button.
Now we can either complete the procedure of assigning a symbol to a macromodel or add it to the circuit diagram.
For verification I will create a simple electrical circuit consisting of a model of our added Schottky diode, a 1kΩ resistor and a voltage source of 5 V DC.
Now choose Analysis -> DC Analysis -> Table of DC results:
We can see that in the circuit simulated by us the voltage drop on the diode was 177.07 mV. You can take this value as correct. So the model import was successful and from now on you can use it in simulations.
The use of an added element.
To add our model back to the schema, click Insert -> Micro … and select file (in my case it is 1N5817.TSM file). My file was in the default location: (…)\TINA-TI\SettingFolder\Macrolib\1N5817.TSM.