There may be times when all you need out of a thermistor is a simple yes/no as to whether the temperature is over or under a fixed limit, or threshold.
The folder C:\Program Files\SPLat\SPLATPC\examples\thermistor contains a SPLat example, SIMPLE1.SPT, that does just that. It won;t give you a temperature value but will resolve if the temperature is below or above the threshold.. The process for incorporating this function into your own program is this.:
GoSubs into your program to initialize the thermistor circuit and to test the temperature.SIMPLE1.SPT contains instructions on integrating itself into your program. Below is the procedure for establishing the two required constants (which depend on the thermistor you are using and on the temperature you are interested in.
Thermstr8.xls found in folder C:\Program Files\SPLat\SPLATPC\examples\thermistor. cTLM_Drive in the program.cTHM_ThresholdCount in the program.<<<<<<<<<.Suggested thermistor R25 values versus threshold temperature
If you can select a thermistor close to the R25 listed below, you will get the best temperature discrimination. This is not of cosmic importance, assuming you don't need huge accuracy. The "Resolution" column in the spreadsheet is indicative of performance for a given set of parameters. The smaller the number the better.
Temp °C |
R25 |
-35 |
625 |
-20 |
1250 |
-5 |
2500 |
10 |
5000 |
25 |
10000 |
40 |
20000 |
55 |
40000 |
70 |
80000 |
85 |
160000 |
100 |
320000 |
115 |
640000 |