mc9s12xd256 Freescale Semiconductor, Inc, mc9s12xd256 Datasheet - Page 170

no-image

mc9s12xd256

Manufacturer Part Number
mc9s12xd256
Description
Hcs12x Microcontrollers
Manufacturer
Freescale Semiconductor, Inc
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
mc9s12xd256CAA
Manufacturer:
FREESCALE
Quantity:
3 564
Part Number:
mc9s12xd256CAA
Manufacturer:
Freescale Semiconductor
Quantity:
10 000
Part Number:
mc9s12xd256CAA
Manufacturer:
FREESCALE
Quantity:
3 564
Part Number:
mc9s12xd256CAG
Manufacturer:
FREESCALE
Quantity:
1 540
Part Number:
mc9s12xd256CAG
Manufacturer:
Freescale Semiconductor
Quantity:
10 000
Chapter 5 Analog-to-Digital Converter (S12ATD10B8CV3)
170
FRZ[1:0]
Field
FIFO
1–0
2
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; sequential conversion results are placed in consecutive result registers. In a continuously scanning
conversion sequence, the result register counter will wrap around when it reaches the end of the result register
file. The conversion counter value (CC2-0 in ATDSTAT0) can be used to determine where in the result register
file, the current conversion result will be placed.
Aborting a conversion or starting a new conversion by write to an ATDCTL register (ATDCTL5-0) clears the
conversion counter even if FIFO=1. So the first result of a new conversion sequence, started by writing to
ATDCTL5, will always be place in the first result register (ATDDDR0). Intended usage of FIFO mode is continuos
conversion (SCAN=1) or triggered conversion (ETRIG=1).
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
compromise the accuracy of an immediately frozen conversion depending on the length of the freeze period.
S8C
0
0
0
0
0
0
0
0
1
FRZ1
0
0
1
1
Table 5-9. ATD Behavior in Freeze Mode (Breakpoint)
Table 5-7. ATDCTL3 Field Descriptions (continued)
Table 5-8. Conversion Sequence Length Coding
S4C
X
0
0
0
0
1
1
1
1
Table
FRZ0
MC9S12XDP512 Data Sheet, Rev. 2.17
0
1
0
1
5-9. Leakage onto the storage node and comparator reference capacitors may
S2C
X
0
0
1
1
0
0
1
1
Finish current conversion, then freeze
S1C
Description
X
0
1
0
1
0
1
0
1
Behavior in Freeze Mode
Continue conversion
Freeze Immediately
Reserved
Number of Conversions
per Sequence
8
1
2
3
4
5
6
7
8
Freescale Semiconductor

Related parts for mc9s12xd256