Documentation on interrupt handling (MC1321x)

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

Documentation on interrupt handling (MC1321x)

Jump to solution
1,011 Views
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

Labels (1)
0 Kudos
1 Solution
300 Views
BV_BV
Contributor III
Did you set up the vector addresses table so that there's a pointer to your PB_interrupt(void) ?

View solution in original post

0 Kudos
1 Reply
301 Views
BV_BV
Contributor III
Did you set up the vector addresses table so that there's a pointer to your PB_interrupt(void) ?
0 Kudos