Академический Документы
Профессиональный Документы
Культура Документы
When more than one device raises an interrupt request signal, then the
processor needs to decide which device’s request to be considered and
processed first.
The following methods are used by processor to decide which device’s
request is to be considered and processed first:
(i) Polled Interrupts.
(ii) Vectored Interrupts.
(iii) Interrupt Nesting.
(iv) Daisy Chain Priority Interrupts.
POLLED INTERRUPTS
In polled interrupts, the device raises an interrupt request by setting
IRQ bit to 1.
The processor sequentially checks the IRQ bit of each device.
The processor process the request of device whose IRQ bit is set to 1.
Device 1 Device 2 Device 3 Device n
IRQ IRQ IRQ IRQ
Processor
Disadvantage:
(1) A lot of time is wasted by interrogating the IRQ bit of all devices.
VECTORED INTERRUPTS
In vectored interrupts, each I/O device has a special register that holds
a special code called interrupt vector.
A device requesting an interrupt sends interrupt vector to the
processor over the bus.
This enables the processor to identify the device that generated the
interrupt.
The interrupt vector can be the starting address of the ISR or where
the ISR is located in memory.
We can have a different ISR(Interrupt Service Routine) for each
device.
NESTED INTERRUPTS (or) INTERUPT NESTING
The priority level of the processor is the priority of the program that is
currently being executed.
An interrupt request is accepted only if it has a higher priority level
than that currently assigned to the processor.
Interrupt requests from devices at the same level of priority or lower
than processor will be disabled.
DAISY CHAIN PRIORITY INTERRUPTS
In daisy chain arrangement, the device that is electronically closest to
the processor has the highest priority.
The second device along the chain has second highest priority, and so
on.
The following figure illustrates a daisy chain arrangement.