cancel
Showing results for 
Search instead for 
Did you mean: 

Timer 4 on STM8S103F3P6

ne562
Associate II
Posted on February 19, 2011 at 15:40

  Can't get working T4 overflow interrupt on STM8S103F3P6 (on STM8S-Diskovery with STM8S105 the same code works well):

TIM4_CR1 = 1;

TIM4_PSCR = 7;

TIM4_IER = 1;

Need minimal code to enable Timer4 overflow interrupt (Cosmic-C), thanks

In debugger TIM4_IER == 0.
1 REPLY 1
ne562
Associate II
Posted on February 20, 2011 at 12:32

The problem was in inclusion of wrong header file (iostm8s.h instead of iostm8s103.h), now works ok