2 corrected equation formatting (MathJax)
source | link

It actually divide frequencefrequency as ==> 168MHz / ((60000+1)*(28+1)) = 96.55Hz ==> 10.36ms:

$$ f = \frac{168~MHz}{(60000+1)\cdot(28+1)} = 96.55~Hz \\ T = 10.36~ms $$

If you want 10Hz, please try to set prescaler = 59999, period = 27; then the timer will work as ==> 168MHz / ((59999+1)*(27+1)) = 100Hz;

$$ f = \frac{168~MHz}{(59999+1)\cdot(27+1)} = 100~Hz $$

It's a rule from STM specification.

It actually divide frequence as ==> 168MHz / ((60000+1)*(28+1)) = 96.55Hz ==> 10.36ms

If you want 10Hz, please try to set prescaler = 59999, period = 27; then the timer will work as ==> 168MHz / ((59999+1)*(27+1)) = 100Hz;

It's a rule from STM specification.

It actually divide frequency as:

$$ f = \frac{168~MHz}{(60000+1)\cdot(28+1)} = 96.55~Hz \\ T = 10.36~ms $$

If you want 10Hz, please try to set prescaler = 59999, period = 27; then the timer will work as

$$ f = \frac{168~MHz}{(59999+1)\cdot(27+1)} = 100~Hz $$

It's a rule from STM specification.

1
source | link

It actually divide frequence as ==> 168MHz / ((60000+1)*(28+1)) = 96.55Hz ==> 10.36ms

If you want 10Hz, please try to set prescaler = 59999, period = 27; then the timer will work as ==> 168MHz / ((59999+1)*(27+1)) = 100Hz;

It's a rule from STM specification.