I need to measure a PWM signal ranging from 1 to 1023 us, using the Xenon. The nRF52840 has a number of internal timers, with Capture register, that are suited for this task, better than using GPIO interrupt and the microsecond counter.
1 - Does anyone know of examples of how to use one of the timers, mixing it with the particle firmware libs / deviceOS, i am thinking in terms of interrupt handling and processor events.
2 - Where to find an overview of what timers and resources are consumed and used by the particle deviceOS
Any inputs are welcome