Change IRQ Handler during runtime

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Change IRQ Handler during runtime

716 次查看
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
标签 (1)
0 项奖励
回复
1 回复

688 次查看
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 项奖励
回复