Datasheet
Analog-to-Digital Converter (ADC)
Input/Output Registers
MC68HC908QY4•MC68HC908QT4•MC68HC908QY2•MC68HC908QT2•MC68HC908QY1•MC68HC908QT1
MOTOROLA Analog-to-Digital Converter (ADC) 157
NON-DISCLOSURE AGREEMENT REQUIRED
11.8.1 ADC Status and Control Register
The following paragraphs describe the function of the ADC status and
control register (ADSCR).
COCO — Conversions Complete Bit
When the AIEN bit is a logic 0, the COCO is a read-only bit which is
set each time a conversion is completed. This bit is cleared whenever
ADSCR is written or whenever the ADR is read. Reset clears this bit.
1 = Conversion completed (AIEN = 0)
0 = Conversion not completed (AIEN = 0)
When the AIEN bit is a logic 1 (CPU interrupt enabled), the COCO is
a read-only bit, and will always be logic 0 when read.
AIEN — ADC Interrupt Enable Bit
When this bit is set, an interrupt is generated at the end of an ADC
conversion. The interrupt signal is cleared when ADR is read or
ADSCR is written. Reset clears the AIEN bit.
1 = ADC interrupt enabled
0 = ADC interrupt disabled
ADCO — ADC Continuous Conversion Bit
When set, the ADC will convert samples continuously and update
ADR at the end of each conversion. Only one conversion is allowed
when this bit is cleared. Reset clears the ADCO bit.
1 = Continuous ADC conversion
0 = One ADC conversion
Address: $003C
Bit 7654321Bit 0
Read: COCO
AIEN ADCO CH4 CH3 CH2 CH1 CH0
Write:
Reset:00011111
= Unimplemented
Figure 11-3. ADC Status and Control Register (ADSCR)