O'Reilly logo

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

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