In application code, the user reads the temperature sensor channel, calculates VTEMP, andcompares to VTEMP25. If VTEMP is greater than VTEMP25 the cold slope value is applied inthe preceding equation. If VTEMP is less than VTEMP25, the hot slope value is applied inthe preceding equation. ADC Electricals table may only specify one temperature sensorslope value. In that case, the user could use the same slope for the calculation across theoperational temperature range.For more information on using the temperature sensor, see the application note titledTemperature Sensor for the HCS08 Microcontroller Family (document AN3031).23.5.9 MCU wait mode operationWait mode is a lower-power consumption Standby mode from which recovery is fastbecause the clock sources remain active.If a conversion is in progress when the MCU enters Wait mode, it continues untilcompletion. Conversions can be initiated while the MCU is in Wait mode by means ofthe hardware trigger or if continuous conversions are enabled.The bus clock, bus clock divided by two; and ADACK are available as conversion clocksources while in Wait mode. The use of ALTCLK as the conversion clock source in Waitis dependent on the definition of ALTCLK for this MCU. See the Chip Configurationinformation on ALTCLK specific to this MCU.If the compare and hardware averaging functions are disabled, a conversion completeevent sets SC1n[COCO] and generates an ADC interrupt to wake the MCU from Waitmode if the respective ADC interrupt is enabled, that is, when SC1n[AIEN]=1. If thehardware averaging function is enabled, SC1n[COCO] will set, and generate an interruptif enabled, when the selected number of conversions are completed. If the comparefunction is enabled, SC1n[COCO] will set, and generate an interrupt if enabled, only ifthe compare conditions are met. If a single conversion is selected and the compare triggeris not met, the ADC will return to its idle state and cannot wake the MCU from Waitmode unless a new conversion is initiated by the hardware trigger.23.5.10 MCU Normal Stop mode operationStop mode is a low-power consumption Standby mode during which most or all clocksources on the MCU are disabled.Chapter 23 Analog-to-Digital Converter (ADC)KL27 Sub-Family Reference Manual , Rev. 5, 01/2016Freescale Semiconductor, Inc. 379