Datasheet

2014 Microchip Technology Inc. DS20005292A-page 55
MCP2221
22 GP0 settings
Bit 7-5 Don’t
care
Bit 4: GPIO Output value When the GP0 is set as an output GPIO, this value will
be present at the GP0 pin.
Bit 3: GPIO Direction (Input/Output)
Works only when GP0 is set for GPIO
operation
1 GPIO Input mode
0 GPIO Output mode
Bit 2-0: GP0 Designation 111-011 Don’t care
010 Alternate function 1 (LED UART RX)
001 Dedicated function operation (SSPND)
000 GPIO operation
23 GP1 settings
Bit 7-5 Don’t
care
Bit 4: GPIO Output value When the GP1 is set as an output GPIO, this value will
be present at the GP1 pin.
Bit 3: GPIO Direction (Input/Output)
Works only when GP1 is set for GPIO
operation
1 GPIO Input mode
0 GPIO Output mode
Bit 2-0: GP1 Designation 111-101 Don’t care
100 Alternate function 3 (Interrupt Detection)
011 Alternate function 2 (LED UART TX)
010 Alternate function 1 (ADC 1)
001 Dedicated function operation (Clock Output)
000 GPIO operation
24 GP2 settings
Bit 7-5 Don’t
care
Bit 4: GPIO Output value When the GP2 is set as an output GPIO, this value will
be present at the GP2 pin.
Bit 3: GPIO Direction (Input/Output)
Works only when GP2 is set for GPIO
operation
1 GPIO Input mode
0 GPIO Output mode
Bit 2-0: GP2 Designation 111-100 Don’t care
011 Alternate function 2 (DAC1)
010 Alternate function 1 (ADC2)
001 Dedicated function operation (USBCFG)
000 GPIO operation
TABLE 3-39: RESPONSE 1 STRUCTURE (CONTINUED)
Byte
Index
Function Description Value Effect