cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F0 Timer16

michelemancini2
Associate III
Posted on August 21, 2012 at 19:34

Hi, I have a problem with Timer16 of STM32F0 Discovery. I want use this timer like ''time base'' one interrupt at 1mS.

It Works but this timer has a ColockDivision ?

Because when I setting the ColockDivision  at :1 ''TIM_CKD_DIV1'' work

but when setting ColockDivision  at :2 ''TIM_CKD_DIV2'' or :4 the result doesn't change the timer counter is always at ColockDivision  at :1 ''TIM_CKD_DIV1'' .

Why?

1 REPLY 1
Posted on August 21, 2012 at 20:27

Why?

Because the ClockDivision relates to the ''Input filter and edge detector'', specifically the fDTS clock, and NOT the time base of the counter. If you want the timer to count slower, increase the prescaler divisor.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..