Use SPI DMA with FIFO
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2017-09-14 4:40 AM
Posted on September 14, 2017 at 13:40
I'm trying to use SPI DMA with FIFO to read a ADC. The working procedure of my code is as below:
ADC give a interrupt to inform the data is ok to read, then we kick start the SPI DMA to read 16bits x 4 (4 half words), and store them into some mem locations. If I don't enable FIFO, all work well. When I tried to use FIFO as below:
But the data read back are wrong. I doubt I don't understand the usage of FIFO, so how should I set the FIFO in my situations?
#spi #dma
This discussion is locked. Please start a new topic to ask your question.
0 REPLIES 0
