How To Change PWM Frequency With Only The Prescaler
Hello,
I have inherited some code where a 5kHz 50% PWM is output in center aligned mode using TIM1. CK_PSC is 275MHz, CK_CNT is 137.5MHz (I think) because PSC = 1.
The pattern output matches the implementation:


The yellow trace is a GPIO pin that is toggled in the ISR HAL_TIM_PeriodElapsedCallback().
I want to to keep the same 50% duty but half the frequency to 2.5kHz using the prescaler.
From the TRM, it seems I just have to modify PSC from 1 to 2. However, when I do this by poking the SFR register using the debugger, I get the following output:

As you can see, the PWM ratio changes but the frequency does not. I’m at a loss to understand why. So would be grateful for any suggestions.
Thank you.
In case it helps, here’s my register dump. I have no idea what DMAR is that is my next step.

