English
Language : 

SAM9M10_14 Datasheet, PDF (923/1385 Pages) ATMEL Corporation – Atmel | SMART ARM-based Embedded MPU
3. Convert Channel Xp and store the result in both TSADCC_Z1DR and TSADCC_LCDR.
4. Close the switches on the inputs XM and YP during the Sample and Hold Time.
5. Convert Channel YM and store the result in both TSADCC_Z2DR and TSADCC_LCDR.
6. Close the switches on the inputs XP and XM during the Sample and Hold Time.
7. Convert Channel XM and store the result in TSADCC_CDR1.
8. Close the switches on the inputs XP and XM during the Sample and Hold Time.
9. Convert Channel Xp, subtract TSADCC_CDR1 from the result and store the subtraction result in both
TSADCC_CDR0 and TSADCC_LCDR.
10. Close the switches on the inputs XP and XM during the Sample and Hold Time.
11. Convert Channel YP and store the result in TSADCC_XPDR, subtract TSADCC_CDR1 from the result and
store the subtraction result in both TSADCC_CDR1 and TSADCC_LCDR.
12. Close the switches on the inputs YP and YM during the Sample and Hold Time.
13. Convert Channel YM and store the result in TSADCC_CDR3 while storing content of TSADCC_XPDR in
TSADCC_LCDR.
14. Close the switches on the inputs YP and YM during the Sample and Hold Time.
15. Convert Channel Yp subtract TSADCC_CDR3 from the result and store the subtraction result in both
TSADCC_CDR2 and TSADCC_LCDR.
16. Close the switches on the inputs YP and YM during the Sample and Hold Time.
17. Convert Channel Xp subtract TSADCC_CDR3 from the result and store the subtraction result in both
TSADCC_CDR3 and TSADCC_LCDR.
18. if Channel 4 to channel 7are enabled, convert the channels and store result in the corresponding
TSADCC_CDRx and TSADCC_LCDR
19. If SLEEP is set, sleep down the ADC cell.
The resulting buffer is 16 bits wide and its structure stored in memory is:
1. Z1
2. Z2
3. XP - XM
4. YP - XM
5. Xpos
6. YP - YM
7. XP - YM
8. AD4 to AD7 if enabled.
The vertical position can be easily calculated by dividing the data at offset 2 (XP - XM) by the data at offset 3(YP -
XM).
The horizontal position can be easily calculated by dividing the data at offset 5 (YP - YM) by the data at offset 7 (XP
- YM).
The Pressure measure can be calculated using the following formula
Rp = Rxp*(Xpos/1024)*[(Z2/Z1)-1]
39.10.3 Interleaved Mode
In the Interleaved Mode, the conversion of the touch screen channels are made in parallel to each channel. In
addition to interleaving, the analog channels 4 and 5 can be converted more often than the touch screen channels
depending on the TSFREQ field in the register TSADCC_MR. In the interleaved mode at least one ADC channel
must be enabled.
SAM9M10 [DATASHEET]
Atmel-6355G-ATARM-SAM9M10-Datasheet_02-Sept-14
923