3.8.6 IO4SETTING

Name: IO4SETTING
Offset: 0x06
Property: -

Bit 76543210 
 IDLST4ALRT2EG[1:0]OD4SELPU4SELIO4DIRIO4DES[1:0] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 10000010 

Bit 7 – IDLST4 IO4 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’ (factory default)

Bits 6:5 – ALRT2EG[1:0] Alert2 or Interrupt2 Pin Edge Selection

This is valid only when the pin is configured as the ALRT2 pin.
ValueDescription
00 Alert or interrupt disabled
01 Falling edge
10 Rising edge
11 Both edge

Bit 4 – OD4SEL IO4 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 – PU4SEL IO4 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

Bit 2 – IO4DIR IO4 Direction

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

Bits 1:0 – IO4DES[1:0] IO4 Designation

Input or output.
ValueDescription
00 GPIO4 pin (GPIO4)
01 USB configuration (enumeration) done
10 SPI client chip select 0 pin (CS0) (factory default)
11 Alert2 or Interrupt2 pin (ALRT2)