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

1Sec App Timer Consumption

Hi, I am trying to do a GPIO operation every one second repeated in 51822. I am using app timer to get this work done. The current average consumption is 45uA/H. The handler is like this.

nrf_gpio_pin_set(21); 
nrf_delay_ms(10); 
nrf_gpio_pin_clear(21); 

is there any way to bring the consumption down further??. I am using S130.

Parents
  • Using nrf_delay_ms() or any of the other simple delay function gives the worst possible power consumption as it keeps the processor working constantly performing NOPs. It's also pretty inaccurate, more so the more the processor is doing.

    Use an app_timer or anything else based off the RTC which will allow you to sleep most of the time and only wake when interrupted.

Reply
  • Using nrf_delay_ms() or any of the other simple delay function gives the worst possible power consumption as it keeps the processor working constantly performing NOPs. It's also pretty inaccurate, more so the more the processor is doing.

    Use an app_timer or anything else based off the RTC which will allow you to sleep most of the time and only wake when interrupted.

Children
Related