2.3 Interrupts and Interrupt Service Routines (1)
2.3 Interrupts and Interrupt Service Routines (1)
MICROCONTROLLERS(EECE3041)
Syllabus
L T P C
3 0 2
4
UNIT II
Instruction Set and Interrupts Addressing modes of 8086, instruction set of 8086,
assembly language programs (example programs), interrupts and interrupt service
routines, interrupt cycle of 8086, non-maskable interrupt, maskable interrupt (INTR).
2
Interrupts and Interrupt Service Routines
While CPU is executing a program, an interrupt breaks the
normal sequence of execution of instructions and divert its
execution to some other program called Interrupt Service
Routine (ISR)
Interrupts
Hardware Software
Interrupts Interrupts
Interrupts
Hardware
Interrupts
Maskable Non-Maskable
Interrupts Interrupts
1.NMI (Non maskable interrupt)
interrupt.
executes INT
Interrupts
Hardware
Interrupts
Non-
Maskable
Maskable
Interrupts
Interrupts
2. INTR- Maskable Interrupts
• INTR pin(Pin number 18) in Intel 8086 microprocessor is
for Interrupt. This is a mask-able, level triggered, low
priority interrupt. It is an interrupt request signal, which
is sampled during the last clock cycle of each
instruction to determine if the processor considered this as
an interrupt or not.
generate interrupts.
• The instructions are of the format INT type where type ranges
from 00 to FF.
00001H
Offset address (HIGH)
CS:IP ISR
Interrupt vector
• As for each type, four bytes (2 for NEW CS and 2 for NEW
memory.
namely,
https://www.youtube.com/watch?v=8VSTGxm92T8
Thank you!
20