Interrupts in Microprocessor: Types and Function
Interrupts in Microprocessor: Types and Function
Microprocessor
Types and Function
1
Interrupt
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
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
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