Timer 4 on STM8S103F3P6
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2011-02-19 6:40 AM
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 discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2011-02-20 3:32 AM
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
