Skip to main content
FFunk.2
Associate
May 10, 2021
Question

STM32H723 TIM PWM first pulse wrong

  • May 10, 2021
  • 1 reply
  • 954 views

Hi all,

I am facing a very weird issue with PWM on my STM32H723.

I am generating a very fast PWM with TIM3 (TIMx_ARR = 10, TIMx_CCRx = 5, Timer Clk 275 MHz). However, the very first pulse is clearly way too long:

0693W00000ANqZdQAL.pngDoes anyone have an Idea where this comes from?

This is my cube-mx config I used:

0693W00000ANqaMQAT.png 

This topic has been closed for replies.

1 reply

FFunk.2
FFunk.2Author
Associate
May 10, 2021

Ah, nevermind, just found the reason. CH Polarity high is causing the channel to be set high before the PWM actually starts.