SlideShare a Scribd company logo
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

Types of instructions
Types of instructionsTypes of instructions
Types of instructions
ihsanjamil
 
Instruction pipeline: Computer Architecture
Instruction pipeline: Computer ArchitectureInstruction pipeline: Computer Architecture
Instruction pipeline: Computer Architecture
InteX Research Lab
 
Memory Organization
Memory OrganizationMemory Organization
Memory Organization
Kamal Acharya
 
Process synchronization in Operating Systems
Process synchronization in Operating SystemsProcess synchronization in Operating Systems
Process synchronization in Operating Systems
Ritu Ranjan Shrivastwa
 
Input Output Organization
Input Output OrganizationInput Output Organization
Input Output Organization
Kamal Acharya
 
SCHEDULING ALGORITHMS
SCHEDULING ALGORITHMSSCHEDULING ALGORITHMS
SCHEDULING ALGORITHMS
Dhaval Sakhiya
 
Disk structure
Disk structureDisk structure
Disk structure
Shareb Ismaeel
 
Context switching
Context switchingContext switching
Context switching
DarakhshanNayyab
 
Interrupts and types of interrupts
Interrupts and types of interruptsInterrupts and types of interrupts
Interrupts and types of interrupts
Muhammad Sheharyar Asif
 
Basic Computer Organization and Design
Basic  Computer  Organization  and  DesignBasic  Computer  Organization  and  Design
Basic Computer Organization and Design
Aksum Institute of Technology(AIT, @Letsgo)
 
Instruction format
Instruction formatInstruction format
Instruction format
Sanjeev Patel
 
Pipeline hazard
Pipeline hazardPipeline hazard
Pipeline hazard
AJAL A J
 
Timing and control
Timing and controlTiming and control
Timing and control
chauhankapil
 
Interrupts ppt
Interrupts pptInterrupts ppt
Interrupts ppt
03446940736
 
Computer Organization and Architecture.
Computer Organization and Architecture.Computer Organization and Architecture.
Computer Organization and Architecture.
CS_GDRCST
 
Interrupts
InterruptsInterrupts
Interrupts
Albin Panakkal
 
Parallel processing
Parallel processingParallel processing
Parallel processing
rajshreemuthiah
 
Memory organization in computer architecture
Memory organization in computer architectureMemory organization in computer architecture
Memory organization in computer architecture
Faisal Hussain
 
Stack organization
Stack organizationStack organization
Stack organization
chauhankapil
 

What's hot (20)

Types of instructions
Types of instructionsTypes of instructions
Types of instructions
 
Array Processor
Array ProcessorArray Processor
Array Processor
 
Instruction pipeline: Computer Architecture
Instruction pipeline: Computer ArchitectureInstruction pipeline: Computer Architecture
Instruction pipeline: Computer Architecture
 
Memory Organization
Memory OrganizationMemory Organization
Memory Organization
 
Process synchronization in Operating Systems
Process synchronization in Operating SystemsProcess synchronization in Operating Systems
Process synchronization in Operating Systems
 
Input Output Organization
Input Output OrganizationInput Output Organization
Input Output Organization
 
SCHEDULING ALGORITHMS
SCHEDULING ALGORITHMSSCHEDULING ALGORITHMS
SCHEDULING ALGORITHMS
 
Disk structure
Disk structureDisk structure
Disk structure
 
Context switching
Context switchingContext switching
Context switching
 
Interrupts and types of interrupts
Interrupts and types of interruptsInterrupts and types of interrupts
Interrupts and types of interrupts
 
Basic Computer Organization and Design
Basic  Computer  Organization  and  DesignBasic  Computer  Organization  and  Design
Basic Computer Organization and Design
 
Instruction format
Instruction formatInstruction format
Instruction format
 
Pipeline hazard
Pipeline hazardPipeline hazard
Pipeline hazard
 
Timing and control
Timing and controlTiming and control
Timing and control
 
Interrupts ppt
Interrupts pptInterrupts ppt
Interrupts ppt
 
Computer Organization and Architecture.
Computer Organization and Architecture.Computer Organization and Architecture.
Computer Organization and Architecture.
 
Interrupts
InterruptsInterrupts
Interrupts
 
Parallel processing
Parallel processingParallel processing
Parallel processing
 
Memory organization in computer architecture
Memory organization in computer architectureMemory organization in computer architecture
Memory organization in computer architecture
 
Stack organization
Stack organizationStack organization
Stack organization
 

Viewers also liked

Input output systems ppt - cs2411
Input output systems ppt - cs2411Input output systems ppt - cs2411
Input output systems ppt - cs2411
Geerthik Varun
 
Io processing
Io processingIo processing
Io processingTech_MX
 
Interrupt handling
Interrupt handlingInterrupt handling
Interrupt handling
maverick2203
 
Direct Memory Access(DMA)
Direct Memory Access(DMA)Direct Memory Access(DMA)
Direct Memory Access(DMA)
Page Maker
 
Interrupts
InterruptsInterrupts
Interrupts
guest2e9811e
 
Interrupts
Interrupts Interrupts
Interrupts
Zara Tariq
 
Input Output - Computer Architecture
Input Output - Computer ArchitectureInput Output - Computer Architecture
Input Output - Computer Architecture
Maruf Abdullah (Rion)
 
Io techniques & its types
Io techniques & its typesIo techniques & its types
Io techniques & its typesNehal Naik
 

Viewers also liked (9)

Input output systems ppt - cs2411
Input output systems ppt - cs2411Input output systems ppt - cs2411
Input output systems ppt - cs2411
 
Io processing
Io processingIo processing
Io processing
 
Interrupt handling
Interrupt handlingInterrupt handling
Interrupt handling
 
Direct Memory Access(DMA)
Direct Memory Access(DMA)Direct Memory Access(DMA)
Direct Memory Access(DMA)
 
Interrupts
InterruptsInterrupts
Interrupts
 
Interrupts
Interrupts Interrupts
Interrupts
 
Input Output - Computer Architecture
Input Output - Computer ArchitectureInput Output - Computer Architecture
Input Output - Computer Architecture
 
Input output module
Input output moduleInput output module
Input output module
 
Io techniques & its types
Io techniques & its typesIo techniques & its types
Io techniques & its types
 

Similar to Interrupt

Computer oganization input-output
Computer oganization input-outputComputer oganization input-output
Computer oganization input-output
Deepak John
 
IO organization.ppt
IO organization.pptIO organization.ppt
IO organization.ppt
DeepaThirumurugan
 
Unit2 p1 io organization-97-2003
Unit2 p1 io organization-97-2003Unit2 p1 io organization-97-2003
Unit2 p1 io organization-97-2003
Swathi Veeradhi
 
Unit 5 I/O organization
Unit 5   I/O organizationUnit 5   I/O organization
Unit 5 I/O organizationchidabdu
 
chapter7-io organization.pptx
chapter7-io organization.pptxchapter7-io organization.pptx
chapter7-io organization.pptx
gracemann365
 
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
 
unit-5 ppt.ppt
unit-5 ppt.pptunit-5 ppt.ppt
unit-5 ppt.ppt
SheebaKelvin2
 
priority interrupt computer organization
priority interrupt computer organizationpriority interrupt computer organization
priority interrupt computer organization
chnrketan
 
Ca 2 note mano
Ca 2 note manoCa 2 note mano
Ca 2 note mano
Manoharan Ragavan
 
420214730-15cs34-module-2-pptx.pptx
420214730-15cs34-module-2-pptx.pptx420214730-15cs34-module-2-pptx.pptx
420214730-15cs34-module-2-pptx.pptx
ddscraft123
 
I/O Organization
I/O OrganizationI/O Organization
I/O Organization
Dhaval Bagal
 
Input Output Operations
Input Output OperationsInput Output Operations
Input Output Operationskdisthere
 
COMPUTER ORGANIZATION NOTES Unit 3 4
COMPUTER ORGANIZATION NOTES  Unit 3 4COMPUTER ORGANIZATION NOTES  Unit 3 4
COMPUTER ORGANIZATION NOTES Unit 3 4
Dr.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.ppt
ChABiDRazZaQ
 
Data transfer scheme
Data transfer schemeData transfer scheme
Data transfer scheme
kaavyabalachandran
 
Interrupts in 8051
Interrupts in 8051Interrupts in 8051
Interrupts in 8051
Sudhanshu Janwadkar
 
Interrupts.ppt
Interrupts.pptInterrupts.ppt
Interrupts.ppt
SasiBhushan22
 
Input - output organzation
Input - output organzationInput - output organzation
Input - output organzation
daxesh chauhan
 
Operating system 03 handling of interrupts
Operating system 03 handling of interruptsOperating system 03 handling of interrupts
Operating system 03 handling of interrupts
Vaibhav Khanna
 
operatingsystem03handlingofinterrupts-210603182850.pdf
operatingsystem03handlingofinterrupts-210603182850.pdfoperatingsystem03handlingofinterrupts-210603182850.pdf
operatingsystem03handlingofinterrupts-210603182850.pdf
ChetanRaut43
 

Similar to Interrupt (20)

Computer oganization input-output
Computer oganization input-outputComputer oganization input-output
Computer oganization input-output
 
IO organization.ppt
IO organization.pptIO organization.ppt
IO organization.ppt
 
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
 
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...
 
unit-5 ppt.ppt
unit-5 ppt.pptunit-5 ppt.ppt
unit-5 ppt.ppt
 
priority interrupt computer organization
priority interrupt computer organizationpriority interrupt computer organization
priority interrupt computer organization
 
Ca 2 note mano
Ca 2 note manoCa 2 note mano
Ca 2 note mano
 
420214730-15cs34-module-2-pptx.pptx
420214730-15cs34-module-2-pptx.pptx420214730-15cs34-module-2-pptx.pptx
420214730-15cs34-module-2-pptx.pptx
 
I/O Organization
I/O OrganizationI/O Organization
I/O Organization
 
Input Output Operations
Input Output OperationsInput Output Operations
Input Output Operations
 
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
 
Operating system 03 handling of interrupts
Operating system 03 handling of interruptsOperating system 03 handling of interrupts
Operating system 03 handling of interrupts
 
operatingsystem03handlingofinterrupts-210603182850.pdf
operatingsystem03handlingofinterrupts-210603182850.pdfoperatingsystem03handlingofinterrupts-210603182850.pdf
operatingsystem03handlingofinterrupts-210603182850.pdf
 

More from Siddique Ibrahim

List in Python
List in PythonList in Python
List in Python
Siddique Ibrahim
 
Python Control structures
Python Control structuresPython Control structures
Python Control structures
Siddique Ibrahim
 
Python programming introduction
Python programming introductionPython programming introduction
Python programming introduction
Siddique Ibrahim
 
Data mining basic fundamentals
Data mining basic fundamentalsData mining basic fundamentals
Data mining basic fundamentals
Siddique Ibrahim
 
Basic networking
Basic networkingBasic networking
Basic networking
Siddique Ibrahim
 
Virtualization Concepts
Virtualization ConceptsVirtualization Concepts
Virtualization Concepts
Siddique Ibrahim
 
Networking devices(siddique)
Networking devices(siddique)Networking devices(siddique)
Networking devices(siddique)
Siddique Ibrahim
 
Osi model 7 Layers
Osi model 7 LayersOsi model 7 Layers
Osi model 7 Layers
Siddique Ibrahim
 
Mysql grand
Mysql grandMysql grand
Mysql grand
Siddique Ibrahim
 
Getting started into mySQL
Getting started into mySQLGetting started into mySQL
Getting started into mySQL
Siddique Ibrahim
 
pipelining
pipeliningpipelining
pipelining
Siddique Ibrahim
 
Micro programmed control
Micro programmed controlMicro programmed control
Micro programmed control
Siddique Ibrahim
 
interface
interfaceinterface
interface
Siddique Ibrahim
 
Interrupt
InterruptInterrupt
Interrupt
Siddique Ibrahim
 
DMA
DMADMA
Io devies
Io deviesIo devies
Io devies
Siddique Ibrahim
 
Stack & queue
Stack & queueStack & queue
Stack & queue
Siddique Ibrahim
 
Metadata in data warehouse
Metadata in data warehouseMetadata in data warehouse
Metadata in data warehouse
Siddique Ibrahim
 
Data extraction, transformation, and loading
Data extraction, transformation, and loadingData extraction, transformation, and loading
Data extraction, transformation, and loading
Siddique Ibrahim
 

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
 
Basic networking
Basic networkingBasic networking
Basic networking
 
Virtualization Concepts
Virtualization ConceptsVirtualization Concepts
Virtualization Concepts
 
Networking devices(siddique)
Networking devices(siddique)Networking devices(siddique)
Networking devices(siddique)
 
Osi model 7 Layers
Osi model 7 LayersOsi model 7 Layers
Osi model 7 Layers
 
Mysql grand
Mysql grandMysql grand
Mysql grand
 
Getting started into mySQL
Getting started into mySQLGetting started into mySQL
Getting started into mySQL
 
pipelining
pipeliningpipelining
pipelining
 
Micro programmed control
Micro programmed controlMicro programmed control
Micro programmed control
 
interface
interfaceinterface
interface
 
Interrupt
InterruptInterrupt
Interrupt
 
DMA
DMADMA
DMA
 
Io devies
Io deviesIo devies
Io devies
 
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
 

Recently uploaded

How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
Product School
 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User Group
CatarinaPereira64715
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
Alison B. Lowndes
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
Thijs Feryn
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Jeffrey Haguewood
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
Product School
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
Elena Simperl
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
Product School
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Product School
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Inflectra
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
Sri Ambati
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
DanBrown980551
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
UiPathCommunity
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Ramesh Iyer
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
RTTS
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
Safe Software
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
Prayukth K V
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
OnBoard
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
Elena Simperl
 

Recently uploaded (20)

How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User Group
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
 

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