2021-06-10 02:20 AM
According to the data sheet, the calibrated values for specific chip (at 30°C and 130°C) are at the following addresses:
#define TEMP30_CAL_ADDR (*((uint16_t*)0x1FFF75A8))
#define TEMP130_CAL_ADDR (*((uint16_t*)0x1FFF75CA))
Therefore the calculation should be :
fCalTemperature_DegreeCelsius = (((130.0f - 30.0f) / (TEMP130_CAL_ADDR - TEMP30_CAL_ADDR)) * (ADC_TempReading - TEMP30_CAL_ADDR)) + 30.0f;
The problem is that in memory the values don't seem to be correct:
I'd appreciate any help.
Thanks,
Mechi
Solved! Go to Solution.
2021-06-13 10:35 PM
Yes. Thank you - that's definitely the correct equation.
2021-06-14 08:00 AM
Hello @MFend,
Please mark the helped reply as Best answer in order to help other users find the answer quickly.
Mohamed Aymen