Skip to main content
michelemancini2
Associate III
August 21, 2012
Question

STM32F0 Timer16

  • August 21, 2012
  • 1 reply
  • 619 views
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?

    This topic has been closed for replies.

    1 reply

    Tesla DeLorean
    Guru
    August 21, 2012
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..