SlideShare a Scribd company logo
1 of 12
INTERRUPTS 
321 
COMPUTER ARCHITECTURE AND ORGANIZATION 
MS SAIMA AMBER 
Presented By: 
Zara Tariq 2011/comp/BSCS/12537 1112639 
Yumna Furqan 2011/comp/BSCS/12535 1112637
INTERRUPTS 
 A signal from a device attached to a computer or from a program within the 
computer which causes the main program that operates the computer to stop 
and figure out what to do next. 
 Almost all personal (or larger) computers today are interrupt-driven 
 Mechanism by which other modules(e.g I/O) may interrupt normal sequence 
of processing. 
 Forced transfer of control to a procedure(handler) due to the external 
events(interrupts) or due to an erroneous(exceptions). 
Presented to Ms. Saima Amber
INTERRUPT HANDLING 
 Mechanism 
 Allows interrupts/exceptions to be handled transparently to the executing 
process (application programs and operating system) 
 Procedure 
 When an interrupt Is received or an exception condition detection, the 
current task is suspended and transfer automatically goes to a handler 
 After the handler is complete, the interrupted task resumes without loss of 
continuity, unless recovery is not possible or the interrupt causes the 
currently running task to be terminated. 
Presented to Ms. Saima Amber
TYPES OF INTERRUPTS 
 Program – Something that occurs as a result of program execution 
such as illegal instructions, arithmetic overflow, divide by zero, or 
memory handling error 
 Timer – Generated by one of the processor's internal timers so that 
the processor can perform some time-scheduled task 
 I/O – Generated by an I/O controller to request service from the 
processor such as keyboard, mouse, NIC, disk drive 
 Hardware failure – signifies some error condition with the 
hardware 
Presented to Ms. Saima Amber
INTERRUPT HANDLING 
 CPU receives the interrupt request (IRQ) when running a program; 
 CPU save its state of execution via a context switch; 
 Begin execution of an interrupt handler/interrupt service routine 
(ISR); 
 When ISR finishes, CPU switch state back and continue the original 
program. 
Presented to Ms. Saima Amber
PROGRAM FLOW CONTROL 
Presented to Ms. Saima Amber
INTERRUPT CYCLE 
 Added to instruction cycle 
 Processor checks for interrupt 
 Indicated by an interrupt signal 
 If no interrupt, fetch next instruction 
 If interrupt pending: 
 Suspend execution of current program 
 Save context 
 Set PC to start address of interrupt handler routine 
 Process interrupt 
 Restore context and continue interrupted program 
Presented to Ms. Saima Amber
INSTRUCTION CYCLE (WITH INTERRUPTS) 
STATE DIAGRAM 
Presented to Ms. Saima Amber
MULTIPLE INTERRUPTS 
 Disable interrupts 
 Processor will ignore further interrupts while processing one interrupt. 
 Interrupts remain pending and are checked after first interrupt has been 
processed. 
 Interrupts handled in sequence as they occur. 
 Define priorities 
 Low priority interrupts can be interrupted by higher priority interrupts. 
 When higher priority interrupt has been processed, processor returns to 
previous interrupt. 
Presented to Ms. Saima Amber
MULTIPLE INTERRUPTS (SEQUENTIAL) 
Presented to Ms. Saima Amber
MULTIPLE INTERRUPTS (NESTED) 
Presented to Ms. Saima Amber
Thank You All For Your Kind Attention 
Your Presenters: Zara Tariq & Yumna Furqan

More Related Content

What's hot

Computer architecture input output organization
Computer architecture input output organizationComputer architecture input output organization
Computer architecture input output organizationMazin Alwaaly
 
Asynchronous data transfer
Asynchronous data transferAsynchronous data transfer
Asynchronous data transferpriya Nithya
 
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
 
Architecture of 8085 microprocessor
Architecture of 8085 microprocessorArchitecture of 8085 microprocessor
Architecture of 8085 microprocessorAMAN SRIVASTAVA
 
Direct memory access (dma)
Direct memory access (dma)Direct memory access (dma)
Direct memory access (dma)Zubair Khalid
 
Input Output Organization
Input Output OrganizationInput Output Organization
Input Output OrganizationKamal Acharya
 
Computer organization memory
Computer organization memoryComputer organization memory
Computer organization memoryDeepak John
 
Direct memory access
Direct memory accessDirect memory access
Direct memory accessshubham kuwar
 
Computer registers
Computer registersComputer registers
Computer registersDeepikaT13
 
Registers and-common-bus
Registers and-common-busRegisters and-common-bus
Registers and-common-busAnuj Modi
 
Algorithm and Flowcharts
Algorithm and FlowchartsAlgorithm and Flowcharts
Algorithm and FlowchartsSURBHI SAROHA
 
Computer architecture pipelining
Computer architecture pipeliningComputer architecture pipelining
Computer architecture pipeliningMazin Alwaaly
 

What's hot (20)

Interrupts
InterruptsInterrupts
Interrupts
 
Computer architecture input output organization
Computer architecture input output organizationComputer architecture input output organization
Computer architecture input output organization
 
Asynchronous data transfer
Asynchronous data transferAsynchronous data transfer
Asynchronous data transfer
 
Interrupts
InterruptsInterrupts
Interrupts
 
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
 
Architecture of 8085 microprocessor
Architecture of 8085 microprocessorArchitecture of 8085 microprocessor
Architecture of 8085 microprocessor
 
Hardwired control
Hardwired controlHardwired control
Hardwired control
 
pipelining
pipeliningpipelining
pipelining
 
Direct memory access (dma)
Direct memory access (dma)Direct memory access (dma)
Direct memory access (dma)
 
Input Output Organization
Input Output OrganizationInput Output Organization
Input Output Organization
 
Presentation on risc pipeline
Presentation on risc pipelinePresentation on risc pipeline
Presentation on risc pipeline
 
Computer organization memory
Computer organization memoryComputer organization memory
Computer organization memory
 
Direct memory access
Direct memory accessDirect memory access
Direct memory access
 
Computer registers
Computer registersComputer registers
Computer registers
 
Interrupts ppt
Interrupts pptInterrupts ppt
Interrupts ppt
 
Registers and-common-bus
Registers and-common-busRegisters and-common-bus
Registers and-common-bus
 
Direct access memory
Direct access memoryDirect access memory
Direct access memory
 
Algorithm and Flowcharts
Algorithm and FlowchartsAlgorithm and Flowcharts
Algorithm and Flowcharts
 
Modes of transfer
Modes of transferModes of transfer
Modes of transfer
 
Computer architecture pipelining
Computer architecture pipeliningComputer architecture pipelining
Computer architecture pipelining
 

Similar to INTERRUPTS

Similar to INTERRUPTS (20)

Interrupts in 8085
Interrupts in 8085Interrupts in 8085
Interrupts in 8085
 
Interrupts
InterruptsInterrupts
Interrupts
 
interruptpresentaion-151207165807-lva1-app6892.pptx
interruptpresentaion-151207165807-lva1-app6892.pptxinterruptpresentaion-151207165807-lva1-app6892.pptx
interruptpresentaion-151207165807-lva1-app6892.pptx
 
Functions of the Operating System
Functions of the Operating SystemFunctions of the Operating System
Functions of the Operating System
 
Central Processing Unit (CPU) – Part 2
Central Processing Unit (CPU) – Part 2Central Processing Unit (CPU) – Part 2
Central Processing Unit (CPU) – Part 2
 
Exception handling in Pipelining in COA
Exception handling in Pipelining in COAException handling in Pipelining in COA
Exception handling in Pipelining in COA
 
MODES OF TRANSFER.pptx
MODES OF TRANSFER.pptxMODES OF TRANSFER.pptx
MODES OF TRANSFER.pptx
 
Interrupts in CPU
Interrupts in CPUInterrupts in CPU
Interrupts in CPU
 
Interrupts and types of interrupts
Interrupts and types of interruptsInterrupts and types of interrupts
Interrupts and types of interrupts
 
Interrupt 8085
Interrupt 8085Interrupt 8085
Interrupt 8085
 
Operatingsystems lecture2
Operatingsystems lecture2Operatingsystems lecture2
Operatingsystems lecture2
 
Basics of railway principles
Basics of railway principlesBasics of railway principles
Basics of railway principles
 
Computer architecture presentation
Computer architecture presentationComputer architecture presentation
Computer architecture presentation
 
Vino's 8086 interrupts
Vino's 8086 interruptsVino's 8086 interrupts
Vino's 8086 interrupts
 
Interrupts
InterruptsInterrupts
Interrupts
 
Timing n interrupt.pptx
Timing n interrupt.pptxTiming n interrupt.pptx
Timing n interrupt.pptx
 
Inerrupt
InerruptInerrupt
Inerrupt
 
Lect13
Lect13Lect13
Lect13
 
420214730-15cs34-module-2-pptx.pptx
420214730-15cs34-module-2-pptx.pptx420214730-15cs34-module-2-pptx.pptx
420214730-15cs34-module-2-pptx.pptx
 
Interrupts of 8086
Interrupts of 8086Interrupts of 8086
Interrupts of 8086
 

More from Zara Tariq

Implementation and comparison of Low pass filters in Frequency domain
Implementation and comparison of Low pass filters in Frequency domainImplementation and comparison of Low pass filters in Frequency domain
Implementation and comparison of Low pass filters in Frequency domainZara Tariq
 
Query optimization techniques in Apache Hive
Query optimization techniques in Apache Hive Query optimization techniques in Apache Hive
Query optimization techniques in Apache Hive Zara Tariq
 
Design and evaluation of an io controller for data protection
Design and evaluation of an io controller for data protectionDesign and evaluation of an io controller for data protection
Design and evaluation of an io controller for data protectionZara Tariq
 
Stochastic kronecker graphs
Stochastic kronecker graphsStochastic kronecker graphs
Stochastic kronecker graphsZara Tariq
 
Pull Vs. Push Production
Pull Vs. Push ProductionPull Vs. Push Production
Pull Vs. Push ProductionZara Tariq
 
Crime Record Management System (CRMS)
Crime Record Management System (CRMS)Crime Record Management System (CRMS)
Crime Record Management System (CRMS)Zara Tariq
 
Crime Record Management System (CRMS)
Crime Record Management System (CRMS)Crime Record Management System (CRMS)
Crime Record Management System (CRMS)Zara Tariq
 
Toys Vending Machine
Toys Vending MachineToys Vending Machine
Toys Vending MachineZara Tariq
 
An Integrated Cloud Computing Architectural Stack
An Integrated Cloud Computing Architectural Stack An Integrated Cloud Computing Architectural Stack
An Integrated Cloud Computing Architectural Stack Zara Tariq
 
Face Detection and Recognition System
Face Detection and Recognition SystemFace Detection and Recognition System
Face Detection and Recognition SystemZara Tariq
 

More from Zara Tariq (11)

Implementation and comparison of Low pass filters in Frequency domain
Implementation and comparison of Low pass filters in Frequency domainImplementation and comparison of Low pass filters in Frequency domain
Implementation and comparison of Low pass filters in Frequency domain
 
Query optimization techniques in Apache Hive
Query optimization techniques in Apache Hive Query optimization techniques in Apache Hive
Query optimization techniques in Apache Hive
 
Design and evaluation of an io controller for data protection
Design and evaluation of an io controller for data protectionDesign and evaluation of an io controller for data protection
Design and evaluation of an io controller for data protection
 
Stochastic kronecker graphs
Stochastic kronecker graphsStochastic kronecker graphs
Stochastic kronecker graphs
 
Pull Vs. Push Production
Pull Vs. Push ProductionPull Vs. Push Production
Pull Vs. Push Production
 
Crime Record Management System (CRMS)
Crime Record Management System (CRMS)Crime Record Management System (CRMS)
Crime Record Management System (CRMS)
 
Crime Record Management System (CRMS)
Crime Record Management System (CRMS)Crime Record Management System (CRMS)
Crime Record Management System (CRMS)
 
Toys Vending Machine
Toys Vending MachineToys Vending Machine
Toys Vending Machine
 
An Integrated Cloud Computing Architectural Stack
An Integrated Cloud Computing Architectural Stack An Integrated Cloud Computing Architectural Stack
An Integrated Cloud Computing Architectural Stack
 
Face Detection and Recognition System
Face Detection and Recognition SystemFace Detection and Recognition System
Face Detection and Recognition System
 
JSON
JSONJSON
JSON
 

Recently uploaded

Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineeringmalavadedarshan25
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)dollysharma2066
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfme23b1001
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .Satyam Kumar
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEroselinkalist12
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 

Recently uploaded (20)

Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineering
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdf
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETEINFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
INFLUENCE OF NANOSILICA ON THE PROPERTIES OF CONCRETE
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
 

INTERRUPTS

  • 1. INTERRUPTS 321 COMPUTER ARCHITECTURE AND ORGANIZATION MS SAIMA AMBER Presented By: Zara Tariq 2011/comp/BSCS/12537 1112639 Yumna Furqan 2011/comp/BSCS/12535 1112637
  • 2. INTERRUPTS  A signal from a device attached to a computer or from a program within the computer which causes the main program that operates the computer to stop and figure out what to do next.  Almost all personal (or larger) computers today are interrupt-driven  Mechanism by which other modules(e.g I/O) may interrupt normal sequence of processing.  Forced transfer of control to a procedure(handler) due to the external events(interrupts) or due to an erroneous(exceptions). Presented to Ms. Saima Amber
  • 3. INTERRUPT HANDLING  Mechanism  Allows interrupts/exceptions to be handled transparently to the executing process (application programs and operating system)  Procedure  When an interrupt Is received or an exception condition detection, the current task is suspended and transfer automatically goes to a handler  After the handler is complete, the interrupted task resumes without loss of continuity, unless recovery is not possible or the interrupt causes the currently running task to be terminated. Presented to Ms. Saima Amber
  • 4. TYPES OF INTERRUPTS  Program – Something that occurs as a result of program execution such as illegal instructions, arithmetic overflow, divide by zero, or memory handling error  Timer – Generated by one of the processor's internal timers so that the processor can perform some time-scheduled task  I/O – Generated by an I/O controller to request service from the processor such as keyboard, mouse, NIC, disk drive  Hardware failure – signifies some error condition with the hardware Presented to Ms. Saima Amber
  • 5. INTERRUPT HANDLING  CPU receives the interrupt request (IRQ) when running a program;  CPU save its state of execution via a context switch;  Begin execution of an interrupt handler/interrupt service routine (ISR);  When ISR finishes, CPU switch state back and continue the original program. Presented to Ms. Saima Amber
  • 6. PROGRAM FLOW CONTROL Presented to Ms. Saima Amber
  • 7. INTERRUPT CYCLE  Added to instruction cycle  Processor checks for interrupt  Indicated by an interrupt signal  If no interrupt, fetch next instruction  If interrupt pending:  Suspend execution of current program  Save context  Set PC to start address of interrupt handler routine  Process interrupt  Restore context and continue interrupted program Presented to Ms. Saima Amber
  • 8. INSTRUCTION CYCLE (WITH INTERRUPTS) STATE DIAGRAM Presented to Ms. Saima Amber
  • 9. MULTIPLE INTERRUPTS  Disable interrupts  Processor will ignore further interrupts while processing one interrupt.  Interrupts remain pending and are checked after first interrupt has been processed.  Interrupts handled in sequence as they occur.  Define priorities  Low priority interrupts can be interrupted by higher priority interrupts.  When higher priority interrupt has been processed, processor returns to previous interrupt. Presented to Ms. Saima Amber
  • 10. MULTIPLE INTERRUPTS (SEQUENTIAL) Presented to Ms. Saima Amber
  • 11. MULTIPLE INTERRUPTS (NESTED) Presented to Ms. Saima Amber
  • 12. Thank You All For Your Kind Attention Your Presenters: Zara Tariq & Yumna Furqan