Nested interrupts using NOBLOCK
hello forum,
i running code interrupts every 1ms using timer2 overflow. programmed isr timer2 noblock hence nested interrupts enabled. isr checks bytes available read on serian receive buffer , processes them.
what happen if somehow receive byte on serial hardware port during timer2 isr? rx isr interrupt current timer2 isr , insert byte onto serial receive bufer or set flag , wait until timer2 isr on , process incoming byte?
i not clear if there interrupt priority when using nested interrupts or not.
just on safe side, disable timer2 interrupts during timer2 isr.
thank help.
i running code interrupts every 1ms using timer2 overflow. programmed isr timer2 noblock hence nested interrupts enabled. isr checks bytes available read on serian receive buffer , processes them.
what happen if somehow receive byte on serial hardware port during timer2 isr? rx isr interrupt current timer2 isr , insert byte onto serial receive bufer or set flag , wait until timer2 isr on , process incoming byte?
i not clear if there interrupt priority when using nested interrupts or not.
just on safe side, disable timer2 interrupts during timer2 isr.
thank help.
Arduino Forum > Using Arduino > Project Guidance > Nested interrupts using NOBLOCK
arduino
Comments
Post a Comment