RTC - Max possible time ?

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at https://www.dialog-semiconductor.com/support . We’ll be fixing bugs / optimising the searching and tagging over the coming days.
2 posts / 0 new
Last post
bobspam@free.fr
Offline
Last seen: 1 year 2 months ago
Joined: 2018-06-20 08:07
RTC - Max possible time ?

Hello

I wish to use DA1468x during more than two month without shutting it down. I wish to use rtc_get() at anytime.

Timer1 is 32bit and values from rtc_get are in LP ticks (30.5µsec) . If I calculate well, it should overflow every 1.5 day. I can read from bsp_defaults.h that Timer1 prescaler is not supported in DA14682/3 chips.

Can you confirm to me that rtc_get overflow ?

What would be the best way to have rtc_get to work during more than 2 days ?

Thank you in advance

BR

Device: 
PM_Dialog
Offline
Last seen: 2 months 2 weeks ago
Staff
Joined: 2018-02-08 11:03
Hi Bob,

Hi Bob,

Please take a look at the Real-Time Clock (RTC) Concept and you will find detailed description for the RTC. If you need to configure the device for 2 days, you should change the SW_RTC_FORCED_DATE_TIME_IN_MS  to 172800000, Please just follow the tutorial.

Thanks, PM_Dialog