Use this forum to chat about hardware specific topics for the ESP8266 (peripherals, memory, clocks, JTAG, programming)

User avatar
By picstart
#10170
rtc_time2 = system_get_rtc_time();
and
system_rtc_mem_read(0, &rtc_reg_val, 4)

both return 4bytes.
Now RTC's often have registers that contain a representation of the day,month, year, hour, min, and second
system_get_rtc_time looks like counter in the way that system_get_time() returns a 32bit counter.

Question:
Is the esp8266's internal RTC just a counter incremented on a quanta of instruction cycles that differs from the
system_get_time() counter in only in the fact that it keeps running during sleep?

Or is it a RTC like a Dallas DS1307 that has day,month, year, hour, min, and second?
User avatar
By MK1888
#10180 It's a counter. Probably run by a hardware timer. Check the Espressif SDK PDF that was posted on this forum very recently.
User avatar
By Stoney
#24973 Mine is not running during sleep :(

Using deep_sleep and waking automatically, the RTC clock time is being reset at the same time as the system clock

System time = 6212168
RTC time = 1045677

next time around ..

System time = 6210447
RTC time = 1045436

and on it goes..