STM32F103VC strange timer2 behaviour
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2010-10-28 11:42 PM
Posted on October 29, 2010 at 08:42
STM32F103VC strange timer2 behaviour
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 5:13 AM
Posted on May 17, 2011 at 14:13
Hi richard,
It is a matter of prescaler: at low values of prescaler accuracy is better than high prescaler values. MCU LüfterOptions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 5:13 AM
Posted on May 17, 2011 at 14:13
Always subtract 1 from the calculated values because the timer starts counting at 0. Same applies to the prescaler (as far as I remember). So 149 and 29 in your last example should give the correct interval.
