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

CONFIGURING APP_TIMER IN COUNTER MODE

How to configure an app_timer in counter mode. i just want to count number of pulses in pwm using app_timer. i didnt find any example in which app_timer used in counter mode

  • Hello ANKITTY

    The app_timer module uses the RTC (real time counter) hardware to function as a low-power timer. Unfortunately the RTC does not support a counter mode as you are looking for, nor does the app_timer module have such functionality.

    You will need to use one of the other dedicated timer/counters or use GPIOTE events with a counter variable.

    Best regards

    Jørn Frøysa

Related