Part Number: CC2340R5
Hi,
We have a requirement for mainting RTC time on the CC2340R5.
We will receive the epoch time in seconds via UART. During our overall system's sleep state we wish to have RTC to be running.
From what I see from the TRM, we have two registers "TIME524M" and "TIME8U" which has counter that increments the register at 0.5s and 8us respectively.
One approach is to read the registers and use them for time keeping. Alternatively we also see that there is a "CH0CC8U " register which can be used to generate a compare event once the desried value is set.
- How do I generate an interrupt to wake up the system from standby using the RTC compare event, where do I register for a callback?
- Could you also suggest how effectively "TIME524M" and "TIME8U" can be used to maintain time keeping.
I tried looking for example but I haven't found any so far. I have also confirmed that RTC is the only peripheral/module that remains active during sleep state so any other alternatives will not work for our use case as we are in sleep state.