TIMER4 PRESCALAR PROBLEM(STM8S)
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-03-04 2:56 AM
Posted on March 04, 2017 at 11:56The original post was too long to process during our migration. Please click on the attachment to read the original post.
This discussion is locked. Please start a new topic to ask your question.
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-03-19 8:13 AM
Posted on March 19, 2017 at 16:13
You set the prescaler to '16', but for TIM4, only 3 bits are defined. Prescaler values are 1, 2, 4, 8, 16, 32, 64, and 128. If you want to prescale by 16, you need to write the value 4.
See reference manual:
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-03-20 10:37 AM
Posted on March 20, 2017 at 18:37
Thanx Arlet Ottens,I have got your point.
