Hi
I have a problem with long latency on interrupts and long delay on retriggered interrupt.
I have a nRF52832 running with external HFCLK source. Using the SDK 14.2.0. The softdevice is disabled before using the GOIOTE and re-enabled afterwards.
The GPIOTE is setup like this:
As you can see I have skipped the original interrupt service routine from the SDK and wrote my own to avoid the overhead.
My interrupt service routine is like this:
I got a latency of 1.6 µs from the falling edge on GPIO pin RFID_PIN_DOUT to the rising edge of RFID_PIN_TEST1.
An if an additional falling edge occurs before the interrupt service routine, there is a delay between the falling edge of RFID_PIN_TEST1 to the next rising edge also on 1.6 µs.
I had expected much lower latency on a 64MHz processor. It should take around 16 clock cycles to enter or leave the interrupt service routine, which is 0.25µs.
The big question: What does the MCU do en the rest of the time?