cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F103VC strange timer2 behaviour

re-g07
Associate
Posted on October 29, 2010 at 08:42

STM32F103VC strange timer2 behaviour

2 REPLIES 2
lowpowermcu
Associate II
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üfter

js23
Associate III
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.