esp32 GPIO interrupt latency

jeromeh
Posts: 31
Joined: Thu Dec 22, 2016 5:41 am

esp32 GPIO interrupt latency

Postby jeromeh » Sun Feb 05, 2017 8:31 am

Hi,

I'm using a GPIO pin as a external interrupt, responding to negedge events. A event handler is registered and can be called correctly, but the interrupt latency seems pretty unpridictable.

I'm setting another GPIO pin to high when entering the event handler, and clears it before leaving the handler. Comparing the waveform in the scope, I'm seeing the 1st interrupt latency is around tens of us, and the 2nd interrupt seems to be around 1.5ms, and 3rd is around 6ms....

Is there any known issue related to external interrupt through GPIO? or anything special need to be done to reduce ISR latency? Thanks,

jeromeh
Posts: 31
Joined: Thu Dec 22, 2016 5:41 am

Re: esp32 GPIO interrupt latency

Postby jeromeh » Mon Feb 06, 2017 1:28 pm

oh...I realized that it might because I'm using a mongoose-os api to setup the interrupt handler...and there is a queue used by mongoose-os might causing problem like this.

Who is online

Users browsing this forum: No registered users and 129 guests