I wish to write an interrupt based program for LPC2378 board. It involves one 
of the two user buttons and the LED. Following is the algorithm for the program:

1.Choose a button
2.Set the relevant pin as the input
3.Check if the button is pressed 

   if yes - send an interrupt to the micro-controller which then lights the LED
   if no - do nothing

I need guidance as to how to write an interrupt function in C, what are the 
compiler directives, and what are the registers I need to deal with.

Any help would be greatly appreciated. 

psas-avionics mailing list

Reply via email to