cancel
Showing results for 
Search instead for 
Did you mean: 

Alternating timer events

luke2
Associate II
Posted on April 09, 2015 at 09:02

Hey folks,

The answer might be simple and obvious but I just can't quite figure it out. I want to set up two DMA requests triggered by separate timers that are timed to alternate the two requests in a synchronized fashion. Essentially I am trying to read the same memory area with both DMA channels, each taking in turns to transfer its value to different memory regions. I'm just not sure how to sync two timers to generate out of phase requests in this way.

So for example, timer 1 triggers at time 1 and activates DMA ch1, timer 2 triggers at time 2 and activates DMA ch2, timer 1 triggers at time 3 and activates DMA ch1 again, and so on....

The issue is the timers have to generate requests at the same frequency but out of phase. Is there a simple way to accomplish this?

Thanks,

Luke

#stm32-dma-timer
0 REPLIES 0