Writing interrupt routines in C is straightforward as long as you follow the simple rules set out in this note. There are several parts to the problem: (1) writing the ISR (2) initializing the interrupt vector table and (3) linking the parts together in the linker command file. You must make sure to generate the interrupt vector table and to provide the linker with all the necessary information