Interrupts
Abstract
Interrupt is a mechanism by which a microprocessor can alter its flow of execution to handle asynchronous or synchronous events. Interrupts can be classified into three categories. The asynchronous events generated by external hardware devices are called external or hardware interrupts. A program may execute special processor instructions to generate synchronous events, which are called software interrupts. A processor itself may also respond to internal interrupts, or exceptions, whenever some abnormal condition occurs during instruction execution. In this chapter, we examine the nonvectored and vectored interrupt processes, and learn a few design patterns for interrupt service routines. The interrupt mechanisms ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access