1005
6437E–ATARM–23-Apr-13
SAM9M11
5.
If Channel 1 is enabled, convert Channel 1 and store result in both TSADCC_CDR1
and TSADCC_LCDR.
6.
If Channel 2 is enabled, convert Channel 2 and store result in both TSADCC_CDR2
and TSADCC_LCDR.
7.
If Channel 3 is enabled, convert Channel 3 and store result in both TSADCC_CDR3
and TSADCC_LCDR.
8.
If Channel 4 to Channel 7 are enabled, convert the Channels and store result in the cor-
responding TSADCC_CDRx and TSADCC_LCDR.
9.
If SLEEP is set, sleep down the ADC cell.
If the PDC is enabled, all the converted data are transferred contiguously in the memory buffer.
The bit LOWRES defines which resolution is used, either 8-bit or 10-bit, and thus the width of the
PDC memory buffer.
42.10.2
Touch Screen Mode
Writing TSAMOD to “Touch Screen Only Mode” automatically enables the touch screen pins as
analog inputs, and thus disables the digital function of the corresponding pins.
In Touch Screen Mode, the channels 0 to 3 corresponding to the Touch Screen inputs are auto-
matically activated and the bits CH0 to CH3 are automatically set in the
“TSADCC ChannelThe remaining channels can be either enabled or disabled by the user and their conversions are
performed at the end of each touch screen sequence.
The resolution is forced to 10 bits, regardless of the LOWRES bit setting.
is performed to measure only position.
1.
If SLEEP is set, wake up the ADC cell and wait for the Startup Time.
2.
Close the switches on the inputs X
P and XM during the Sample and Hold Time.
3.
Convert Channel X
M and store the result in TSADCC_CDR1.
4.
Close the switches on the inputs X
P and XM during the Sample and Hold Time.
5.
Convert Channel X
P, subtract TSADCC_CDR1 from the result and store the subtraction
result in both TSADCC_CDR0 and TSADCC_LCDR.
6.
Close the switches on the inputs X
P and XM during the Sample and Hold Time.
7.
Convert Channel Y
P, subtract TSADCC_CDR1 from the result and store the subtraction
result in both TSADCC_CDR1 and TSADCC_LCDR.
8.
Close the switches on the inputs Y
P and YM during the Sample and Hold Time.
9.
Convert Channel Y
M and store the result in TSADCC_CDR3.
10. Close the switches on the inputs Y
P and YM during the Sample and Hold Time.
11. Convert Channel Y
P, subtract TSADCC_CDR3 from the result and store the subtraction
result in both TSADCC_CDR2 and TSADCC_LCDR.
12. Close the switches on the inputs Y
P and YM during the Sample and Hold Time.
13. Convert Channel X
P, subtract TSADCC_CDR3 from the result and store the subtraction
result in both TSADCC_CDR3 and TSADCC_LCDR.
14. If Channel 4 to Channel 7 are enabled, convert the Channels and store result in the cor-
responding TSADCC_CDRx and TSADCC_LCDR.
15. If SLEEP is set, sleep down the ADC cell.
The resulting buffer is 16 bits wide and its structure stored in memory is: