cancel
Showing results for 
Search instead for 
Did you mean: 

AN4776 STM32f303 Swap Tim1 and Tim2 N-pulse waveform generation application example - part 1

pedahl
Associate II

Hi,

it's possible to swap Tim1 and Tim2 to use the example N-pulse waveform generation application example - part 1?

 

Bests 

Pedahl

1 REPLY 1

You have to observe the differences between the two timers:

- TIM1 is Advanced timer, so it needs to have TIM1_BDTR.MOE be set for outputs to be enabled

- you would need to use a different DMA channel, see DMA channel mapping in DMA chapter of RM

JW