SLVUAW9C September 2016 – February 2020 UCD90320
This Read/Write Byte common 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 other bits determine if the pin is configured as an input or an output. The Enable bit must be set for the configuration information to be processed. The Out_Enable bit determines if the pin is to be 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. If a change to an output pin’s state is temporary, this command should be written a second time with same values as the first write, but with the Enable bit set to 0. This will keep the device from using the temporary configuration if a STORE_DEFAULT_ALL command is issued and a reset is performed.
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
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.
CAUTION
Configuring a pin that is also being used by another function (enable, fan control, etc) may QAlikely result in unexpected and unwanted behavior.