cancel
Showing results for 
Search instead for 
Did you mean: 

TIM2 FWLIB Example

frupi
Associate II
Posted on November 12, 2009 at 06:15

TIM2 FWLIB Example

10 REPLIES 10
mozra27
Associate II
Posted on May 17, 2011 at 15:05

Hi,

Frupi,

The HSI is selected as default clock source;)

Regarding the CLK block diagram: the fHSI is divided by the prescaler that can be configured through HSIDIV[1:0] bits in the CLK_CKDIVR register (the reset value for these bit is 1 so, it divide the fHSI/4 by default) for more details refer to reference manual.

When you use the mode output compare PWM1 you don't need to configure the interrupt.

Coluber,

Yes, the timerx(x=1,2,3,4,5) when available on the product (refer to product datasheet) is the same as the described one in the STM8S microcontroller family reference manual.

Regards

mozra