I already found st an4013 which explains almost everything about the timers but not their respective internal clock source.
Stm32f4 external clock source.
The answer is using pll phase locked loop.
Mikroc pro for arm general.
However i can t find which timers get which clock.
Technically the code does not assert that you only have one set you could set them both and use that code on 2 hardware builds one with an xtal and one with clock source.
The function of pll is to multiply the frequency to reach high frequency.
The question that may arise is how to reach 168 mhz if the external crystal value is only 8 mhz.
This is the block diagram of stm32f407vg clock.
Stm32f4 discovery timer external clock mode 2 blocked at 1.
In case you don t add external crystal or clock then set pll m value to 16 i have at home set f401 nucleo board with external crystal 8mhz so pll m is set to 8 and hse value set to 8000000 and f411 without external crystal pll m set to 16.
The external crystal value of stm32f4 discovery board is 8 mhz.
Hello all i ve been fighting for 2 days with a stm32f4 discovery board to get the timer 3 counting properly in external counting mode 2 but i can t figure out what s wrong in my code or in the mcu config.
Posted on march 18 2014 at 16 35.