Техническая Спецификация для Freescale Semiconductor Tower System Eval Kit for MC9S12GN32 TWR-S12GN32-KIT TWR-S12GN32-KIT
![Freescale Semiconductor](https://files.manualsbrain.com/attachments/3bb6ed54ced79535c16e15272d951c615eff7542/common/fit/150/50/1f2ce9b696676e671c4a5e26a6d7f7adf81e5b28c3d837b6200a14eeaf20/brand_logo.gif)
Модели
TWR-S12GN32-KIT
Analog-to-Digital Converter (ADC12B16CV2)
MC9S12G Family Reference Manual,
Rev.1.23
560
Freescale Semiconductor
16.3.2.5
ATD Control Register 4 (ATDCTL4)
Writes to this register will abort current conversion sequence.
Read: Anytime
Write: Anytime
Table 16-11. ATD Behavior in Freeze Mode (Breakpoint)
FRZ1
FRZ0
Behavior in Freeze Mode
0
0
Continue conversion
0
1
Reserved
1
0
Finish current conversion, then freeze
1
1
Freeze Immediately
Module Base + 0x0004
7
6
5
4
3
2
1
0
R
SMP2
SMP1
SMP0
PRS[4:0]
W
Reset
0
0
0
0
0
1
0
1
Figure 16-7. ATD Control Register 4 (ATDCTL4)
Table 16-12. 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).
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:
is calculated as follows:
Refer to Device Specification for allowed frequency range of f
ATDCLK
.
Table 16-13. Sample Time Select
SMP2
SMP1
SMP0
Sample Time
in Number of
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
f
ATDCLK
f
BUS
2
PRS
1
+
(
)
×
-------------------------------------
=