Frequency counter on NRF52805

Hi, I want to use an NRF52805 with a voltage to frequency detector. If I understand the datasheet, there is one timer/counter and RTC on that chip. Is it possible to set the RTC as the timing gate, and  use the T/C as an input pulse counter through the event system? I'm planning to use a single clock source (prob. 32MHz) and synthesize the LF clock required for the RTC from it.

I will be happy to know if this is a good way to go before fully adopting the hardware.

Cheers,

Parents
  • Hi

    4. It seems like NRF_TIMER0->CC[0] is set to 3, which I think will set the timer to run at 8/3 MHz. Can you try tweaking this to 1 for example? Where exactly did you find this gpio_clock_8m() function? It doesn't seem familiar and I can't find it in the nRFConnect nor nRF5 SDKs.

    5. I'm sorry you're having trouble, what IDE are you using exactly, Visual Studios Code or SEGGER Embedded Studios? We're constantly working on adding more sample projects and drivers to the nRF Connect SDK and are striving to make it as user friendly as possible.

    Best regards,

    Simon

  • Hi,

    Thanks, I know. My point was that if I change the compare value to less than 3, the count value shows always zero.

    I looked in the nrf52-DK schematic files and couldn't find anything that would suggest why this would occur. I've also moved the test clock pin to p0.12 to shorten the line and avoid LED load, to no avail. I will check with an oscilloscope once I can. In the meantime any insights will be welcome!

    Thanks again

Reply
  • Hi,

    Thanks, I know. My point was that if I change the compare value to less than 3, the count value shows always zero.

    I looked in the nrf52-DK schematic files and couldn't find anything that would suggest why this would occur. I've also moved the test clock pin to p0.12 to shorten the line and avoid LED load, to no avail. I will check with an oscilloscope once I can. In the meantime any insights will be welcome!

    Thanks again

Children
Related