2020-07-13 09:39 AM
Hi, I have my STM32F407 with the following clock configuration, as I want to use TIM2-TIM5, the input clock of those Timers is APB1, and it is working at 84 MHz, I want TIM2 working with an interrupt every 1 sec, so I set the prescaler to 8400-1 so the timer will work at 10KHz, and the the Counter Period to 10000-1, so I will have an interrupt every 1s...
In the TIM2 Handler I have set a Toggle to one of the board LEDs, and it toggles every 3s, no every 1s, so I suppose that I have something wrong.
Here I attach you a screenshot of the Clock Configuration screen.
Thank you
Best regards
Solved! Go to Solution.
2020-07-13 09:55 AM
SOLVED, the problem was that my board has a 8MHz crystal not the 25MHz one...
2020-07-13 09:55 AM
SOLVED, the problem was that my board has a 8MHz crystal not the 25MHz one...