O'Reilly logo

The Definitive Guide to the ARM Cortex-M3, 2nd Edition by Joseph Yiu

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 11

Exception Programming

Publisher Summary

This chapter discusses the usage and scope of Cortex™-M3 processor, the interrupt controller Nested Vectored Interrupt Controller that handles a number of processing tasks. It explores the stack setup—using the Main Stack Pointer for the whole program—the vector table, and the programmable priority of all exceptions, which, by default, are in the priority level 0. For hard fault exceptions and the non-maskable interrupt, the priority levels are -1 and -2, respectively. In the Cortex-M3, interrupt handlers can be programmed completely in C, whereas in ARM7, an assembly handler is commonly used to ensure that all registers are saved. In most cases, some of the interrupts are unused and can be used ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required