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

Measuring Microsecond Time

Hi, I am trying to expand on the ESB PRX example and want to recreate functions with the same functionality as Arduino's micros() and millis() functions. I'd like the following:

a) 1 μs resolution

b) Low latency time read

c) Safe to use from either a normal or interrupt context

My understanding is that the RTC module is not suitable as it has a low resolution. The Time API of the IEEE 802.15.4 stack appears to have the right functionality, especially as it returns the microsecond time as a 64-bit number. I don't want to overcomplicate the issue by trying to include the IEEE 802.15.4 stack when all I want from it is the time.

What is the best way to achieve this?

[Mac OS, Segger, SDK 17.0.2]

Kind regards,

Microderm

Parents Reply Children
No Data
Related