cancel
Showing results for 
Search instead for 
Did you mean: 

Trigger a dma spi communication by timer

SKrau
Associate II

Hi I like to find out How i can start a spi communication with DMA by a timer i tried to search a lot on google for this but didnt found any solution for the SPL and a F4.

My Problem is i try to read out a ADC connected to SPI 1 very fast first i tried to start the DMA in the Timer interrupt and write the data by DMA in a array but this is to slow and i wanna get rid of the Timer interrupt so my plan was to configure a timer and the DMA so the Tim1 trigger the DMA after every CNT overflow. Is this possible if yes can someone hand me some example code bc i cant find any functions to connect the DMA2Stream5 or Stream 0 (RX or TX) to the Timer.

1 REPLY 1
liaifat85
Senior III