Atmel ARM-Based Evaluation Kit AT91SAM9N12-EK AT91SAM9N12-EK Data Sheet

Product codes
AT91SAM9N12-EK
Page of 1104
907
SAM9N12/SAM9CN11/SAM9CN12 [DATASHEET]
11063K–ATARM–05-Nov-13
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
7
6
5
4
3
2
1
0
YPOS