Datasheet

2009-2012 Microchip Technology Inc. Preliminary DS41393B-page 35
AR1000 SERIES RESISTIVE TOUCH SCREEN CONTROLLER
9.0 COMMANDS
9.1 Sending Commands
9.1.1 COMMAND SEND FORMAT
The controller supports application-specific
configuration commands as shown in Tab l e 9-1 , below.
To ensure command communication is not interrupted
by touch activity, it is recommended that the controller
touch is disabled, prior to other commands. This can be
done as follows:
1. Send DISABLE_TOUCH command
2. Wait 50 ms
3. Send desired commands
4. Send ENABLE_TOUCH command
9.1.2 COMMAND RESPONSE
A received command will be responded to as seen in
Table 9-2 below.
The “Status” value within the response packet should
be one of the following (See Table 9-3):
TABLE 9-1: COMMAND SEND FORMAT
Byte # Name Value Description
1 Header 0x55 Header (mark beginning of command packet)
2 Size 0x<> Size, # of bytes following this byte
3 Command 0x<> Command ID
4 Data 0x<> Data, if applicable for the command
: Data 0x<> Data, if applicable for the command
TABLE 9-2: COMMAND RESPONSE FORMAT
Byte # Name Value Description
1 Header 0x55 Header (mark beginning of command packet)
2 Size 0x<> Size, # of bytes following this byte
3 Status 0x<> Status
4 Command 0x<> Command ID
5 Data 0x<> Data, if applicable for the command
: Data 0x<> Data, if applicable for the command
TABLE 9-3: COMMAND RESPONSE
STATUS VALUES
Status Value Description
0x00 Success
0x01 Command Unrecognized
0x03 Header Unrecognized
0x04 Command Time Out (exceeded ~100
ms)
0xFC Cancel Calibration mode