Professional Documents
Culture Documents
Interrupt
Interrupt is a process where an
external device can seek the
attention of the microprocessor.
Interrupt is INPUT towards the
processor
The process is asynchronous.
Classifications
Interrupt
Hardware
Software
Vectored/Non Vectored
Maskable
Maskable Interrupts
TRAP is Non-Maskable Vectored
Interrupt
RST 7.5, 6.5, 5.5 Maskable Vectored
Interrupt
Masking can be done using EI(Enable
Interrupt) and SIM (Set Interrupt
Mask) Instructions
Managing Vectored
Interrupts
Assume RST 7.5 and RST 6.5
interrupts are enabled in a 8085
system. The job of the processor is to
provide service to interrupt with
highest priority.
Monitor Program
003CH JMP A100H
Interrupt Service
Routine
A100H DI
.
.
EI
RET
Pending Interrupts
Due to presence of several input
lines other interrupt request may
occur while one interrupt is being
served. This is known as Pending
Interrupt.
Monitor Program
003CH JMP XX05H
Interrupt Service Routine
XX05H DI
.
.
RIM
ANI 20H
JNZ L1
EI
RET
L1:
.
.
SIM
JMP Serivce
Software Interrupts
8 software interrupts i.e Restart
instructions (RST0 RST7)
----For each interrupt a
Subroutine is executed at pre
defined location.
INTR Process
Main stack program initializes stack pointer
Process can be interrupted using a switch
Processor checks INTR 1 clock period before
the last T state
Microprocessor completes the current
execution, disables interrupt, sends out
INTA(bar)
INTA(bar) using hardware circuitry can
access any RST instruction as per design