how can read timer counter value in stm32f0
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-11-06 5:53 PM
Posted on November 07, 2016 at 02:53
hi , i want to read timer counter value . i was used __HAL_TIM_GetCounter(); function but it didn't work .
please help me .thank you
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
‎2016-11-06 7:04 PM
Posted on November 07, 2016 at 04:04
It should basically be doing a read of TIMx->CNT, hard to see you that would cause an issue.
Unfortunately ''doesn't work'' really doesn't provide sufficient context to determine why it is not working, or how it is not working. Is there some minimal implementation you can share that demonstrates the issue? Does it always read zero? Is the clock to the timer enabled?
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
‎2016-11-06 9:06 PM
Posted on November 07, 2016 at 06:06value is 0. every time.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-11-07 12:27 AM
Posted on November 07, 2016 at 09:27
Assume that I'm not a mind reader.
If all TIM registers read zero then make sure peripheral clock has been enabled.
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..
