SLVUCU5 December 2025 UCD91160 , UCD91320
This Read/Write Byte Command configures the GPIO identified by the GPIO_SELECT command. The Status bit is read-only and gives the current state of the pin. The Out_Enable bit determines if the pin is an output (1 – actively driven) or an input (0 – high impedance). The Out_Value bit determines the state of the pin when it is configured as an output. The Enable bit is a flag indicating whether or not to process this command. When the Enable bit is cleared, this command is ignored. To temporarily change to an output pin state, write this command twice. In the first write, set the Enable bit to 1 so that the changes can be applied. In the second write, set the Enable bit to 0. This does not change the pin state; and because the Enable bit is 0, STORE_DEFAULT_ALL command ignores this command when storing configurations from RAM to flash. This way, the new temporary configuration does not overwrite the default configuration.
| Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|
| Purpose | Reserved | Reserved | Reserved | Reserved | Status | Out_Value | Out_Enable | Enable |
This configuration is stored to nonvolatile memory with the STORE_DEFAULT_ALL command. If the pin is configured as an output, it can take a very short time after a reset or power-cycle for the pin to reach the configured state.