Hi there,
I am trying to acheive exactly the same keeping the SPI stream as constant as possible. Was this in the End resolved? And what was the SPI configuration used?
Thanks!
ESP interrupt latency
Re: ESP interrupt latency
Postby roc2 » Thu Dec 15, 2016 7:30 pm
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
Best regards,
mculibrk
Hi, mculibrk!
Is your problem solved, and how to solve the problem of interrupt latency? I have the same question when use gpio interrupt



Re: ESP interrupt latency
Postby mculibrk » Thu Dec 29, 2016 3:39 pm
I'm really sorry for this laaaaate reply...
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?
regards,
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?
regards,
Who is online
Users browsing this forum: No registered users and 60 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.