wiki:Interrupt Reference Design


The interrupt reference design serves as an example of the proper way to handle multiple interrupts with a PowerPC. The base system is configured as shown by the figure on the right.

When executed, the code will periodically start a timer. By default, this timer will expire every 6 seconds. Before the timer expires, the user can depress push buttons and see confirmation of those interrupt events on a terminal connected to the board via the RS232 serial port. Upon the expiration of the timer, the timer_a_int_handler ISR is called by the interrupt controller driver. In this ISR, the program will block for three seconds. This effectively simulates a long operation. During this time, users will not be able to trigger interrupts with push buttons. When the ISR returns, push buttons become operation again. Pressing the left button will disable the periodic timer at the interrupt controller level (i.e. the timer itself is still generating interrupt signals). Pressing the right button will re-enable the interrupts, returning the system to its normal state.

Note: Further detail regarding the interrupt system can be found in XAPP778


Latest Revision: interruptTester.c

Last modified 15 years ago Last modified on Jan 26, 2007, 12:33:54 PM

Attachments (1)

Download all attachments as: .zip