Counting Square Wave Pulses on nRF5340 Using Zephyr and GPIOTE

Hello everyone,

I have an nRF5340 microcontroller (NORA B106 module), and I want to connect a square wave signal to one of its pins to read its frequency or count the number of rising edges per second. I understand that I need to use a timer in "Event Counter Mode." I believe I also need to use the GPIOTE module, correct?

Could someone assist me with this?

I'm using the Zephyr operating system with nRF Connect SDK v2.9.0.

Thank you.

Related