Our setup is using a NRF52832 with SDK15.0.0.
While working with a time sensitive external circuit where we both sample the state of the GPIO and enable LDETECT on it, we noticed that the sampling code detects a transition in pin state much faster than the sensing. In this particular case we were setting the sense level to high.
In order verify that the delay we were seeing is real we implemented a fast polling system, 8 samples per millisecond, that would read the pin value from IN register. We also had sense enabled to measure the delay. From our results we are seeing that there is a 24-25ms delay in the sense interrupt compared to the detection by reading the pin value at the aforementioned sampling rate.
The rising edge is quite slow rising with potential jitter. We would expect it to take between 6 and 22 milliseconds for it to reach logic level high.
Is this expected behaviour? And if so is there any way to reduce this delay?
Otherwise do you have any ideas as to what might be introducing this delay?
P.S. The sense interrupt is configured with priority 0