Documentation on interrupt handling (MC1321x)

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

Documentation on interrupt handling (MC1321x)

跳至解决方案
1,570 次查看
drdr
Contributor I

I am having difficulty handling interrupts in my MC13212 and I'd like a pointer to some document describing how to do it.  I tried to follow the help section of CodeWarrior, which seemed very helpful, but the codes does not work. 

 

For example, it seems that to have a push button trigger a KBI event one needs to only enable the KBI functionality by setting KBISC and KBIPE appropriately and have the following to show that the interrupt happened:

 

interrupt 22 void PB_interrupt(void)

{

    //light led here that will stay lit to show that code executed

 

 

I am trying not to modify the prm file as I don't understand what it does.  Any pointer to documentation on that would also be appreciated.

 

Thanks for your help,

 

drdr

标签 (1)
0 项奖励
回复
1 解答
859 次查看
BV_BV
Contributor III
Did you set up the vector addresses table so that there's a pointer to your PB_interrupt(void) ?

在原帖中查看解决方案

0 项奖励
回复
1 回复
860 次查看
BV_BV
Contributor III
Did you set up the vector addresses table so that there's a pointer to your PB_interrupt(void) ?
0 项奖励
回复