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 ...
Get Real-Time Embedded Systems now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.