Datasheet
Analog-to-Digital Converter (S08ADC12V1)
MC9S08JM16 Series Data Sheet, Rev. 2
154 Freescale Semiconductor
APCTL1=0x02
AD1 pin I/O control disabled. All other AD pins remain general purpose I/O pins
APCTL2=0x00
All other AD pins remain general purpose I/O pins
Figure 10-13. Initialization Flowchart for Example
10.6 Application Information
This section contains information for using the ADC module in applications. The ADC has been designed
to be integrated into a microcontroller for use in embedded control applications requiring an A/D
converter.
10.6.1 External Pins and Routing
The following sections discuss the external pins associated with the ADC module and how they must be
used for best results.
10.6.1.1 Analog Supply Pins
The ADC module has analog power and ground supplies (V
DDAD
and V
SSAD
) available as separate pins
on some devices. V
SSAD
is shared on the same pin as the MCU digital V
SS
on some devices.
On other
Ye s
No
Reset
Initialize ADC
ADCCFG = 0x98
ADCSC1 = 0x41
ADCSC2 = 0x00
Check
COCO=1?
Read ADCRH
Then ADCRL To
Clear COCO Bit
Continue
