Dialog Semiconductor customer support - Timer accuracy precision https://support.dialog-semiconductor.com/resource-keywords/timer-accuracy-precision en Precision long timer. https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-42-%E2%80%93-software/precision-long-timer

Hi,

I need a precision timeout functionality. Like several months.

I have used an app_easy_timer() with longest delay possible (5*6000-1), which is 5 minutes -10ms. Correct me if am wrong.
In my timer callback I increment my own counter and restarts the timer with app_easy_timer().
To get the highest precision I use
#define CFG_LP_CLK LP_CLK_XTAL32
XTAL32 for sleep.
However, it looks to me like my timer is running 5% to fast.

My question:
What should I do to get the best timer precision, when my timeout is on the order of months?

Thank you in advance
Ciano Frost
Denmark

Device: 
Wed, 05 Oct 2016 18:11:53 +0000 ciano 4729年https://support.dialog-semiconductor.com https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-42-%E2%80%93-software/precision-long-timer#comments