Push button - Interrupt comes on both edges even though configured to rising edge only

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Push button - Interrupt comes on both edges even though configured to rising edge only

823 Views
dhanaraj_d
Contributor II

Hi,

We are having custom design board which using imx7d processor. Push button is implemented on the board - when we given rising edge configuration, we verified register settings of GPIO showing right values in GPIO interrupt configuration register and GPIO edge select register. But on both rising and falling edge event we are getting interrupt. This we tested in IMX7D SABRE reference board and there this issue is not seen. We don't have debounce logic also to suppress this issue. Can anyone help here to solve this issue if they face similar issues in their design.

Thanks in advance.

0 Kudos
2 Replies

650 Views
igorpadykov
NXP Employee
NXP Employee

Hi Dhanaraj 

one can try software glitch filtering described on many foums and articles, like

"How do I debounce inputs?" pigpio library 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

650 Views
dhanaraj_d
Contributor II

Hi Igor,

We downloaded code like below from sumo branch:

$ mkdir imx-yocto-bsp
$ cd imx-yocto-bsp
$ repo init -u https://source.codeaurora.org/external/imx/imx-manifest -b imx-linux-sumo -m
imx-4.14.98-2.0.0_ga.xml
$ repo sync

0 Kudos