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

Multiple timers using app_timer

Hi devs,

It is not a real issue it is about a possible misconception about app_timer

For my application, I am using multiples timers using app_timer_create. From my understanding, the app_timer runs over RTC1, and each instance (timers created) depends on  RTC1 and RTC1's interruptions.

My question: is there any chance when using multiples timers based on app_time it increases the power consumption? 

Regards,

Arepa

Parents
  • Hi 

    The main impact on current consumption from the app_timer module is the total frequency of interrupts, not how many timers you set up. Each app_timer callback requires the MCU to wakeup from sleep, and run whatever code you add to the app_timer callback. 

    In other words, if you have 10 app_timers running at a 1Hz frequency current consumption will be much less than one app_timer running at a 1000Hz frequency. 

    Best regards
    Torbjørn

Reply
  • Hi 

    The main impact on current consumption from the app_timer module is the total frequency of interrupts, not how many timers you set up. Each app_timer callback requires the MCU to wakeup from sleep, and run whatever code you add to the app_timer callback. 

    In other words, if you have 10 app_timers running at a 1Hz frequency current consumption will be much less than one app_timer running at a 1000Hz frequency. 

    Best regards
    Torbjørn

Children
No Data
Related