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

nRF9160 > Count pulse on GPIO

Dear Team,

what is the way to do it in Zephyr? 

I have a signal up-to 10kHz, what is the best way to keep the counter in the background?

Thank you and best

Oleh

Parents Reply
  • Hi Didrik,

    thank you for the suggestion, It is clear with the pwm part, got it working.

    what i am not able to catch is the sensing that frequency on the input part. Tried the gpio to config in input, then reading buffer, seems ok to get bits 0s/1s but somehow to get to the frequency not... i’m stuck.

    May I ask you for a snippet?

    thank you!

    best

    Oleh

Children
Related