RTC in millisecond
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2012-08-07 12:38 AM
Posted on August 07, 2012 at 09:38
Hello,
I implemented the RTC example of ST (calendar, time counter) but it seems to work just with an interval of 1 second. I need it to work with an interval of 1ms. How can I do it?Thank you!Best regards
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2012-08-07 7:48 AM
Posted on August 07, 2012 at 16:48
On the F1 you could get sub-second timing by playing with the prescaler. You could also read the prescalers counter to get fractional seconds, although perhaps not in the units you desire.
Another alternative is to use SysTick to count microseconds. Or the core's cycle counter to get 10's of nanoseconds.
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..
