Skip to main content
Graduate
July 22, 2024
Question

STM32F4x TIMER ETR

  • July 22, 2024
  • 2 replies
  • 826 views

Hello, 

I am configuring a PWM Timer and I would like it to by triggered by ETR, 

the PWM is a 99 period, 50 duty cycles, with auto reload enable. 

I would like to have the PWM to be restarted (resync in a sort) at each etr rising pulse. ETR Pulse does not respect a proper frequency...

is it possible ? if yes how to do it ? 

thanks 

Vincent

 

 

    This topic has been closed for replies.

    2 replies

    vbessonAuthor
    Graduate
    July 22, 2024

    having a deeper look at the doc, the way to do it would be :

    - TIM2 with ETR trigger that generate an reset event to a slave timer (TIM4 for ex)

    do I really need to have 2 linked timers, is there another way ? 

    Vincent

     

    Super User
    July 22, 2024

    Try to draw a timing diagram, what are trying to achieve, displaying all the involved input and output signals, in all possible situations.

    JW