Interrupts in
Microprocessor
Types and Function
1
Interrupt
• Interrupt is a signal sent by
an external device to the
processor so as to request
the processor for doing a
particular task or work
2
MP With Peripheral(I/O) Devices
Interrupt Structure
4
Interrupts
• An emergency asynchronous signal to a
Microprocessor where the external device (I/O
devices) get the attention of MP when pressing a
key on the keyboard or clicking a button on the
mouse triggers an interrupt
• 2 types of Interrupts
-Maskable (delayed or rejected) and
-Non-maskable (cannot be rejected)
• Also classified as Vectored-Hard wired and Non
Vectored-software operated..
• 8085 has 5 External Interrupts
5
8085 Interrupts
TRAP
RST7.5
RST6.5
8085
RST 5.5
INTR
• If an interrupt is initiated in a processor by an
appropriate signal at the interrupt pin, then the
interrupt is called Hardware interrupt
6
Interrupt Inputs in 8085-5 nos.
1. INTR interrupt-Non Vectored
2. RST 5.5,6.5 and 7.5-maskable interrupts
3. TRAP-A non maskable
Vectored automatic interrupt
7
Five Hardware Interrupts in 8085
1. INTR is maskable 8080A compatible
interrupt.
2. RST5.5 is a maskable interrupt for
registering into Stack
3. ST6.5 is a maskable interrupt.
4. RST7.5 is a maskable interrupt
5. Trap is a non-mask able highest priority
interrupt.
8
What is masking and why it is
required
• Masking is preventing the interrupt from
disturbing the current program
execution.
• When the processor is performing an important
job (process) and if the process should not be
interrupted then all the interrupts should be
masked or disabled.
• In processor with multiple 'interrupts, the lower
priority interrupt can be masked so as to prevent
it from interrupting, the execution of interrupt
service routine of higher priority interrupt.
9
Software
• Software interrupts are program
instructions.
• These instructions inserted at
desired locations in a program.
• While running a program, if software
interrupt instruction is encountered then
the processor executes an interrupt
service routine
10
Software Interrupts
• RST0, RST1, RST2, RST3, RST4, RST5,
RST6, RST7
11
Distinction between software and
hardware Interrupt
• Software interrupt is initiated by the main
program, but the Hardware interrupt is
initiated by an external device.
• In 8085, the Software interrupt cannot be
disabled or masked but the Hardware
interrupt except TRAP can be disabled or
masked.
12