Associate
April 3, 2020
Solved
Problem about APB1 Clock Configuration for Timer
- April 3, 2020
- 6 replies
- 2736 views
Hi Everyone !
I have a problem for calculating timer for 1ms. I attached configuration for clock and timer.
As I understand Timer2 uses APB1 Clock Bus but for timer it will be APB1x2 if APB1 prescaler is not " 1 "
So when I use Prescaler 59999 for 60Mhz APB1 Timer clock difference between my timer interrupts are 2 ms.
When I use Prescaler 29999 for 60Mhz APB1 Timer clock(which I attached) difference between my timer interrupts are 1 ms.
Is there any timer configuration calculation problem ? I have never meet this problem before other STM mcus.
My Firmware is STM32Cube_FW_L4V1.13.0
Thanks in advanced
