Reset of Timer
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-03-06 6:15 PM
Posted on March 07, 2014 at 03:15
Hi ,
I have a timer programmed to monitor a timeout event using timer interrupt(every 100ms). If the event occurs within the time (100ms) i would like to refresh the timeout. Is the below code able to do it ?TIM_Cmd(TIM14, DISABLE);
TIM_Cmd(TIM14, ENABLE);
Is there a better way ?
Thanks.
I am using stm32f4.
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
‎2014-03-06 6:28 PM
Posted on March 07, 2014 at 03:28
TIM14->CNT = 0; //??
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Up vote any posts that you find helpful, it shows what's working..
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-03-06 6:37 PM
Posted on March 07, 2014 at 03:37Hi clive1, Thanks. It works.From your answer i found TIM_SetCounter(TIM_14,0); // same as TIM14->CNT = 0.Thanks
