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

Reading digital waveform

Hi, I need to read a digital signal with varying pulse widths (Min ~120µs) over ~30ms. Currently (nRF52832) I'm doing this using a timer interrupting every ~15µs and reading the GPIO value in the timer handler, then processing this data after all samples are taken.

Is there a better way to read this signal? I will need to read it with the S140 softdevice running. I have considered the timeslot API however I'm not sure that this is suitable as I have no control of when the external device outputs the waveform. Thanks.

Related