Microchip Technology ADM00419 Data Sheet
2011 Microchip Technology Inc.
DS22288A-page 11
MCP2210
3.0
USB COMMANDS/RESPONSES
DESCRIPTION
DESCRIPTION
MCP2210 implements the HID interface for all the
device-provided functionalities. The chip uses a
command/response mechanism for the USB engine.
This means that for every USB command sent (by the
USB host) to the MCP2210, it will always reply
device-provided functionalities. The chip uses a
command/response mechanism for the USB engine.
This means that for every USB command sent (by the
USB host) to the MCP2210, it will always reply
with a
response packet.
The MCP2210 USB commands can be grouped by
their provided features as follows:
•
The MCP2210 USB commands can be grouped by
their provided features as follows:
•
- Read/Write NVRAM related parameters
- Send access password
- Send access password
•
(copied from NVRAM
at power-up or Reset):
- Read/Write (volatile – RAM stored settings)
- Read/Write (volatile – RAM stored settings)
SPI transfer settings
- Read/Write (volatile – RAM stored settings)
chip settings
- Read/Write (volatile – RAM stored settings)
GPIO direction
- Read/Write (volatile – RAM stored settings)
GPIO output values
•
•
•
- Read/Write SPI transfer data
- Cancels the ongoing SPI transfer
- SPI bus release manipulation
- Cancels the ongoing SPI transfer
- SPI bus release manipulation
•
and Unsupported commands
3.1
NVRAM Settings
The commands in this category are related to the NVRAM settings manipulation.
3.1.1
SET CHIP SETTINGS POWER-UP DEFAULT
TABLE 3-1:
COMMAND STRUCTURE
Byte Index
Meaning
0
0x60 – Set Chip NVRAM Parameters – command code
1
0x20 – Set Chip Settings Power-up Default – sub-command code
2
0x00 – Reserved
3
0x00 – Reserved
4
GP0 Pin Designation
• GPIO = 0x00
• Chip Selects = 0x01
• Dedicated Function pin = 0x02
• GPIO = 0x00
• Chip Selects = 0x01
• Dedicated Function pin = 0x02
5
GP1 Pin Designation
• GPIO = 0x00
• Chip Selects = 0x01
• Dedicated Function pin = 0x02
• GPIO = 0x00
• Chip Selects = 0x01
• Dedicated Function pin = 0x02
6
GP2 Pin Designation
• GPIO = 0x00
• Chip Selects = 0x01
• Dedicated Function pin = 0x02
• GPIO = 0x00
• Chip Selects = 0x01
• Dedicated Function pin = 0x02
7
GP3 Pin Designation
• GPIO = 0x00
• Chip Selects = 0x01
• Dedicated Function pin = 0x02
• GPIO = 0x00
• Chip Selects = 0x01
• Dedicated Function pin = 0x02
8
GP4 Pin Designation
• GPIO = 0x00
• Chip Selects = 0x01
• Dedicated Function pin = 0x02
• GPIO = 0x00
• Chip Selects = 0x01
• Dedicated Function pin = 0x02