PhysicsTeacher.in

High School Physics

Vectored Interrupt and Non-Vectored Interrupt in 8085

In this post, we will discuss Vectored Interrupt and Non-Vectored Interrupt in 8085.

The Intel 8085 has five interrupt inputs namely TRAP, RST 7.5, RST 6.5, RST 5.5, and INTR.

When any of these interrupt pins except INTR is active, the internal control circuit of the processor produces a call to a predetermined memory location. At this memory location subroutine starts. This memory location referring to the starting point of the subroutine is called the vector address. These interrupts (TRAP, RST 7.5, RST 6.5, and RST 5.5) are called Vectored interrupts.

The INTR interrupt receives the address of the subroutine from the external device or from external hardware and in this case, the vector address (memory location referring to the starting point of the subroutine) is not predefined. Such interrupts are called Non-Vectored interrupts.

Vectored Interrupt in 8085

Vectored Interrupts are those which have fixed vector addresses for the interrupt service routine. Vector Addresses are calculated by the formula, 8 * TYPE.

TRAP, RST 7.5, RST 6.5, and RST 5.5 are examples of vectored interrupts in the 8085 microprocessor.

Call Locations for TRAP, RST 7.5, RST 6.5, RST 5.5

InterruptMemory locationVector Address
TRAP4.5 octal0024 H
RST 5.55.5 octal002C H
RST 6.56.5 octal0034 H
RST 7.57.5 octal003C H *
INTRNo fixed memory location
Call Locations for TRAP, RST 7.5, RST 6.5, RST 5.5

Vector Address Calculation from interrupt number – formula and example

*Calculation: Interrupt number x 8 =Vector address

Example: RST 7.5

Multiplying 7.5 by 8 gives 60in decimal and 3C (3 x161 + C x160) in hex. So the call location (vector address) is 003C H.

See also  Interrupt in Microprocessor

Non-Vectored Interrupt in 8085

Non-Vectored Interrupts are those in which the vector address is not predefined. The interrupting device gives the address of the sub-routine for these interrupts. INTR is the only non-vectored interrupt in the 8085 microprocessor.

Call Locations for INTR

When the INTR instruction is executed then the processor executes an interrupt service routine stored in the vector address of the software interrupt instruction.

The 8085 processor has eight software interrupts. The software interrupts are RST 0, RST 1, RST 2, RST 3, RST 4, RST 5, RST 6, RST 7

Vector Address Calculation from software interrupt number – formula and example

*Calculation: Software interrupt number x 8 =Vector address

Software InterruptVector Address
RST 00000 H
RST 10008 H
RST 20010 H
RST 30018 H
RST 40020 H
RST 50028 H
RST 60030 H
RST 70038 H

Example: RST 7

Multiplying 7 by 8 gives 56in decimal and 38 (=3 x161 + 8 x160) in hex. So the call location (vector address) is 0038 H.

Scroll to top
error: physicsTeacher.in