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

How to get a base of time from an ISR and preserve the low power consumption.

Hi,

Currently, we work on a project that uses:

    nRF9160
     Zyphre OS
     Segger Embedded Studio for  Arm (Nordic Edition) V5.10d
     SDK v1.4

This is our situation.

We want to measure the pulse width that enters a digital input of the nrf9160. After the above, we will publish it on a server with MQTT.

We hope that the sources of the tick or method that you suggest allow us to keep the low current consumption of the SoC.



Here are our questions:

    1) What method should we use to obtain the ticks within a digital input ISR?

    2) Is the clock source for that tick available during low power states?

    3) What is the resolution that we can expect with this method?

Basically, we want to know the best way that the Nordic team recommends to implement and get the time source mentioned in this Nordic post. 

And preserve the low power consumption. And if it is possible with the lowest latency possible.

As always, we appreciate the excellent support you have given us so far.

René D.

Parents Reply Children
No Data
Related