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

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