SLUAAL1 June 2022 UCD90120A , UCD90124A , UCD90160 , UCD90160A , UCD90320 , UCD90320U , UCD9090 , UCD9090A
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,
Read GPIO_CONFIG command to get the status of FPWM8_GPIO12
If the bit 3 of the return data is 1, the signal of the FPWM8_GPIO12 is HIGH otherwise it is LOW.