SLUAAL1 June   2022 UCD90120A , UCD90124A , UCD90160 , UCD90160A , UCD90320 , UCD90320U , UCD9090 , UCD9090A

 

  1.   How to Access UCD90xxx Sequencers GPIO
  2.   Trademarks
  3. 1Introduction
  4. 2GPIO Capacity
  5. 3PMBus™ Commands to Access GPIO
    1. 3.1 (FAh) GPIO_SELECT (MFR_SPECIFIC_42)
    2. 3.2 (FBh) GPIO_CONFIG (MFR_SPECIFIC_43)
  6. 4Examples
    1. 4.1 Configure GPIO to Hi-Z
    2. 4.2 Configure GPIO to Output HIGH or LOW
    3. 4.3 Read GPIO Status
  7. 5References

(FBh) GPIO_CONFIG (MFR_SPECIFIC_43)

This read/write byte command, when applications write, is to configured the GPIO pin assigned by the GPIO_SELECT(FBh) command to a command based GPIO. When application reads, it is to return the status of the assigned GPIO regardless how this pin is configured.
Table 3-4 GPIO_CONFIG(0xFBh) Command Payload Definition
BIT 7 6 5 4 3 2 1 0
Description Reserved Reserved Reserved Reserved Status Out_Value Out_Enable Enable

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 this command should be processed. When the Enable bit is cleared, this command is ignored. If user wants to temporarily change to an output pin’s state, this command should be written twice. In the first time, the Enable bit should be set to 1 such that the changes can be applied. In the second time, the Enable bit should be set to 0. This will not change the pin’s state; and because the Enable bit is 0, STORE_DEFAULT_ALL command will ignore this command when storing configurations from RAM to flash. This way, the new temporary configuration will not overwrite the default configuration

NOTE: Configuring a pin that is also being used by another function (enable, fan control, LGPO, GPI and so forth) may likely result in unexpected and unwanted behavior