Freescale Semiconductor MCF51QE128RM Answering Machine User Manual


 
Analog-to-Digital Converter (S08ADC12V1)
MCF51QE128 MCU Series Reference Manual, Rev. 3
236 Freescale Semiconductor
Get the latest version from freescale.com
ADCCVH/L = 0xxx
Holds compare value when compare function enabled
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 11-13. Initialization Flowchart for Example
11.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.
11.6.1 External Pins and Routing
The following sections discuss the external pins associated with the ADC module and how they should be
used for best results.
Ye s
No
Reset
Initialize ADC
ADCCFG = 0x98
ADCSC1 = 0x41
ADCSC2 = 0x00
Check
COCO=1?
Read ADCRH
Then ADCRL To
Clear COCO Bit
Continue