Microchip Technology ADM00421 Data Sheet

Page of 82
MCP2210
DS22288A-page 46
 2011 Microchip Technology Inc.
3.2.5
GET (VM) GPIO CURRENT PIN DIRECTION
3.2.5.1
Responses
FIGURE 3-16:
GET (VM) GPIO CURRENT PIN DIRECTION LOGIC FLOW
TABLE 3-42:
COMMAND STRUCTURE
Byte 
Index
Meaning
0
0x33 – Get (VM) GPIO Current Pin Direction
1
0x00 – Reserved
2
0x00 – Reserved
3-63
0x00 – Reserved
TABLE 3-43:
RESPONSE 1 STRUCTURE
Byte 
Index
Meaning
0
0x33  –  Get (VM) GPIO Current Pin Direction – echos back the given command code
1
0x00  –  Command Completed Successfully
2
Don’t Care
3
Don’t Care
4
GPIO Direction – 16-bit value (low byte): 
• MSB             –             –             –               –             –              –            LSB
GP7DIR  GP6DIR  GP5DIR  GP4DIR  GP3DIR  GP2DIR   GP1DIR   GP0DIR
5
GPIO Direction – 16-bit value (high byte): 
• MSB      –        –       –       –        –       –       LSB
   x         x        x       x        x        x       x      GP8DIR
6-63
Don’t Care
Note 1:
This command will only have an effect on those GPs previously configured as GPIOs.
Get RAM GPIO 
Direction
Response 1
RAM GPIO
Direction 
Retrieved