RTC / gettimeofday overflow
RTC / gettimeofday overflow
How quickly does RTC / gettimeofday overflow? On ESP8266 it was something around 7 hours. I can't find any details on gettimeofday implementation.
Re: RTC / gettimeofday overflow
If you enable timekeeping using the FRC1+RTC, a 64 bit microsecond counter will be used for timekeeping.
In deep sleep mode, the base value of the counter is saved into RTC controller scratchpad registers, and timekeeping continues using a 48 bit RTC slow clock (which counts at 150kHz).
If you enable timekeeping using RTC only (no FRC1), then the 48 bit RTC clock (counting at 150kHz) will be used at all times.
In deep sleep mode, the base value of the counter is saved into RTC controller scratchpad registers, and timekeeping continues using a 48 bit RTC slow clock (which counts at 150kHz).
If you enable timekeeping using RTC only (no FRC1), then the 48 bit RTC clock (counting at 150kHz) will be used at all times.
-
- Posts: 9773
- Joined: Thu Nov 26, 2015 4:08 am
Re: RTC / gettimeofday overflow
To give an indication of what to expect, this means that when not in deep sleep mode, the clock overflows once every 599730 years, while in deep sleep mode you can expect trouble after a mere 61 years.
Who is online
Users browsing this forum: No registered users and 74 guests