3.8.6 IO4SETTING
| Name: | IO4SETTING |
| Offset: | 0x06 |
| Property: | - |
| Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
| IDLST4 | ALRT2EG[1:0] | OD4SEL | PU4SEL | IO4DIR | IO4DES[1:0] | ||||
| Access | R/W | R/W | R/W | R/W | R/W | R/W | R/W | R/W | |
| Reset | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | |
Bit 7 – IDLST4 IO4 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’ (factory
default) |
Bits 6:5 – ALRT2EG[1:0] Alert2 or Interrupt2 Pin Edge Selection
| Value | Description |
|---|---|
| 00 | Alert or interrupt disabled |
| 01 | Falling edge |
| 10 | Rising edge |
| 11 | Both edge |
Bit 4 – OD4SEL IO4 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 – PU4SEL IO4 Pin Pull-Up Enable
| Value | Description |
|---|---|
| 0 | The internal pull-up is disabled |
| 1 | The internal pull-up is enabled |
Bit 2 – IO4DIR IO4 Direction
| Value | Description |
|---|---|
| 0 | GPIO output (factory default) |
| 1 | GPIO input |
Bits 1:0 – IO4DES[1:0] IO4 Designation
| Value | Description |
|---|---|
| 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) |
