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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

870 次查看
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 项奖励
2 回复数

697 次查看
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 项奖励

697 次查看
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 项奖励