Chapter 13 Analog-to-Digital Converter (ADC12B16CV1)
MC9S12XE-Family Reference Manual , Rev. 1.19
Freescale Semiconductor
513
13.3.2.6
ATD Control Register 5 (ATDCTL5)
Writes to this register will abort current conversion sequence and start a new conversion sequence. If
external trigger is enabled (ETRIGE=1) an initial write to ATDCTL5 is required to allow starting of a
conversion sequence which will then occur on each trigger event. Start of conversion means the beginning
of the sampling phase.
Read: Anytime
Write: Anytime
Table 13-13. ATDCTL4 Field Descriptions
Field
Description
7–5
SMP[2:0]
Sample Time Select
— These three bits select the length of the sample time in units of ATD conversion clock
cycles. Note that the ATD conversion clock period is itself a function of the prescaler value (bits PRS4-0).
lists the available sample time lengths.
4–0
PRS[4:0]
ATD Clock Prescaler
— These 5 bits are the binary prescaler value PRS. The ATD conversion clock frequency
is calculated as follows:
Refer to Device Specification for allowed frequency range of f
ATDCLK
.
Table 13-14. Sample Time Select
SMP2
SMP1
SMP0
Sample Time
in Number of
ATD Clock Cycles
0
0
0
4
0
0
1
6
0
1
0
8
0
1
1
10
1
0
0
12
1
0
1
16
1
1
0
20
1
1
1
24
Module Base + 0x0005
7
6
5
4
3
2
1
0
R
0
SC
SCAN
MULT
CD
CC
CB
CA
W
Reset
0
0
0
0
0
0
0
0
Figure 13-8. ATD Control Register 5 (ATDCTL5)
f
ATDCLK
f
BUS
2
PRS
1
+
(
)
×
-------------------------------------
=
Because
of
an
order
from
the
United
States
International
Trade
Commission,
BGA-packaged
product
lines
and
part
numbers
indicated
here
currently
are
not
available
from
Freescale
for
import
or
sale
in
the
United
States
prior
to
September
2010:
S12XE
products
in
208
MAPBGA
packages