Skip to main content
Associate II
Feb 14, 2024 3:12 PM UTC
Question

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

Hi,

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

 

Bests 

Pedahl

This topic has been closed for replies.

1 reply

waclawek.jan
Super User
Feb 14, 2024 5:21 PM UTC

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