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 ...

Get The Definitive Guide to the ARM Cortex-M3, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.