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

asynchronous pulse counting in low power mode

Hello,

I have an NRF51822 (redbealab ble nano) that I would like to use to count pulses in very low power mode.

  • Pulses are asynchronous
  • The rate of pulses can vary from a few Hz to ~100 kHz
  • I want to sleep, or go in low power mode while counting
  • Once in a while, the cpu wakes up and checks the count

My initial idea is to use one of the timer in counter mode and lower the clock frequency. My questions:

  • Is it possible to count asynchronous pulses this way ?
  • Is the counter tied to the system clock ?
  • If yes, what is the maximum separation between to pulses that I can detect ? (or maximum rate)

I'd be glad for any pointer to the documentation or example pieces of code.

Related