The below steps are the same for each
of the enabled temperature measurements. In this example, the steps are shown for
the Internal Temp Offset and TS1 Temp Offset only.
- Apply a known temperature, TEMPCAL, to the device
and to thermistors connected to external thermistor pins.
- Read the temperatures using the temperature measurement
commands. For example, read Internal temperature (TINT_measured) with command
0x68, TS1 temperature (TS1_measured) with command 0x70. The values returned by
the temperature commands are in 0.1K units, so these should be converted to
Celsius.
- For best accuracy, take multiple readings and calculate the
average.
- If temperature offsets have been previously written, write the
offsets back to their default values the Temperature Calibration Settings. These
values are set to zero by default.
- Calculate the temperature offset for each of the measurements.
In the equations below, the temperature units are in 0.1K. So for example, 2981
would represent 25C.
- Internal Temp Offset = TEMPCAL -
TINT_measured
- TS1 Temp Offset = TEMPCAL -
TS1_measured
- Write the new Internal Temp Offset and TS1
Temp Offset values to RAM.
- Enter CONFIG_UPDATE mode (Subcommand 0x0090).
- Write Internal Temp Offset to
0x91CA.
- Write TS1 Temp Offset to 0x91CE.
- Exit CONFIG UPDATE mode (Subcommand 0x0092).
- Re-check the temperature readings using the temperature
measurement commands. If the reading is not accurate, repeat steps 1-6.