Microchip Technology DV102012 Scheda Tecnica

Pagina di 58
AR1100 RESISTIVE USB AND RS-232 TOUCH SCREEN CONTROLLER
DS41606B-page 36
 2011 Microchip Technology Inc.
8.7
Command: FLUSH
The  FLUSH command is required to write/flush any
data remaining in the internal cache at the end of a boot
load session.
COMMAND PACKET:
RESPONSE PACKET:
8.8
Command: WRITE_MODE
The  WRITE_MODE command is used to change the
operational mode of the bootloader. The four modes
are described in 
.
COMMAND PACKET:
RESPONSE PACKET:
The boot load “MODE CODE” (referenced above) is a
1-byte value saved in nonvolatile memory to indicate
boot status.
TABLE 8-12:
COMMAND: FLUSH
BYTE#
VALUE
DESCRIPTION
1
0x55
SYNC
2
0x01
SIZE
3
0xF4
COMMAND
TABLE 8-13:
RESPONSE: FLUSH
BYTE#
VALUE
DESCRIPTION
1
0x55
SYNC
2
2
SIZE
3
STATUS
STATUS
4
0xF4
COMMAND
TABLE 8-14:
COMMAND: WRITE_MODE
BYTE#
VALUE
DESCRIPTION
1
0x55
SYNC
2
0x05
SIZE 
3
0xF5
COMMAND
4
n/a
5
n/a
6
n/a
7
M
1_Byte mode Code
TABLE 8-15:
RESPONSE: WRITE_MODE
BYTE#
VALUE
DESCRIPTION
1
0x55
SYNC
2
2
SIZE
3
STATUS
STATUS
4
0xF5
COMMAND
TABLE 8-16:
WRITE_MODE CODES
Value
Description
0x00 Normal mode (application)
0x01 Programming/Flashing ‘upper’ application
0x02 Programming/Flashing ‘lower’ application
0x03 Programming/Flashing temporary ‘boot’ 
module