Regarding the RTC prescaler of nRF51822, I found out that it is the following. Timer and RTC prescaler behavior by TASKS_CLEAR is different, When TASKS_CLEAR is executed at TIMER, the TIMER counter is cleared, The prescaler counter is not cleared. When TASKS_CLEAR is executed in RTC, both RTC counter and prescaler counter are cleared.
Thus, for example, using prescaler, TIMER and RTC by interrupt When creating an interval timer of 80 ms, assuming prescaler = 8 If TASKS_CLEAR is executed after 'A'ms (<10 ms and prescaler counter> 0) after interrupt, For TIMER, the next interrupt will be exactly 80 ms later than the previous interrupt, As for RTC, prescaler counter is cleared, The next interrupt is 80 ms + 'A'ms after the previous interrupt.
I understand that nRF51822 is the above operation, but also in future chip change May I think that this behavior will not change? Is the same for nRF52832 and nRF52840? Since it is difficult to create an interval timer at regular intervals in RTC, Is it better to use TIMER?