AnsweredAssumed Answered


Question asked by welch.eric on Jun 30, 2016
Latest reply on Jun 30, 2016 by Clive One
I plan to use the STM32F40x TIM1 CH1 (PA8) to produce a varying  PWM  signal. The base frequency is set, say 1 MHz.  I need to use DMA to change the PWM duty cycle on every iteration. I know this can be done by aiming the DMA at the TIM1_CCR1 register, but the question is which DMA stream to use. 

The STM32F4xx Reference Manual (R12, May 2016) Table 43 says that DMA2 Channel 6, Stream 1 and Stream3 are both associated with TIM1, but which is the right one for the CCR1 register?

I know that you program the address of the TIM1 CCR1 register into the appropriate DMA control registers, but that the correct stream has to be used so that the TIM1 PWM generation mechanism knows to notify the right DMA channel/stream when it is ready for the next value.