Hello BP,
Using the formula given in the data sheet -
TempC = (Vtemp - 0.7013)/0.0017
a measured voltage of 0.761should correspond to a temperature of 35C, with an uncertainty of +/-12C. Since you say the room temperature was 26C, and the measured temperature is that of the die, it is quite possible there may be some self-heating of the die above ambient.
For the self-heating to be insignificant, the MCU would need to remain in stop mode for the majority of the time, and the temperature measurement taken very soon after waking up. Was this the situation for the measurement?
The interpretation of the above formula -
- At a temperature of 0C, the nominal sensor voltage is 0.7013 volt.
- The nominal slope of the voltage-temperature characteristic is 1.7 mV/C. Rather than dividing by this figure, it may be more suitable, for integer calculations, to consider multiplication by reciprocal slope of 588 C/volt.
- The data sheet also suggests that this slope may not remain exactly constant over a wider range of temperatures.
Once you have ascertained that self-heating is not a significant factor, and if you intend to calibrate at room temperature, rather than 0C, I might suggest use of the following modified formula -
TempC = (Vtemp - Vcal)*588 + Tcal
where Vcal and Tcal are the results of the calibration process.
With a single point calibration there is no basis for choosing other than the nominal slope.
Of course, Vtemp and Vcal are really ADC measurement values represented by Ntemp and Ncal. I assume that you also measure the band gap reference (Nref) to calibrate the Vdd voltage. Allowing for this, the formula can be further modified -
TempC = ((Ntemp - Ncal)*(588*Vref)/Nref) + Tcal
The value of (588*Vref) could be a pre-calculated integer constant.
Regards,
Mac