- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Nishant using CyU3PGpioSetIoMode ( MY_GPIO_LINE, CY_U3P_GPIO_IO_MODE_WPU ); and it worked for me.