CHAPTER 9 Interrupt Behavior

Interrupt/Exception Sequences

When an exception takes place, a number of things happen:

  • Stacking (pushing eight registers’ contents to stack)
  • Vector fetch (reading the exception handler starting address from the vector table)
  • Update of the stack pointer, link register, and program counter

Stacking

When an exception takes place, the registers PC, PSR, R0–R3, R12, and LR are pushed to the stack. If the code that is running uses the PSP, the process stack will be used; if the code that is running ...

Get The Definitive Guide to the ARM Cortex-M3 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.