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

Calculate time until next RTC Interrupt

Greetings -

I am using (the slightly out-dated) 12.3 SDK with a nRF52840. I'm also using s132 as my softdevice.

As I've been slowly reducing my RTC interrupt frequency to cut down on power consumption, I have a growing need to be able to determine the length of time until the next RTC interrupt.

I can calculate the period from the PRESCALER register, but there is no register which counts up or down which could be used to determine how far along in the process things happen to be.

The other two RTC peripherals are being used by the soft device or I'm sure I could come up with some other way. It seems this should be a pretty basic thing. Why is it impossible!

Related