57.7.24 ADC Touchscreen Y Position Register

Name: ADC_YPOSR
Offset: 0xB8
Reset: 0x00000000
Property: Read-only

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

Bits 27:16 – YSCALE[11:0] Scale of YPOS

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

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