FX3 IO Configuration of GPIO53

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hi

   

I need UART and GPIO53, So I configuration is:

   

io_cfg.useUart = CyTrue;
io_cfg.useI2C = CyTrue;
io_cfg.useI2S = CyFalse;
io_cfg.useSpi = CyFalse;

   

io_cfg.isDQ32Bit = CyTrue;
io_cfg.lppMode = CY_U3P_IO_MATRIX_LPP_DEFAULT;

   

io_cfg.gpioSimpleEn[0] = 0;
io_cfg.gpioSimpleEn[1] = 0x023C0000; /* GPIO 50,51,52,53,57 */
io_cfg.gpioComplexEn[0] = 0;
io_cfg.gpioComplexEn[1] = 0;
status = CyU3PDeviceConfigureIOMatrix(&io_cfg);

   

If I enable the GPIO53 at simple gpio, the CyU3PDeviceConfigureIOMatrix will fail.

   

How can I set GPIO53 as IO mode? I just use UART RX/TX. UART RTS/CTS work as GPIO.

0 Likes
2 Replies
Anonymous
Not applicable

These change cannot be made in the ConfigureIOMatrix . Follow this thread 

   

http://www.cypress.com/forum/usb-30-super-speed/fx3-uart-gpio-pins-4647

0 Likes
Anonymous
Not applicable

Thanks.

   

I override it by CyU3PDeviceGpioOverride(53, CyTrue);

0 Likes