ASM example for ESP32-C3 ISR
Posted: Sun Sep 26, 2021 1:57 pm
Can you please provide an example of how to code ISRs in ASM on ESP32-C3? There are examples for normal ESP32, but none for C3.
We need to process an interrupt in close to hard real-time. Receive interrupt on NMI every 18.66ms. Program PWM to generate delayed pulse from 0-18ms. Then return from ISR. Delay can be controlled by global variable.
The idea is to be as fast a possible with programming the PWM in the NMI ISR. Can this be made fast enough to not interfere with Wifi/BLE? Can this be chained onto the watchdog ISR?
No desire to write this in C or drop down into FreeRTOS. Only want to program the PWM hardware and return.
We need to process an interrupt in close to hard real-time. Receive interrupt on NMI every 18.66ms. Program PWM to generate delayed pulse from 0-18ms. Then return from ISR. Delay can be controlled by global variable.
The idea is to be as fast a possible with programming the PWM in the NMI ISR. Can this be made fast enough to not interfere with Wifi/BLE? Can this be chained onto the watchdog ISR?
No desire to write this in C or drop down into FreeRTOS. Only want to program the PWM hardware and return.