wafa_ath
DIIDevHeads IoT Integration Server
•Created by Camila_99$$ on 10/2/2024 in #firmware-and-baremetal
Why Does Disabling OCIE1A Cause Immediate ISR Re-trigger on Mega 2560?
Instead of clearing the flag inside the ISR, try disabling the interrupt before modifying the
OCR1A
value by adding bitClear(TIMSK1, OCIE1A);
before setting OCR1A
in the passage_a_0
function. This should prevent multiple interrupts from being triggered.3 replies