Hi!

Has anyone ever changed an interrupt handler during runtime?
I need to do that and any idea is welcome.

I suppose I should declare two ISR like:

interrupt (NOVECTOR) ISR1 {....}
interrupt (NOVECTOR) ISR2 {....}

and then write the address  of the routine I want in the flash in the
vector table.

Or maybe is it better something like:

interrupt (TIMERA0) ISR {
     if (flag)
          func1();
    else
          func2();
}

I would prefer the first solution because I have some performance
issues with the second one.

Any comment ?
thanks,

R#

Reply via email to