Change IRQ Handler during runtime

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Change IRQ Handler during runtime

350件の閲覧回数
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 返信

322件の閲覧回数
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 件の賞賛