MCP2210
3.1.10
GET USB PRODUCT NAME
TABLE 3-25: COMMAND STRUCTURE
Byte
Index
Meaning
0
1
0x61 – Get NVRAM Settings – command code
0x40 – Get USB Product Name – sub-command code
0x00 – Reserved
2
3-63
0x00 – Reserved
3.1.10.1
Responses
TABLE 3-26: RESPONSE 1 STRUCTURE
Byte
Index
Meaning
0
1
2
3
4
0x61 – Get NVRAM Settings – echos back the given command code
0x00 – Command Completed Successfully
0x40 – Sub-command Echoed Back for Get USB Product Name code
Don’t Care
Total USB String Descriptor Length (this is the length of the Product string multiplied by 2 + 2)
Example: “MCP2210 USB to SPI Master” has 25 Unicode characters
- The retrieved value is: (25 x 2) + 2 = 52 (decimal) = 0x34
5
6
USB String Descriptor ID – always 0x03
Unicode Character Low byte
Example: For the “MCP2210 USB to SPI Master” Unicode string, there will be the low byte of the
Unicode for character “M”.
- This byte index will have a value of 0x4D
7
Unicode Character High byte
Example: For the “MCP2210 USB to SPI Master” Unicode string, there will be the high byte of the
Unicode for character “M”.
- This byte index will have a value of 0x00
Remaining Unicode Characters
8-63
FIGURE 3-10:
GET USB PRODUCT NAME LOGIC FLOW
Get NVRAM USB
Product Name
Response 1
NVRAM USB
Product Name
Retrieved
2011 Microchip Technology Inc.
DS22288A-page 31