Skip to main content
SKrau
Associate II
November 9, 2023
Question

Trigger a dma spi communication by timer

  • November 9, 2023
  • 1 reply
  • 2041 views

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.

This topic has been closed for replies.

1 reply

Visitor II
November 9, 2023