Interrupts
Interrupts
28 ANSWERS is
ring?
v e c t o r i n
7.29
AND Whal
of
of
0
SHORT
QUESTIONS
1,11 vectoring
1s the prOcess
generating the address of
an
interrupt service routine to be loaded in
the program countcr.
s o as t o .
7.1 What is an interrupt extermal
device to the
processor
ork 7.12
the so interrupts
LSoftware inte ots: RST), RSTI, RST of 8085?
o pertorm 2, RST 3, RST
? Hardware inaterrupts: TRAP,RST7.5, RST 6.5, RST 4, RST 5
7.2 How are interrupts classified and RST 7.
5.5 and
here are three methods
of classifying
interrupts:
classificd into
hardware and sofiware intes
re and sofiware
interrupts. What
is TRAP
INTR.
Method I The interupts
are
nto
vectored and non-vectoredinte 1.13
TRAP is
a n-maskable interrupt of 8085. It is not disabled
non-maskable
In a
processor with multiple intermupts, the disabled. data to the accumulator and then executing
it from lower priority data is shown in Fig. Q7.22.
interrupting the execution of can be
be masked so as to prevent
the interrupt service interrupt
routine of a maskeuinterrupt.
interrt
higher prion
D 0= Interrupt Pending
=
I is Not
Intermupt Pending 9.
(D
I=Masked 0=Available
0=Unmasked 1 = Masked
.
9
5
MICROPROCESSOHS AND MiCRO CHAPTER INTIE
En
INTEL 8259?
7.41 Wrie the various functional blocks of OUT 00H :Send ICW1 to 8259.
The various functional blocks of 8259 are Control logic, Kead Write logic, Data us MVI A,ICWZ MOVe iCwz to A-register.
ICWI
ICW4 is Nceded
Single 8259
Level Triggered Interrupr
B. B B. B, B, B, B
B
ICW2
B, B B B, B, B, B, B%
- 03u
ICW3
8086 Mode
Auto EOI
Non-Buffered Mode
Not Special Fully Nested Mode
B, B. B, B. B, B, B B
00
OCW1
ooo|oooo-
All the Interrupt Mask are Reset
7.52
7.52 Write a program segment to initialize a single 8259 connected to an 8086 processor
Let us assume that 8259 is 1O-mapped in the system with an even address. The 825
initialized by sending ICW1, ICW2, ICW4 and 0CW1. Let the 8-bit address withA, =0he,
when A, 1 be 024
MOVAL, ICw1 ;Move ICWl to AL-register
HLT Stop