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.

Automatic SPI DMA on SPI message receipt

Hi,

I am having trouble setting up an automatic DMA to RAM on completion of SPI frame reception. I have looked at examples from other forum posts but am not making any progress. I have DMA working for a software driven event, activated from the SPI interrupt service routine by setting the appropriate bit in regDMA.SWCHENAS.

Please can you provide me with information on how to transfer from using SW DMA to HW DMA.

I am using SPI1 in multibuffered mode and so I think I need to use DMAREQ[4]. I am using DMA channel 0. My SPI frames consist of 9 elements, each element is 16-bits. I would like the DMA to occur at the end of each SPI frame reception. I am unclear as to how to set up regSPI.DMAxCTRL (which one of the 8 to configure), as well as DMA registers to transition from SW DMA to HW DMA.

I'm sure I'm missing something simple, but can't pin it down.

Regards, Tony.