This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi all!
I want to learn SPI module receiving behavior when data export from CLB is enabled..I read thr TRM but didn't get it.
Do SPI receving part and CLB export share the RX fifo when data export is enable?
Can I at least use the SPI receive function without rx fifo when the data exporting is enabled? Or what are the options about SPI receving when data export is enabled?
Many thanks in advance.
cheers,
Hi Erhan,
Thanks for your question. Are you asking whether it is possible to use the same SPI for another peripheral while the CLB data export is enabled for the CLB tile on the respective SPI? If so, is there any reason you would not be able to use another instance of SPI?
Or are you asking if you can export data out of the CLB to SPI without a FIFO RX buffer?
From the highlight in the TRM you sent, it is referring to the TX functionality of SPI being unaffected since only RX FIFO buffer is used when CLB export data to SPI is enabled.
Regards,
Peter
Hi Peter!
Thanks for your answer as well. Actually I just wanna know the MCU better.Thats why I am wondering. Yes in the TRM it is written that tx is not affected but what about spi?
I didn't try but i was assuming maybe if spi rx and clb can share the rx fifo and it might be useful for future applications. Or if spi rx can work withput fifo when the rx fifo is used by clb.
I am just wondering. :)
cheers,
Hi Erhan,
Thank you for clarifying, it is always great to expand knowledge and think about edge cases. This is not documented well, but you should be able to use SPI and CLB data export at the same time although I would be wary to double-check the logic and make sure that you know exactly what data is being received by SPI and the specific timing of that. You may run into data errors if or when interspersing data to SPI, in which case it would be safer to use a separate instance of SPI. That or you could alternatively disable and re-enable CLB data export when wanting to use SPI for another peripheral. Also do note that clocking is important and especially should be considered when doing this with an external peripheral. I hope this answered your inquiry and please let me know if you have any other questions.
Regards,
Peter
Hi Peter!
Thanks for your asnwer. Probably I will never use it but my obsessive brain just wants to learn it. :) Thanks for your interest! I will let u know.
cheers,