57.7.23 ADC Touchscreen X Position Register

Name: ADC_XPOSR
Offset: 0xB4
Reset: 0x00000000
Property: Read-only

Bit 3130292827262524 
     XSCALE[11:8] 
Access RRRR 
Reset 0000 
Bit 2322212019181716 
 XSCALE[7:0] 
Access RRRRRRRR 
Reset 00000000 
Bit 15141312111098 
     XPOS[11:8] 
Access RRRR 
Reset 0000 
Bit 76543210 
 XPOS[7:0] 
Access RRRRRRRR 
Reset 00000000 

Bits 27:16 – XSCALE[11:0] Scale of XPOS

Indicates the max value that XPOS can reach. This value should be close to 212.

Bits 11:0 – XPOS[11:0] 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 (ADC_TSMR.PENDET set to ‘1’), XPOS is tied to 0 while there is no detection of contact on the touchscreen (i.e., when the ADC_ISR.PENS bit is cleared).