React to GPIO fast: ISR or queue?
Posted: Tue Dec 26, 2023 2:51 pm
I need to detect a falling edge on a GPIO input, then change the same GPIO into an output and drive it high. This needs to happen within 0.1ms.
How can I ensure a fast reaction time? Most interrupt examples use a queue, but I am worried that this will introduce too much latency. Is there any problem with doing all of this in the ISR? Or do I have to use a queue?
How can I ensure a fast reaction time? Most interrupt examples use a queue, but I am worried that this will introduce too much latency. Is there any problem with doing all of this in the ISR? Or do I have to use a queue?