# Error while using Dataclock with GPIOs

**URL:** <https://mangoh.discourse.group/t/error-while-using-dataclock-with-gpios/9119>\
**Category:** mangOH Red\
**Created:** [May 5, 2021, 3:01pm UTC](https://mangoh.discourse.group/t/error-while-using-dataclock-with-gpios/9119 "2021-05-05T15:01:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![baptistemarc](https://avatars.discourse-cdn.com/v4/letter/b/d07c76/32.png) [@baptistemarc](https://mangoh.discourse.group/u/baptistemarc)\
**Post date:** [May 5, 2021, 3:01pm UTC](https://mangoh.discourse.group/t/error-while-using-dataclock-with-gpios/9119/1 "2021-05-05T15:01:10Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [May 5, 2021, 3:40pm UTC](https://mangoh.discourse.group/t/error-while-using-dataclock-with-gpios/9119/2 "2021-05-05T15:40:03Z")

</div>

Try to use kernel driver for GPIO interrupt and see if it has improvement.  
[gpio\_interrupt.rar](https://mangoh.discourse.group/uploads/short-url/vtYYb29GBkKFt9J3wgzCrdBP3Hj.rar) (81.8 KB)
