I'm using a mega32 and want to change the interrupt priority of some of the interrupts.
for example, 2 of the interrupts i'm going to implement are timer1 compare match and external interrupt 0. From the datasheet (page 44, table 18 ) the interrupts at the top of the table (with lowest addresses) have highest priority. This means INT0 has priority over TIMER1 COMPA. However I want it to be the other way around such that TIMER1 COMPA has the higher priority.
So, how does one go about changing the interrups priority?
Can I simply (or not so simply :? ) change were the interrupt vectors point? eg: change interrupt vector 2 from pointing to INT0 to point to TIMER1 COMPA and visa-versa for vector 8?
Any & all feedback much appreciated