Datasheet
MTCH6301 PROJECTED CAPACITIVE TOUCH CONTROLLER
DS41663A-page 12 2012 Microchip Technology Inc.
5.5 Command Protocol
Figure 5-2 depicts bidirectional communication
protocol (for reading/writing configuration data).
FIGURE 5-2: COMMAND PROTOCOL
5.6 Full Command Set
A complete listing of MTCH6301 commands is shown
in Table 5 - 3. Any commands which contain data bytes,
either sent or received, are shown alongside an
example stream of data in the following sections.
5.6.1 WRITE REGISTER/READ
REGISTER
Writes or reads a single register. Note that all registers
are volatile, and any modified data will be lost on power
down. Registers must be saved to NVRAM to store the
configuration permanently
size: Number of remaining bytes in packet
cmd: Command invoked for being responded to
result: Controller command-specific result
0x00 = Success
0x80 = Parameter out of range
0xFE = Timeout (not enough bytes received)
0xFF = Unrecognized command
0xFD = Invalid parameter
0xFC = Missing or extra parameter
data: Data associated with command
0x55 [size] [cmd] Data 0 ... Data n
0x55 [size] [res] Data 0 ... Data n[cmd]
Command (from Master):
Response (from MTCH6301):
TABLE 5-3: COMMAND SET
ID Name Description
0x00 Enable Touch Enable touch functionality
0x01 Disable Touch Disable touch functionality
0x14 Scan Baseline Instruct controller to scan for a new sensor baseline
0x15 Write Register Write data to a specific register
0x16 Read Register Read data from a specific register
0x17 Write NVRAM Write all current register values to NVRAM
0x18 Software Sleep Instructs the controller to enter sleep mode
0x19 Erase NVRAM Erase the contents of the non-volatile RAM section.
0x1A Manufacturing Test Perform manufacturing tests on all sensor I/O channels