SPI to control register data transfer using DMA

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable


Could I use DMA for read a 16 bit data from a master SPI and transfer the data on two 8 bit control registers?
Since the SPI works at very low frequency (1MHz), I need to update both registers only at the end of the reading procedure.
It is enough only one DMA channel or the procedure requires two different transfers ( SPI->RAM, RAM->control register), thus two DMA channels?

   

Thanks in advance
 

0 Likes
3 Replies
Anonymous
Not applicable

I think there was(is? but I couldnt find it.Maybe one of the employees can direct you to it) appnote on SPI with DMA.I'm not entirely sure,but I faintly recall there was one.

0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Hi PDES, kmmankad

   

 

   

The code example on SPI Transfer using DMA is attached. This should give you a fair understanding on the usage of DMA with SPI.

0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

The associated project is attached.

0 Likes