You are here

FX3 SPI simultaneous send/receive as shift registers | Cypress Semiconductor

FX3 SPI simultaneous send/receive as shift registers

Summary: 1 Reply, Latest post by Nishant on 07 Nov 2016 11:19 PM PST
Verified Answers: 0
Last post
Log in to post new comments.

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.

nisa's picture
Cypress Employee
85 posts

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-configuri...

Log in to post new comments.