2011-02-19 06:40 AM
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.2011-02-20 03:32 AM
The problem was in inclusion of wrong header file (iostm8s.h instead of iostm8s103.h), now works ok