Documentation on interrupt handling (MC1321x)

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

Documentation on interrupt handling (MC1321x)

ソリューションへジャンプ
1,560件の閲覧回数
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 解決策
849件の閲覧回数
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 返信
850件の閲覧回数
BV_BV
Contributor III
Did you set up the vector addresses table so that there's a pointer to your PB_interrupt(void) ?
0 件の賞賛
返信