XC912BC32CFU8 Motorola Semiconductor Products, XC912BC32CFU8 Datasheet - Page 309

no-image

XC912BC32CFU8

Manufacturer Part Number
XC912BC32CFU8
Description
M68HC12B Family Data Sheet
Manufacturer
Motorola Semiconductor Products
Datasheet
17.3.7 ATD Status Registers
M68HC12B Family — Rev. 8.0
MOTOROLA
Read: Normally anytime
Write: In special mode, the SCF bit and the CCF bits may also be written.
The ATD status registers contain the flags indicating the completion of ATD
conversions.
SCF — Sequence Complete Flag
CC2–CC0 — Conversion Counter Bits for Current 4 or 8 Conversions
CCF7–CCF0 — Conversion Complete Flags
This bit is set at the end of the conversion sequence when in the single
conversion sequence mode (SCAN = 0 in ATDCTL5) and is set at the end of the
first conversion sequence when in the continuous conversion mode (SCAN = 1
in ATDCTL5). When AFFC = 0, SCF is cleared when a write is performed to
ATDCTL5 to initiate a new conversion sequence. When AFFC = 1, SCF is
cleared after the first result register is read.
This 3-bit value reflects the contents of the conversion counter pointer in a four
or eight count sequence. This value also reflects which result register is written
next, indicating which channel is currently being converted.
Each CCF bit is associated with an individual ATD result register. For each
register, this bit is set at the end of conversion for the associated ATD channel
and remains set until that ATD result register is read. It is cleared at that time if
AFFC bit is set, regardless of whether a status register read has been performed
(for example, a status register read is not a pre-qualifier for the clearing
mechanism when AFFC = 1). Otherwise, the status register must be read to
clear the flag.
Address: $0066
Address: $0067
Reset:
Reset:
Read:
Read:
Write:
Write:
CCF7
Bit 7
SCF
Bit 7
0
0
Analog-to-Digital Converter (ATD)
Figure 17-8. ATD Status Register (ATDSTAT)
= Unimplemented
CCF6
6
0
0
6
0
CCF5
5
0
0
5
0
CCF4
4
0
0
4
0
CCF3
3
0
0
3
0
Analog-to-Digital Converter (ATD)
CCF2
CC2
2
0
2
0
CCF1
CC1
1
0
1
0
ATD Registers
Data Sheet
CCF0
Bit 0
CC0
Bit 0
0
0
309

Related parts for XC912BC32CFU8