Hi,
I want to measure the pulse length of sqauare wave (accuracy in ms) using PPI.
I have counted the number of pulses occurring in particular time period using PPI successfully. For that I used one timer as in count mode, and another timer as timer mode to capture the counts.
But I couldn’t measure pulse length duration. I was using GPIOTE peripheral driver, but I cannot use both LoToHi and HiToLo event on single pin. Further I used NRF_GPIOTE_POLARITY_TOGGLE, but in this case I didn’t get which transition triggered the interrupt. So I can not start and stop timer based on the edge triggered.
I was trying to access registers directly rather than GPIOTE peripheral drivers…..but I didn’t get useful result.
Can you please help me out in this case.
Thanks in advance.
Regards,
Pooja Uchagaonkar