Skip to main content
Visitor II
February 19, 2011
Question

Timer 4 on STM8S103F3P6

  • February 19, 2011
  • 1 reply
  • 848 views
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.
    This topic has been closed for replies.

    1 reply

    ne562Author
    Visitor II
    February 20, 2011
    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