counter(CNT) value in timer
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-02-12 5:44 AM
Posted on February 12, 2018 at 14:44
hi
how to set counter value to zero without resetting lptimer after read the count value .
This discussion is locked. Please start a new topic to ask your question.
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-02-12 5:47 AM
Posted on February 12, 2018 at 14:47
Yes.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-02-12 7:11 AM
Posted on February 12, 2018 at 16:11
how
this maybe?
tmp = htim->Instance->CNT;
htim->Instance->CCR1 = tmp;
some registers can't be cleared.
did you check the reference manual ?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-02-12 8:06 AM
Posted on February 12, 2018 at 16:06
how
