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
 
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
 
computer system structure
computer system structurecomputer system structure
computer system structure
 
Io pro
Io proIo pro
Io pro
 

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

Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 

Recently uploaded (20)

Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 

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