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

pluse number count

I need to count the pluse number use 51822, the frequency about this pluse is about  0.01Hz to 1Hz and is not fixed,  I know use Time1 can achieve this funtion,  but the problem is i need achieve it use very lower power consumption , is it possible to reduce the current until it's lower than 30uA?  How to set it is the best choise for save power. I just need use two funtion in my project: BLE advertisement and count pluse number.

Parents
  • Hi,

    The frequency of what you want to capture is so low that I do not see any need for using a timer. You could use a RTC in counter mode, but the problem is that you would get high current consumption from using GPIOTE with PPI. I have not done the calculations, but my gut feeling is that the most power efficient way to do this is to simply use GPIOTE port event (ow accuracy mode) and wake up the CPU to increment a variable (though it might seem a bit counter intuitive).

Reply
  • Hi,

    The frequency of what you want to capture is so low that I do not see any need for using a timer. You could use a RTC in counter mode, but the problem is that you would get high current consumption from using GPIOTE with PPI. I have not done the calculations, but my gut feeling is that the most power efficient way to do this is to simply use GPIOTE port event (ow accuracy mode) and wake up the CPU to increment a variable (though it might seem a bit counter intuitive).

Children
Related