RTC with 32.768 kHz crystal
RTC with 32.768 kHz crystal
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.
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
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
Any news about RTC as clock source support ?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.
Re: RTC with 32.768 kHz crystal
Is this issue considered so unimportant or is it so complicated to implement the support?
Re: RTC with 32.768 kHz crystal
This feature is planned, sorry that it's taking longer than expected.
Re: RTC with 32.768 kHz crystal
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.
-
- Posts: 31
- Joined: Tue Mar 21, 2017 3:40 am
Re: RTC with 32.768 kHz crystal
Has this issue been resolved ?
Any examples available ?
Any examples available ?
Re: RTC with 32.768 kHz crystal
Yes, you can enable 32k XTAL in menuconfig, under ESP 32 specific settings.
Re: RTC with 32.768 kHz crystal
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
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
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
Nuno Santos
https://techtutorialsx.com/
https://techtutorialsx.com/
Who is online
Users browsing this forum: Majestic-12 [Bot] and 20 guests