Raspberry Pico, RP2, MicroPython
Occasionally an IR receiver sends a sequence of low/high signals to a pin. The start of the episode is a change from high to low and is to be determined by an interrupt request. Interrupt handler routine starts to record and analyze the subsequent changes.
But because each subsequent signal change from high to low restarts the interrupt request, the handler routine can never be executed.
How can the interrupt request be interrupted for the duration of the evaluation?
Hi.
I’m sorry, but I’m not exactly sure that I understood what you want to do…
You want to avoid retriggering the interrupt when processing the signal?
You can disable the interrupt temporarily and then re-enable again.
See the response by stanely on this discussion: https://forum.micropython.org/viewtopic.php?t=7900
I hope this helps.
Regards,
Sara
Very good, you got it right and formulated it more aptly. Thank you for pointing out other forum posts.