Chapter 8 Analog-to-Digital Converter (ATD10B8C) Block Description
238
MC9S12C-Family / MC9S12GC-Family
Freescale Semiconductor
Rev 01.24
8.3.2.7
ATD Status Register 0 (ATDSTAT0)
This read-only register contains the sequence complete flag, overrun flags for external trigger and FIFO
mode, and the conversion counter.
Read: Anytime
Write: Anytime (no effect on (CC2, CC1, CC0))
Module Base + 0x0006
7
6
5
4
3
2
1
0
R
SCF
0
ETORF
FIFOR
0
CC2
CC1
CC0
W
Reset
0
0
0
0
0
0
0
0
= Unimplemented or Reserved
Figure 8-9. ATD Status Register 0 (ATDSTAT0)
Table 8-13. ATDSTAT0 Field Descriptions
Field
Description
7
SCF
Sequence Complete Flag
— This flag is set upon completion of a conversion sequence. If conversion
sequences are continuously performed (SCAN = 1), the flag is set after each one is completed. This flag is
cleared when one of the following occurs:
A) Write “1” to SCF
B) Write to ATDCTL5 (a new conversion sequence is started)
C) If AFFC=1 and read of a result register
0 Conversion sequence not completed
1 Conversion sequence has completed
5
ETORF
External Trigger Overrun Flag
— While in edge trigger mode (ETRIGLE = 0), if additional active edges are
detected while a conversion sequence is in process the overrun flag is set. This flag is cleared when one of the
following occurs:
A) Write “1” to ETORF
B) Write to ATDCTL2, ATDCTL3 or ATDCTL4 (a conversion sequence is aborted)
C) Write to ATDCTL5 (a new conversion sequence is started)
0 No External trigger over run error has occurred
1 External trigger over run error has occurred
Summary of Contents for MC9S12C Family
Page 689: ......