Datasheet

MCP2221
DS20005292A-page 32 2014 Microchip Technology Inc.
3.1.3 WRITE FLASH DATA
This command is used to write various important data
structures and strings into the Flash memory of the
device.
TABLE 3-11: COMMAND STRUCTURE
Byte
Index
Function Description Value Effect
0 0xB1 Write Flash Data – command code
1 Write Flash Data Sub-code. The value in
this field will instruct the MCP2221 about
the particular Flash settings to be altered
0x00 Write Chip Settings – it will write the MCP2221 NVRAM
settings
0x01 Write GP Settings – it will write the MCP2221 NVRAM
GP settings.
0x02 Write USB Manufacturer Descriptor String – writes the
USB Manufacturer String Descriptor used during the
USB enumeration.
0x03 Write USB Product Descriptor String – writes the USB
Product String Descriptor used during the USB
enumeration.
0x04 Write USB Serial Number Descriptor String – writes the
USB Serial Number String Descriptor used during the
USB enumeration.
Any
other
value
No meaning. The device will reply with a code for an
unsupported command at Byte Index 1 in the response
report.
2-63 Data to be written Data format depends on the Write Flash Data Sub-code
(at Byte Index 1).