English
Language : 

PXR40RM Datasheet, PDF (1430/1434 Pages) Freescale Semiconductor, Inc – PXR40 Microcontroller
34.3 Temperature formula
The temperature formula is shown in Figure 34-2.
Temperature Sensor
T = TLOW +
TTSENS_CODE(T) x  – TTSENS_CODE(TLOW)
TTSENS_CODE(THIGH) – TTSENS_CODE(TLOW)
x
(THIGH
–
TLOW)
where:
Notes:
TTSENS_CODE(TLOW)
=
VTSENS(TLOW)x
Vref0
214
TTSENS_CODE(THIGH)
= VTSENS(THIGH)x
Vref0
214
VBG_CODE(TLOW)
=
VBG(TLOW)
Vref0
x 214
VBG_CODE(T) =
VBG(T)
Vref
x 214
TTSENS_CODE(T) =
VTSENS(T)
Vref
x 214
 = VBG_CODE(TLOW)
VBG_CODE(T)
(Stored in device flash during factory calibration)
(Stored in device flash during factory calibration)
(Stored in device flash during factory calibration)
• VTSENS(T) is the temperature sensor output sampled by the ADC
• VBG(T) is the bandgap voltage sampled by the ADC
• Vref is the ADC reference voltage
• Vref0 is the ADC reference voltage during factory calibration
• TLOW is the low temperature factory calibration temperature (stored in device flash)
• THIGH is the hot factory calibration temperature (stored in device flash)
Figure 34-2. Temperature formula
The following sections detail the values required and where to get them.
34.3.1 TLOW and THIGH
TLOW is the factory low calibration temperature; THIGH is the hot factory calibration temperature. These
values are stored in shadow flash memory during factory calibration. See Section 34.3.6.1, Temperature
Calculation Constants Register 0, for details.
34.3.2 TTSENS_CODE(TLOW) and TTSENS_CODE(THIGH)
TTSENS_CODE(TLOW) is the sampled output voltage of the temperature sensor during low temperature
factory calibration. TTSENS_CODE(THIGH) is the sampled output voltage of the temperature sensor during
hot temperature factory calibration. These values are stored in shadow flash memory during factory
calibration. See Section 34.3.6.1, Temperature Calculation Constants Register 0, for details.
Freescale Semiconductor
PXR40 Microcontroller Reference Manual, Rev. 1
34-3