Vectored and Non Vectored Interrupts
Vectored and Non Vectored Interrupts
• The interrupt selection method requiring the least hardware is the single-line
method
• All IO ports share a single INTERRUPT REQUEST line.
• CPU scans all the devices to find the source of the interrupt.
• The connection sequence of this line determines the interrupt priority of each
device.
• Alternatively, the CPU can execute a program that polls each device.
• Polling has the advantage of allowing the interrupt priority to be programmed.
MULTIPLE LINE
INTERRUPT 5
• The above vectored interrupt scheme that does not have this restriction.
• Multiple interrupt request lines are used, but each IO port now has its own
interrupt
acknowledge line.
• Each IO port can request the services of many different programs.
• Each IO port now has its own interrupt acknowledge line. 11
• When the CPU activates an acknowledge line, the IO port in question places
the address of the desired interrupt handler on the main data bus.
• This approach requires the interrupting IO port to be able to generate at least
partial memory addresses and to act as a bus master.
• Another possibility is for an IO device to send the CPU an interrupt vector in
the form of a CPU instruction.
• The CPU removes this instruction from the data bus and executes it in the
normal manner.
• Thus if the IO device sends the instruction CALL PROG to the CPU, execution
of this instruction saves essential CPU information, such as the program
counter, and transfers control to an interrupt-handling routine named PROG.
• 8085-based microcomputers use this technique to implement vectored
interrupts
• To reduce the number of external connections to the CPU—an important
consideration in the case of microcontrollers the interrupt-priority control
logic can be external to the CPU
NON VECTORED INTERRUPT:
12
• In this type of interrupt, the interrupt address is not known to the processor so, the
interrupt address needs to be sent externally by the device to perform interrupts. For
example: INTR – 8085.
• The device will have to supply the address of the subroutine to the Microprocessor.
The INTR input is the only non-vectored interrupt.
• INTR - It is a maskable interrupt, having the lowest priority among all interrupts. It can
be disabled by resetting the microprocessor.
• When INTR signal goes high, the following events can occur −
The microprocessor checks the status of INTR signal during the execution of each
instruction.
When the INTR signal is high, then the microprocessor completes its current
instruction and sends active low interrupt acknowledge signal.
When instructions are received, then the microprocessor saves the address of the
next instruction on stack and executes the received instruction.
13
THANK YOU