Overview
An ISR (also called an Interrupt Handler) is a specific function in the operating system or device driver designed to handle a particular interrupt.
Execution Flow
- Interrupt Occurs: Hardware signals the CPU.
- Context Save: CPU saves its current state (registers, program counter).
- Jump to ISR: CPU looks up the ISR address in an Interrupt Vector Table and starts executing it.
- Handle Event: The ISR performs the necessary task (e.g., reading data from a buffer).
- Context Restore: CPU restores the saved state and resumes the original program.