Hardware timer in counting mode. nRF Connect SDK.

Hi,

Is there any example that demonstrates how I can use the Zephyr API to use a hardware timer/counter in counting mode?

I need to count pulses on one of the nRF52840 pins, but I couldn't find an example that could guide me in solving this problem.

Parents Reply
  • Hi  

    Thank you, this is really an example that can help me solve my problem.
    I checked it and it works.

    I have one question about it, I'm sure I can figure it out on my own, but maybe I can get a quick answer from you.

    In the example, the pin on which the pulses will be coming is set by the function pulse_count_init(pin);

    This pin belongs to port gpio0, is there any way to set the pin which belongs to port gpio1?

Children
Related