Interrupt

In computer organization, an interrupt is a signal sent by a hardware device or a software instruction to the CPU to request its attention. Interrupts are used to handle events that require immediate processing, such as input/output operations, hardware errors, or timer events. When an interrupt occurs, the CPU suspends its current execution and transfers control to a special piece of code called an interrupt handler or interrupt service routine (ISR). The ISR then performs the necessary actions to handle the interrupt and resume normal execution.

Instruction Cycle With Interrupt

Instruction Cycle with Interrupt

Program Flow Control with and without interrupt

State Diagram for Instruction Cycle using Interrupt

Multiple Interrupts executing in sequential manner

Multiple Interrupts executing in nested manner

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

Design a site like this with WordPress.com
Get started