cancel
Showing results for 
Search instead for 
Did you mean: 

RTC in millisecond

riccardo2
Associate
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
1 REPLY 1
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..