Disbaling SPI

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

cross mob
Anonymous
Not applicable

Hi,

   

I have a Fx3 board connected to FPGA and on boot, we download FPGA image through SPI interface. In firmware, we disable SPI interface through CyU3PDeviceConfigureIOMatrix() once FPGA download is completed. I need to pull up GPIO54 (which is used by SPI)but disabling SPI and pulling up GPIO54  using CyU3PDeviceConfigureIOMatrix() API puts GPIO 54 in tristate for around 600 usec which FPGA doesnot like.

   

Is there a way i can pull up this line GPIO 54 before disabling SPI. I tried calling CyU3PGpioSetSimpleConfig() but it returns failure as GPIO is used by SPI? 

   

If not...

   

Is there a way i reduce this time? 

   

 

   

Thanks in advance

0 Likes
2 Replies
Anonymous
Not applicable

you can try using the GPIO override function in the FX3 API guide. This function will override the SPI pin and make it a simple GPIO, which you can control before you do a second IO__matrix configuration 

0 Likes
Anonymous
Not applicable

Thanks Nishant using CyU3PGpioSetIoMode ( MY_GPIO_LINE, CY_U3P_GPIO_IO_MODE_WPU ); and it worked for me.

0 Likes