Help Adding a Spice Model - Worked Example for a TL431
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi Everyone,
I wonder if you could help me with a process to add a spice model to a library component for an TL431 (Shunt regulator)?
I have tried to do this several times and failed to get a working simulation yet.
I know how to create a part , but I a bit lost when it comes to successfully adding the spice model.
From looking at several blogs and tutorials for simple parts like diodes, it looks fairly straight forward.... but when it comes to my part I am a bit lost.
For the Spice type (when I add the load Spice model) do I chose 'X: Subcircuit' as the model type (as nothing else in the list matches the description of the device)?
I have downloaded the Ti spice model and mapped it.
All seems to be okay. but when I run the simulator I get the following error:
The Model is pretty short:
*****************************************************************************
* TL431 MACROMODEL ***************3-26-92************************************
* REV N/A ****************************************************************DBB
*****************************************************************************
* REFERENCE
* | ANODE
* | | CATHODE
* | | |
.SUBCKT TL431 1 2 3
V1 6 7 DC 1.4V
I1 2 4 1E-3
R1 1 2 1.2E6
R2 4 2 RMOD 2.495E3
R3 5 7 .2
D1 3 6 DMOD1
D2 2 3 DMOD1
D3 2 7 DMOD2
E1 5 2 POLY(2) (4,2) (1,2) 0 710 -710
.MODEL RMOD RES (TC1=1.4E-5 TC2=-1E-6)
.MODEL DMOD1 D (RS=.3)
.MODEL DMOD2 D (RS=1E-6)
.ENDS
Any help that you can offer will be appreciated?
Kind regards
Michael