I am currently using timer2 count a number of preset timeouts on an AC waveform for an AC regulator.
I have given timer2 the highest interrupt priority, but have found that occasionally timer1 (used for generally polling), which is at a lower priority level, interrupts timer2's routine.
I have run the debugger; timer2's priority is definitely greater than timer1.
I have been sure to clear the timeout flag before the pending flag is cleared at the end of each timer interrupt function.
Have I misunderstood? The impression I got from the manual is that a lower priority will only execute after the higher priority has exited its interrupt?