[CLOSED] GPIO interrupt from buttons not always triggering

DurandA
Posts: 17
Joined: Thu Nov 26, 2015 11:51 pm

[CLOSED] GPIO interrupt from buttons not always triggering

Postby DurandA » Sat Apr 25, 2020 8:41 pm

Hi,

I attached interrupts to GPIO32/GPIO33 with internal pull-up to detect button presses (NEGEDGE) similarly to the gpio_example (https://github.com/espressif/esp-idf/bl ... ple_main.c).
odroid-go-gpio.png
odroid-go-gpio.png (44.82 KiB) Viewed 3393 times
However, the ISR is not always triggered. In fact, it is triggered ~1 out of 4 button presses (more or less randomly). Do ISRs only trigger on fast edges?
Last edited by DurandA on Sun Apr 26, 2020 12:06 am, edited 1 time in total.

DurandA
Posts: 17
Joined: Thu Nov 26, 2015 11:51 pm

Re: GPIO interrupt from buttons not always triggering

Postby DurandA » Sun Apr 26, 2020 12:05 am

Shame on me. :oops: I correctly set pull up but forgot to initialize pull_down_en to 0.

Who is online

Users browsing this forum: Bing [Bot], Corand, jtroncin21 and 108 guests