Indiana University Bloomington

School of Informatics and Computing


Computer Science Program







 Home

 Contacts

 Courses

 Academics

 Careers

 Research

 People

 Calendar

 Resources

 Facilities
   FAQ
   System Notices
   Help
   Hardware
   Software
   Network
   Policies
   Lindley Hall

Timer Interrupt Example

This program illustrates how to install a handler for an interrupt that can be generated from the timer on the 68040 board.
The example sets up the timer to use vector 200. Vector 200 is located at address 0x320 in the vector table.  The example program does the following:

1.) Sets up the timer to generate interrupts at a 1 Hz rate
2.) Each time the timer interrupts the CPU, the low 4 bits of the original program counter are displayed on the 7-segment
display.

 Timer Interrupt Example Source Code








Valid HTML 4.01!