3.8.4 IO2SETTING

Name: IO2SETTING
Offset: 0x04
Property: -

Bit 76543210 
 IDLST2ALRT1EG[1:0]OD2SELPU2SELIO2DIRIO2DES[1:0] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00001100 

Bit 7 – IDLST2 IO2 Pin Idle or Default Output State Selection

This is valid only when the pin is configured as an output pin.
ValueDescription
0 Idle state default output value is logic ‘0
1 Idle state or default output value is logic ‘1

Bits 6:5 – ALRT1EG[1:0] Alert1 or Interrupt1 Pin Edge Selection

This is valid only when the pin is configured as the ALRT1 pin.
ValueDescription
00 Alert or interrupt disabled (factory default)
01 Falling edge
10 Rising edge
11 Both edge

Bit 4 – OD2SEL IO2 Pin Open-Drain Selection

This is valid only when the pin is configured as an output and not as a CSx pin.
ValueDescription
0 The output pin is not an open-drain pin
1 The output pin is an open-drain pin

Bit 3 – PU2SEL IO2 Pin Pull-Up Enable

This is valid only when the pin is configured as an input.
ValueDescription
0 The internal pull-up is disabled
1 The internal pull-up is enabled (factory default)

Bit 2 – IO2DIR IO2 Direction

Input or output.
ValueDescription
0 GPIO output
1 GPIO input (factory default)

Bits 1:0 – IO2DES[1:0] IO2 Designation

Input or output.
ValueDescription
00 GPIO2 pin (GPIO2) (factory default)
01 UART receive activity (RXA)
10 SPI client chip select 1 pin (CS1)
11 Alert1 or interrupt1 pin (ALRT1)