If you want the lower priority to be ignored if it occurred whilst the high priority ISR is executing, clear the interrupt flag for that peripheral at the end of the high ISR.
On the 16 series, GIE is automatically cleared and restored during an interrupt so there is no need to touch it.
Mike.
You are quite correct Mike..... Adrian..... do as Mike said...
Actually thinking on..... if an interrupt is active... the other will wait until its finished anyway!!!
Last edited: