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 programmed isr timer2 noblock...


why?


Arduino Forum > Using Arduino > Project Guidance > Nested interrupts using NOBLOCK


arduino

Comments

Popular posts from this blog

VIDIOC_S_FMT error 16, Device or resource busy - Raspberry Pi Forums

using a laptop skeleton to build a pi laptop - Raspberry Pi Forums

Forum for Joomla? - Joomla! Forum - community, help and support