Datasheet
915
SAM9G15 [DATASHEET]
11052D–ATARM–31-Oct-12
41.8.19 ADC Touchscreen X Position Register
Name: ADC_XPOSR
Address: 0xF804C0B4
Access: Read-only
• XPOS: X Position
The Position measured is stored here. if XPOS = 0 or XPOS = XSIZE, the pen is on the border.
When pen detection is enabled (PENDET set to ‘1’ in ADC_TSMR register), XPOS is tied to 0 while there is no detection of con-
tact on the touchscreen (i.e. when PENS bitfield is cleared in ADC_ISR register).
• XSCALE: Scale of XPOS
Indicates the max value that XPOS can reach. This value should be close to 2
10
.
31 30 29 28 27 26 25 24
–––– XSCALE
23 22 21 20 19 18 17 16
XSCALE
15 14 13 12 11 10 9 8
–––– XPOS
76543210
XPOS