This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF51822 Long Time Timekeeping

I want to measure the time between some different events in my application (using SoftDevice S110). My idea is, to collect some timestamps and calculate the elapsed duration by just subtract them (like app_timer.c do).

But the problem is, that the nRF51822's Rtc0 and Rtc1 are limited to 24 bit, so I'm limited to a measurable duration of 511 seconds.

Possible solution: I could create a app_timer driven task which triggers on each Rtc overflow to emulate some more Rtc bits.

May there be a better solution?

Parents Reply Children
No Data
Related