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

timer accuracy

Hi,

I am using 

  • nRF52840
  • SDK 15.3.0
  • Keil IDE
  • The soft device is S140 
  • JLinkRTTViewer for debug

I am using app_timer to control the LED On time.

the app_timer works correctly without SD event.

However, when an SD event (e.g disconnect) occurs, the LED is turned on for a shorter time than the app_timer value.

Question 1

     Why does this happen?

     Is it because app_timer priority is lower than SD event?

Question 2

   Which timer should be used to be less affected by SD events?

Please advise.

Parents Reply Children
Related