Page 1 of 2
RTC with 32.768 kHz crystal
Posted: Mon Feb 13, 2017 8:12 pm
by loboris
Is there any way to configure RTC to run with 32.768 crystal?
This can be very important, as the current implementation of RTC in deep sleep with internal 150 kHz clock is very inaccurate.
On my board (does it depend on board/module ?) RTC runs approximately 3,2% to fast when in deep sleep.
I've tried a kind of callibration (increasing the sleep time by 3.2%, and then adjusting the system time after wake up) and it is much better, but certainly not enough for running for long periods of time.
As I have 32.768 kHz on board, I would like to use it.
Re: RTC with 32.768 kHz crystal
Posted: Mon Feb 13, 2017 8:28 pm
by ESP_igrr
In the current ESP-IDF, using RTC as clock source isn't supported unfortunately. Expect to see support for this by the end of February.
Re: RTC with 32.768 kHz crystal
Posted: Sun Mar 19, 2017 11:12 pm
by loboris
ESP_igrr wrote:In the current ESP-IDF, using RTC as clock source isn't supported unfortunately. Expect to see support for this by the end of February.
Any news about RTC as clock source support ?
Re: RTC with 32.768 kHz crystal
Posted: Tue Mar 28, 2017 7:15 am
by loboris
Is this issue considered so unimportant or is it so complicated to implement the support?
Re: RTC with 32.768 kHz crystal
Posted: Tue Mar 28, 2017 8:03 am
by ESP_igrr
This feature is planned, sorry that it's taking longer than expected.
Re: RTC with 32.768 kHz crystal
Posted: Thu May 04, 2017 7:52 pm
by eric24
Once the 32KHz issues have been worked out, will the ESP32 also support a 32.768KHz square wave input on a single pin (instead of a crystal on two pins)? The reason I ask is because this would provide the option of using an external temperature-compensated oscillator for better frequency stability that a crystal alone can offer.
Re: RTC with 32.768 kHz crystal
Posted: Mon Aug 07, 2017 12:20 am
by don.vukovic
Has this issue been resolved ?
Any examples available ?
Re: RTC with 32.768 kHz crystal
Posted: Tue Aug 08, 2017 2:50 pm
by ESP_igrr
Yes, you can enable 32k XTAL in menuconfig, under ESP 32 specific settings.
Re: RTC with 32.768 kHz crystal
Posted: Wed Aug 09, 2017 2:58 am
by onehorse
Any plans to extend this to the Arduino core? My boards also have a 32.768 kHz crystal and I would like to be able to make us of it in my Arduino sketches.
Re: RTC with 32.768 kHz crystal
Posted: Sat Nov 18, 2017 7:21 pm
by anteph
Hi!
I'm also looking for RTC support on the Arduino core.
It would be awesome to avoid the need for using an external RTC for timestamping, which is a need for most of all sensor related projects.
Best regards,
Nuno Santos