scorrpeio
Full Member level 5
Hello,
I am using PT100 sensor in my project to read temperature.
My requirement is to calculate the temperature value in the form XXX.X degree C.
The polynomial to be used is...
The 'R' is what I calculate from ADC count. (R is already multiplied by 100 to bring it to integer format)
Now, I am using MSP430F5418A MCU and CCS4 compiler.
I have already got info in other threads on this webportal about the floats and problems associated with it. So, I am not interested in using float.
Now, I am thinking to convert the whole polynomial to the integer format first and calculate temperature value.
Then, convert the temp value to char string and insert the decimal point in the string and display it.
But,
I dont know, if I can implement the following integer converted polynomial in the CCS4.0
Can I use this polynomial without 10^-k factor and then finally insert the decimal point based on k value?
I am using PT100 sensor in my project to read temperature.
My requirement is to calculate the temperature value in the form XXX.X degree C.
The polynomial to be used is...
TEMP = -246.538 + 2.3753 R + 0.000886 R*R + 15342.296 R*R*R*R* 10^-13
The 'R' is what I calculate from ADC count. (R is already multiplied by 100 to bring it to integer format)
Now, I am using MSP430F5418A MCU and CCS4 compiler.
I have already got info in other threads on this webportal about the floats and problems associated with it. So, I am not interested in using float.
Now, I am thinking to convert the whole polynomial to the integer format first and calculate temperature value.
Then, convert the temp value to char string and insert the decimal point in the string and display it.
But,
I dont know, if I can implement the following integer converted polynomial in the CCS4.0
TEMP = -246538* 10^-3 + 23753 R * 10^-4 + 0000886 R*R *10^-6+ 15342296 R*R*R*R* 10^-13 * 10^-3
Can I use this polynomial without 10^-k factor and then finally insert the decimal point based on k value?