Microchip Technology ADM00421 Data Sheet

Page of 82
MCP2210
DS22288A-page 48
 2011 Microchip Technology Inc.
3.2.7
GET GPIO CURRENT PIN VALUE
3.2.7.1
Responses
FIGURE 3-18:
GET GPIO CURRENT PIN VALUE LOGIC FLOW
TABLE 3-46:
COMMAND STRUCTURE
Byte 
Index
Meaning
0
0x31 – Get (VM) GPIO Current Pin Value
1
0x00 – Reserved
2
0x00 – Reserved
3-63
0x00 – Reserved
TABLE 3-47:
RESPONSE 1 STRUCTURE
Byte 
Index
Meaning
0
0x31  –  Get (VM) GPIO Current Pin Value – echos back the given command code
1
0x00  –  Command Completed Successfully
2
Don’t Care
3
Don’t Care
4
GPIO Pin Value – 16-bit value (low byte): 
• MSB             –             –             –               –             –              –            LSB
GP7VAL  GP6VAL  GP5VAL  GP4VAL  GP3VAL  GP2VAL  GP1VAL   GP0VAL
5
GPIO Pin Value – 16-bit value (high byte): 
• MSB      –        –       –       –        –       –       LSB
   x         x        x       x        x        x       x      GP8VAL
6-63
Don’t Care
Note 1:
This command will only have an effect on those GPs previously assigned to a GPIO functionality.
Get RAM GPIO 
Value
Response 1
RAM GPIO
Value Retrieved