Timer reset --- how to??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-06-17 12:19 PM
Using an STM32WB55, timer16 for switch debounce. It is set for 100ms. I was looking in the HAL library for the timer and I see start / stop functions, etc. but how do I reset my timer after I come into the ISR? I am sure the counter will roll over by the time I get into the ISR and I would like to reset it for the next pushbutton but see no calls how to do it. Seems very bleak to think I would have to do an INIT again.
Thanks
Steve
- Labels:
-
STM32WB series
-
TIM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-06-17 12:51 PM
You can write zero value to counter.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-06-17 1:11 PM
Yup I just did that....
Thank you.
