
A/D Status and Control Register
MC68HC05L25 Data Sheet, Rev. 3.1
Freescale Semiconductor
115
12.8 A/D Status and Control Register
The ADSC register reports the completion of A/D conversion and provides control over oscillator
selection, analog subsystem power, and input channel selection.
CC — Conversion Complete
This read-only status bit is set when a conversion sequence has completed and data is ready to be
read from the ADDR register. CC is cleared when a channel is selected for conversion, when data is
read from the ADDR register, or when the A/D subsystem is turned off. Once a conversion has been
started, conversions of the selected channel will continue every 32 PH2 clock cycles until the ADSC
register is written to again. During continuous conversion operation, the ADDR register will be updated
with new data and the CC bit will be set every 32 PH2 clock cycles. Also, data from the previous
conversion will be overwritten regardless of the state of the CC bit.
1 = A/D conversion sequence completed
0 = A/D subsystem is off or conversion is in progress
ADRC — RC Oscillator Control
When ADRC is set, the A/D subsystem operates from the internal RC oscillator instead of the PH2
clock. The RC oscillator requires a time, tRCON, to stabilize before accurate conversion results can be
1 = RC OSC on
0 = RC OSC off
ADON — A/D Subsystem On
When the A/D subsystem is turned on (ADON = 1), it requires a time, tADON, to stabilize before
accurate conversion results can be attained.
1 = A/D subsystem enabled
0 = A/D subsystem disabled
Bits 4:3 — Reserved
These bits are not used and always read as zero.
CH2:CH0 — Channel Select Bits
Channel select bits CH2, CH1, and CH0 form a 3-bit field which is used to select an input to the A/D
converter. Channels 0 and 1 correspond to port A input pins PA4 and PA5. Channels 4–6 are used for
reference measurements. In single-chip mode, channels 2, 3, and 7 are reserved. If a conversion is
attempted with channel 2, 3, or 7 selected, the result will be undefined.
Table 12-1 lists the inputs
selected by bits CH0–CH2.
If the ADON bit is set, and an input from channel 0 or 1 is selected, the corresponding port A pin will
not function as a digital port. If the port A data register is read when DDR = 0 while the A/D is on and
one of the shared input channels is selected using bits CH0–CH2, the corresponding port A pin will
Address:
$001E
Bit 7
654321
Bit 0
Read:
CC
ADRC
ADON
00
CH2
CH1
CH0
Write:
Reset:
00000000
= Unimplemented
Figure 12-1. A/D Status and Control Register (ADSC)