cancel
Showing results for 
Search instead for 
Did you mean: 

STM32f407 the timer6's frequence

2424824120
Associate II
Posted on October 05, 2013 at 04:14

 TIM6 Update event occurs each 37.5MHz/256 = 16.406 KHz the words in the DAC exemple.    I want to know how to get the 37.5MHz ,how to calculate it out.Thank you for your help.

4 REPLIES 4
Posted on October 05, 2013 at 04:36

To get to 37.5 MHz you need to run the CPU at 150 MHz, have a prescaler of zero (1 - 1), and period of 3  (4 - 1) as they are both integer factors.

1 * 4 * 37.5 = 150

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on October 05, 2013 at 10:57

Next time, please tell us, *which* example are you talking about. I presume, the one from the STM32F4DISCOVERY firmware.

Googling yields a similar question:

http://www.keil.com/forum/22846/

I'd say, it's simply a copy/paste error and the demo was originally developed for a different STM32 model; or a project, which for some reason was clocked to different AHB clock frequency.

JW

 

2424824120
Associate II
Posted on October 05, 2013 at 11:50

Thank you for your answer!It is jus an error. Next time I'll clarify the problem.

2424824120
Associate II
Posted on October 05, 2013 at 11:53

Thank you for your answer.