Datasheet

2011 Microchip Technology Inc. DS22288A-page 49
MCP2210
3.2.8 SET GPIO CURRENT PIN VALUE
3.2.8.1 Responses
FIGURE 3-19: SET GPIO CURRENT PIN VALUE LOGIC FLOW
TABLE 3-48: COMMAND STRUCTURE
Byte
Index
Meaning
00x30 Set (VM) GPIO Current Pin Value
10x00 Reserved
20x00 Reserved
30x00 Reserved
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 0x00 – Reserved
Note 1: The GPIO pin value will have an effect only on those GPs previously configured as GPIOs.
TABLE 3-49: RESPONSE 1 STRUCTURE
Byte
Index
Meaning
0 0x30 – Set (VM) GPIO Current Pin Value – echos back the given command code
10x00 - Command Completed Successfully
2 Don’t Care
3 Don’t Care
4 Read Back Actual GPIO Pin Value – 16-bit value (low byte):
MSB LSB
GP7VAL GP6VAL GP5VAL GP4VAL GP3VAL GP2VAL GP1VAL GP0VAL
5 Read Back Actual GPIO Pin Value – 16-bit value (high byte):
MSB – – – – – LSB
x x x x x x x GP8VAL
6-63 Don’t Care
Set RAM GPIO
Output Value
Response 1
RAM GPIO
Output Value
Written