Strictly necessary cookies are on by default and cannot be turned off. Functional, Performance and Tracking/targeting/sharing cookies can be turned on below based on your preferences (this banner will remain available for you to accept cookies). You may change your cookie settings by deleting cookies from your browser. Then this banner will appear again. You can learn more details about cookies HERE.
Strictly necessary (always on)
Functional, Performance and Tracking/targeting/sharing (default off)
Question: I would like to rapidly change the CY7C64113's GPIO lines between input and output to implement a bi-directional bus. Is there any problem in switching between in and out or is there a limit to the rate this can be done?
To switch between input and output, you need to change the GPIO configuration which might take about 8 instructions, each instruction typically takes 5 clock cycles (each clock cyle is 1/12MHz). Therefore, to change the GPIOs from one mode to another, the processor would need about 40 clock cycles + trise/fall (each clock cyle is 1/12MHz). Sum all these up, the total time needed is approximately 3.3us.