Hi,
If we set the prescalar for RTC1 to 0xFFF (i.e. max value allowed), tick event is getting generated every 125msec. Using the below configuration i started a timer to trigger every 125msec
#define TICK_TIMER_TICKS APP_TIMER_TICKS(125, APP_TIMER_PRESCALER) app_timer_start(tick_timer_id, TICK_TIMER_TICKS, NULL);
Instead of getting triggered every 125msec (1 tick), it is getting triggered every 375msec (3 ticks).
Figured that the macro RTC_COMPARE_OFFSET_MIN is set to 3 and is the reason for not triggering on every tick
In the reference manual v3.0, page 106, has a timing diagram Figure 39 and note "If the COUNTER is N, writing N or N+1 to a CC register may not trigger a COMPARE event." The diagram is for prescalar set to 0.
Since the prescalar is not 0, can we change the macro definition to 1. Will it have any effect on app_scheduler or any other modules.
Thank you, Manju.