How can we decrease the resolution of the timer to 500 ms in SDK 14? The minimum resolution I could get to was 1 ms by changing the APP_TIMER_CONFIG_RTC_FREQUENCY macro to 31.
Thanks
Atul
How can we decrease the resolution of the timer to 500 ms in SDK 14? The minimum resolution I could get to was 1 ms by changing the APP_TIMER_CONFIG_RTC_FREQUENCY macro to 31.
Thanks
Atul
Hi Atul,
I believe this link will be helpful for you. Since you want a resolution of 500 ms, this is the same as 1/.5 s = 2 Hz. Therefore f_RTC = 2Hz.
Solving for the equation gives you a prescaler value of:
PRESCALER = round(32768 Hz/ 2 Hz) - 1 = 16383.
16383 will not work as the prescaler is only 12 bits!
16383 will not work as the prescaler is only 12 bits!