Hi Team,
1. Can we write date and time to GRTC?, if yes, can you please share the sample code.
2. can we configure GRTC to wakeup MCU as per configured time(Ex: wakeup for every 1minute).
Regards,
Sravan Rikka
Hi Team,
1. Can we write date and time to GRTC?, if yes, can you please share the sample code.
2. can we configure GRTC to wakeup MCU as per configured time(Ex: wakeup for every 1minute).
Regards,
Sravan Rikka
Hi,
1) Could you please provide some more details on what exactly you are trying to do here? The date and time cannot directly be stored or set into the GRTC. GRTC is like a timer which keeps on ticking. If you want to keep track of the date and time, I would suggest you to take a look at the Zephyr time utilities and the date-time library in order to convert between different time representations.
2) On nRF54L15, it is possible to configure GRTC to wake up MCU at a configured time. If you want to for example, wakeup for every 1 minute, you can set the time interval corresponding to 60 seconds in the INTERVAL register and then set CC[0] (capture/compare channel 0) to periodic mode meaning "current time + interval". So this way INTERVAL is added automatically to CC[0]. This happens on every compare event (EVENTS_COMPARE[0]) and events repeat periodically.