SlideShare a Scribd company logo
3
Most read
11
Most read
15
Most read
INTERRUPTS OF
MICROPROCESSOR
8085
CONTENTS
Sr no contents
1 Introduction
2 classification of interrupts
3 Hardware interrupt
4 SIM Instruction
5 RIM instruction
6 Block diagram of Hardware
interrupt
7 Software interrupt
what is Interrupt?
Interrupt is a mechanism by which an I/O or an instruction can
suspend the normal execution of processor and get itself serviced.
Generally, a particular task is assigned to that interrupt signal. In the
microprocessor based system the interrupts are used for data transfer
between the peripheral devices and the microprocessor.
INTRODUCTION
 After receiving an interrupt signal from the peripheral, the
microprocessor executes current instruction completely.
 Store the contents of program counter i.e. return address on the stack
and then executes interrupts service (ISR) to provide service to the
interrupting device.
 After servicing the device, the microprocessor transfer program
control back to the program where interrupt occurs by reloading the
content of program counter which has been stored on the stack when
an interrupt occurs.
Main program
X
Y
µp is interrupt
ISR
RET
HLT
EXAMPLE:-
There are 5 interrupt inputs:
1) TRAP (non-maskable)
2) RST7.5
3) RST6.5
4) RST5.5
5) INTR
Interrupts pin on IC :-
CLASSIFICATION OF INTERRUPTS
Interrupts
Hardware Software
Maskable
• RST 7.5
• RST 6.5
• RST 5.5
• INTR
Non-maskeble
• TRAP
Nonmaskable interrupt
The MPU is interrupted when a logic signal is applied to this
type of input.
Maskable interrupt
The MPU is interrupted ONLY if that particular input is
enabled.
It is enabled or disabled under program control.
If disabled, an interrupt signal is ignored by the MPU.
HARDWARE INTERRUPTS
RESPONDING TO INTERRUPTS
• Responding to an interrupt may be
immediate or delayed depending on
whether the interrupt is maskable or non-
maskable and whether interrupts are being
masked or not.
• There are two ways of redirecting the
execution to the ISR depending on
whether the interrupt is vectored or non-
vectored.
• Vectored: The address of the subroutine is
already known to the Microprocessor
• Non Vectored: The device will have to supply
the address of the subroutine to the
Microprocessor
Interrupt name Maskable Vectored
INTR Yes No
RST 5.5 Yes Yes
RST 6.5 Yes Yes
RST 7.5 Yes Yes
TRAP No Yes
Representation of maskable and non-maskable interrupts
Non-maskable interrupt :Can not be delayed or Rejected. It’s types as
follows.
TARP: a non mask able interrupt known as NMI, it has the highest priority,
it can not be enabled ; and it cannot be disable. It is edge and level triggered.
This means hat the TRAP must go high and remain high until it is
acknowledged.
Maskable interrupt : Can be delayed or Rejected and Enable Or
Disable By EI And DI Instruction. It’s types as follows.
RST 7.5: The RST 7.5 interrupt is a maskable interrupt. It has the second highest
priority. It is edge sensitive. ie. Input goes to high and no need to maintain high
state until it recognized. Enabled by EI instruction. It is disabled by,
1.DI instruction
2.System or processor reset.
3.After reorganization of interrupt.
RST 6.5 and 5.5: The RST 6.5 and RST 5.5 both are level triggered. ie. Input
goes to high and stay high until it recognized. Maskable interrupt. Enabled by EI
instruction. It is disabled by,
1.DI, SIM instruction
2.System or processor reset.
3.After reorganization of interrupt.
The RST 6.5 has the third priority whereas RST 5.5 has the fourth priority.
INTR: INTR is a maskable interrupt. Enabled by EI instruction. It is disabled by,
1.DI, SIM instruction
2.System or processor reset.
3.After reorganization of interrupt.
It is Non- vectored interrupt. After receiving INTA (active low) signal, it has to
supply the address of ISR. It has lowest priority. It is a level sensitive interrupts. i.e.
Input goes to high and it is necessary to maintain high state until it recognized.
After receive this interrupt µp response with INTA pulse and it’s interrupt address is
given by external circuit.
SIM(set interrupt mask) Instruction
 This is a multipurpose instruction and used to implement The 8085
interrupts 7.5, 6.5, 5.5, and serial data output. The instruction interrupts the
accumulator contents as following:
RIM(Read Interrupt Mask) instruction:
 This is a multi purpose instruction used to read the Status of interrupts 7.5,
6.5 ,5.5 and read serial data input bit . The instruction loads eight bits in the
accumulator with the following interpretations:
HARDWARE INTERRUPT BOCK DIAGRAM
SOFTWARE INTERRUPT
The software interrupts are program instructions. These
instructions are inserted at desired locations in a program. The
8085 has eight software interrupts from RST 0 to RST 7. When
microprocessor is interrupt by giving instruction in the main
program. The it is called as software interrupt.
They allow the microprocessor to transfer program control from the main
program to the subroutine program. After completing the subroutine program,
the program control returns back to the main program.
We can calculate the vector address of these interrupts using the formula
given below:
Vector Address = Interrupt Number * 8
For Example:
RST2: vector address=2*8 = 16
RST1: vector address=1*8 = 08
RST3: vector address=3*8 = 24
Restart Instruction Equivalent to
RST0 CALL 0000H
RST1 CALL 0008H
RST2 CALL 0010H
RST3 CALL 0018H
RST4 CALL 0020H
RST5 CALL 0028H
RST6 CALL 0030H
RST7 CALL 0038H
TABLE OF SOFTWARE INTERRUPT
X
RST 1
Y
---
---
.
.
.
---
RET
EXAMPLE:-
Main program
ISR
6107H
6108H
6109H
0008H
0009H
2501H
2502H
Thank you

More Related Content

PPT
Multimedia color in image and video
PPTX
Code Conversion in 8085 Microprocessor
PPT
Message Authentication
PPT
8085 interrupts
PPTX
Pin diagram 8085
PPTX
Types of sensors
PPT
computer Networks Error Detection and Correction.ppt
PDF
Digital Image Processing: Image Segmentation
Multimedia color in image and video
Code Conversion in 8085 Microprocessor
Message Authentication
8085 interrupts
Pin diagram 8085
Types of sensors
computer Networks Error Detection and Correction.ppt
Digital Image Processing: Image Segmentation

What's hot (20)

PPT
Architecture of 8086 Microprocessor
PPT
Addressing modes of 8051
PPTX
Architecture of 8051
PPTX
8257 DMA Controller
PPTX
Stack in 8085 microprocessor
PPT
Memory organization of 8051
PPTX
DMA and DMA controller
PPTX
Instruction set of 8085 microprocessor
PPTX
4.programmable dma controller 8257
PDF
8155 PPI
PPTX
Interrupts on 8086 microprocessor by vijay kumar.k
PDF
8259 Programmable Interrupt Controller
PPTX
8237 dma controller
PPT
Interfacing 8255
DOCX
8096 microcontrollers notes
PDF
Memory interfacing of microprocessor 8085
PPTX
Architecture of 8085 microprocessor
PPTX
8051 memory
PDF
Programmable Peripheral Interface 8255
PPTX
8051 Microcontroller PPT's By Er. Swapnil Kaware
Architecture of 8086 Microprocessor
Addressing modes of 8051
Architecture of 8051
8257 DMA Controller
Stack in 8085 microprocessor
Memory organization of 8051
DMA and DMA controller
Instruction set of 8085 microprocessor
4.programmable dma controller 8257
8155 PPI
Interrupts on 8086 microprocessor by vijay kumar.k
8259 Programmable Interrupt Controller
8237 dma controller
Interfacing 8255
8096 microcontrollers notes
Memory interfacing of microprocessor 8085
Architecture of 8085 microprocessor
8051 memory
Programmable Peripheral Interface 8255
8051 Microcontroller PPT's By Er. Swapnil Kaware
Ad

Viewers also liked (17)

PDF
8085 interrupts
PPTX
Interrupt 8085
PPT
Stack and subroutine
PPTX
Memory Segmentation of 8086
PPT
1326 Introduction To 8086 Microprocessor
PPTX
8086 microprocessor-architecture
PPT
Control chap10
PPTX
Timer
PDF
Notes nyquist plot and stability criteria
PPT
8255_utkarsh_kulshrestha
PPT
8085 interrupts
PDF
8086 modes
PPTX
Nyquist and polar plot 118 & 117
PPTX
Instruction set of 8086
PPTX
8251 USART
PDF
8085 microprocessor ramesh gaonkar
PPT
Chapter 4 - Digital Transmission
8085 interrupts
Interrupt 8085
Stack and subroutine
Memory Segmentation of 8086
1326 Introduction To 8086 Microprocessor
8086 microprocessor-architecture
Control chap10
Timer
Notes nyquist plot and stability criteria
8255_utkarsh_kulshrestha
8085 interrupts
8086 modes
Nyquist and polar plot 118 & 117
Instruction set of 8086
8251 USART
8085 microprocessor ramesh gaonkar
Chapter 4 - Digital Transmission
Ad

Similar to Interrupts of microprocessor 8085 (20)

PPT
Interrupt11
PPT
Interrupt
PPTX
Chapter 4 - Interrupts of 8085
PPT
Introduction to Interrupts of 8085 microprocessor
PPT
Interrupts
PPTX
Interrupts
PDF
Microcontroller 8085.ppt mmmmmmmmmmmmmmmmmm
PPT
8085 Interrupts maskable and non maskable.ppt
PPTX
B sc e5.2 mp unit 3 interfacing
PPTX
Timing n interrupt.pptx
PPSX
Microprocessor Architecture 4
PPTX
Interrupts of 8085
PDF
8085 interrupts
PPTX
Presentation on Intel 8085 processor
PPTX
New Microsoft PowerPoint Presentation.pptx
PDF
Microprocessor Part 4
PPT
interrupts.ppt
PPTX
Interrupts
PPTX
Interrupts of 8086
PDF
Week 1.3 architecture
Interrupt11
Interrupt
Chapter 4 - Interrupts of 8085
Introduction to Interrupts of 8085 microprocessor
Interrupts
Interrupts
Microcontroller 8085.ppt mmmmmmmmmmmmmmmmmm
8085 Interrupts maskable and non maskable.ppt
B sc e5.2 mp unit 3 interfacing
Timing n interrupt.pptx
Microprocessor Architecture 4
Interrupts of 8085
8085 interrupts
Presentation on Intel 8085 processor
New Microsoft PowerPoint Presentation.pptx
Microprocessor Part 4
interrupts.ppt
Interrupts
Interrupts of 8086
Week 1.3 architecture

Recently uploaded (20)

PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PPTX
additive manufacturing of ss316l using mig welding
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
DOCX
573137875-Attendance-Management-System-original
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPTX
Welding lecture in detail for understanding
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PDF
Structs to JSON How Go Powers REST APIs.pdf
PPTX
Strings in CPP - Strings in C++ are sequences of characters used to store and...
PPTX
Construction Project Organization Group 2.pptx
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PPTX
Lecture Notes Electrical Wiring System Components
PPTX
web development for engineering and engineering
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
Model Code of Practice - Construction Work - 21102022 .pdf
additive manufacturing of ss316l using mig welding
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
573137875-Attendance-Management-System-original
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
Welding lecture in detail for understanding
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
CYBER-CRIMES AND SECURITY A guide to understanding
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
Structs to JSON How Go Powers REST APIs.pdf
Strings in CPP - Strings in C++ are sequences of characters used to store and...
Construction Project Organization Group 2.pptx
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
Lecture Notes Electrical Wiring System Components
web development for engineering and engineering
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx

Interrupts of microprocessor 8085

  • 2. CONTENTS Sr no contents 1 Introduction 2 classification of interrupts 3 Hardware interrupt 4 SIM Instruction 5 RIM instruction 6 Block diagram of Hardware interrupt 7 Software interrupt
  • 3. what is Interrupt? Interrupt is a mechanism by which an I/O or an instruction can suspend the normal execution of processor and get itself serviced. Generally, a particular task is assigned to that interrupt signal. In the microprocessor based system the interrupts are used for data transfer between the peripheral devices and the microprocessor. INTRODUCTION
  • 4.  After receiving an interrupt signal from the peripheral, the microprocessor executes current instruction completely.  Store the contents of program counter i.e. return address on the stack and then executes interrupts service (ISR) to provide service to the interrupting device.  After servicing the device, the microprocessor transfer program control back to the program where interrupt occurs by reloading the content of program counter which has been stored on the stack when an interrupt occurs.
  • 5. Main program X Y µp is interrupt ISR RET HLT EXAMPLE:-
  • 6. There are 5 interrupt inputs: 1) TRAP (non-maskable) 2) RST7.5 3) RST6.5 4) RST5.5 5) INTR Interrupts pin on IC :-
  • 7. CLASSIFICATION OF INTERRUPTS Interrupts Hardware Software Maskable • RST 7.5 • RST 6.5 • RST 5.5 • INTR Non-maskeble • TRAP
  • 8. Nonmaskable interrupt The MPU is interrupted when a logic signal is applied to this type of input. Maskable interrupt The MPU is interrupted ONLY if that particular input is enabled. It is enabled or disabled under program control. If disabled, an interrupt signal is ignored by the MPU. HARDWARE INTERRUPTS
  • 9. RESPONDING TO INTERRUPTS • Responding to an interrupt may be immediate or delayed depending on whether the interrupt is maskable or non- maskable and whether interrupts are being masked or not. • There are two ways of redirecting the execution to the ISR depending on whether the interrupt is vectored or non- vectored. • Vectored: The address of the subroutine is already known to the Microprocessor • Non Vectored: The device will have to supply the address of the subroutine to the Microprocessor Interrupt name Maskable Vectored INTR Yes No RST 5.5 Yes Yes RST 6.5 Yes Yes RST 7.5 Yes Yes TRAP No Yes
  • 10. Representation of maskable and non-maskable interrupts
  • 11. Non-maskable interrupt :Can not be delayed or Rejected. It’s types as follows. TARP: a non mask able interrupt known as NMI, it has the highest priority, it can not be enabled ; and it cannot be disable. It is edge and level triggered. This means hat the TRAP must go high and remain high until it is acknowledged. Maskable interrupt : Can be delayed or Rejected and Enable Or Disable By EI And DI Instruction. It’s types as follows. RST 7.5: The RST 7.5 interrupt is a maskable interrupt. It has the second highest priority. It is edge sensitive. ie. Input goes to high and no need to maintain high state until it recognized. Enabled by EI instruction. It is disabled by, 1.DI instruction 2.System or processor reset. 3.After reorganization of interrupt.
  • 12. RST 6.5 and 5.5: The RST 6.5 and RST 5.5 both are level triggered. ie. Input goes to high and stay high until it recognized. Maskable interrupt. Enabled by EI instruction. It is disabled by, 1.DI, SIM instruction 2.System or processor reset. 3.After reorganization of interrupt. The RST 6.5 has the third priority whereas RST 5.5 has the fourth priority. INTR: INTR is a maskable interrupt. Enabled by EI instruction. It is disabled by, 1.DI, SIM instruction 2.System or processor reset. 3.After reorganization of interrupt. It is Non- vectored interrupt. After receiving INTA (active low) signal, it has to supply the address of ISR. It has lowest priority. It is a level sensitive interrupts. i.e. Input goes to high and it is necessary to maintain high state until it recognized. After receive this interrupt µp response with INTA pulse and it’s interrupt address is given by external circuit.
  • 13. SIM(set interrupt mask) Instruction  This is a multipurpose instruction and used to implement The 8085 interrupts 7.5, 6.5, 5.5, and serial data output. The instruction interrupts the accumulator contents as following:
  • 14. RIM(Read Interrupt Mask) instruction:  This is a multi purpose instruction used to read the Status of interrupts 7.5, 6.5 ,5.5 and read serial data input bit . The instruction loads eight bits in the accumulator with the following interpretations:
  • 16. SOFTWARE INTERRUPT The software interrupts are program instructions. These instructions are inserted at desired locations in a program. The 8085 has eight software interrupts from RST 0 to RST 7. When microprocessor is interrupt by giving instruction in the main program. The it is called as software interrupt. They allow the microprocessor to transfer program control from the main program to the subroutine program. After completing the subroutine program, the program control returns back to the main program. We can calculate the vector address of these interrupts using the formula given below: Vector Address = Interrupt Number * 8 For Example: RST2: vector address=2*8 = 16 RST1: vector address=1*8 = 08 RST3: vector address=3*8 = 24
  • 17. Restart Instruction Equivalent to RST0 CALL 0000H RST1 CALL 0008H RST2 CALL 0010H RST3 CALL 0018H RST4 CALL 0020H RST5 CALL 0028H RST6 CALL 0030H RST7 CALL 0038H TABLE OF SOFTWARE INTERRUPT