Analog-to-Digital Converter (S08ADC12V1)

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

Reset

Initialize ADC

ADCCFG = 0x98

ADCSC2 = 0x00

ADCSC1 = 0x41

Check No

COCO=1?

Yes

Read ADCRH

Then ADCRL To

Clear COCO Bit

Continue

Figure 11-13. Initialization Flowchart for Example

11.6Application 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.1External Pins and Routing

The following sections discuss the external pins associated with the ADC module and how they should be used for best results.

MCF51QE128 MCU Series Reference Manual, Rev. 3

236

Freescale Semiconductor

Get the latest version from freescale.com

Page 236
Image 236
Freescale Semiconductor MCF51QE128RM External Pins and Routing, Reset Initialize ADC Adccfg = ADCSC2 = ADCSC1 = Check No