Change IRQ Handler during runtime

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Change IRQ Handler during runtime

490 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by hansLPC on Mon Feb 10 02:56:20 MST 2014
Hi,

I have a highly optimized IRQ handler for my PWM Interrupts (PWM1_IRQHandler).

For different application modes I want to use another IRQ handler because a switch or ifelse statement is wasting too much time. So now my question: is it possible to overwrite the IRQ functionPtr or whatever to call different IRQ routines? Are they determined by compile-time? Is this memory region accessible during runtime?

Regards,
Hans
Labels (1)
0 Kudos
Reply
1 Reply

462 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by LabRat on Mon Feb 10 03:19:13 MST 2014
What about remapping your vector table to RAM and then change PWM interrupt adress ?

See: http://www.lpcware.com/content/forum/lpc1768-remap-isr-to-ram
0 Kudos
Reply