Resolved! PWM center aligned to half-period of TIM
I am using the STM32H562ZGT to generate center-aligned PWM with TIM1. Since I also want to use TIM1 for 20kHz periodic interrupts, I set the Period so that overflow/underflow occurs every 40kHz and set the Repetition Count to 1. This ensures that UEV...