Drive Multiple GPIO Pins Simultaneously in FX3™ - KBA212557

Version: **



How do I write to multiple GPIO pins simultaneously using the FX3 firmware?



In FX3 firmware, you can use CyU3PGpioSetValue () to set the GPIO value. FX3 has separate registers that control each GPIO and hence the CyU3PGpioSetValue () function can only write to one GPIO at a time. However, it is possible to update multiple output pins simultaneously using the GPIF II block. The GPIOs to be updated should be selected as output signals in the GPIF II project, and the DR_GPIO action can be used on each of these GPIOs to update their value in a single state. A maximum of eight GPIOs can be updated in this manner, and only pins that are mapped to the GPIF II control signals can be used for this purpose.