Академический Документы
Профессиональный Документы
Культура Документы
Interrupt
LOGO
Interrupt
An interrupt allows a program or an external device to
interrupt the execution of a program.
The generation of an interrupt can occur by
LOGO
Software interrupts
LOGO
LOGO
LOGO
Interrupt vectors
Interrupt vectors are addresses which inform the
interrupt handler as to where to find the ISR.
All interrupts are assigned a number from 0 to 255.
LOGO
Processor interrupts
The processor-generated interrupts normally
occur either when a program causes a certain
type of error or if it is being used in a debug
mode.
LOGO
Hardware Interrupts
LOGO
Hardware Interrupts
To service external equipment
Polling
Interrupt-driven software
LOGO
Hardware Interrupts
Interrupt Handling
LOGO
Interrupt Vectors
Each device that requires to be interrupt-driven is
assigned an IRQ (interrupt request) line.
Each IRQ is active high.
LOGO
Interrupt Vectors
LOGO
Interrupt Vectors
Interrupt handling
LOGO
LOGO
LOGO
LOGO
LOGO
originally (in
(in PC XT)
XT) it is available as a separate IC
Later the functionality of (two PICs) is in the
motherboards chipset.
chipset.
LOGO
LOGO
LOGO
LOGO
LOGO
Example of
two cascaded
PICs
LOGO
OPERATION
Priority:
LOGO
LOGO
LOGO
LOGO
LOGO