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

measuring input GPIO pin frequency with soft device running

Hello,

is it possible to measure frequency from 1Hz up to 400kHz (50% duty cycle) on gpio pin having soft device enabled with Peripheral functionality? The measurement will be invoked on demand by the connected central device. I will use nRF51822, rev. 3, S110 or S130, SDK 8 or 9.

If this is not possible, please tell me if following scenario would be ok:

  • invoke measurement
  • disable soft device (disconnection from central)
  • manage measurement (what's the best way: which timer?, PPI? GPIOTE?)
  • enable soft device

Thank you!

btw, what is the maximum frequency that can be measure on gpio pin?

Parents
  • @Aryan - thank you for the answer, however, no no, I don't want to generate clock on pin. I want to measure frequency of a square wave. I need to connect Light-to-Frequency converter to the nRF51822. This converter gives square wave (50% duty) (toggling its output pin) depending on the light intensity. Its output frequency has range from several Hz up to 400kHz.

Reply
  • @Aryan - thank you for the answer, however, no no, I don't want to generate clock on pin. I want to measure frequency of a square wave. I need to connect Light-to-Frequency converter to the nRF51822. This converter gives square wave (50% duty) (toggling its output pin) depending on the light intensity. Its output frequency has range from several Hz up to 400kHz.

Children
No Data
Related