cancel
Showing results for 
Search instead for 
Did you mean: 

APB1/TIM2 clock

hospodar
Associate III
Posted on April 03, 2015 at 20:02

How to find out APB1 clock frequency? I want to know TIM2 clock, which is connected to APB1. I use STM32F103 and standard peripheral library.

Thank you.

12 REPLIES 12
Posted on April 20, 2015 at 02:30

I think he want time period of 2 second so  TIM_Period = 20000 - 1.

I'd be surprised.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
huydungshpy
Associate II
Posted on April 20, 2015 at 05:57

Update_event = TIM_CLK/((PSC + 1)*(ARR + 1)*(RCR + 1))

 

0.5 = 36M/(3600*20000)??? 

what wrong with me?? please explain!

huydungshpy
Associate II
Posted on April 20, 2015 at 11:43

I am wrong Timer 2 is 72M 

sorry!