Digital pins usable for interrupts

Gasman
Posts: 1
Joined: Sat Oct 06, 2018 9:26 pm

Digital pins usable for interrupts

Postby Gasman » Sat Oct 06, 2018 9:43 pm

Hi there,

the official Arduino documentation https://www.arduino.cc/reference/en/lan ... interrupt/ lists a few boards and the GPIO capable of handling interrupts.

What are the restrictions on the ESP32 IDF and ESP Arduino implementation regarding the GPIO Pins and interrupts? Which is the according chapter in the esp32 datasheets where I can find this information?

thanks

ESP_Sprite
Posts: 8921
Joined: Thu Nov 26, 2015 4:08 am

Re: Digital pins usable for interrupts

Postby ESP_Sprite » Sun Oct 07, 2018 2:21 am

I de-capped your title, no need to yell here :)

bobtidey
Posts: 43
Joined: Mon Jun 18, 2018 2:24 pm

Re: Digital pins usable for interrupts

Postby bobtidey » Sun Oct 07, 2018 9:56 pm

I believe that any GPIO that can be used for normal input can be used as an interrupt source.

All GPIO events get handled by a common single low level interrupt handler. In the esp32 Arduino the attachInterrupt controls an entry in a dispatch table that the common handler then uses to call the user interrupt functions defined in any attachInterrupt calls.

Who is online

Users browsing this forum: Bing [Bot] and 50 guests