You are here

Dynamic GPIO Mode Configuration – KBA90586 | Cypress Semiconductor

Support & Community

Dynamic GPIO Mode Configuration – KBA90586

Last Updated: April 25, 2014

How do you make a GPIO pin dynamically controllable by the CPU or by a digital block?


Using the PRTxGS register, you can dynamically control the source of the signal that is driving the GPIO. Writing ‘0’ to a bit field in this register allows the corresponding pin to be controlled by the value of PRTxDR register. If logic ‘1’ is written to the PRTxGS register, then the global function of the corresponding pin is enabled. Based on the drive mode of the pin, the pin is configured as a global input pin or a global output pin.

Knowledge Base Tags: 

Provide feedback on this article

Browse KB By Product

Browse KB by Type