ESP32-C6 internal 150 vs 32 kHz RC oscillator

Marius28
Posts: 15
Joined: Sat Oct 28, 2023 4:23 pm

ESP32-C6 internal 150 vs 32 kHz RC oscillator

Postby Marius28 » Mon Feb 19, 2024 12:09 pm

Hello,

in my project the ESP32-C6 is most of the time in deep sleep. Now after 5 days the system clock has deviated by almost 5 minutes.

At the ESP32-C6 System Time documentation i read something about another internal 32 kHz RC oscillator but there is no description only for the default 150 kHz RC oscillator. Will the internal 32 kHz RC oscillator solve this time deviation problem?

I'm missing some technical details for both internal RC oscillator at the docs. For example if i use the internal 32 kHz is there a difference in the deep sleep current?

User avatar
ESP_krzychb
Posts: 400
Joined: Sat Oct 01, 2016 9:05 am
Contact:

Re: ESP32-C6 internal 150 vs 32 kHz RC oscillator

Postby ESP_krzychb » Tue Feb 20, 2024 4:12 am

Hello Marius28 ,
Using another RC oscillator will not solve the time deviation problem. You need a more precise clock source.
A typical solution to reduce the time drift in sleep mode is by adding an external RTC clock.

Marius28
Posts: 15
Joined: Sat Oct 28, 2023 4:23 pm

Re: ESP32-C6 internal 150 vs 32 kHz RC oscillator

Postby Marius28 » Thu Feb 22, 2024 2:23 pm

ESP_krzychb wrote:
Tue Feb 20, 2024 4:12 am
Hello Marius28 ,
Using another RC oscillator will not solve the time deviation problem. You need a more precise clock source.
A typical solution to reduce the time drift in sleep mode is by adding an external RTC clock.
Thanks, i already thought that i need an external clock source. But why is there a 150 and 32 kHz RC oscillator available?

I checked both internal RC oscillators 150 vs 32 kHz as clock source:
150 kHz: The time deviation was 25 seconds after 10 hours of deep sleep.
32 kHz: The time deviation was 0 second after 14 hours of deep sleep.

So it seems that the 32 kHz RC oscillator is more precise?

Who is online

Users browsing this forum: gamename and 92 guests