Datasheet

2011 Microchip Technology Inc. DS22288A-page 47
MCP2210
3.2.6 SET (VM) GPIO CURRENT PIN DIRECTION
3.2.6.1 Responses
FIGURE 3-17: SET (VM) GPIO CURRENT PIN DIRECTION LOGIC FLOW
TABLE 3-44: COMMAND STRUCTURE
Byte
Index
Meaning
0 0x32 – Set (VM) GPIO Current Pin Direction
1 0x00 – Reserved
2 0x00 – Reserved
3 0x00 – Reserved
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 0x00 – Reserved
TABLE 3-45: RESPONSE 1 STRUCTURE
Byte
Index
Meaning
0 0x32 – Set (VM) GPIO Current Pin Directionechos back the given command code
1 0x00 – Command Completed Successfully
2 Don’t Care
3-63 Don’t Care
Set RAM GPIO
Direction
Response 1
RAM GPIO
Direction Written