English
Language : 

K60P100M100SF2RM Datasheet, PDF (842/1809 Pages) Freescale Semiconductor, Inc – K60 Sub-Family Reference Manual
Functional description
format and the effect will be an addition. An offset correction that results in an out-of-
range value will be forced to the minimum or maximum value (the minimum value for
single-ended conversions is 0x0000; for a differential conversion it is 0x8000).
To preserve accuracy, the calibrated offset value initially stored in the OFS register must
be added to the user defined offset. For applications that may change the offset repeatedly
during operation, it is recommended to store the initial offset calibration value in flash so
it can be recovered and added to any user offset adjustment value and the sum stored in
the OFS register.
34.4.9 Temperature sensor
The ADC module includes a temperature sensor whose output is connected to one of the
ADC analog channel inputs. The following equation provides an approximate transfer
function of the temperature sensor.
m
Figure 34-96. Approximate transfer function of the temperature sensor
where:
• VTEMP is the voltage of the temperature sensor channel at the ambient temperature.
• VTEMP25 is the voltage of the temperature sensor channel at 25 °C.
• m is the hot or cold voltage versus temperature slope in V/°C.
For temperature calculations, use the VTEMP25 and m values from the ADC Electricals
table.
In application code, the user reads the temperature sensor channel, calculates VTEMP, and
compares to VTEMP25. If VTEMP is greater than VTEMP25 the cold slope value is applied in
the preceding equation. If VTEMP is less than VTEMP25, the hot slope value is applied in
the preceding equation.
For more information on using the temperature sensor, see the application note titled
Temperature Sensor for the HCS08 Microcontroller Family (document AN3031).
K60 Sub-Family Reference Manual, Rev. 6, Nov 2011
842
Freescale Semiconductor, Inc.