We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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?