SlideShare a Scribd company logo
1 of 24
Interrupts and Types of
interrupts
Contents
What are interrupts?
 Types of interrupts
* Software interrupts * Hardware interrupts
How to handle interrupts
What are interrupts?
A condition or event that interrupts the
normal flow of control in a program.
Basically interrupt is a signal
* signal means signal can be generated from particular
hardware or signal can be generate particular program
execuation.
Continue……….
an event external to the currently executing
process that causes a change in the normal flow
of instruction execution; usually generated by
hardware devices external to the CPU
Interrupt source
Hardware interrupts occur due to a change
in state of some hardware
Software interrupts are triggered by the
execution of a machine instruction
Types of interrupt
Software interrupt
Hardware interrupt
SOFTWARE INTERRUPT
A software interrupts is a particular
instructions that can be inserted into the
desired location in the rpogram.
SOFTWARE INTERRUPT
Software Interrupts: Software interrupt can also divided in to two
categories. They are
Normal Interrupts: the interrupts which are caused by the
software instructions are called software instructions.
Exception: unplanned interrupts while executing a program is
called Exception. For example: while executing a program if we
got a value which should be divided by zero is called a exception.
There are eight Software interrupts in
8085 Microprocessor:
RST0
RST1
RST2
RST3
RST4
RST5
RST6
RST7
Calculation for vector Address:
We can calculate the vector address of these interrupts using the formula given
below:
Vector Address = Interrupt Number * 8
So we can find simply vector address. For Example:
RST2: vector address=2*8 = 16
RST1: vector address=1*8 = 08
RST3: vector address=3*8 = 24
Table for vector Address:
Hardware interrupt
Interrupt is a signal to the processer generated by the
hardware indicated an immedate attention needed by an
event
Categories:
Maskable Interrupt: The hardware interrupts which can be
delayed when a much highest priority interrupt has
occurred to the processor.
Non Maskable Interrupt: The hardware which cannot be
delayed and should process by the processor immediately.
In 8085 we have 5 interrupt
NAME Priority
1. Trap (RST 4.5) highest
2. RST 7.5 higher
3. RST 6.5 medium
4. RST 5.5 least
5. INTR least
Maskable non-maskable
1) RST 7.5 TRAP/NMI(RST 4.5)
2) RST 6.5
3) RST 5.5
4) INTR
EDGE AND LEVEL TRIGGERED :-
 TRAP (RST 4.5)
EDGE TRIGGERED:
 RST 7.5
LEVEL TRIGGERED:
RST 6.5
RST 5.5
INTR
VECTOR (Address) NON VECTOR
 TRAP (RST 4.5) (0024) INTR (No Address)
 RST 7.5 (003C)
 RST 6.5 (0034)
 RST 5.5 (002C)
Interrupt Handling:
We know that instruction cycle consists of fetch, decode,
execute and read/write functions. After every instruction
cycle the processor will check for interrupts to be processed
if there is no interrupt is present in the system it will go for
the next instruction cycle which is given by the instruction
register.
Continue…….
If there is an interrupt present then it will trigger the interrupt
handler, the handler will stop the present instruction which is
processing and save its configuration in a register and load the
program counter of the interrupt from a location which is given by
the interrupt vector table. After processing the interrupt by the
processor interrupt handler will load the instruction and its
configuration from the saved register, process will start its processing
where it’s left. This saving the old instruction processing
configuration and loading the new interrupt configuration is also
called as context switching.
Continue……
The interrupt handler is also called as Interrupt
service routine (ISR). There are different types of
interrupt handler which will handle different
interrupts. For example for the clock in a system will
have its interrupt handler, keyboard it will have its
interrupt handler for every device it will have its
interrupt handler.
The main features of the ISR are:
Interrupts can occur at any time they are
asynchronous. ISR’s can call for asynchronous
interrupts.
Interrupt service mechanism can call the ISR’s from
multiple sources.
ISR’s can handle both maskable and non maskable
interrupts. An instruction in a program can disable or
enable an interrupt handler call.
Continue …
ISR on beginning of execution it will disable other devices
interrupt services. After completion of the ISR execution it
will re initialize the interrupt services.
The nested interrupts are allowed in ISR for diversion to
other ISR.
Type of Interrupt Handlers:
First Level Interrupt Handler (FLIH) is hard interrupt
handler or fast interrupt handler. These interrupt handlers
have more jitter while process execution and they are
mainly maskable interrupts
Second Level Interrupt Handler (SLIH) is soft interrupt
handler and slow interrupt handler. These interrupt
handlers are having less jitter.
Interrupt Latency:
When an interrupt occur, the service of the
interrupt by executing the ISR may not start
immediately by context switching. The time interval
between the occurrence of interrupt and start of
execution of the ISR is called interrupt latency.

More Related Content

What's hot

Multithreading
MultithreadingMultithreading
MultithreadingA B Shinde
 
Modes Of Transfer in Input/Output Organization
Modes Of Transfer in Input/Output OrganizationModes Of Transfer in Input/Output Organization
Modes Of Transfer in Input/Output OrganizationMOHIT AGARWAL
 
Types of Addressing modes- COA
Types of Addressing modes- COATypes of Addressing modes- COA
Types of Addressing modes- COARuchi Maurya
 
Microprogram Control
Microprogram Control Microprogram Control
Microprogram Control Anuj Modi
 
instruction cycle ppt
instruction cycle pptinstruction cycle ppt
instruction cycle pptsheetal singh
 
Cache memory
Cache memoryCache memory
Cache memoryAnuj Modi
 
Instruction Execution Cycle
Instruction Execution CycleInstruction Execution Cycle
Instruction Execution Cycleutsav_shah
 
Computer architecture pipelining
Computer architecture pipeliningComputer architecture pipelining
Computer architecture pipeliningMazin Alwaaly
 
Computer architecture input output organization
Computer architecture input output organizationComputer architecture input output organization
Computer architecture input output organizationMazin Alwaaly
 
Data transfer and manipulation
Data transfer and manipulationData transfer and manipulation
Data transfer and manipulationSanjeev Patel
 
Control unit design
Control unit designControl unit design
Control unit designDhaval Bagal
 
Types of instructions
Types of instructionsTypes of instructions
Types of instructionsihsanjamil
 

What's hot (20)

ADDRESSING MODES
ADDRESSING MODESADDRESSING MODES
ADDRESSING MODES
 
Multithreading
MultithreadingMultithreading
Multithreading
 
Modes Of Transfer in Input/Output Organization
Modes Of Transfer in Input/Output OrganizationModes Of Transfer in Input/Output Organization
Modes Of Transfer in Input/Output Organization
 
Types of Addressing modes- COA
Types of Addressing modes- COATypes of Addressing modes- COA
Types of Addressing modes- COA
 
Interrupts
InterruptsInterrupts
Interrupts
 
Microprogram Control
Microprogram Control Microprogram Control
Microprogram Control
 
Interrupts
InterruptsInterrupts
Interrupts
 
Lecture 3 instruction set
Lecture 3  instruction setLecture 3  instruction set
Lecture 3 instruction set
 
Cache memory
Cache memoryCache memory
Cache memory
 
instruction cycle ppt
instruction cycle pptinstruction cycle ppt
instruction cycle ppt
 
Cache memory
Cache memoryCache memory
Cache memory
 
Instruction Execution Cycle
Instruction Execution CycleInstruction Execution Cycle
Instruction Execution Cycle
 
Computer architecture pipelining
Computer architecture pipeliningComputer architecture pipelining
Computer architecture pipelining
 
Hardwired control
Hardwired controlHardwired control
Hardwired control
 
Computer architecture input output organization
Computer architecture input output organizationComputer architecture input output organization
Computer architecture input output organization
 
Pin diagram 8085
Pin diagram 8085 Pin diagram 8085
Pin diagram 8085
 
Data transfer and manipulation
Data transfer and manipulationData transfer and manipulation
Data transfer and manipulation
 
Control unit design
Control unit designControl unit design
Control unit design
 
Types of instructions
Types of instructionsTypes of instructions
Types of instructions
 
Program control
Program controlProgram control
Program control
 

Similar to Interrupts and types of interrupts

Device drivers and interrupt service mechanism
Device drivers and interrupt service mechanismDevice drivers and interrupt service mechanism
Device drivers and interrupt service mechanismVijay Kumar
 
Interrupt in real time system
Interrupt in real time system Interrupt in real time system
Interrupt in real time system ali jawad
 
Interrupts of 8085
Interrupts of 8085Interrupts of 8085
Interrupts of 8085ShivamSood22
 
INTERRUPTS OF 8086 MICROPROCESSOR
INTERRUPTS OF 8086 MICROPROCESSORINTERRUPTS OF 8086 MICROPROCESSOR
INTERRUPTS OF 8086 MICROPROCESSORGurudev joshi
 
Interrupts on 8086 microprocessor by vijay kumar.k
Interrupts on 8086 microprocessor by vijay kumar.kInterrupts on 8086 microprocessor by vijay kumar.k
Interrupts on 8086 microprocessor by vijay kumar.kVijay Kumar
 
Microprocessor Architecture 4
Microprocessor Architecture  4Microprocessor Architecture  4
Microprocessor Architecture 4Dr.YNM
 
Interrupt11
Interrupt11Interrupt11
Interrupt11Aisu
 

Similar to Interrupts and types of interrupts (20)

Device drivers and interrupt service mechanism
Device drivers and interrupt service mechanismDevice drivers and interrupt service mechanism
Device drivers and interrupt service mechanism
 
Interrupt in real time system
Interrupt in real time system Interrupt in real time system
Interrupt in real time system
 
Interrupts of 8085
Interrupts of 8085Interrupts of 8085
Interrupts of 8085
 
Interrupts in CPU
Interrupts in CPUInterrupts in CPU
Interrupts in CPU
 
Interrupt 8085
Interrupt 8085Interrupt 8085
Interrupt 8085
 
interrupts.pptx
interrupts.pptxinterrupts.pptx
interrupts.pptx
 
Interrupts
InterruptsInterrupts
Interrupts
 
Interrupts in 8085
Interrupts in 8085Interrupts in 8085
Interrupts in 8085
 
Interruptsof8085
Interruptsof8085Interruptsof8085
Interruptsof8085
 
Interrupts of microprocessor 8085
Interrupts of microprocessor  8085Interrupts of microprocessor  8085
Interrupts of microprocessor 8085
 
Inerrupt
InerruptInerrupt
Inerrupt
 
Vino's 8086 interrupts
Vino's 8086 interruptsVino's 8086 interrupts
Vino's 8086 interrupts
 
INTERRUPTS OF 8086 MICROPROCESSOR
INTERRUPTS OF 8086 MICROPROCESSORINTERRUPTS OF 8086 MICROPROCESSOR
INTERRUPTS OF 8086 MICROPROCESSOR
 
Interrupts on 8086 microprocessor by vijay kumar.k
Interrupts on 8086 microprocessor by vijay kumar.kInterrupts on 8086 microprocessor by vijay kumar.k
Interrupts on 8086 microprocessor by vijay kumar.k
 
Interrupt
InterruptInterrupt
Interrupt
 
Interrupts
InterruptsInterrupts
Interrupts
 
Microprocessor Architecture 4
Microprocessor Architecture  4Microprocessor Architecture  4
Microprocessor Architecture 4
 
Interrupt11
Interrupt11Interrupt11
Interrupt11
 
Interrupts
InterruptsInterrupts
Interrupts
 
Interrupts
InterruptsInterrupts
Interrupts
 

Recently uploaded

High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...soniya singh
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...Suhani Kapoor
 
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Callshivangimorya083
 
Ukraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICSUkraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICSAishani27
 
100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptxAnupama Kate
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationshipsccctableauusergroup
 
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
定制英国白金汉大学毕业证(UCB毕业证书) 成绩单原版一比一
定制英国白金汉大学毕业证(UCB毕业证书)																			成绩单原版一比一定制英国白金汉大学毕业证(UCB毕业证书)																			成绩单原版一比一
定制英国白金汉大学毕业证(UCB毕业证书) 成绩单原版一比一ffjhghh
 
Predicting Employee Churn: A Data-Driven Approach Project Presentation
Predicting Employee Churn: A Data-Driven Approach Project PresentationPredicting Employee Churn: A Data-Driven Approach Project Presentation
Predicting Employee Churn: A Data-Driven Approach Project PresentationBoston Institute of Analytics
 
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779Delhi Call girls
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfLars Albertsson
 
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPramod Kumar Srivastava
 
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...Suhani Kapoor
 
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiVIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiSuhani Kapoor
 
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改atducpo
 
FESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfFESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfMarinCaroMartnezBerg
 
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /WhatsappsBeautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsappssapnasaifi408
 

Recently uploaded (20)

High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
 
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
 
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
 
Ukraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICSUkraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICS
 
100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships
 
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
 
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
定制英国白金汉大学毕业证(UCB毕业证书) 成绩单原版一比一
定制英国白金汉大学毕业证(UCB毕业证书)																			成绩单原版一比一定制英国白金汉大学毕业证(UCB毕业证书)																			成绩单原版一比一
定制英国白金汉大学毕业证(UCB毕业证书) 成绩单原版一比一
 
Predicting Employee Churn: A Data-Driven Approach Project Presentation
Predicting Employee Churn: A Data-Driven Approach Project PresentationPredicting Employee Churn: A Data-Driven Approach Project Presentation
Predicting Employee Churn: A Data-Driven Approach Project Presentation
 
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdf
 
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
 
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
 
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
 
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiVIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
 
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
 
FESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfFESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdf
 
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /WhatsappsBeautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
 

Interrupts and types of interrupts

  • 1. Interrupts and Types of interrupts
  • 2. Contents What are interrupts?  Types of interrupts * Software interrupts * Hardware interrupts How to handle interrupts
  • 3. What are interrupts? A condition or event that interrupts the normal flow of control in a program. Basically interrupt is a signal * signal means signal can be generated from particular hardware or signal can be generate particular program execuation.
  • 4. Continue………. an event external to the currently executing process that causes a change in the normal flow of instruction execution; usually generated by hardware devices external to the CPU
  • 5. Interrupt source Hardware interrupts occur due to a change in state of some hardware Software interrupts are triggered by the execution of a machine instruction
  • 6. Types of interrupt Software interrupt Hardware interrupt
  • 7. SOFTWARE INTERRUPT A software interrupts is a particular instructions that can be inserted into the desired location in the rpogram.
  • 8. SOFTWARE INTERRUPT Software Interrupts: Software interrupt can also divided in to two categories. They are Normal Interrupts: the interrupts which are caused by the software instructions are called software instructions. Exception: unplanned interrupts while executing a program is called Exception. For example: while executing a program if we got a value which should be divided by zero is called a exception.
  • 9. There are eight Software interrupts in 8085 Microprocessor: RST0 RST1 RST2 RST3 RST4 RST5 RST6 RST7
  • 10. Calculation for vector Address: We can calculate the vector address of these interrupts using the formula given below: Vector Address = Interrupt Number * 8 So we can find simply vector address. For Example: RST2: vector address=2*8 = 16 RST1: vector address=1*8 = 08 RST3: vector address=3*8 = 24
  • 11. Table for vector Address:
  • 12. Hardware interrupt Interrupt is a signal to the processer generated by the hardware indicated an immedate attention needed by an event
  • 13. Categories: Maskable Interrupt: The hardware interrupts which can be delayed when a much highest priority interrupt has occurred to the processor. Non Maskable Interrupt: The hardware which cannot be delayed and should process by the processor immediately.
  • 14. In 8085 we have 5 interrupt NAME Priority 1. Trap (RST 4.5) highest 2. RST 7.5 higher 3. RST 6.5 medium 4. RST 5.5 least 5. INTR least
  • 15. Maskable non-maskable 1) RST 7.5 TRAP/NMI(RST 4.5) 2) RST 6.5 3) RST 5.5 4) INTR
  • 16. EDGE AND LEVEL TRIGGERED :-  TRAP (RST 4.5) EDGE TRIGGERED:  RST 7.5 LEVEL TRIGGERED: RST 6.5 RST 5.5 INTR
  • 17. VECTOR (Address) NON VECTOR  TRAP (RST 4.5) (0024) INTR (No Address)  RST 7.5 (003C)  RST 6.5 (0034)  RST 5.5 (002C)
  • 18. Interrupt Handling: We know that instruction cycle consists of fetch, decode, execute and read/write functions. After every instruction cycle the processor will check for interrupts to be processed if there is no interrupt is present in the system it will go for the next instruction cycle which is given by the instruction register.
  • 19. Continue……. If there is an interrupt present then it will trigger the interrupt handler, the handler will stop the present instruction which is processing and save its configuration in a register and load the program counter of the interrupt from a location which is given by the interrupt vector table. After processing the interrupt by the processor interrupt handler will load the instruction and its configuration from the saved register, process will start its processing where it’s left. This saving the old instruction processing configuration and loading the new interrupt configuration is also called as context switching.
  • 20. Continue…… The interrupt handler is also called as Interrupt service routine (ISR). There are different types of interrupt handler which will handle different interrupts. For example for the clock in a system will have its interrupt handler, keyboard it will have its interrupt handler for every device it will have its interrupt handler.
  • 21. The main features of the ISR are: Interrupts can occur at any time they are asynchronous. ISR’s can call for asynchronous interrupts. Interrupt service mechanism can call the ISR’s from multiple sources. ISR’s can handle both maskable and non maskable interrupts. An instruction in a program can disable or enable an interrupt handler call.
  • 22. Continue … ISR on beginning of execution it will disable other devices interrupt services. After completion of the ISR execution it will re initialize the interrupt services. The nested interrupts are allowed in ISR for diversion to other ISR.
  • 23. Type of Interrupt Handlers: First Level Interrupt Handler (FLIH) is hard interrupt handler or fast interrupt handler. These interrupt handlers have more jitter while process execution and they are mainly maskable interrupts Second Level Interrupt Handler (SLIH) is soft interrupt handler and slow interrupt handler. These interrupt handlers are having less jitter.
  • 24. Interrupt Latency: When an interrupt occur, the service of the interrupt by executing the ISR may not start immediately by context switching. The time interval between the occurrence of interrupt and start of execution of the ISR is called interrupt latency.