English
Language : 

AR1000 Datasheet, PDF (19/37 Pages) Microchip Technology – Resistive Touch Screen Controller
7.12.10 TouchMode Register (offset 0x0C)
The TouchMode register configures the action taken for various touch states.
There are three states of touch for which the controller touch reporting action can be independently controlled.
Touch States:
1) Pen down (initial touch)
User defined 0-3 touch reports, with selectable pen states.
2) Pen Movement (touch movement after initial touch)
User defined no touch reports or streaming touch reports, with selectable pen states.
3) Pen Up (touch release)
User defined 0-3 touch reports, with selectable pen states.
Every touch report include a “P” (Pen) bit that indicates the pen state.
 Pen Down
: P=1
 Pen Up
: P=0
R = Readable bit, W = Writable bit, U = Unimplemented bit read as ‘0’
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
PD2
PD1
PD0
PM1
PM0
PU2
PU1
PU0
Bit 7
Bit 0
bit 7-5 PD<7:5>: Pen Down State bits (action taken upon pen down).
000 = No Touch Report
001 = Touch Report with P=0
010 = Touch Report with P=1
011 = Touch Report with P=1, then Touch Report with P=0
100 = Touch Report with P=0, then Touch Report with P=1, then Touch Report with P=0
101 = Touch Report with P=0, then Touch Report with P=1
bit 4-3 PM<4:3>: Pen Movement State bits (action taken upon pen movement).
00 = No Touch Report
01 = Touch Report with P=0
10 = Touch Report with P=1
bit 2-0 PU<2:0>: Pen Up State bits (action taken upon pen up).
000 = No Touch Report
001 = Touch Report with P=0
010 = Touch Report with P=1
011 = Touch Report with P=1, then Touch Report with P=0
100 = Touch Report with P=0, then Touch Report with P=1, then Touch Report with P=0
101 = Touch Report with P=0, then Touch Report with P=1
A couple of typical setup examples for the TouchMode are as follows.
 Report a pen down P=1 on initial touch, followed by reporting a stream of pen downs P=1 during the touch,
followed by a final pen up P=0 on touch release. TouchMode = 0b01010001 = 0x51
 Report a pen up P=0 then a pen down P=1 on initial touch, followed by reporting a stream of pen downs P=1
during the touch, followed by a final pen up P=0 on touch release. TouchMode = 0b10110001 = 0xB1
© 2009 Microchip Technology, Inc.
DS41393A-Page 15