Datasheet

969
SAM9X35 [DATASHEET]
11055E–ATARM–10-Mar-2014
42.8.20 ADC Touchscreen Y Position Register
Name: ADC_YPOSR
Address: 0xF804C0B8
Access: Read-only
YPOS: Y Position
The Position measured is stored here. if YPOS = 0 or YPOS = YSIZE, the pen is on the border.
When pen detection is enabled (PENDET set to ‘1’ in ADC_TSMR register), YPOS 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).
YSCALE: Scale of YPOS
Indicates the max value that YPOS can reach. This value should be close to 2
10
31 30 29 28 27 26 25 24
–––– YSCALE
23 22 21 20 19 18 17 16
YSCALE
15 14 13 12 11 10 9 8
–––– YPOS
76543210
YPOS