Part Number:CC2640R2F
Hi,
we are reading the RTC seconds counter value every second using this API (AONRTCSecGet();) and able to get the seconds after PowerON the board.
After some period of time trying to reset the seconds counter value to 0 by resetting the RTC
code was below.
AONRTCDisable(); AONRTCReset(); do { //status_rtc = HWREGBITW(AON_RTC_BASE + AON_RTC_O_CTL, AON_RTC_CTL_RESET_BITN);
status_rtc = AONRTCActive(); }while(status_rtc == 1); AONRTCEnable();
after passing the AONRTCReset() API, the AONRTCActive() is returning 0. But reading the seconds counter value did not start from zero. Counter runs with reference of previous value.
Is it a correct way to reset the Seconds counter value? or please suggest a way to reset the seconds from Zero.
thanks,
Narayanan