mculibrk wrote:Any information about the latency of peripheral (HSPI) interrupts related to the ETS_SPI_INTR_ATTACH(); API function?
Or what is the interrupt latency in general for the ESP?
cross posted here: http://bbs.espressif.com/viewtopic.php?f=6&t=359#p1323
Is your problem solved, and how to solve the problem of interrupt latency? I have the same question when use gpio interrupt ..
anyway, regarding int latency...
I was able to solve (kind of) the irq latency of the SPI... this was done by setting an "undocumented" (in newer versions of the header files) register of the SPI. I don't recall the exact one but I can find and post if you really need it.
But, this is specific to SPI... it is a kind of "intercharacter delay" value which is by default set to something. When this value is set to 0 the response is much, much better.
I did not try/tested the latency of the GPIO irq... and I really doubt that there will be a similar register to "tweak" to get faster response.
What numbers are you seeing? What's the gpio irq latency you observed?
Are you using irqs directly or by some API/default handler?
Who is online
Users browsing this forum: No registered users and 9 guests
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
We also have a RTOS version and a MESH version too!
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!