SlideShare a Scribd company logo
MICROPROCESOR ARCHITECTURE-IV
What is an Interrupt?
• An interrupt is a signal, when applied ,the CPU
suspends its normal course of executions and the
control will go to a program called ISR(Interrupt
Service Sub routine ).
• After executing this subroutine program, the control
will come back to the next instruction where it has
suspended before the interrupt call.
• After returning from the ISR the CPU will continue
its normal execution process.
contd
• This interrupt signal can be either external to the
microprocessor or an internal instruction.
• Based on this the interrupts are divided into two
types. One is the hardware interrupt and the other is
the software interrupt.
• A hardware interrupt is generated when the signal at
one of the interrupt pins of 8085 processor (RST7.5,
6.5, 5.5 ,TRAP or INTR) goes high.
• A software interrupt is generated when the processor
encounters an instruction like CALL or Jump etc
during the normal execution process.
Software Interrupts
• There are 8 software interrupts supported by 8085
processor.
• They are RST0, RST1, RST2, RST3, RST4, RST5 ,
RST6 & RST7.
• The corresponding vector addresses are
RST 0 ----00H RST 6 ----30 H
RST 1-----08H RST 7 -----38 H
RST 2---- 10H
RST 3 ----18H
RST 4-----20H
RST 5 ------28H
Ex:Software Interrupt
Sub-Routine Program
• The below is the assembly language program for sub-routine
and its diagrammatic representation..
Ex: Hardware Interrupts
• Lets now understand the hardware interrupt concept.
• Assume that ADC(Analog to Digital Conversion)
chip is interfaced to 8085 microprocessor.
• When compared to speed of the 8085 the ADC is a
very low speed device.
• So, ADC can be interfaced to 8085 such that ,when
the conversion process is complete ,it will send
EOC(End of Conversion) signal to 8085 through the
pin INTR or RST7.5 ,6.5,Trap etc.
• This external signal is known as hardware Interrupt .
contd
• Similarly ,when press a key board connected to 8085
it creates an external interrupt.
• A serial communication devices like UART /USART
can generate an external (hardware) interrupt when
the data transmission is complete.
Interrupt control
• This block of the microprocessor ,actually controls
the operation of interrupts.
• This block is linked to the CPU through the 8-bit
internal data bus.
• This interrupt control has five interrupt signals. They
are TRAP, RST 7.5, RST 6.5, RST 5.5 and INTR.
• The control block will take care of enabling and
disabling of these interrupts etc.
• Let us consider now these 8085 interrupts in detail.
8085 Interrupts
• The 8085 Microprocessor supports five interrupts.
• They are TRAP, RST 7.5, RST 6.5, RST5.5 and
INTR.
• Among all these interrupts TRAP has the highest
priority and INTR (Interrupt ) has the lowest priority.
• The TRAP is also a non maskable interrupt. The
numbers succeeding the RST (7.5, 6.5, and 5.5) are
related to the call locations in the IVT.
• Here RST means RESTART. Among these interrupts
INTR is the only non-vectored interrupt whereas the
other interrupts are vectored interrupts.
Interrupt Instructions
• These interrupts are associated with some special
instructions like EI ,DI,SIM,RIM .
• EI instruction will enable the Interrupts.
• DI instruction will disable Interrupts.
• SIM instruction sets the mask on the Interrupts.
• RIM Instruction read the status of the interrupts.
• Actually, upon reset all the interrupts are disabled.
• So, to enable all the interrupts the instruction EI is
executed.(i.e the Flip-Flop is set to 1)
• But this will not work on TRAP interrupt as it is non-
maskable .
contd
• The execution of DI instruction disables the
interrupts of 8085, except TRAP interrupt.
• SIM Set Interrupt Mask is a 1 byte multi-purpose
instruction which masks the Interrupts.
• RIM instruction reads the status of interrupts i.e it
checks whether the interrupts are enabled or not.
• It also checks whether RST 7.5,6.5 and 5.5 are
masked or not.
• This instruction is also used for serial input of data.
TRAP
• It is a non maskable interrupt with highest priority.
• It means that whenever the pin is activated, the 8085
will always get interrupted even if the 8085 is in DI
(Disable Interrupt) state.
• Trap input is both edge and level sensitive. So, the
microprocessor is interrupted when the input is both
edge and level sensitive.
• The microprocessor is interrupted when the input
pulse goes from low to high or when it remains high.
• When interrupted, the microprocessor loads the
program counter with 0024H.
RST 7.5
• It is an edge sensitive pin. In 8085,internally a flip-
flop connected to RST 7.5 interrupt pin .
• This flip flop is set 1, when a positive going edge
occurs on RST 7.5 input. RST 7.5 interrupt has a
higher priority than RST 6.5, RST 5.5 and INTR.
• This RST 7.5 is a maskable interrupt known as MI.
This interrupt is enabled under program control with
two instructions EI (Enable Interrupt) and SIM (Set
Interrupt Mask).
RST 6.5 & RST 5.5
• These interrupts are level sensitive, it means the
triggering level should be ON until the
microprocessor completes the execution of the
current instruction.
• If the microprocessor is not able to respond to the
requests immediately, they should be stored or held
by external hardware.
• These two interrupts are also maskable interrupts.
RST 6.5 and RST 5.5 have higher priority than INTR
interrupt.
INTR
• It is the only non-vectored interrupt in 8085 which
has the lowest priority among all the interrupts.
• This is also a maskable interrupt and can be disabled
using the instruction DI (Disable Interrupt).
• The mask on INTR can be removed by executing EI
(Enable Interrupt) instruction. When EI instruction is
executed, the flip flop associated with this is SET
and the mask is removed.
Priority of Interrupts
• The order of priority of Interrupts is given in the
below table. From the table it is clear hat the
Interrupt TRAP has the highest priority and INTR
has the lowest priority.
Microprocessor Architecture  4

More Related Content

PPTX
Atmel and pic microcontroller
PPT
PIC Introduction and explained in detailed
PPT
Interrupts
PDF
Embedded systems ppt i
PPT
Microcontroller 8051
PPTX
Architecture of 8051
DOC
PIC MICROCONTROLLERS -CLASS NOTES
Atmel and pic microcontroller
PIC Introduction and explained in detailed
Interrupts
Embedded systems ppt i
Microcontroller 8051
Architecture of 8051
PIC MICROCONTROLLERS -CLASS NOTES

What's hot (20)

DOCX
Applications of 8051 microcontrollers
DOCX
8096 microcontrollers notes
PPT
Architecture of 8051 microcontroller))
PPT
Embedded System
DOCX
Arm7 Interfacing examples
PPTX
INTERRUPTS OF 8086 MICROPROCESSOR
PDF
Lecture SOHIL LUHAR
PPTX
PIC introduction + mapping
PPT
PIC 16F877A by PARTHIBAN. S.
PPT
Pin diagram 8085 microprocessor(For College Seminars)
PPTX
Interrupts in 8051
PPT
8051 microcontroller lecture ppt by Tarun Khaneja ( 9034406598 )
PPTX
Pic microcontroller architecture
PDF
Serial communication in 8085
PPTX
Microcontroller 8096
PPTX
Pic microcontroller [autosaved] [autosaved]
PPT
Pin diagram-of-8085
DOC
8051 Microcontroller Notes
PDF
Embedded systems ppt ii
Applications of 8051 microcontrollers
8096 microcontrollers notes
Architecture of 8051 microcontroller))
Embedded System
Arm7 Interfacing examples
INTERRUPTS OF 8086 MICROPROCESSOR
Lecture SOHIL LUHAR
PIC introduction + mapping
PIC 16F877A by PARTHIBAN. S.
Pin diagram 8085 microprocessor(For College Seminars)
Interrupts in 8051
8051 microcontroller lecture ppt by Tarun Khaneja ( 9034406598 )
Pic microcontroller architecture
Serial communication in 8085
Microcontroller 8096
Pic microcontroller [autosaved] [autosaved]
Pin diagram-of-8085
8051 Microcontroller Notes
Embedded systems ppt ii
Ad

Similar to Microprocessor Architecture 4 (20)

PDF
5a_8085 Interrupts & Direct Memory Access_pptx.pdf
PPT
8085 Interrupts maskable and non maskable.ppt
PPTX
Presentation on Intel 8085 processor
PDF
Microprocessor Part 4
PPT
Interruptsof8085
PPTX
Interrupts of microprocessor 8085
PPT
Introduction to Interrupts of 8085 microprocessor
PPT
8085 interrupts
PPTX
Chapter 4 - Interrupts of 8085
PPTX
8085 interrupt.....
PPTX
B sc e5.2 mp unit 3 interfacing
PPT
Interrupt11
PPT
1206 Interrupts Of 8085
PPTX
Timing n interrupt.pptx
PPT
Interrupt
PPTX
Interrupt 8085
PPTX
8085 interrupts
PPTX
MPMC_PPT.pptx
PDF
Detailed Explanation of Pin Description of 8085 microprocessor
PPTX
Interrupts
5a_8085 Interrupts & Direct Memory Access_pptx.pdf
8085 Interrupts maskable and non maskable.ppt
Presentation on Intel 8085 processor
Microprocessor Part 4
Interruptsof8085
Interrupts of microprocessor 8085
Introduction to Interrupts of 8085 microprocessor
8085 interrupts
Chapter 4 - Interrupts of 8085
8085 interrupt.....
B sc e5.2 mp unit 3 interfacing
Interrupt11
1206 Interrupts Of 8085
Timing n interrupt.pptx
Interrupt
Interrupt 8085
8085 interrupts
MPMC_PPT.pptx
Detailed Explanation of Pin Description of 8085 microprocessor
Interrupts
Ad

More from Dr.YNM (20)

PPT
Introduction to DSP.ppt
PPT
Atmel.ppt
PPT
PIC Microcontrollers.ppt
PPT
Crystalstructure-.ppt
PPT
Basics of OS & RTOS.ppt
PPTX
Introducion to MSP430 Microcontroller.pptx
PPT
Microcontroller-8051.ppt
PPTX
Introduction to ASICs.pptx
PPT
VHDL-PRESENTATION.ppt
PPTX
Basics of data communications.pptx
PPTX
CPLD & FPGA Architectures and applictionsplications.pptx
PDF
Transient response of RC , RL circuits with step input
PPSX
CISC & RISC ARCHITECTURES
PPSX
Lect 4 ARM PROCESSOR ARCHITECTURE
PPSX
Lect 3 ARM PROCESSOR ARCHITECTURE
PPSX
Lect 2 ARM processor architecture
PPSX
Microprocessor Architecture-III
PPSX
LECT 1: ARM PROCESSORS
PPSX
Microprocessor architecture II
PPTX
Verilog Test Bench
Introduction to DSP.ppt
Atmel.ppt
PIC Microcontrollers.ppt
Crystalstructure-.ppt
Basics of OS & RTOS.ppt
Introducion to MSP430 Microcontroller.pptx
Microcontroller-8051.ppt
Introduction to ASICs.pptx
VHDL-PRESENTATION.ppt
Basics of data communications.pptx
CPLD & FPGA Architectures and applictionsplications.pptx
Transient response of RC , RL circuits with step input
CISC & RISC ARCHITECTURES
Lect 4 ARM PROCESSOR ARCHITECTURE
Lect 3 ARM PROCESSOR ARCHITECTURE
Lect 2 ARM processor architecture
Microprocessor Architecture-III
LECT 1: ARM PROCESSORS
Microprocessor architecture II
Verilog Test Bench

Recently uploaded (20)

PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PPTX
OOP with Java - Java Introduction (Basics)
DOCX
573137875-Attendance-Management-System-original
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PDF
Digital Logic Computer Design lecture notes
PDF
Structs to JSON How Go Powers REST APIs.pdf
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PPTX
UNIT 4 Total Quality Management .pptx
PPTX
Sustainable Sites - Green Building Construction
PPTX
bas. eng. economics group 4 presentation 1.pptx
PDF
Well-logging-methods_new................
PPT
Mechanical Engineering MATERIALS Selection
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PPTX
web development for engineering and engineering
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PPT
Project quality management in manufacturing
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
OOP with Java - Java Introduction (Basics)
573137875-Attendance-Management-System-original
CYBER-CRIMES AND SECURITY A guide to understanding
Digital Logic Computer Design lecture notes
Structs to JSON How Go Powers REST APIs.pdf
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
UNIT 4 Total Quality Management .pptx
Sustainable Sites - Green Building Construction
bas. eng. economics group 4 presentation 1.pptx
Well-logging-methods_new................
Mechanical Engineering MATERIALS Selection
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
Operating System & Kernel Study Guide-1 - converted.pdf
web development for engineering and engineering
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
Project quality management in manufacturing
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx

Microprocessor Architecture 4

  • 2. What is an Interrupt? • An interrupt is a signal, when applied ,the CPU suspends its normal course of executions and the control will go to a program called ISR(Interrupt Service Sub routine ). • After executing this subroutine program, the control will come back to the next instruction where it has suspended before the interrupt call. • After returning from the ISR the CPU will continue its normal execution process.
  • 3. contd • This interrupt signal can be either external to the microprocessor or an internal instruction. • Based on this the interrupts are divided into two types. One is the hardware interrupt and the other is the software interrupt. • A hardware interrupt is generated when the signal at one of the interrupt pins of 8085 processor (RST7.5, 6.5, 5.5 ,TRAP or INTR) goes high. • A software interrupt is generated when the processor encounters an instruction like CALL or Jump etc during the normal execution process.
  • 4. Software Interrupts • There are 8 software interrupts supported by 8085 processor. • They are RST0, RST1, RST2, RST3, RST4, RST5 , RST6 & RST7. • The corresponding vector addresses are RST 0 ----00H RST 6 ----30 H RST 1-----08H RST 7 -----38 H RST 2---- 10H RST 3 ----18H RST 4-----20H RST 5 ------28H
  • 6. Sub-Routine Program • The below is the assembly language program for sub-routine and its diagrammatic representation..
  • 7. Ex: Hardware Interrupts • Lets now understand the hardware interrupt concept. • Assume that ADC(Analog to Digital Conversion) chip is interfaced to 8085 microprocessor. • When compared to speed of the 8085 the ADC is a very low speed device. • So, ADC can be interfaced to 8085 such that ,when the conversion process is complete ,it will send EOC(End of Conversion) signal to 8085 through the pin INTR or RST7.5 ,6.5,Trap etc. • This external signal is known as hardware Interrupt .
  • 8. contd • Similarly ,when press a key board connected to 8085 it creates an external interrupt. • A serial communication devices like UART /USART can generate an external (hardware) interrupt when the data transmission is complete.
  • 9. Interrupt control • This block of the microprocessor ,actually controls the operation of interrupts. • This block is linked to the CPU through the 8-bit internal data bus. • This interrupt control has five interrupt signals. They are TRAP, RST 7.5, RST 6.5, RST 5.5 and INTR. • The control block will take care of enabling and disabling of these interrupts etc. • Let us consider now these 8085 interrupts in detail.
  • 10. 8085 Interrupts • The 8085 Microprocessor supports five interrupts. • They are TRAP, RST 7.5, RST 6.5, RST5.5 and INTR. • Among all these interrupts TRAP has the highest priority and INTR (Interrupt ) has the lowest priority. • The TRAP is also a non maskable interrupt. The numbers succeeding the RST (7.5, 6.5, and 5.5) are related to the call locations in the IVT. • Here RST means RESTART. Among these interrupts INTR is the only non-vectored interrupt whereas the other interrupts are vectored interrupts.
  • 11. Interrupt Instructions • These interrupts are associated with some special instructions like EI ,DI,SIM,RIM . • EI instruction will enable the Interrupts. • DI instruction will disable Interrupts. • SIM instruction sets the mask on the Interrupts. • RIM Instruction read the status of the interrupts. • Actually, upon reset all the interrupts are disabled. • So, to enable all the interrupts the instruction EI is executed.(i.e the Flip-Flop is set to 1) • But this will not work on TRAP interrupt as it is non- maskable .
  • 12. contd • The execution of DI instruction disables the interrupts of 8085, except TRAP interrupt. • SIM Set Interrupt Mask is a 1 byte multi-purpose instruction which masks the Interrupts. • RIM instruction reads the status of interrupts i.e it checks whether the interrupts are enabled or not. • It also checks whether RST 7.5,6.5 and 5.5 are masked or not. • This instruction is also used for serial input of data.
  • 13. TRAP • It is a non maskable interrupt with highest priority. • It means that whenever the pin is activated, the 8085 will always get interrupted even if the 8085 is in DI (Disable Interrupt) state. • Trap input is both edge and level sensitive. So, the microprocessor is interrupted when the input is both edge and level sensitive. • The microprocessor is interrupted when the input pulse goes from low to high or when it remains high. • When interrupted, the microprocessor loads the program counter with 0024H.
  • 14. RST 7.5 • It is an edge sensitive pin. In 8085,internally a flip- flop connected to RST 7.5 interrupt pin . • This flip flop is set 1, when a positive going edge occurs on RST 7.5 input. RST 7.5 interrupt has a higher priority than RST 6.5, RST 5.5 and INTR. • This RST 7.5 is a maskable interrupt known as MI. This interrupt is enabled under program control with two instructions EI (Enable Interrupt) and SIM (Set Interrupt Mask).
  • 15. RST 6.5 & RST 5.5 • These interrupts are level sensitive, it means the triggering level should be ON until the microprocessor completes the execution of the current instruction. • If the microprocessor is not able to respond to the requests immediately, they should be stored or held by external hardware. • These two interrupts are also maskable interrupts. RST 6.5 and RST 5.5 have higher priority than INTR interrupt.
  • 16. INTR • It is the only non-vectored interrupt in 8085 which has the lowest priority among all the interrupts. • This is also a maskable interrupt and can be disabled using the instruction DI (Disable Interrupt). • The mask on INTR can be removed by executing EI (Enable Interrupt) instruction. When EI instruction is executed, the flip flop associated with this is SET and the mask is removed.
  • 17. Priority of Interrupts • The order of priority of Interrupts is given in the below table. From the table it is clear hat the Interrupt TRAP has the highest priority and INTR has the lowest priority.