cancel
Showing results for 
Search instead for 
Did you mean: 

How to trigger SPI DMA transfer using TIM12 TRGO on STM32H7

sumeyyekaragul
Visitor

Hi everyone,

I'm currently working with the DMA concept on an STM32H7. I'm reading data from an FIFO via SPI. My goal is to trigger the SPI DMA transfer using TIM12 TRGO, but I’m not sure where to start or how to properly configure this connection.

I’m relatively new to this topic, so any guidance, examples, or tips on how to set up the timer trigger and link it to the SPI DMA would be greatly appreciated.

Thanks in advance for your help!

 

1 REPLY 1
miaalexandra
Visitor

To configure a timer to trigger the DMA transfer at the desired interval, you can use the timer's compare match to generate an interrupt at the desired interval With DMA,  spacebar clicker  the CPU doesn't need to come back to it until it's done (sending or receiving), or until there is an error. In case of I2C, an interrupt-based driver triggers interrupt every byte. A DMA-based driver will trigger only one interrupt when data transfer is finished.