Anonymous
Not applicable
Jun 10, 2014
08:53 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 10, 2014
08:53 AM
I have a question on how the FX3 API handles SPI transactions.
CyU3PSpiTransmitWords , the master FX3 sends data over MOSI, and also consumes the same amount of data via MISO. Is that MISO data from the slave available to an FX3 application? The CyU3PSpiReceiveWords appears to initiate a separate transaction for reading. This implies that the data that had been previously consumed in the Transmit activity would be lost. Or does Receive actually have access to the previous MISO data?
When the FX3 initiates an SPI write via
Thank you,
JohnR
Solved! Go to Solution.
1 Solution
Anonymous
Not applicable
Jul 23, 2014
01:17 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 23, 2014
01:17 PM
Yes, the received data is available but TransmitWords currently doesn't store them. For now, you can use the SPI in DMA mode which lets you both send and receive data simultaneously.
See the CyU3PSpiSetBlockXfer(..) function in the API guide for details.
4 Replies