STM32F0 Timer16
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2012-08-21 10:34 AM
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 discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2012-08-21 11:27 AM
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..
Up vote any posts that you find helpful, it shows what's working..
