FX3 SPI simultaneous send/receive as shift registers

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

cross mob
Anonymous
Not applicable

Hello, 

   

I'm currently working with a sensor module which is connected to FX3 using SPI interface. The module requires to send and receive 9 bytes on SPI interface simultaneously like shift registers. SS is controlled by firmware so that I should setup send and receive buffers, then pull down the SS to send and a receive to finish. I couldn't find any API for FX3 to do this. Using register mode there are CyU3PSpiTransmitWords / CyU3PSpiReceiveWords which do it one at a time. The dma mode I couldn't figure out how to make it work to send and receive simultaneously specially because DMA mode requires 32 bytes aligned buffers. Is there any efficient way for me to do this.

   

Thank you.

0 Likes
1 Solution
Anonymous
Not applicable

You can refer to the AN84868  which comes with an example firmware. We have shown how to manually control the SPI ssn line to program the FPGA through FX3. 

   

http://www.cypress.com/documentation/application-notes/an84868-configuring-fpga-over-usb-using-cypre...

View solution in original post

0 Likes
1 Reply
Anonymous
Not applicable

You can refer to the AN84868  which comes with an example firmware. We have shown how to manually control the SPI ssn line to program the FPGA through FX3. 

   

http://www.cypress.com/documentation/application-notes/an84868-configuring-fpga-over-usb-using-cypre...

0 Likes