
© G.N. Khan ARM Processors/Cores – EE8205: Embedded Computer Systems Page: 40
Exception/Interrupt Handler
Exception: a condition that needs to halt the normal sequential flow of
instruction execution.
Exception Categories: Reset, SVC Supervisor Call (Software
Interrupt), Fault (e.g., undefined op-code) and Interrupts
Each exception has:
• An exception number
• A priority level
• An exception handler routine (such as ISR)
• An entry in the vector table (address of associated ISR)
Exception Response
• Processor state (8 words) stored on stack: CPSR, Return Address, LR,
R12, R3 - R0. Allows a regular C function to be an ISR!
• Processor switched (from Thread Mode) to Handler Mode
(recorded in xPSR or CPSR).
• PC vector table [exception # ]
Komentarze do niniejszej Instrukcji