2025-09-30 7:21 PM
Hi All,
Hoping someone can clarify my confusion on the clock input for the TIM1 counter...
background:
I am testing Tim1 output compare by toggling PA8 on the micro... - the timer settings are
period = 1600, no clock divisor or prescaler and my clock config is below
On the scope I see PA8 toggling with a period of 25us which seems kind a strange...
So even if I assume a counter clock of 150Mhz (APB1, APB2 peripheral clocks) and the formula of clock/2*(period+1) as the frequency I should see it toggle at 21.34 us?
Why this discrepancy??
Thanks!