Generating Interrupts Based on Internal RTC
Posted: Thu Jul 25, 2024 5:33 pm
Hi everyone,
I'm developing an ESP32-WROOM-32E based device that requires precise GPS and PPS synchronization. Here’s what I've implemented so far:
1. I use a GPS module to retrieve time data (date, time) from the RMC command.
2. On the next PPS rising edge, I synchronize the internal RTC with settimeofday (RMC time + 1 second).
Now, I need to generate interrupts based on the internal RTC to allow for synchronized sampling at specific frequencies, such as 8.192 kHz and 1.024 kHz.
My question is: Is it possible to generate interrupts that are related to the internal RTC on the ESP32? If so, could you provide guidance or examples on how to achieve this?
Thanks!
I'm developing an ESP32-WROOM-32E based device that requires precise GPS and PPS synchronization. Here’s what I've implemented so far:
1. I use a GPS module to retrieve time data (date, time) from the RMC command.
2. On the next PPS rising edge, I synchronize the internal RTC with settimeofday (RMC time + 1 second).
Now, I need to generate interrupts based on the internal RTC to allow for synchronized sampling at specific frequencies, such as 8.192 kHz and 1.024 kHz.
My question is: Is it possible to generate interrupts that are related to the internal RTC on the ESP32? If so, could you provide guidance or examples on how to achieve this?
Thanks!