Skip to main content
Explorer II
February 14, 2024
Question

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

  • February 14, 2024
  • 1 reply
  • 771 views

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

    Super User
    February 14, 2024

    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