ESP8266 Developer Zone The Official ESP8266 Forum 2015-07-26T21:45:43+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=107 2015-07-26T21:45:43+08:00 2015-07-26T21:45:43+08:00 https://bbs.espressif.com:443/viewtopic.php?t=107&p=2866#p2866 <![CDATA[Re: RTC demo]]>
Pete.
http://tech.scargill.net

Statistics: Posted by scargill — Sun Jul 26, 2015 9:45 pm


]]>
2015-07-25T20:22:53+08:00 2015-07-25T20:22:53+08:00 https://bbs.espressif.com:443/viewtopic.php?t=107&p=2848#p2848 <![CDATA[Re: RTC demo]]> Statistics: Posted by bojanpotocnik — Sat Jul 25, 2015 8:22 pm


]]>
2015-01-07T16:37:19+08:00 2015-01-07T16:37:19+08:00 https://bbs.espressif.com:443/viewtopic.php?t=107&p=459#p459 <![CDATA[Re: RTC demo]]>
FrenkR wrote:
problem is if you are in deep_sleep mode(CH_PD on GND or folating). RTC is ticking, but your code is not running. So 32 bit RTC will overflow in 7.5h. If timer would be 64 bit, you have more than enough time (many, many years)to check for timer overflow. with 64bit RTC I don't see any need to have real RTC support on chip(as DS1302 is).


If that was a reply to me: No, I understand the need of a 64-bit rtc and I fully agree with that sentiment :) It's just that setting it (as scargill suggests) seems like a superfluous and needlessly complex feature.

Statistics: Posted by ESP_Sprite — Wed Jan 07, 2015 4:37 pm


]]>
2015-01-07T05:25:07+08:00 2015-01-07T05:25:07+08:00 https://bbs.espressif.com:443/viewtopic.php?t=107&p=458#p458 <![CDATA[Re: RTC demo]]> Statistics: Posted by FrenkR — Wed Jan 07, 2015 5:25 am


]]>
2015-01-07T01:56:11+08:00 2015-01-07T01:56:11+08:00 https://bbs.espressif.com:443/viewtopic.php?t=107&p=457#p457 <![CDATA[Re: RTC demo]]>
scargill wrote:
The SDK REALLY needs a proper 64 bit RTC value that can be SET and read. With the likes of LUA and MQTT, it is possible to go off and get a 64 bit TIMESTAMP - we need to be able to set a value that is incremented once a second by an internal system clock - that way we will be able to get the time on powerup and then maintain a simple TIME library - as you might find for example in the Arduino libraries.

I see more and more applications which would require ONLY the ESP board - and so it's vital these can maintain a real time clock.


Erm, why? The ESP probably has internal stuff tied to the monotonic-ness of the timer, which you mess up if you change the time under its nose. If you add some offset to the time, just keep your own 64-bit offset value and add that to the time every time you need it.

Statistics: Posted by ESP_Sprite — Wed Jan 07, 2015 1:56 am


]]>
2015-01-07T00:24:15+08:00 2015-01-07T00:24:15+08:00 https://bbs.espressif.com:443/viewtopic.php?t=107&p=455#p455 <![CDATA[Re: RTC demo]]>
I see more and more applications which would require ONLY the ESP board - and so it's vital these can maintain a real time clock.

Statistics: Posted by scargill — Wed Jan 07, 2015 12:24 am


]]>
2015-01-06T20:44:42+08:00 2015-01-06T20:44:42+08:00 https://bbs.espressif.com:443/viewtopic.php?t=107&p=454#p454 <![CDATA[Re: RTC demo]]>
costaud wrote:
Maybe we should arrange for this 64bit value API

They are considering..
anyway +1 for me, it would solve also one of my problems :)

Statistics: Posted by kingfisher — Tue Jan 06, 2015 8:44 pm


]]>
2015-01-06T20:42:27+08:00 2015-01-06T20:42:27+08:00 https://bbs.espressif.com:443/viewtopic.php?t=107&p=453#p453 <![CDATA[Re: RTC demo]]> Statistics: Posted by FrenkR — Tue Jan 06, 2015 8:42 pm


]]>
2015-01-06T03:34:27+08:00 2015-01-06T03:34:27+08:00 https://bbs.espressif.com:443/viewtopic.php?t=107&p=448#p448 <![CDATA[Re: RTC demo]]>
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 API

Statistics: Posted by costaud — Tue Jan 06, 2015 3:34 am


]]>
2014-12-27T01:04:44+08:00 2014-12-27T01:04:44+08:00 https://bbs.espressif.com:443/viewtopic.php?t=107&p=368#p368 <![CDATA[RTC demo]]> 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

Statistics: Posted by FrenkR — Sat Dec 27, 2014 1:04 am


]]>