MC9S08QE128 MCU Series Reference Manual, Rev. 2
178
Freescale Semiconductor
Chapter 10 Analog-to-Digital Converter (S08ADC12V1)
10.1.2.3
Hardware Trigger
The ADC may initiate a conversion via software or a hardware trigger. The RTC can be enabled as the
hardware trigger for the ADC module by setting ADCSC2[ADTRG]. When enabled, the ADC is triggered
each time RTCINT matches RTCMOD. The RTC interrupt does not have to be enabled to trigger the ADC.
The RTC can be configured to cause a hardware trigger in MCU run, wait, and stop3.
10.1.2.4
Temperature Sensor
The ADC module includes a temperature sensor whose output is connected to one of the ADC analog
channel inputs.
provides an approximate transfer function of the temperature sensor.
Eqn. 10-1
where:
— V
TEMP
is the voltage of the temperature sensor channel at the ambient temperature.
— V
TEMP25
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 V
TEMP25
and m values in the data sheet.
In application code, the user reads the temperature sensor channel, calculates V
TEMP
, and compares to
V
TEMP25
. If V
TEMP
is greater than V
TEMP25
the cold slope value is applied in
. If V
TEMP
is
less than V
TEMP25
the hot slope value is applied in
Temp
25
V
TEMP
V
TEMP25
–
m
-----------------------------------------------
–
=
Summary of Contents for MC9S08QE128
Page 2: ......
Page 4: ......
Page 320: ...Development Support MC9S08QE128 MCU Series Reference Manual Rev 2 320 Freescale Semiconductor ...