fast SPI transfer in periodic ISR
Posted: Sat Feb 24, 2024 12:59 pm
I am using the ESP32-S3 on a custom designed board. I generate a periodic interrupt with the General Purpose Timer. The frequency is up to 38 kHz (every 26 µs). Within the ISR I would like to push out data with octal SPI. I am using the SPI Master Driver.
I am struggling with getting SPI to work within the ISR at all. It works well in the main loop, but not within the timer generated ISR. What could be the reason?
Furthermore, it looks like the SPI controller is very slow. It takes about 10µs, until data transfer starts. The latency is not constant and varies widely.
What is the reason for the slow response? Is there a way to speed up reaction time significantly?
I am struggling with getting SPI to work within the ISR at all. It works well in the main loop, but not within the timer generated ISR. What could be the reason?
Furthermore, it looks like the SPI controller is very slow. It takes about 10µs, until data transfer starts. The latency is not constant and varies widely.
What is the reason for the slow response? Is there a way to speed up reaction time significantly?