
MC68HC16Y1
MC68HC16Y1TS/D
MOTOROLA
99
ADSTAT contains information related to the status of a conversion sequence.
SCF — Sequence Complete Flag
0 = Sequence not complete
1 = Sequence complete
SCF is set at the end of the conversion sequence when SCAN is cleared, and at the end of the
first
conversion sequence when SCAN is set. SCF is cleared when ADCTL1 is written and a new conversion
sequence begins.
CCTR[2:0] — Conversion Counter Field
This field reflects the contents of the conversion counter pointer in either four or eight count conversion
sequence. The value corresponds to the number of the next result register to be written, and thus indi-
cates which channel is being converted.
CCF[7:0] — Conversion Complete Field
Each bit in this field corresponds to an A/D result register (CCF7 to RSLT7, etc.). A bit is set when con-
version for the corresponding channel is complete, and remains set until the result register is read. It is
cleared when the register is read.
RSLT0–RSLT7
— A/D Result Registers
The result registers are used to store data after conversion is complete. Each register can be read from
three different addresses in the register block. Data format depends on the address from which it is
read.
$YFF710–$YFF73E
RJURR
— Unsigned Right-Justified Format
Conversion result is unsigned right-justified data. Bits [9:0] are used for 10-bit resolution, bits [7:0] are
used for 8-bit conversion (bits [9:8] are zero). Bits [15:10] always return zero when read.
$YFF710–$YFF71F
LJSRR
— Signed Left-Justified Format
Conversion result is signed left-justified data. Bits [15:6] are used for 10-bit resolution, bits [15:8] are
used for 8-bit conversion (bits [7:6] are zero). Although the ADC is unipolar, it is assumed that the zero
point is halfway between low and high reference when this format is used — for positive input, bit 15 =
0, for negative input, bit 15 = 1. Bits [5:0] always return zero when read.
$YFF720–$YFF72F
LJURR
— Unsigned Left-Justified Format
Conversion result is unsigned left-justified data. Bits [15:6] are used for 10-bit resolution, bits [15:8] are
used for 8-bit conversion (bits [7:6] are zero). Bits [5:0] always return zero when read.
$YFF730–$YFF73F
ADSTAT
— ADC Status Register
$YFF70E
15
14
11
10
8
7
0
SCF
NOT USED
CCTR
CCF
RESET:
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0