cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 5, 3 & 1

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
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
Anonymous
Not applicable

The associated project is attached.

0 Likes