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

working of app_timer

Hi,

How does the app_timer work, does it make use of the compare registers of RTC1?

Is there any benefit over using the RTC directly?

Parents
  • How does the app_timer work, does it make use of the compare registers of RTC1?

     Yes.  

    Is there any benefit over using the RTC directly?

     The app_timer allows the user more 'timeouts' than there are Compare Events in the RTC, though not quite as accurate as running the RTC as you can get some jitter. In short, use the app_timer to control application flow that does not require great accuracy, use the RTC directly for higher accuracy, and the ability to trigger other peripheral tasks through PPI. 

Reply
  • How does the app_timer work, does it make use of the compare registers of RTC1?

     Yes.  

    Is there any benefit over using the RTC directly?

     The app_timer allows the user more 'timeouts' than there are Compare Events in the RTC, though not quite as accurate as running the RTC as you can get some jitter. In short, use the app_timer to control application flow that does not require great accuracy, use the RTC directly for higher accuracy, and the ability to trigger other peripheral tasks through PPI. 

Children
Related