Error while using Dataclock with GPIOs

Hi,

I am currently trying to use Dataclock devices with my mangOH Red.
I have an input clock signal on a GPIO and an input Data signal on another GPIO.
When there is an interruption on the falling edge of the clock signal (every 1ms approximately), I have to read the value of the data signal (1 or 0).
However, some interrupts don’t occur so I don’t get all my bits back or some are wrong compared to the signals that I can see on my oscilloscope.
I was wondering if there was a time limit between 2 GPIO’s interrupts.

Regards, Baptiste MARC

Try to use kernel driver for GPIO interrupt and see if it has improvement.
gpio_interrupt.rar (81.8 KB)