Analog to Digital (ATD) Module
MC1321x Reference Manual, Rev. 1.6
Freescale Semiconductor
20-13
ATDIE — ATD Interrupt Enabled
When this bit is set, an interrupt is generated upon completion of an ATD conversion. At this time, the
result registers contain the result data generated by the conversion. The interrupt will remain pending
as long as the conversion complete flag CCF is set. If the ATDIE bit is cleared, then the CCF bit must
be polled to determine when the conversion is complete. Note that system reset clears pending
interrupts.
1 = ATD interrupt enabled.
0 = ATD interrupt disabled.
ATDCO — ATD Continuous Conversion
When this bit is set, the ATD will convert samples continuously and update the result registers at the
end of each conversion. When this bit is cleared, only one conversion is completed between writes to
the ATD1SC register.
1 = Continuous Conversion Mode.
0 = Single Conversion Mode.
ATDCH — Analog Input Channel Select
This field of bits selects the analog input channel whose signal is sampled and converted to digital
codes.
lists the coding used to select the various analog input channels.
20.6.3
ATD Result Data (ATD1RH, ATD1RL)
For Left-justified Mode, result data bits 9–2 map onto bits 7–0 of ATD1RH, result data bits 1 and 0 map
onto ATD1RL bits 7 and 6, where bit 7 of ATD1RH is the most significant bit (MSB).
Figure 20-8. Left-Justified Mode
Table 20-5. Analog Input Channel Select Coding
ATDCH
Analog Input Channel
00
AD0
01
AD1
02
AD2
03
AD3
04
AD4
05
AD5
06
AD6
07
AD7
08–1D
Reserved (default to V
REFL
)
1E
V
REFH
1F
V
REFL
7
6
5
4
3
2
1
0
7
6
5
4
3
2
1
0
9
0
ATD1RH
ATD1RL
RE-
Содержание freescale semiconductor MC13211
Страница 40: ...MC1321x Pins and Connections MC1321x Reference Manual Rev 1 6 2 6 Freescale Semiconductor...
Страница 100: ...MC1321x Serial Peripheral Interface SPI MC1321x Reference Manual Rev 1 6 4 24 Freescale Semiconductor...
Страница 166: ...Modem Modes of Operation MC1321x Reference Manual Rev 1 6 7 22 Freescale Semiconductor...
Страница 172: ...Modem Interrupt Description MC1321x Reference Manual Rev 1 6 8 6 Freescale Semiconductor...
Страница 186: ...MCU Modes of Operation MC1321x Reference Manual Rev 1 6 10 8 Freescale Semiconductor...
Страница 208: ...MCU Memory MC1321x Reference Manual Rev 1 6 11 22 Freescale Semiconductor...
Страница 244: ...MCU Parallel Input Output MC1321x Reference Manual Rev 1 6 13 20 Freescale Semiconductor...
Страница 288: ...MCU Central Processor Unit CPU MC1321x Reference Manual Rev 1 6 15 20 Freescale Semiconductor...
Страница 308: ...MCU Timer PWM TPM Module MC1321x Reference Manual Rev 1 6 17 16 Freescale Semiconductor...
Страница 338: ...Inter Integrated Circuit IIC MC1321x Reference Manual Rev 1 6 19 14 Freescale Semiconductor...
Страница 372: ...Development Support MC1321x Reference Manual Rev 1 6 21 20 Freescale Semiconductor...