FrenkR wrote:
on SDK, there is very little documentation about RTC. system_get_rtc_time() returns counter value. Return value is 32 bit only(uint32), which means that very short period of time elapses before counter restarts.
From test on ESP-03, RTC resolution is approx. 160000 ticks/sec. Hence, it takes 7.45h for counter to restart.
Is there any API where you would set "current" time/reset counters and then get at least 64bit value? is there any callback/interrupt when counter is restarted?
Is there any API where I could set time and retrieve it (on GPIO interrupt) in 0.1sec density(1/100 sec would be even better)?
Rgds,
Frenk
Hi Frenk,
This RTC clock means a low-power counter/timer which can still work during light-sleep and deep-sleep mode. Actually , as long as the 3v3 supply is on , it works.
system_get_rtc_time() returns this RTC( low-power clock indeed) counter value, a relative time.It still counts when the chip is reset by watchdog.
system_rtc_clock_cali_proc() returns a number that represents the equivalent system clock ticks of one RTC clock cycle.
Maybe we should arrange for this 64bit value APIStatistics: Posted by costaud — Tue Jan 06, 2015 3:34 am
]]>