This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

APPTIMER works even after RTC rollover, why?

This is a question of curiosity rather than a specific concern:

In my sdk_config.h I have my prescaller set to 0:

// <o> APP_TIMER_CONFIG_RTC_FREQUENCY  - Configure RTC prescaler.
 
// <0=> 32768 Hz 
// <1=> 16384 Hz 
// <3=> 8192 Hz 
// <7=> 4096 Hz 
// <15=> 2048 Hz 
// <31=> 1024 Hz 

#ifndef APP_TIMER_CONFIG_RTC_FREQUENCY
#define APP_TIMER_CONFIG_RTC_FREQUENCY 0
#endif


Based on this, the RTC1 used for AppTimer should rollover every 512 seconds:

http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52832.ps.v1.1%2Frtc.html

Yet I have an AppTimer set for 30 minutes which works? 

#define GAS_WRITE_MS (1000 * 60 * 30) ///< calibration delay for the gas sensor [ms].
app_timer_start(gas_calib_timer_id, APP_TIMER_TICKS(GAS_WRITE_MS), NULL);

Can anyone explain why this works? Could I have AppTimers set for weeks or Months? I thought the RTC1 prescaler would limit the longest rollover time permitted for each AppTimer.

Parents Reply Children
No Data
Related