Is there a simple way to have linux time up and running with minimum current consumption and good accuracy?
Preferably, some class with get_unix_time and set_unix_time methods, with a resolution of up to seconds.
Is there a simple way to have linux time up and running with minimum current consumption and good accuracy?
Preferably, some class with get_unix_time and set_unix_time methods, with a resolution of up to seconds.
Hi
I did a simple example using the time.h library a while back, and you might be able to use that as a basis:
https://github.com/NordicPlayground/nrf5-calendar-example
I only included project files for the nRF52 series though, but the code should be backwards compatible with the nRF51822.
The accuracy will depend on your 32kHz clock source. If you use the external 32k crystal on the nRF51 DK it will be 20ppm at room temperature.
Best regards
Torbjørn
Since my application implies wide operating temperature, and the 20ppm will render in one minute off the time within a month, or possibly more than ten minutes a year, that's doesn't fit my initial idea. But then I realized that I can manage without real time clock. Thank you for your answer, anyway!
Since my application implies wide operating temperature, and the 20ppm will render in one minute off the time within a month, or possibly more than ten minutes a year, that's doesn't fit my initial idea. But then I realized that I can manage without real time clock. Thank you for your answer, anyway!