English
Language : 

MC9RS08KA8RM Datasheet, PDF (113/190 Pages) Freescale Semiconductor, Inc – MC9RS08KA8 Features
Analog-to-Digital Converter (RS08ADC10V1)
Bit 7 COCO
Bit 6 AIEN
Bit 5 ADCO
Bit 4:0 ADCH
0
1
0
00001
Indicates when a conversion completes
Enable conversion complete interrupt
Specifies one conversion only (continuous conversions disabled)
Selects input channel 1 selected as ADC input channel
ADCRH/L = 0xxx
Holds results of conversion. Read high byte (ADCRH) before low byte (ADCRL) so that conversion
data cannot be overwritten with data from the next conversion.
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 = $98
ADCSC2 = $00
ADCSC1 = $41
NO
COCO=1?
YES
READ ADCRH
THEN ADCRL TO
CLEAR COCO BIT
CONTINUE
Figure 10-14. Initialization Flowchart 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.
MC9RS08KA8 Series Reference Manual, Rev. 3
Freescale Semiconductor
113