mc9s12vr48 Freescale Semiconductor, Inc, mc9s12vr48 Datasheet - Page 268

no-image

mc9s12vr48

Manufacturer Part Number
mc9s12vr48
Description
S12 Microcontrollers
Manufacturer
Freescale Semiconductor, Inc
Datasheet
Analog-to-Digital Converter (ADC12B6CV2)
8.3.2.8
Writes to this register will abort current conversion sequence.
Read: Anytime
Write: Anytime
268
Module Base + 0x0008
CMPE[5:0]
CC[3:0]
Reset
Field
Field
3–0
5–0
W
R
15
0
0
Conversion Counter — These 4 read-only bits are the binary value of the conversion counter. The conversion
counter points to the result register that will receive the result of the current conversion. E.g. CC3=0, CC2=1,
CC1=1, CC0=0 indicates that the result of the current conversion will be in ATD Result Register 6. If in non-FIFO
mode (FIFO=0) the conversion counter is initialized to zero at the beginning and end of the conversion sequence.
If in FIFO mode (FIFO=1) the register counter is not initialized. The conversion counter wraps around when its
maximum value is reached.
Aborting a conversion or starting a new conversion clears the conversion counter even if FIFO=1.
Compare Enable for Conversion Number n (n= 5, 4, 3, 2, 1, 0) of a Sequence (n conversion number, NOT
channel number!) — These bits enable automatic compare of conversion results individually for conversions of
a sequence. The sense of each comparison is determined by the CMPHT[n] bit in the ATDCMPHT register.
For each conversion number with CMPE[n]=1 do the following:
CCF[n] in ATDSTAT2 register will flag individual success of any comparison.
0 No automatic compare
1 Automatic compare of results for conversion n of a sequence is enabled.
ATD Compare Enable Register (ATDCMPE)
= Unimplemented or Reserved
1) Write compare value to ATDDRn result register
2) Write compare operator with CMPHT[n] in ATDCPMHT register
14
0
0
13
0
0
Figure 8-10. ATD Compare Enable Register (ATDCMPE)
Table 8-16. ATDSTAT0 Field Descriptions (continued)
12
0
0
MC9S12VR Family Reference Manual,
Table 8-17. ATDCMPE Field Descriptions
Preliminary - Subject to Change Without Notice
11
0
0
10
0
0
9
0
0
0
0
8
Description
Description
0
0
7
0
0
6
Rev. 2.2
5
0
0
4
CMPE[5:0]
0
3
Freescale Semiconductor
0
2
0
1
0
0

Related parts for mc9s12vr48