Need help with uM-FPU
HIBITDAC
Posts: 40
Im trying to read a thermistor though a LTC1298 then do all the calculations in the uM-FPU.
I'm reading the voltage across the thermistor, subtract that from 5 which gives me the voltage across the 10k ohm resistor that it is in series with. Then then calculating the current, then dividing the voltage across the thermistor by the current to give me the resistance of the thermistor. Once i get the resistance i have to use the following equation is get the temperature. 1/(a+b*(ln(R))+c*(ln(R))^3. a = .000752, b = .000234, and c = .0000000589321. THis equation works perfect in my ti 92-plus. I any having trouble writing anything to the uM-FPU and getting it back out. Any help is appreciated.
I'm reading the voltage across the thermistor, subtract that from 5 which gives me the voltage across the 10k ohm resistor that it is in series with. Then then calculating the current, then dividing the voltage across the thermistor by the current to give me the resistance of the thermistor. Once i get the resistance i have to use the following equation is get the temperature. 1/(a+b*(ln(R))+c*(ln(R))^3. a = .000752, b = .000234, and c = .0000000589321. THis equation works perfect in my ti 92-plus. I any having trouble writing anything to the uM-FPU and getting it back out. Any help is appreciated.
txt
16K
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
This code from the FPU outputs a variable called dataWord.
dataWord······· VAR···· Word············· ' data word
dataHigh······· VAR···· dataWord.HIGHBYTE ' high byte of dataWord
dataLow········ VAR···· dataword.LOWBYTE· ' low byte of dataLow
·· GOSUB Fpu_Wait
·· SHIFTOUT FpuOut, FpuClk, MSBFIRST, [noparse][[/noparse]LREADWORD]
·· SHIFTIN FpuIn, FpuClk, MSBPRE, [noparse][[/noparse]dataWord.HIGHBYTE, dataWord.LOWBYTE]
Mike
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"Everything is working so why do we pay him?"
"Nothing is working so why do we pay him?"
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
· -- Carl, nn5i@arrl.net
Tried that but the numbers are way off. Still playing around with the commands