cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H7S3V8T6 TIM1 prescaler clock clarification

JShro
Associate III

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

JShro_0-1759285004047.png

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!

 

0 REPLIES 0