SlideShare a Scribd company logo
1 of 21
Interrupts
• There are many situations the processor can perform other
tasks while waiting for input/ output device to become ready.
• This to happen. We arrange the input/ output device to alert
the processor when it becomes ready.
• This is done by each can send a special hardware signal called
an interrupt to the processor.
• The bus control line called interrupt-request line is dedicated
for this purpose.
• A routine executed in response to an interrupt request is
called the interrupt- service routine.
Interrupt request
• Assume an interrupt req arrives during execution of
instruction i.
• The processor first completes execution of instruction i by
load the address of the first instruction of the interrupt-
service routine.
• Assume this address is hardwired in the processor.
• After execution of interrupt service routine , the processor
has to come back to instruction i+1.
Contd.,
• Hence, when an interrupt occurs, the content of PC, which
currently point to the i+1, must be put into the temporary
storage.
• At return of interrupt service routine reloads the PC from
that temp storage location, causing execution to resume at
instruction i+1.
• In many processor , the return address is saved on the
processor stack. Alternatively, saved in temp register.
ACK
• As part of interrupt, the processor must inform the device
that its request has been recognized so that it may remove
its interrupt- req signal.
• It may accomplished by special signal on the bus.
• An interrupt- Acknowledge signal.
• An interrupt service routine is similar to that of a
subroutine, performs a function required by the program
from which it is called.
• The task of saving and restoring information can be done by
processor.
• Saving registers increases the delay b/w the time an
interrupt req is received and start of execution of the
interrupt-service routine. This delay is called interrupt
latency.
Interrupt Hardware
• An input/ output device requests an interrupt by activating a
bus line called interrupt-request.
• Several input/ output devices can request an interrupt.
• A single interrupt request line may used for this purpose.
• All devices are connected to the line via switches to ground.
• To request an interrupt, a device closes its associated
switch.
• If all interrupt-request signals INTR1 to INTRn are inactive,
that is, if all switches are open, the voltage on the interrupt
request line will equal to Vdd. This is an inactivate state of
the line.
• When a device requests an interrupt by closing its switch,
the voltage on the line drops to 0, causing the interrupt-
request signal INTR received by the processor to go to 1.
• If closing of one (or) more switches that cause the line
value to drop to 0, the value of logical OR of the request
from individual devices, that is
• INTR=INTR1+INTR2+INTR3..............
• Use the complement form of INTR to name of the interrupt
signal on the common line because this signal is active in
the low voltage state
1.Enabling and disabling interrupts
• A processor has the facility to enable and disable interrupts
as desired.
• When a device request the interrupt during the processor
service for another interrupt, the result cause the processor
enter into the infinite loop.
• This can be handled by the following 2 ways:
 The processor ignore the interrupt request line(INTR) until
the Interrupt Service Routine(ISR) is completed.
 This can be done by using interrupt-Disable as first
instruction and interrupt-Enable as the last instruction.
• The second option is processor automatically disable
interrupts before starting the execution of the ISR.
• The status register PS stored in the stack with PC value.
• The processor set this register bit 1 when the interrupt
accept and when a return instruction is executed, the
contents of the PS are cleared (0)and stored in the stack
again.
2.Handling Multiple Devices
• When the number of devices initiating interrupts.
• For example, device X may request an interrupt while an
interrupt caused by device Y is being serviced.
• Hence all the device using the common interrupt line.
• Additional information require to identify the device that
activated the request.
• When the two devices activated the line at the same time,
we must break up the tie and chose one the device request
among two. Some scheme should be used by the processor.
2.1Polling scheme
• The device that raises the interrupt will set one of the bit
(IRQ) in status register to 1.
• The processor will poll the devices to find which raised an
interrupt first.
Disadvantage:
• Time spend in interrogating the IRQ bits of the devices that
may not be requesting any service.
2.2Vectored interrupts
• To reduce the time involved in the polling scheme, a device
requesting an interrupt may identify itself directly to the
processor.
• A device can send a special code to the processor over the
bus. The code is used to identify the device.
• If the interrupt produces a CALL to a predetermined
memory location, which is the starting address of ISR, then
that address is called vectored address and such interrupts
are called vectored interrupts.
3.Interrupt priority
• When a interrupt arrives from one (or) more devices
simultaneously, the processor has to decide which request
should be serviced first.
• The processor takes this decision with the help of interrupt
priorities.
• The processor accepts interrupt request having highest
priority.
• Each request assign a different priority level.
• The request received from the interrupt request line are sent
to a priority arbitration circuit in the processor.
• The request is accepted only if it has a higher priority level
than that currently assigned to the processor.
4.Controlling device request
• The processor allow only the input / output devices
requested(interrupt), that are being used by a given
program.
• Other devices should not be allowed to generate interrupt
requests even though they are ready to transfer the data.
• Hence, we need a mechanism in the interface circuits of
individual devices to control whether the device is allowed
to generate an interrupt request.
• Two mechanism for control request:
1. One is at the device end- interrupt enable bit in the control
register(IRQ).
2. Processor end- enable bit in the program status register(PS)
or priority structure determine whether a given interrupt
request will be accepted.
• System properties->View resource by type

More Related Content

What's hot

Input Output Organization
Input Output OrganizationInput Output Organization
Input Output OrganizationKamal Acharya
 
Input Output Operations
Input Output OperationsInput Output Operations
Input Output Operationskdisthere
 
input output Organization
input output Organizationinput output Organization
input output OrganizationAcad
 
Data transfer techniques 8085
Data transfer techniques 8085Data transfer techniques 8085
Data transfer techniques 8085ShivamSood22
 
Unit2 p1 io organization-97-2003
Unit2 p1 io organization-97-2003Unit2 p1 io organization-97-2003
Unit2 p1 io organization-97-2003Swathi Veeradhi
 
Unit 5 I/O organization
Unit 5   I/O organizationUnit 5   I/O organization
Unit 5 I/O organizationchidabdu
 
input and output organisation
input and output organisation input and output organisation
input and output organisation sree deepika
 
Unit 4 ca-input-output
Unit 4 ca-input-outputUnit 4 ca-input-output
Unit 4 ca-input-outputBBDITM LUCKNOW
 
Input output accessing
Input output accessingInput output accessing
Input output accessingankitraosingh
 
Unit – 2
Unit – 2Unit – 2
Unit – 2techbed
 
Computer organization
Computer organization Computer organization
Computer organization vishnu973656
 
Embedded system - Introduction to interfacing with peripherals
Embedded system - Introduction to interfacing with peripheralsEmbedded system - Introduction to interfacing with peripherals
Embedded system - Introduction to interfacing with peripheralsVibrant Technologies & Computers
 
USART - 8251 / usart-8251A Pallav Shukla
USART - 8251 / usart-8251A Pallav ShuklaUSART - 8251 / usart-8251A Pallav Shukla
USART - 8251 / usart-8251A Pallav ShuklaPallav Shukla
 

What's hot (20)

Input Output Organization
Input Output OrganizationInput Output Organization
Input Output Organization
 
Input Output Operations
Input Output OperationsInput Output Operations
Input Output Operations
 
interface
interfaceinterface
interface
 
input output Organization
input output Organizationinput output Organization
input output Organization
 
Data transfer techniques 8085
Data transfer techniques 8085Data transfer techniques 8085
Data transfer techniques 8085
 
Unit2 p1 io organization-97-2003
Unit2 p1 io organization-97-2003Unit2 p1 io organization-97-2003
Unit2 p1 io organization-97-2003
 
Unit 5 I/O organization
Unit 5   I/O organizationUnit 5   I/O organization
Unit 5 I/O organization
 
input and output organisation
input and output organisation input and output organisation
input and output organisation
 
Lecture 35
Lecture 35Lecture 35
Lecture 35
 
Unit 4 ca-input-output
Unit 4 ca-input-outputUnit 4 ca-input-output
Unit 4 ca-input-output
 
Unit 5
Unit 5Unit 5
Unit 5
 
I/O Organization
I/O OrganizationI/O Organization
I/O Organization
 
8251 USART
8251 USART8251 USART
8251 USART
 
Input output accessing
Input output accessingInput output accessing
Input output accessing
 
Unit – 2
Unit – 2Unit – 2
Unit – 2
 
i/o interface
i/o interfacei/o interface
i/o interface
 
Computer organization
Computer organization Computer organization
Computer organization
 
Embedded system - Introduction to interfacing with peripherals
Embedded system - Introduction to interfacing with peripheralsEmbedded system - Introduction to interfacing with peripherals
Embedded system - Introduction to interfacing with peripherals
 
USART - 8251 / usart-8251A Pallav Shukla
USART - 8251 / usart-8251A Pallav ShuklaUSART - 8251 / usart-8251A Pallav Shukla
USART - 8251 / usart-8251A Pallav Shukla
 
DATA TRANSFER SCHEMES OF 8085
DATA TRANSFER SCHEMES OF 8085DATA TRANSFER SCHEMES OF 8085
DATA TRANSFER SCHEMES OF 8085
 

Viewers also liked

Introduction To Computer Bus - www.thestuffpoint.com
Introduction To Computer Bus - www.thestuffpoint.comIntroduction To Computer Bus - www.thestuffpoint.com
Introduction To Computer Bus - www.thestuffpoint.comAbu Bakar Soomro
 
Compiler Components and their Generators - Traditional Parsing Algorithms
Compiler Components and their Generators - Traditional Parsing AlgorithmsCompiler Components and their Generators - Traditional Parsing Algorithms
Compiler Components and their Generators - Traditional Parsing AlgorithmsGuido Wachsmuth
 
Getting started into mySQL
Getting started into mySQLGetting started into mySQL
Getting started into mySQLSiddique Ibrahim
 
B tech cs-iii-guidelined for technical seminar
B tech cs-iii-guidelined for technical seminarB tech cs-iii-guidelined for technical seminar
B tech cs-iii-guidelined for technical seminarGautam Soni
 
Lecture 09 syntax analysis 05
Lecture 09 syntax analysis 05Lecture 09 syntax analysis 05
Lecture 09 syntax analysis 05Iffat Anjum
 
Networking devices(siddique)
Networking devices(siddique)Networking devices(siddique)
Networking devices(siddique)Siddique Ibrahim
 
Compiler Components and their Generators - LR Parsing
Compiler Components and their Generators - LR ParsingCompiler Components and their Generators - LR Parsing
Compiler Components and their Generators - LR ParsingGuido Wachsmuth
 
LALR Parser Presentation ppt
LALR Parser Presentation pptLALR Parser Presentation ppt
LALR Parser Presentation pptWPVKP.COM
 
seminar report on multiple access control protocol submitted by munesh
seminar report on multiple access control protocol submitted by munesh seminar report on multiple access control protocol submitted by munesh
seminar report on multiple access control protocol submitted by munesh meenamunesh
 

Viewers also liked (20)

DMA
DMADMA
DMA
 
Introduction To Computer Bus - www.thestuffpoint.com
Introduction To Computer Bus - www.thestuffpoint.comIntroduction To Computer Bus - www.thestuffpoint.com
Introduction To Computer Bus - www.thestuffpoint.com
 
110 lr and slr parsing
110 lr and slr parsing110 lr and slr parsing
110 lr and slr parsing
 
Compiler Components and their Generators - Traditional Parsing Algorithms
Compiler Components and their Generators - Traditional Parsing AlgorithmsCompiler Components and their Generators - Traditional Parsing Algorithms
Compiler Components and their Generators - Traditional Parsing Algorithms
 
Getting started into mySQL
Getting started into mySQLGetting started into mySQL
Getting started into mySQL
 
Ll1 exam structure
Ll1 exam structureLl1 exam structure
Ll1 exam structure
 
Mysql grand
Mysql grandMysql grand
Mysql grand
 
Ll1 exam prep
Ll1 exam prepLl1 exam prep
Ll1 exam prep
 
Virtualization Concepts
Virtualization ConceptsVirtualization Concepts
Virtualization Concepts
 
Micro programmed control
Micro programmed controlMicro programmed control
Micro programmed control
 
B tech cs-iii-guidelined for technical seminar
B tech cs-iii-guidelined for technical seminarB tech cs-iii-guidelined for technical seminar
B tech cs-iii-guidelined for technical seminar
 
Lecture 09 syntax analysis 05
Lecture 09 syntax analysis 05Lecture 09 syntax analysis 05
Lecture 09 syntax analysis 05
 
LL1 Ozymandias
LL1 OzymandiasLL1 Ozymandias
LL1 Ozymandias
 
LL Parsing
LL ParsingLL Parsing
LL Parsing
 
Networking devices(siddique)
Networking devices(siddique)Networking devices(siddique)
Networking devices(siddique)
 
Compiler Components and their Generators - LR Parsing
Compiler Components and their Generators - LR ParsingCompiler Components and their Generators - LR Parsing
Compiler Components and their Generators - LR Parsing
 
LALR Parser Presentation ppt
LALR Parser Presentation pptLALR Parser Presentation ppt
LALR Parser Presentation ppt
 
seminar report on multiple access control protocol submitted by munesh
seminar report on multiple access control protocol submitted by munesh seminar report on multiple access control protocol submitted by munesh
seminar report on multiple access control protocol submitted by munesh
 
Basic networking
Basic networkingBasic networking
Basic networking
 
DMA presentation [By- Digvijay]
DMA presentation [By- Digvijay]DMA presentation [By- Digvijay]
DMA presentation [By- Digvijay]
 

Similar to Interrupt

chapter7-io organization.pptx
chapter7-io organization.pptxchapter7-io organization.pptx
chapter7-io organization.pptxgracemann365
 
A transfer from I/O device to memory requires the execution of several instru...
A transfer from I/O device to memory requires the execution of several instru...A transfer from I/O device to memory requires the execution of several instru...
A transfer from I/O device to memory requires the execution of several instru...rsaravanakumar13
 
priority interrupt computer organization
priority interrupt computer organizationpriority interrupt computer organization
priority interrupt computer organizationchnrketan
 
420214730-15cs34-module-2-pptx.pptx
420214730-15cs34-module-2-pptx.pptx420214730-15cs34-module-2-pptx.pptx
420214730-15cs34-module-2-pptx.pptxddscraft123
 
COMPUTER ORGANIZATION NOTES Unit 3 4
COMPUTER ORGANIZATION NOTES  Unit 3 4COMPUTER ORGANIZATION NOTES  Unit 3 4
COMPUTER ORGANIZATION NOTES Unit 3 4Dr.MAYA NAYAK
 
03_Top Level View of Computer Function and Interconnection.ppt
03_Top Level View of Computer Function and Interconnection.ppt03_Top Level View of Computer Function and Interconnection.ppt
03_Top Level View of Computer Function and Interconnection.pptChABiDRazZaQ
 
Input - output organzation
Input - output organzationInput - output organzation
Input - output organzationdaxesh chauhan
 
operatingsystem03handlingofinterrupts-210603182850.pdf
operatingsystem03handlingofinterrupts-210603182850.pdfoperatingsystem03handlingofinterrupts-210603182850.pdf
operatingsystem03handlingofinterrupts-210603182850.pdfChetanRaut43
 
operatingsystem03handlingofinterrupts-210603182850.pptx
operatingsystem03handlingofinterrupts-210603182850.pptxoperatingsystem03handlingofinterrupts-210603182850.pptx
operatingsystem03handlingofinterrupts-210603182850.pptxChetanRaut43
 
Operating system 03 handling of interrupts
Operating system 03 handling of interruptsOperating system 03 handling of interrupts
Operating system 03 handling of interruptsVaibhav Khanna
 
Mca admission in india
Mca admission in indiaMca admission in india
Mca admission in indiaEdhole.com
 
Modes of transfer - Computer Organization & Architecture - Nithiyapriya Pasav...
Modes of transfer - Computer Organization & Architecture - Nithiyapriya Pasav...Modes of transfer - Computer Organization & Architecture - Nithiyapriya Pasav...
Modes of transfer - Computer Organization & Architecture - Nithiyapriya Pasav...priya Nithya
 
ghgfjfhgdjfdhgdhgfdgfdhgdhgfdhgzeka.pptx
ghgfjfhgdjfdhgdhgfdgfdhgdhgfdhgzeka.pptxghgfjfhgdjfdhgdhgfdgfdhgdhgfdhgzeka.pptx
ghgfjfhgdjfdhgdhgfdgfdhgdhgfdhgzeka.pptxEliasPetros
 
computer system structure
computer system structurecomputer system structure
computer system structureHAMZA AHMED
 

Similar to Interrupt (20)

IO organization.ppt
IO organization.pptIO organization.ppt
IO organization.ppt
 
chapter7-io organization.pptx
chapter7-io organization.pptxchapter7-io organization.pptx
chapter7-io organization.pptx
 
A transfer from I/O device to memory requires the execution of several instru...
A transfer from I/O device to memory requires the execution of several instru...A transfer from I/O device to memory requires the execution of several instru...
A transfer from I/O device to memory requires the execution of several instru...
 
priority interrupt computer organization
priority interrupt computer organizationpriority interrupt computer organization
priority interrupt computer organization
 
420214730-15cs34-module-2-pptx.pptx
420214730-15cs34-module-2-pptx.pptx420214730-15cs34-module-2-pptx.pptx
420214730-15cs34-module-2-pptx.pptx
 
unit-5 ppt.ppt
unit-5 ppt.pptunit-5 ppt.ppt
unit-5 ppt.ppt
 
COMPUTER ORGANIZATION NOTES Unit 3 4
COMPUTER ORGANIZATION NOTES  Unit 3 4COMPUTER ORGANIZATION NOTES  Unit 3 4
COMPUTER ORGANIZATION NOTES Unit 3 4
 
03_Top Level View of Computer Function and Interconnection.ppt
03_Top Level View of Computer Function and Interconnection.ppt03_Top Level View of Computer Function and Interconnection.ppt
03_Top Level View of Computer Function and Interconnection.ppt
 
Data transfer scheme
Data transfer schemeData transfer scheme
Data transfer scheme
 
Interrupts in 8051
Interrupts in 8051Interrupts in 8051
Interrupts in 8051
 
Interrupts.ppt
Interrupts.pptInterrupts.ppt
Interrupts.ppt
 
Input - output organzation
Input - output organzationInput - output organzation
Input - output organzation
 
operatingsystem03handlingofinterrupts-210603182850.pdf
operatingsystem03handlingofinterrupts-210603182850.pdfoperatingsystem03handlingofinterrupts-210603182850.pdf
operatingsystem03handlingofinterrupts-210603182850.pdf
 
operatingsystem03handlingofinterrupts-210603182850.pptx
operatingsystem03handlingofinterrupts-210603182850.pptxoperatingsystem03handlingofinterrupts-210603182850.pptx
operatingsystem03handlingofinterrupts-210603182850.pptx
 
Operating system 03 handling of interrupts
Operating system 03 handling of interruptsOperating system 03 handling of interrupts
Operating system 03 handling of interrupts
 
Mca admission in india
Mca admission in indiaMca admission in india
Mca admission in india
 
Modes of transfer - Computer Organization & Architecture - Nithiyapriya Pasav...
Modes of transfer - Computer Organization & Architecture - Nithiyapriya Pasav...Modes of transfer - Computer Organization & Architecture - Nithiyapriya Pasav...
Modes of transfer - Computer Organization & Architecture - Nithiyapriya Pasav...
 
Unit-4 (IO Interface).pptx
Unit-4 (IO Interface).pptxUnit-4 (IO Interface).pptx
Unit-4 (IO Interface).pptx
 
ghgfjfhgdjfdhgdhgfdgfdhgdhgfdhgzeka.pptx
ghgfjfhgdjfdhgdhgfdgfdhgdhgfdhgzeka.pptxghgfjfhgdjfdhgdhgfdgfdhgdhgfdhgzeka.pptx
ghgfjfhgdjfdhgdhgfdgfdhgdhgfdhgzeka.pptx
 
computer system structure
computer system structurecomputer system structure
computer system structure
 

More from Siddique Ibrahim (20)

List in Python
List in PythonList in Python
List in Python
 
Python Control structures
Python Control structuresPython Control structures
Python Control structures
 
Python programming introduction
Python programming introductionPython programming introduction
Python programming introduction
 
Data mining basic fundamentals
Data mining basic fundamentalsData mining basic fundamentals
Data mining basic fundamentals
 
Osi model 7 Layers
Osi model 7 LayersOsi model 7 Layers
Osi model 7 Layers
 
pipelining
pipeliningpipelining
pipelining
 
Hardwired control
Hardwired controlHardwired control
Hardwired control
 
Interrupt
InterruptInterrupt
Interrupt
 
Stack & queue
Stack & queueStack & queue
Stack & queue
 
Metadata in data warehouse
Metadata in data warehouseMetadata in data warehouse
Metadata in data warehouse
 
Data extraction, transformation, and loading
Data extraction, transformation, and loadingData extraction, transformation, and loading
Data extraction, transformation, and loading
 
Aggregate fact tables
Aggregate fact tablesAggregate fact tables
Aggregate fact tables
 
PHP variables
PHP  variablesPHP  variables
PHP variables
 
Php hypertext pre-processor
Php   hypertext pre-processorPhp   hypertext pre-processor
Php hypertext pre-processor
 
Cryptography basices
Cryptography basicesCryptography basices
Cryptography basices
 
Secondary storage devices
Secondary storage devicesSecondary storage devices
Secondary storage devices
 
Internal memory
Internal memoryInternal memory
Internal memory
 
Error detection and correction
Error detection and correctionError detection and correction
Error detection and correction
 
Domain name system
Domain name systemDomain name system
Domain name system
 
Distance vector routing
Distance vector routingDistance vector routing
Distance vector routing
 

Recently uploaded

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontologyjohnbeverley2021
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Victor Rentea
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Orbitshub
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityWSO2
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsNanddeep Nachan
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Angeliki Cooney
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...apidays
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusZilliz
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 

Recently uploaded (20)

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 

Interrupt

  • 2. • There are many situations the processor can perform other tasks while waiting for input/ output device to become ready. • This to happen. We arrange the input/ output device to alert the processor when it becomes ready. • This is done by each can send a special hardware signal called an interrupt to the processor. • The bus control line called interrupt-request line is dedicated for this purpose.
  • 3. • A routine executed in response to an interrupt request is called the interrupt- service routine.
  • 4.
  • 5.
  • 6. Interrupt request • Assume an interrupt req arrives during execution of instruction i. • The processor first completes execution of instruction i by load the address of the first instruction of the interrupt- service routine. • Assume this address is hardwired in the processor. • After execution of interrupt service routine , the processor has to come back to instruction i+1.
  • 7. Contd., • Hence, when an interrupt occurs, the content of PC, which currently point to the i+1, must be put into the temporary storage. • At return of interrupt service routine reloads the PC from that temp storage location, causing execution to resume at instruction i+1. • In many processor , the return address is saved on the processor stack. Alternatively, saved in temp register.
  • 8. ACK • As part of interrupt, the processor must inform the device that its request has been recognized so that it may remove its interrupt- req signal. • It may accomplished by special signal on the bus. • An interrupt- Acknowledge signal.
  • 9. • An interrupt service routine is similar to that of a subroutine, performs a function required by the program from which it is called. • The task of saving and restoring information can be done by processor. • Saving registers increases the delay b/w the time an interrupt req is received and start of execution of the interrupt-service routine. This delay is called interrupt latency.
  • 10. Interrupt Hardware • An input/ output device requests an interrupt by activating a bus line called interrupt-request. • Several input/ output devices can request an interrupt. • A single interrupt request line may used for this purpose. • All devices are connected to the line via switches to ground.
  • 11.
  • 12. • To request an interrupt, a device closes its associated switch. • If all interrupt-request signals INTR1 to INTRn are inactive, that is, if all switches are open, the voltage on the interrupt request line will equal to Vdd. This is an inactivate state of the line. • When a device requests an interrupt by closing its switch, the voltage on the line drops to 0, causing the interrupt- request signal INTR received by the processor to go to 1. • If closing of one (or) more switches that cause the line value to drop to 0, the value of logical OR of the request from individual devices, that is • INTR=INTR1+INTR2+INTR3.............. • Use the complement form of INTR to name of the interrupt signal on the common line because this signal is active in the low voltage state
  • 13. 1.Enabling and disabling interrupts • A processor has the facility to enable and disable interrupts as desired. • When a device request the interrupt during the processor service for another interrupt, the result cause the processor enter into the infinite loop. • This can be handled by the following 2 ways:  The processor ignore the interrupt request line(INTR) until the Interrupt Service Routine(ISR) is completed.  This can be done by using interrupt-Disable as first instruction and interrupt-Enable as the last instruction.
  • 14. • The second option is processor automatically disable interrupts before starting the execution of the ISR. • The status register PS stored in the stack with PC value. • The processor set this register bit 1 when the interrupt accept and when a return instruction is executed, the contents of the PS are cleared (0)and stored in the stack again.
  • 15. 2.Handling Multiple Devices • When the number of devices initiating interrupts. • For example, device X may request an interrupt while an interrupt caused by device Y is being serviced. • Hence all the device using the common interrupt line. • Additional information require to identify the device that activated the request. • When the two devices activated the line at the same time, we must break up the tie and chose one the device request among two. Some scheme should be used by the processor.
  • 16. 2.1Polling scheme • The device that raises the interrupt will set one of the bit (IRQ) in status register to 1. • The processor will poll the devices to find which raised an interrupt first. Disadvantage: • Time spend in interrogating the IRQ bits of the devices that may not be requesting any service.
  • 17. 2.2Vectored interrupts • To reduce the time involved in the polling scheme, a device requesting an interrupt may identify itself directly to the processor. • A device can send a special code to the processor over the bus. The code is used to identify the device. • If the interrupt produces a CALL to a predetermined memory location, which is the starting address of ISR, then that address is called vectored address and such interrupts are called vectored interrupts.
  • 18. 3.Interrupt priority • When a interrupt arrives from one (or) more devices simultaneously, the processor has to decide which request should be serviced first. • The processor takes this decision with the help of interrupt priorities. • The processor accepts interrupt request having highest priority. • Each request assign a different priority level. • The request received from the interrupt request line are sent to a priority arbitration circuit in the processor. • The request is accepted only if it has a higher priority level than that currently assigned to the processor.
  • 19.
  • 20. 4.Controlling device request • The processor allow only the input / output devices requested(interrupt), that are being used by a given program. • Other devices should not be allowed to generate interrupt requests even though they are ready to transfer the data. • Hence, we need a mechanism in the interface circuits of individual devices to control whether the device is allowed to generate an interrupt request. • Two mechanism for control request: 1. One is at the device end- interrupt enable bit in the control register(IRQ). 2. Processor end- enable bit in the program status register(PS) or priority structure determine whether a given interrupt request will be accepted.
  • 21. • System properties->View resource by type