1 Reply Latest reply on Nov 7, 2016 11:19 PM by nisa

    FX3 SPI simultaneous send/receive as shift registers

    reza.jahanbakhshi_1760761

      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.