cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H723 TIM PWM first pulse wrong

FFunk.2
Associate II

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 

1 REPLY 1
FFunk.2
Associate II

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