English
Language : 

MC9S12KG128 Datasheet, PDF (229/600 Pages) Freescale Semiconductor, Inc – Microcontrollers
Chapter 7 Analog-to-Digital Converter (ATD10B16CV1)
Table 7-7. ATDCTL3 Field Descriptions (continued)
Field
2
FIFO
1–0
FRZ[1:0]
Description
Result Register FIFO Mode — If this bit is zero (non-FIFO mode), the A/D conversion results map into the result
registers based on the conversion sequence; the result of the first conversion appears in the first result register,
the second result in the second result register, and so on.
If this bit is one (FIFO mode) the conversion counter is not reset at the beginning or ending of a conversion
sequence; conversion results are placed in consecutive result registers between sequences. The result register
counter wraps around when it reaches the end of the result register file. The conversion counter value in
ATDSTAT0 can be used to determine where in the result register file, the current conversion result will be placed.
Finally, which result registers hold valid data can be tracked using the conversion complete flags. Fast flag clear
mode may or may not be useful in a particular application to track valid data.
0 Conversion results are placed in the corresponding result register up to the selected sequence length.
1 Conversion results are placed in consecutive result registers (wrap around at end).
Background Debug Freeze Enable — When debugging an application, it is useful in many cases to have the
ATD pause when a breakpoint (Freeze Mode) is encountered. These 2 bits determine how the ATD will respond
to a breakpoint as shown in Table 7-9. Leakage onto the storage node and comparator reference capacitors may
compromise the accuracy of an immediately frozen conversion depending on the length of the freeze period.
Table 7-8. Conversion Sequence Length Coding
S8C
S4C
S2C
S1C
Number of Conversions
per Sequence
0
0
0
0
16
0
0
0
1
1
0
0
1
0
2
0
0
1
1
3
0
1
0
0
4
0
1
0
1
5
0
1
1
0
6
0
1
1
1
7
1
0
0
0
8
1
0
0
1
9
1
0
1
0
10
1
0
1
1
11
1
1
0
0
12
1
1
0
1
13
1
1
1
0
14
1
1
1
1
15
Table 7-9. ATD Behavior in Freeze Mode (Breakpoint)
FRZ1
0
0
1
1
FRZ0
0
1
0
1
Behavior in Freeze Mode
Continue conversion
Reserved
Finish current conversion, then freeze
Freeze Immediately
MC9S12KG128 Data Sheet, Rev. 1.15
Freescale Semiconductor
229