Get interrupt reason in callback

User avatar
urbanze
Posts: 301
Joined: Sat Jun 10, 2017 9:55 pm
Location: Brazil

Re: Get interrupt reason in callback

Postby urbanze » Fri May 04, 2018 12:15 pm

WiFive wrote:Personally I would suggest you use level interrupts and sw debouncing and when you receive a high interrupt, change the next interrupt to low and so on.
In most of simple microcontrollers, if same interrupt occur inside of your ISR, this new interrupt is ignored because is "critical section" and disable interrupts.
In some's modern's mcu's, if same interrupt occur inside of your ISR, this make an "re-call" your ISR....

I not found anywhere talking about this specifically from esp32, so you/anyone know?

Edit
I made some test's and it seems the interrupts are disabled.
I also think that my problem may be in the loss of pulses due to high interrupt latency. See in the photo of the logic analyzer that with the 2 edge of channel 1, channel 0 only answered 1x, losing the second pulse.
What can I do? Losing pulses is not acceptable in the project :?

img: https://drive.google.com/file/d/1KNbXoG ... sp=sharing
Image

Who is online

Users browsing this forum: axellin and 81 guests