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

Configuring GPIO as Timer/Counter Input

Using Fanstel BT832A BT 5.0 Module which utilizes SoC nRF52810 QFAA

1) Yes or No:  can I configure a GPIO as a Timer/Counter Input so I can feed a high frequency input into it and calculate the frequency?

If yes, please advise on the following:

A) Which Pin can do this, or can any pin be mapped to do it?

B) What are the tasks required for proper configuration

Thanks in advance

Tim

  • Hi Tim

    Sorry about the late reply, but 1st of May is a public holiday here in Norway.

    A) Any regular GPIO pin should be able to do this. Be aware that the NFC pins and GPIO pins located near the radio might not be suited for this.

    B) This post provides an easy way to configure this, be aware that it is rather dated, so some tweaks may be necessary. This post provides two examples that are a bit more complex on how to do this using timers or an RTC.

    Best regards,

    Simon

Related