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

871件の閲覧回数
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 返答(返信)

698件の閲覧回数
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 件の賞賛

698件の閲覧回数
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 件の賞賛