Datasheet

ADC_APCTL2 field descriptions (continued)
Field Description
0 AD12 pin I/O control enabled.
1 AD12 pin I/O control disabled.
3
ADPC11
ADC Pin Control 11
ADPC11 controls the pin associated with channel AD11.
0 AD11 pin I/O control enabled.
1 AD11 pin I/O control disabled.
2
ADPC10
ADC Pin Control 10
ADPC10 controls the pin associated with channel AD10.
0 AD10 pin I/O control enabled.
1 AD10 pin I/O control disabled.
1
ADPC9
ADC Pin Control 9
ADPC9 controls the pin associated with channel AD1.
0 AD9 pin I/O control enabled.
1 AD9 pin I/O control disabled.
0
ADPC8
ADC Pin Control 8
ADPC8 controls the pin associated with channel AD8.
0 AD8 pin I/O control enabled.
1 AD8 pin I/O control disabled.
19.4 Functional description
The ADC module is disabled during reset or when the ADC_SC1[ADCH] bits are all
high. The module is idle when a conversion has completed and another conversion has
not been initiated. When idle, the module is in its lowest power state.
The ADC can perform an analog-to-digital conversion on any of the software selectable
channels. In 12-bit and 10-bit mode, the selected channel voltage is converted by a
successive approximation algorithm into a 1012-bit digital result. In 8-bit mode, the
selected channel voltage is converted by a successive approximation algorithm into a 8-
bit digital result.
When the conversion is completed, the result is placed in the data registers (ADC_RH
and ADC_RL). In 10-bit mode, the result is rounded to 10 bits and placed in the data
registers (ADC_RH and ADC_RL). In 8-bit mode, the result is rounded to 8 bits and
placed in ADC_RL. The conversion complete flag (ADC_SC1[COCO]) is then set and
an interrupt is generated if the conversion complete interrupt has been enabled
(ADC_SC1[AIEN] = 1).
Functional description
MC9S08PA60 Reference Manual, Rev. 1, 9/2012
536 Freescale Semiconductor, Inc.