Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
5 years, 4 months ago.
Has anyone used an NRF1822 RTC as a Real Time Clock?
In moving my project from LPC1768 / FRDM-KL46Z to the nifty new (to me) nRF51-DK, I discovered it didn't have an explicitly defined real time clock. But after reading the Nordic nRF51 reference manual, it certainly seems like one of the real time counters should be able to be configured as a real time clock. But before I go off to possibly re-invent the wheel (inevitably leaving out a few spokes and creating a wobbly, dangerous kludge), is there some existing code out there to implement an RTClock for the nRF51-DK? In the ideal world, I'd like to be able to use the standard time functions (as nicely documented here), but I'm perfectly happy to hinder portability with nRF51-specific replacement methods.
If some invention is necessary, my best guess for a starting point is Nordic's "app_timer.h" API. Any better pointers?
My apologies if I've missed the obvious (likely) and that it really works just fine right now....