Touchscreen Controller/Analog-to-Digital Converter
MCF52277 Reference Manual, Rev. 1
Freescale Semiconductor
22-17
22.5
Initialization/Application Information
After reset, the ASP module is in power-down mode. Configure the module according to the application
requirements. Then, enable the module by clearing ASP_CR[MDIS]. The suggested configuration for
various typical applications is defined in this section.
22.5.1
Touchscreen Mode 00
Touchscreen mode 00 provides the most flexibility. All control of the bias switches and reference/input
muxes is dependent on ASP_SET. Starting the conversion is also fully decided by asserting ASPE. With
this flexibility, you can freely define your own operation sequence. Although TSE is set in this mode, you
can also use this mode to implement complex general-purpose ADC conversion sequences. Because of this
flexibility, it is the only mode not suitable for basic operation and requires the heaviest load on the
processor. Therefore, it is highly recommended not to use this mode, unless other modes cannot achieve
the required operation.
illustrate a typical operation sequence when TSE = 1, CALA = 0,
MODE = 00 (AUTO, AZE, PENE, MIDLECNT, and RIDLECNT are not relevant to the operation).
Table 22-12. General ADC Operating Modes (TSE=0)
ASP_CR Field
Pen Sample FIFO
Data Format
Notes
AU
T
O
ASPE
0
0
No data is written
to the FIFO
When ASPE is cleared, there is no operation.
0
1
U
n
,…,U
1
When ASPE is set, the ASP starts one round of conversion. For each active auxiliary
channel an ADC conversion is initiated. The process repeats until the last active auxiliary
channel is complete. Between each conversion, optional measurement idle time can be
inserted using ASP_TIM[MIDLECNT].
If no auxiliary channel is active (ASP_CR[APTN] = 0x00), there is no operation.
1
0
No data is written
to the FIFO
When ASPE is cleared, there is no operation.
1
1
U
n
,…,U
1
,
U
n
,…,U
1
,
…
When ASPE is set, the ASP starts continuous conversion on active auxiliary channels.
The measurement sequence is started from highest numbered active channel to lowest
numbered active channel. The same sequence repeats until ASPE is cleared. For each
active auxiliary channel an ADC conversion is initiated. Between each conversion, except
the round that wraps to the highest numbered auxiliary channel, optional measurement
idle time can be inserted using ASP_TIM[MIDLECNT]. At the end of each round of
conversion, there is an option to insert round idle time using ASP_TIM[RIDLECNT].
If no auxiliary channel is active (ASP_CR[APTN] = 0x00), there is no operation.
Summary of Contents for MCF52277
Page 22: ...MCF52277 Reference Manual Rev 1 Freescale Semiconductor xxii...
Page 32: ...MCF52277 Reference Manual Rev 0 xxxii Freescale Semiconductor...
Page 60: ...Signal Descriptions MCF52277 Reference Manual Rev 1 2 16 Freescale Semiconductor...
Page 128: ...Static RAM SRAM MCF52277 Reference Manual Rev 1 6 6 Freescale Semiconductor...
Page 140: ...Clock Module MCF52277 Reference Manual Rev 1 7 12 Freescale Semiconductor...
Page 172: ...Chip Configuration Module CCM MCF52277 Reference Manual Rev 1 9 16 Freescale Semiconductor...
Page 180: ...Serial Boot Facility SBF MCF52277 Reference Manual Rev 1 10 8 Freescale Semiconductor...
Page 188: ...Reset Controller Module MCF52277 Reference Manual Rev 1 11 8 Freescale Semiconductor...
Page 210: ...Crossbar Switch XBS MCF52277 Reference Manual Rev 1 13 8 Freescale Semiconductor...
Page 542: ...FlexCAN MCF52277 Reference Manual Rev 1 23 32 Freescale Semiconductor...
Page 724: ...UART Modules MCF52277 Reference Manual Rev 1 30 34 Freescale Semiconductor...
Page 740: ...I2 C Interface MCF52277 Reference Manual Rev 1 31 16 Freescale Semiconductor...
Page 790: ...Debug Module MCF52277 Reference Manual Rev 1 32 50 Freescale Semiconductor...