Other Parts Discussed in Thread: SYSCONFIG, CC2642R
Hi all,
We are talking about project "project_zero" here.
We use the high-level API "seconds_set()" and "seconds_get()" functions. Everything works but we want to increase the precision. As we have it now, time drifts a bit after some days.
We already read user guide, page 1398.
We would like to be able to access the AON_RTC to calibrate it. We are guessing we have to:
Change the increment by updating the AUX_SYSIF:RTCSUBSECINC0 and the AUX_SYSIF:RTCSUBSECINC1 registers, and then load the new setting to the AON_RTC by a write to the AUX_SYSIF:RTCSUBSECINCCTL.UPD_REQ register
Honestly, I have no idea how to do this.
Is there an example piece of code that you can provide that does exactly what is stated above?
Do I need to disable interrupts and enable them before and after?
Please let me know your points of view, thanks.