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

Read GPIO Status

This section demonstrates how to read status of a GPIO pin (FPWM8_GPIO12).

The Pid ID of the FPWM8_GPIO12 is 7 from Table 3-1Table 3-2.

Application need sends out the following commands:

Write GPIO_SELECT command to choose the target GPIO. Payload 0x07 is to select FPWM8_GPIO12 pin,

  • [St] [AddrW] [A] [W:0xFA] [A] [W:0X07][A][Sp]

Read GPIO_CONFIG command to get the status of FPWM8_GPIO12

  • [St] [AddrW] [A] [W:0xFB] [A] [SR][Addr][A][R:data][N][Sp]

If the bit 3 of the return data is 1, the signal of the FPWM8_GPIO12 is HIGH otherwise it is LOW.