3.8.4 IO2SETTING
| Name: | IO2SETTING |
| Offset: | 0x04 |
| Property: | - |
| Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
| IDLST2 | ALRT1EG[1:0] | OD2SEL | PU2SEL | IO2DIR | IO2DES[1:0] | ||||
| Access | R/W | R/W | R/W | R/W | R/W | R/W | R/W | R/W | |
| Reset | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | |
Bit 7 – IDLST2 IO2 Pin Idle or Default Output State Selection
| Value | Description |
|---|---|
| 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
| Value | Description |
|---|---|
| 00 | Alert or interrupt disabled (factory default) |
| 01 | Falling edge |
| 10 | Rising edge |
| 11 | Both edge |
Bit 4 – OD2SEL IO2 Pin Open-Drain Selection
| Value | Description |
|---|---|
| 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
| Value | Description |
|---|---|
| 0 | The internal pull-up is disabled |
| 1 | The internal pull-up is enabled (factory default) |
Bit 2 – IO2DIR IO2 Direction
| Value | Description |
|---|---|
| 0 | GPIO output |
| 1 | GPIO input (factory default) |
Bits 1:0 – IO2DES[1:0] IO2 Designation
| Value | Description |
|---|---|
| 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) |
