You are on page 1of 31

Interrupts in 8085

8085A Pin diagram and Signals


(Recall)

Illustrative Example on Non-vectored


Interrupt

Write a main program to count continuously


in binary with a one-second delay between
each count.
Write a service routine at XX70H to flash FFH
five times when the program is interrupted,
with some appropriate delay between each
flash.
MAIN PROGRAM
XX00H
LXI SP,XX99H
XX03H
EI
XX04H
MVI A,00H
XX06H
NEXT:
OUT PORT#
XX08H
MVI C,01H
XX0AH
CALL DELAY

//

Illustrative Example on Non-vectored


Interrupt

SERVICE ROUTINE
XX70H
XX71H
XX72H
XX74H
XX76H
FLASH:
XX78H
XX7AH
XX7DH
CMA
XX7EH
XX7FH
XX82H
XX83H
XX84H
XX85H

PUSH B
PUSH PSW
MVI B,0AH
MVI A,00H
OUT PORT#
MVI C,01H
CALL DELAY
DCR B
JNZ FLASH
POP PSW
POP B
EI
RET

Restart Instructions

Multiple Interrupts using a Priority


Encoder

8085 Interrupts and Vector locations

Accumulator bit pattern for SIM (Set


Interrupt Mask) instruction

Illustrative Examples on Interrupt


masking

Write a program to enable all the interrupts


in 8085.

To reset the 7.5 interrupt

Pending Interrupts

You might also like