ESP32 Internal RTC

fran748
Posts: 3
Joined: Wed Feb 17, 2021 5:26 pm

ESP32 Internal RTC

Postby fran748 » Wed Feb 17, 2021 6:06 pm

Hello. I have a question about the internal RTC of the ESP32.
Firstly, I am using the ESP32-C3-DevKitC-02 to do my tests. I need a RTC to record the different events that I am measuring, so I am using an external RTC called DS3234. However, I would like to perform tests with the internal RTC of the ESP32 to check its validity.
Can anyone provide me with any documents about the internal RTC? For example, the functions in arduino to configure, set and get the time of this RTC.
I would like to know if there is any similar information such as the functions for the esp32 timers (https://github.com/espressif/arduino-es ... #L112-L117)

blackeneth
Posts: 1
Joined: Wed Feb 24, 2021 9:30 pm

Re: ESP32 Internal RTC

Postby blackeneth » Wed Feb 24, 2021 9:48 pm

You can find the low level RTC functions in the "rtc.h" library file; on my system it is located at
\Arduino\hardware\espressif\esp32\tools\sdk\include\soc\soc\rtc.h

Don't get confused with the other rtc.h that is located at
\Arduino\hardware\espressif\esp32\tools\sdk\include\esp32\rom\rtc.h

fran748
Posts: 3
Joined: Wed Feb 17, 2021 5:26 pm

Re: ESP32 Internal RTC

Postby fran748 » Thu Feb 25, 2021 9:06 am

Thanks

Who is online

Users browsing this forum: No registered users and 39 guests