Continue to Site

# Thermistor Hspice model

Status
Not open for further replies.

#### integ52002

##### Newbie level 6
Hi guys, I have been trying to design my temperature protection. I am using a thermistor. I would like to simulate it (temp sweep) in Hspice but I dont know how to model a thermsitor. Until I found this: http://www.hagtech.com/pdf/ntc.pdf
I got the spice netlist from here and it was successful. The R of thermistor varies exponentially. But i dont understand the syntax and I dont know how to model the particular thermistor by changing the parameters in the sample spice.

ps. is there anyone can give me advice onn how to convert the data (R vs temp response) into an hspice model for simulation?

Last edited:

Last edited by a moderator:

May be the link doesn't work anymore.
Therefore, I'm going to send you a scanned copy of the original (pdf attachement).
The model is described in PSpice notation; however, i think there will be no problem to translate it to HSpice.
Any questions?

#### Attachments

• Thermistor_model.pdf
2.6 MB · Views: 78

In addition to the good solution by LvW, that's based on the ideal exponential thermistor characteristic, I try to answer the original question.

The first point is to understand the SPICE polynomial controlled source model, that's used for the quoted netlist. You should be able to find the explanation in SPICE textbooks and e.g. in the HSPICE Simulation and Analysis User Guide.

The second point is how to derive polynomial parameters from an empirical resistance versus temperature characteristic. The method is called curve fitting and can be easily performed with a spreadsheet calculator, e.g. MS Excel. Polynomial fit of a given order is an option in the Excel diagram window.

Lvw and FvM thank you masters...

I am still trying to understand the other files u gave me and the explanations. But I would like to get back to my question again.
From http://www.hagtech.com/pdf/ntc.pdf we could see the table A showing the Resistance vs temperature. My question is how can I convert this table to the polynomial shown in the spice netlist. DO you have any idea how can I generate this polynomial so I could run the Thermistor model I need to simulate?

Thank you very much!!!

Yes, I already suggested a method. Enter the values in MS Excel, display an XY diagram, add a polynomial trendline and show it's parameters. MS EXCEL provides up to 6th order, which is sufficient in my opinion.

Why not directly use a table as an input to describe the current-voltage relationship?
In PSpice there is a controlled source "Etable" that allows this procedure - and I suppose, HSpice will offer it also?

FvM,

Hi Sir. I already generated the polynomial threadline (of 6th order) in Excel for Gout. But I want to know what are these Gout and Eout syntax here.
I know the Coeff's generated in Excel will be used in the Gout of the netlist. But what about Eout? How can I generate these Eout poly values? http://www.hagtech.com/pdf/ntc.pdf
Thank you very much for the advice!

The Eout in the simulation circuit hasn't to do with the thermistor characteristics. It's a multiplier, used to generate the resistor's C/V dependency. It's just one of many possible ways to play around with SPICE elements in a behavioral model. You can copy it or design your own way to simulate a resistor. I had thought, that a current controlled voltage source (H element) would be a more straightforward way to model a resistor.

P.S.:
Why not directly use a table as an input to describe the current-voltage relationship?
A table statement will implement a piecewise linear function, so you'll need much more sampling points for a smooth representation of an exponential characteristic. It's also not particularly suited for a polynomial fitting, by the way. So your previous suggestion to use an exponential function is basically the better way.

Last edited:

Status
Not open for further replies.