Analog-to-Digital Converter (ADC12B12CV2) Block Description
MC9S12VRP Family Reference Manual Rev. 1.3
NXP Semiconductors
263
8.3.2.9
ATD Status Register 2 (ATDSTAT2)
This read-only register contains the Conversion Complete Flags CCF[11:0].
Read: Anytime
Write: Anytime (for details see
Module Base + 0x000A
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
R
0
0
0
0
CCF[11:0]
W
Reset
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
= Unimplemented or Reserved
Figure 8-11. ATD Status Register 2 (ATDSTAT2)
Table 8-18. ATDSTAT2 Field Descriptions
Field
Description
11–0
CCF[11:0]
Conversion Complete Flag
n
(
n
= 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0) (
n conversion number, NOT channel
number!)
— A conversion complete flag is set at the end of each conversion in a sequence. The flags are
associated with the conversion position in a sequence (and also the result register number). Therefore in non-fifo
mode, CCF[4] is set when the fifth conversion in a sequence is complete and the result is available in result
register ATDDR4; CCF[5] is set when the sixth conversion in a sequence is complete and the result is available
in ATDDR5, and so forth.
If automatic compare of conversion results is enabled (CMPE[
n
]=1 in ATDCMPE), the conversion complete flag
is only set if comparison with ATDDR
n
is true. If ACMPIE=1 a compare interrupt will be requested. In this case,
as the ATDDR
n
result register is used to hold the compare value, the result will not be stored there at the end of
the conversion but is lost.
A flag CCF[
n
] is cleared when one of the following occurs:
A) Write to ATDCTL5 (a new conversion sequence is started)
B) If AFFC=0, write “1” to CCF[
n
]
C) If AFFC=1 and CMPE[
n
]=0, read of result register ATDDR
n
D) If AFFC=1 and CMPE[
n
]=1, write to result register ATDDR
n
In case of a concurrent set and clear on CCF[
n
]: The clearing by method A) will overwrite the set. The clearing
by methods B) or C) or D) will be overwritten by the set.
0 Conversion number
n
not completed or successfully compared
1 If (CMPE[
n
]=0): Conversion number
n
has completed. Result is ready in ATDDR
n
.
If (CMPE[
n
]=1): Compare for conversion result number
n
with compare value in ATDDR
n
, using compare
operator CMPGT[
n
] is true. (No result available in ATDDR
n
)
Summary of Contents for MC9S12VRP64
Page 16: ...MC9S12VRP Family Reference Manual Rev 1 3 16 NXP Semiconductors ...
Page 46: ...Device Overview S12VRP Series MC9S12VRP Family Reference Manual Rev 1 3 46 NXP Semiconductors ...
Page 236: ...S12S Debug Module S12DBGV2 MC9S12VRP Family Reference Manual Rev 1 3 236 NXP Semiconductors ...
Page 244: ...Interrupt Module S12SINTV1 MC9S12VRP Family Reference Manual Rev 1 3 244 NXP Semiconductors ...
Page 358: ...Timer Module TIM16B2CV3 MC9S12VRP Family Reference Manual Rev 1 3 358 NXP Semiconductors ...
Page 436: ...Supply Voltage Sensor BATSV2 MC9S12VRP Family Reference Manual Rev 1 3 436 NXP Semiconductors ...
Page 528: ...NVM Electrical Parameters MC9S12VRP Family Reference Manual Rev 1 3 528 NXP Semiconductors ...
Page 530: ...Package Information MC9S12VRP Family Reference Manual Rev 1 3 530 NXP Semiconductors ...
Page 531: ...Package Information MC9S12VRP Family Reference Manual Rev 1 3 NXP Semiconductors 531 ...
Page 532: ...Package Information MC9S12VRP Family Reference Manual Rev 1 3 532 NXP Semiconductors ...