Professional Documents
Culture Documents
8085 Interrupts
8085 Interrupts
CSE, BBDNITM
EEC-406 : INTRODCTION TO MICROPROCESSOR
Chapter 12
8085 Interrupts
1
Diwakar Yagyasen , AP,
CSE, BBDNITM
EEC-406 : INTRODCTION TO MICROPROCESSOR
2
Interrupts
Interrupt is a process where an external device
can get the attention of the microprocessor.
'3T 5.52 '3T :.52 and '3T ;.5 are all mas%a"le.
3o2 the device needs to set the "its of the data "us
to the appropriate value in response to an I*T.
signal.
Diwakar Yagyasen , AP,
CSE, BBDNITM
EEC-406 : INTRODCTION TO MICROPROCESSOR
1;
The following is an example of
generating '3T 5#
'3T 58s opcode is 4? G
9 9
;:55-210
11101111
>ardware Feneration of '3T pcode
Diwakar Yagyasen , AP,
CSE, BBDNITM
EEC-406 : INTRODCTION TO MICROPROCESSOR
18
>ardware Feneration of '3T pcode
9uring the interrupt ac%nowledge machine c!cle2
&the 1st machine c!cle of the '3T operation)#
The I*T' must remain active long enough to allow for the
longest instruction.
This allows the code generated "! the ;5-:: to "e used
directl! to choose the appropriate '3T instruction.
The one draw "ac% to this scheme is that the
onl! wa! to change the priorit! of the devices
connected to the ;5-:: is to reconnect the
hardware.
Diwakar Yagyasen , AP,
CSE, BBDNITM
EEC-406 : INTRODCTION TO MICROPROCESSOR
25
$ultiple Interrupts and 0riorit!
3ee the Text Aoo%2 0age -85+-85 for the
detailed explanation of the $ultiple
interrupt process
Diwakar Yagyasen , AP,
CSE, BBDNITM
EEC-406 : INTRODCTION TO MICROPROCESSOR
2:
The 8085 $as%a"le/,ectored Interrupts
The 8085 has 5 $as%ed/,ectored interrupt
inputs.
3
9
4
O
O
O
'
;
.
5
$
3
4
$
;
.
5
$
:
.
5
$
5
.
5
0 1 2 - 5 5 : ;
'3T5.5 $as%
'3T:.5 $as%
'3T;.5 $as%
P
0 + .vaila"le
1 + $as%ed
$as% 3et 4na"le
0 + Ignore "its 0+2
1 + 3et the mas%s according
to "its 0+2
?orce '3T;.5 ?lip ?lop to reset
*ot Csed
4na"le 3erial 9ata
0 + Ignore "it ;
1 + 3end "it ; to 39 pin
3erial 9ata ut
Diwakar Yagyasen , AP,
CSE, BBDNITM
EEC-406 : INTRODCTION TO MICROPROCESSOR
--
3I$ and the Interrupt $as%
Ait 0 is the mas% for '3T 5.52 "it 1 is the mas% for '3T :.5
and "it 2 is the mas% for '3T ;.5.
The 3I$ instruction is used for multiple purposes and not onl!
for setting interrupt mas%s.
3
9
4
O
O
O
'
;
.
5
$
3
4
$
;
.
5
$
:
.
5
$
5
.
5
+ 4na"le 5.5 "it 0 G 0
+ 9isa"le :.5 "it 1 G 1
+ 4na"le ;.5 "it 2 G 0
+ .llow setting the mas%s "it - G 1
+ 9on8t reset the flip flop "it 5 G 0
+ Ait 5 is not used "it 5 G 0
+ 9on8t use serial data "it : G 0
+ 3erial data is ignored "it ; G 0
0 1 0 0 0 0 0 1
Contents of accumulator are# 0.>
4I Q 4na"le interrupts including I*T'
$,I .2 0. Q 0repare the mas% to ena"le '3T ;.52 and 5.52 disa"le :.5
3I$ Q .ppl! the settings '3T mas%s
Diwakar Yagyasen , AP,
CSE, BBDNITM
EEC-406 : INTRODCTION TO MICROPROCESSOR
-:
Triggering @evels
'3T ;.5 is positive edge sensitive.
3ince the value has "een stored in the flip flop2 the line
does not have to "e high when the microprocessor
chec%s for the interrupt to "e recogniEed.
The 'I$ instruction reads the value of the 3I9 pin on the
microprocessor and returns it in this "it.
Diwakar Yagyasen , AP,
CSE, BBDNITM
EEC-406 : INTRODCTION TO MICROPROCESSOR
51
0ending Interrupts
3ince the 8085 has five interrupt lines2 interrupts
ma! occur during an I3' and remain pending.