SlideShare a Scribd company logo
INTERRUPTS OF 8086 MICROPROCESSOR
INTERRUPTS OF 8086 MICROPROCESSOR
• An Interrupt is either a Hardware
generated CALL (externally
derived from a hardware signal)
OR
• A Software-generated CALL
(internally derived from the
execution of an instruction or by
some other internal event
 An interrupt is used to cause a temporary
halt in the execution of program.
 The meaning of ‘interrupts’ is to break the
sequence of operation.
 While the Microprocessor is executing a
program, an ‘interrupt’ breaks the normal
sequence of execution of
instructions, diverts its execution to some
other program called Interrupt Service
Routine (ISR).
• After executing ISR, IRET returns the control
back again to the main program. Interrupt
processing is an alternative to polling.
The keyboard controller can hold only a
single keystroke. Therefore, the keyboard
controller must be freed before the next
keystroke arrives.
The keystroke is passed to the CPU
by putting it in the keyboard buffer. So, the
keyboard controller keeps on passing the
keystroke input to the CPU,
but how does the CPU attend to it? The
CPU is not at the disposal of the keyboard
controller; it is usually busy doing several
other operations. So, we need some
mechanism to indicate to the CPU that a
keystroke has arrived. How is this done?
There are two approaches to making sure
that the CPU pays attention:
 The CPU executes other program, as soon as a
key is pressed, the Keyboard generates an
interrupt. The CPU will response to the
interrupt – read the data. After that returns to
the original program. So by proper use of
interrupt, the CPU can serve many devices at
the “same time”
The Purpose of
Interrupts...
Interrupts are useful when interfacing I/O
devices at relatively low data transfer
rates, such as keyboard inputs.
Interrupt processing allows the processor to
execute other software while the keyboard
operator is thinking about what to type next.
When a key is pressed, the keyboard encoder
debounces the switch and puts out one pulse
that interrupts the microprocessor.
– a time line shows typing on a keyboard,
a printer removing data from
memory, and a program executing
– the keyboard interrupt service
procedure, called by the keyboard
interrupt, and the printer interrupt service
procedure each take little time to execute
INTERRUPTS OF 8086 MICROPROCESSOR
INTERRUPTS OF 8086 MICROPROCESSOR
TYPES OF INTERRUPT
 SOFTWARE INTERRUPTS: There are instructions in 8086 which
cause an interrupt.
• INT instructions with type number specified.
• INT 3, Break Point Interrupt instruction.
• INTO, Interrupt on overflow instruction.
 HARDWARE INTERRUPTS:
The primary sources of interrupts, however, are the PCs timer
chip, keyboard, serial ports, parallel ports, disk drives, CMOS real-
time clock, mouse, sound cards, and other peripheral devices.
INTERRUPTS OF 8086 MICROPROCESSOR
The interrupt vector table contains 256 four
byte entries,containg the CS:IP
Interrupt vectors for each of the 256 possible
interrupts. The table is used to locate the
interrupt service routine addresses for each
of those interrupts.
The Interrupt vector table is located in the
first 1024 bytes of memory at addresses
000000H-0003FFH.It contains the
address(segment and offset)of the interrupt
service provider
INTERRUPTS OF 8086 MICROPROCESSOR
The interrupt vector table for the microprocessor and (b) the contents
of an interrupt vector.
– the first five interrupt vectors are identical
in all Intel processors
– Intel reserves the first 32 interrupt vectors
– the last 224 vectors are user-available
– each is four bytes long in real mode and
contains the starting address of the
interrupt service procedure.
– the first two bytes contain the offset
address
– the last two contain the segment address
INTERRUPTS OF 8086 MICROPROCESSOR
TYPE 0
The divide error : whenever the results
from a division overflows or an attempt is
made to divide by zero.
INTERRUPTS OF 8086 MICROPROCESSOR
INTERRUPTS OF 8086 MICROPROCESSOR
Type 2
The non-maskable
interrupt occurs
when a logic 1 is
placed on the NMI
input pin to the
microprocessor. non-
maskable—it cannot
be disabled
INTERRUPTS OF 8086 MICROPROCESSOR
Type 3
A special one-byte instruction (INT 3)
that uses this vector to access its
interrupt-service procedure. often
used to store a breakpoint in a
program for debugging
INTERRUPTS OF 8086 MICROPROCESSOR
TYPE 4
Overflow is a special vector used with the INTO
instruction. The INTO instruction interrupts the
program if an overflow condition exists.
TYPE 5
The BOUND instruction compares a register
with boundaries stored in the memory. If the
contents of the register are greater than or
equal to the first word in memory and less
than or equal to the second word, no interrupt
occurs because the contents of the register are
within bounds. if the contents of the register
are out of bounds, a type 5 interrupt ensues as
reflected by the overflow flag (OF)
INTERRUPTS OF 8086 MICROPROCESSOR
INTERRUPTS OF 8086 MICROPROCESSOR
Type 7
The coprocessor not available
interrupt occurs when a
coprocessor is not found, as
dictated by the machine
status word (MSW or CR0)
coprocessor control bits. if an
ESC or WAIT instruction
executes and no coprocessor
is found, a type 7 exception
or interrupt occurs
Type 8
A double fault
interrupt is
activated when
two separate
interrupts
occur during
the same
instruction.
In computing, a double fault
is a serious type of error that
occurs when a central
processing unit (CPU) cannot
adequately handle a certain
type of system event that
requires the CPU’s immediate
attention. Double faults may
cause computer crashes and
error messages, automatic
restarting of the machine, and
the loss of any unsaved data.
They are often caused by
problems in the computer’s
hardware such as a bad
memory module or
overheating CPU.
Type 9
The coprocessor segment overrun
occurs if the ESC instruction
(coprocessor opcode) memory
operand extends beyond offset
address FFFFH in real mode.
 Type 10
An invalid task state segment interrupt
occurs in the protected mode if the TSS
is invalid because the segment limit field
is not 002BH or higher. usually because the
TSS is not initialized
 Type 11
The segment not present interrupt occurs
when the protected mode P bit (P = 0) in
a descriptor indicates that the segment is
not present or not valid.
• Type 12
A stack segment overrun
occurs if the stack segment is
not present (P = 0) in the
protected mode or if the limit of
the stack segment is
exceeded.
Type 13
The general protection fault occurs
for
most protection violations in
80286–Core2 in protected mode
system.
These errors occur in Windows as
general protection faults. A list of
these protection violations follows.
• Type 13
PROTECTION VIOLATIONS
o (a) Descriptor table limit exceeded
o (b) Privilege rules violated
o (c) Invalid descriptor segment type loaded
o (d) Write to code segment that is protected
o (e) Read from execute-only code segment
o (f) Write to read-only data segment
o (g) Segment limit exceeded
o (h) CPL = IOPL when executing
CTS, HLT, LGDT, LIDT, LLDT, LMSW, or LTR
o (i) CPL > IOPL when executing
CLI, IN, INS, LOCK, OUT, OUTS, and STI
(cont.)
Type 14
Page fault interrupts occur for any page
fault memory or code access in
80386, 80486, and Pentium–Core2
processors.
Type 16
Coprocessor error takes effect when a
coprocessor error (ERROR = 0) occurs
for ESCape or WAIT instructions for
80386, 80486, and Pentium–Core2 only.
Type 17
Alignment checks indicate word and
double word data are addressed at an
odd memory location (or incorrect
location, in the case of a double
word).
interrupt is active in 80486 and
Pentium–Core2
Type 18
A machine check activates a
system memory management
mode interrupt in Pentium–
Core2.
Ad

More Related Content

What's hot (20)

8086 modes
8086 modes8086 modes
8086 modes
PDFSHARE
 
8086 microprocessor-architecture
8086 microprocessor-architecture8086 microprocessor-architecture
8086 microprocessor-architecture
prasadpawaskar
 
80486 microprocessor
80486 microprocessor80486 microprocessor
80486 microprocessor
Mihika Shah
 
Unit 2 mpmc
Unit 2 mpmcUnit 2 mpmc
Unit 2 mpmc
tamilnesaner
 
8237 dma controller
8237 dma controller8237 dma controller
8237 dma controller
Tech_MX
 
Architecture of 8051 microcontroller))
Architecture of 8051 microcontroller))Architecture of 8051 microcontroller))
Architecture of 8051 microcontroller))
Ganesh Ram
 
8051 Microcontroller PPT's By Er. Swapnil Kaware
8051 Microcontroller PPT's By Er. Swapnil Kaware8051 Microcontroller PPT's By Er. Swapnil Kaware
8051 Microcontroller PPT's By Er. Swapnil Kaware
Prof. Swapnil V. Kaware
 
Addressing modes of 8086
Addressing modes of 8086Addressing modes of 8086
Addressing modes of 8086
saurav kumar
 
8086-instruction-set-ppt
 8086-instruction-set-ppt 8086-instruction-set-ppt
8086-instruction-set-ppt
jemimajerome
 
Interrupt 8085
Interrupt 8085Interrupt 8085
Interrupt 8085
Shubham Singh
 
System bus timing 8086
System bus timing 8086System bus timing 8086
System bus timing 8086
mpsrekha83
 
8051 timer counter
8051 timer counter8051 timer counter
8051 timer counter
vishalgohel12195
 
Pentium processor
Pentium processorPentium processor
Pentium processor
Pranjali Deshmukh
 
Interrupts in 8085
Interrupts in 8085Interrupts in 8085
Interrupts in 8085
Hetauda City College
 
Memory & I/O interfacing
Memory & I/O  interfacingMemory & I/O  interfacing
Memory & I/O interfacing
deval patel
 
Interfacing adc
Interfacing adcInterfacing adc
Interfacing adc
PRADEEP
 
Interrupts of 8085
Interrupts of 8085Interrupts of 8085
Interrupts of 8085
ShivamSood22
 
Interfacing LCD with 8051 Microcontroller
Interfacing LCD with 8051 MicrocontrollerInterfacing LCD with 8051 Microcontroller
Interfacing LCD with 8051 Microcontroller
Pantech ProLabs India Pvt Ltd
 
Memory Segmentation of 8086
Memory Segmentation of 8086Memory Segmentation of 8086
Memory Segmentation of 8086
Nikhil Kumar
 
Read & write
Read & writeRead & write
Read & write
malaybpramanik
 
8086 modes
8086 modes8086 modes
8086 modes
PDFSHARE
 
8086 microprocessor-architecture
8086 microprocessor-architecture8086 microprocessor-architecture
8086 microprocessor-architecture
prasadpawaskar
 
80486 microprocessor
80486 microprocessor80486 microprocessor
80486 microprocessor
Mihika Shah
 
8237 dma controller
8237 dma controller8237 dma controller
8237 dma controller
Tech_MX
 
Architecture of 8051 microcontroller))
Architecture of 8051 microcontroller))Architecture of 8051 microcontroller))
Architecture of 8051 microcontroller))
Ganesh Ram
 
8051 Microcontroller PPT's By Er. Swapnil Kaware
8051 Microcontroller PPT's By Er. Swapnil Kaware8051 Microcontroller PPT's By Er. Swapnil Kaware
8051 Microcontroller PPT's By Er. Swapnil Kaware
Prof. Swapnil V. Kaware
 
Addressing modes of 8086
Addressing modes of 8086Addressing modes of 8086
Addressing modes of 8086
saurav kumar
 
8086-instruction-set-ppt
 8086-instruction-set-ppt 8086-instruction-set-ppt
8086-instruction-set-ppt
jemimajerome
 
System bus timing 8086
System bus timing 8086System bus timing 8086
System bus timing 8086
mpsrekha83
 
Memory & I/O interfacing
Memory & I/O  interfacingMemory & I/O  interfacing
Memory & I/O interfacing
deval patel
 
Interfacing adc
Interfacing adcInterfacing adc
Interfacing adc
PRADEEP
 
Interrupts of 8085
Interrupts of 8085Interrupts of 8085
Interrupts of 8085
ShivamSood22
 
Memory Segmentation of 8086
Memory Segmentation of 8086Memory Segmentation of 8086
Memory Segmentation of 8086
Nikhil Kumar
 

Viewers also liked (6)

8086 Interrupts & With DOS and BIOS by vijay
8086 Interrupts &  With DOS and BIOS  by vijay8086 Interrupts &  With DOS and BIOS  by vijay
8086 Interrupts & With DOS and BIOS by vijay
Vijay Kumar
 
Interrupts
InterruptsInterrupts
Interrupts
Punjab College Of Technical Education
 
Interrupts
Interrupts Interrupts
Interrupts
Zara Tariq
 
Instruction formats-in-8086
Instruction formats-in-8086Instruction formats-in-8086
Instruction formats-in-8086
MNM Jain Engineering College
 
Basic Computer Organization and Design
Basic Computer Organization and DesignBasic Computer Organization and Design
Basic Computer Organization and Design
mekind
 
Interrupts
InterruptsInterrupts
Interrupts
guest2e9811e
 
Ad

Similar to INTERRUPTS OF 8086 MICROPROCESSOR (20)

Chapter 7 Interrupts in microprocessor and assembly language.pdf
Chapter 7 Interrupts in microprocessor and assembly language.pdfChapter 7 Interrupts in microprocessor and assembly language.pdf
Chapter 7 Interrupts in microprocessor and assembly language.pdf
Getnet Tigabie Askale -(GM)
 
Interrupts on 8086 microprocessor by vijay kumar.k
Interrupts on 8086 microprocessor by vijay kumar.kInterrupts on 8086 microprocessor by vijay kumar.k
Interrupts on 8086 microprocessor by vijay kumar.k
Vijay Kumar
 
LECTURE_8 Interrupts.pptx hello and thanks for the University of
LECTURE_8 Interrupts.pptx hello and thanks for the University ofLECTURE_8 Interrupts.pptx hello and thanks for the University of
LECTURE_8 Interrupts.pptx hello and thanks for the University of
bifahirpo2
 
Microcontroller part 2
Microcontroller part 2Microcontroller part 2
Microcontroller part 2
Keroles karam khalil
 
Unit 3 (Complete) - 8086 Interrupt Structure.pdf
Unit 3 (Complete) - 8086 Interrupt Structure.pdfUnit 3 (Complete) - 8086 Interrupt Structure.pdf
Unit 3 (Complete) - 8086 Interrupt Structure.pdf
kbfbuqsf
 
Assembly programming
Assembly programmingAssembly programming
Assembly programming
Omar Sanchez
 
Unit 3 timer and counter and there application .pptx
Unit 3 timer and counter and there application .pptxUnit 3 timer and counter and there application .pptx
Unit 3 timer and counter and there application .pptx
naveen088888
 
microprocessepjr chapter five-seven.pptx
microprocessepjr chapter five-seven.pptxmicroprocessepjr chapter five-seven.pptx
microprocessepjr chapter five-seven.pptx
TesfalegnYakob
 
DPA
DPADPA
DPA
Ramasubbu .P
 
3.12_8086 microprocessor Interrupts.pptx
3.12_8086 microprocessor Interrupts.pptx3.12_8086 microprocessor Interrupts.pptx
3.12_8086 microprocessor Interrupts.pptx
bahaha141
 
Linux interrupts
Linux interruptsLinux interrupts
Linux interrupts
Faisal Hassan
 
Timing n interrupt.pptx
Timing n interrupt.pptxTiming n interrupt.pptx
Timing n interrupt.pptx
JasaRChoudhary
 
Interrupts
InterruptsInterrupts
Interrupts
Islam Samir
 
Direct Memory Access & Interrrupts
Direct Memory Access & InterrruptsDirect Memory Access & Interrrupts
Direct Memory Access & Interrrupts
SharmilaChidaravalli
 
DEVICE DRIVERS AND INTERRUPTS SERVICE MECHANISM.pdf
DEVICE DRIVERS AND INTERRUPTS  SERVICE MECHANISM.pdfDEVICE DRIVERS AND INTERRUPTS  SERVICE MECHANISM.pdf
DEVICE DRIVERS AND INTERRUPTS SERVICE MECHANISM.pdf
AkritiPradhan2
 
Customizable Microprocessor design on Nexys 3 Spartan FPGA Board
Customizable Microprocessor design on Nexys 3 Spartan FPGA BoardCustomizable Microprocessor design on Nexys 3 Spartan FPGA Board
Customizable Microprocessor design on Nexys 3 Spartan FPGA Board
Bharat Biyani
 
Interrupts
InterruptsInterrupts
Interrupts
Jamia Hamdard
 
Iosystemspre final-160922112930
Iosystemspre final-160922112930Iosystemspre final-160922112930
Iosystemspre final-160922112930
marangburu42
 
MICROPROCESSOR_Anurad gor systej ndjksauduiha MAITY.pptx
MICROPROCESSOR_Anurad gor systej ndjksauduiha MAITY.pptxMICROPROCESSOR_Anurad gor systej ndjksauduiha MAITY.pptx
MICROPROCESSOR_Anurad gor systej ndjksauduiha MAITY.pptx
vapopi5316
 
Al2ed chapter14
Al2ed chapter14Al2ed chapter14
Al2ed chapter14
Abdullelah Al-Fahad
 
Chapter 7 Interrupts in microprocessor and assembly language.pdf
Chapter 7 Interrupts in microprocessor and assembly language.pdfChapter 7 Interrupts in microprocessor and assembly language.pdf
Chapter 7 Interrupts in microprocessor and assembly language.pdf
Getnet Tigabie Askale -(GM)
 
Interrupts on 8086 microprocessor by vijay kumar.k
Interrupts on 8086 microprocessor by vijay kumar.kInterrupts on 8086 microprocessor by vijay kumar.k
Interrupts on 8086 microprocessor by vijay kumar.k
Vijay Kumar
 
LECTURE_8 Interrupts.pptx hello and thanks for the University of
LECTURE_8 Interrupts.pptx hello and thanks for the University ofLECTURE_8 Interrupts.pptx hello and thanks for the University of
LECTURE_8 Interrupts.pptx hello and thanks for the University of
bifahirpo2
 
Unit 3 (Complete) - 8086 Interrupt Structure.pdf
Unit 3 (Complete) - 8086 Interrupt Structure.pdfUnit 3 (Complete) - 8086 Interrupt Structure.pdf
Unit 3 (Complete) - 8086 Interrupt Structure.pdf
kbfbuqsf
 
Assembly programming
Assembly programmingAssembly programming
Assembly programming
Omar Sanchez
 
Unit 3 timer and counter and there application .pptx
Unit 3 timer and counter and there application .pptxUnit 3 timer and counter and there application .pptx
Unit 3 timer and counter and there application .pptx
naveen088888
 
microprocessepjr chapter five-seven.pptx
microprocessepjr chapter five-seven.pptxmicroprocessepjr chapter five-seven.pptx
microprocessepjr chapter five-seven.pptx
TesfalegnYakob
 
3.12_8086 microprocessor Interrupts.pptx
3.12_8086 microprocessor Interrupts.pptx3.12_8086 microprocessor Interrupts.pptx
3.12_8086 microprocessor Interrupts.pptx
bahaha141
 
Timing n interrupt.pptx
Timing n interrupt.pptxTiming n interrupt.pptx
Timing n interrupt.pptx
JasaRChoudhary
 
Direct Memory Access & Interrrupts
Direct Memory Access & InterrruptsDirect Memory Access & Interrrupts
Direct Memory Access & Interrrupts
SharmilaChidaravalli
 
DEVICE DRIVERS AND INTERRUPTS SERVICE MECHANISM.pdf
DEVICE DRIVERS AND INTERRUPTS  SERVICE MECHANISM.pdfDEVICE DRIVERS AND INTERRUPTS  SERVICE MECHANISM.pdf
DEVICE DRIVERS AND INTERRUPTS SERVICE MECHANISM.pdf
AkritiPradhan2
 
Customizable Microprocessor design on Nexys 3 Spartan FPGA Board
Customizable Microprocessor design on Nexys 3 Spartan FPGA BoardCustomizable Microprocessor design on Nexys 3 Spartan FPGA Board
Customizable Microprocessor design on Nexys 3 Spartan FPGA Board
Bharat Biyani
 
Iosystemspre final-160922112930
Iosystemspre final-160922112930Iosystemspre final-160922112930
Iosystemspre final-160922112930
marangburu42
 
MICROPROCESSOR_Anurad gor systej ndjksauduiha MAITY.pptx
MICROPROCESSOR_Anurad gor systej ndjksauduiha MAITY.pptxMICROPROCESSOR_Anurad gor systej ndjksauduiha MAITY.pptx
MICROPROCESSOR_Anurad gor systej ndjksauduiha MAITY.pptx
vapopi5316
 
Ad

Recently uploaded (20)

AI Chatbots & Software Development Teams
AI Chatbots & Software Development TeamsAI Chatbots & Software Development Teams
AI Chatbots & Software Development Teams
Joe Krall
 
Deepfake Phishing: A New Frontier in Cyber Threats
Deepfake Phishing: A New Frontier in Cyber ThreatsDeepfake Phishing: A New Frontier in Cyber Threats
Deepfake Phishing: A New Frontier in Cyber Threats
RaviKumar256934
 
Slide share PPT of SOx control technologies.pptx
Slide share PPT of SOx control technologies.pptxSlide share PPT of SOx control technologies.pptx
Slide share PPT of SOx control technologies.pptx
vvsasane
 
acid base ppt and their specific application in food
acid base ppt and their specific application in foodacid base ppt and their specific application in food
acid base ppt and their specific application in food
Fatehatun Noor
 
Water Industry Process Automation & Control Monthly May 2025
Water Industry Process Automation & Control Monthly May 2025Water Industry Process Automation & Control Monthly May 2025
Water Industry Process Automation & Control Monthly May 2025
Water Industry Process Automation & Control
 
Slide share PPT of NOx control technologies.pptx
Slide share PPT of  NOx control technologies.pptxSlide share PPT of  NOx control technologies.pptx
Slide share PPT of NOx control technologies.pptx
vvsasane
 
Dahua Smart Cityyyyyyyyyyyyyyyyyy2025.pdf
Dahua Smart Cityyyyyyyyyyyyyyyyyy2025.pdfDahua Smart Cityyyyyyyyyyyyyyyyyy2025.pdf
Dahua Smart Cityyyyyyyyyyyyyyyyyy2025.pdf
PawachMetharattanara
 
698642933-DdocfordownloadEEP-FAKE-PPT.pptx
698642933-DdocfordownloadEEP-FAKE-PPT.pptx698642933-DdocfordownloadEEP-FAKE-PPT.pptx
698642933-DdocfordownloadEEP-FAKE-PPT.pptx
speedcomcyber25
 
Understand water laser communication using Arduino laser and solar panel
Understand water laser communication using Arduino laser and solar panelUnderstand water laser communication using Arduino laser and solar panel
Understand water laser communication using Arduino laser and solar panel
NaveenBotsa
 
[PyCon US 2025] Scaling the Mountain_ A Framework for Tackling Large-Scale Te...
[PyCon US 2025] Scaling the Mountain_ A Framework for Tackling Large-Scale Te...[PyCon US 2025] Scaling the Mountain_ A Framework for Tackling Large-Scale Te...
[PyCon US 2025] Scaling the Mountain_ A Framework for Tackling Large-Scale Te...
Jimmy Lai
 
Environment .................................
Environment .................................Environment .................................
Environment .................................
shadyozq9
 
Construction Materials (Paints) in Civil Engineering
Construction Materials (Paints) in Civil EngineeringConstruction Materials (Paints) in Civil Engineering
Construction Materials (Paints) in Civil Engineering
Lavish Kashyap
 
Mode-Wise Corridor Level Travel-Time Estimation Using Machine Learning Models
Mode-Wise Corridor Level Travel-Time Estimation Using Machine Learning ModelsMode-Wise Corridor Level Travel-Time Estimation Using Machine Learning Models
Mode-Wise Corridor Level Travel-Time Estimation Using Machine Learning Models
Journal of Soft Computing in Civil Engineering
 
IPC-7711D-7721D_ EN 2023 TOC Rework, Modification and Repair of Electronic As...
IPC-7711D-7721D_ EN 2023 TOC Rework, Modification and Repair of Electronic As...IPC-7711D-7721D_ EN 2023 TOC Rework, Modification and Repair of Electronic As...
IPC-7711D-7721D_ EN 2023 TOC Rework, Modification and Repair of Electronic As...
ssuserd9338b
 
Lecture - 7 Canals of the topic of the civil engineering
Lecture - 7  Canals of the topic of the civil engineeringLecture - 7  Canals of the topic of the civil engineering
Lecture - 7 Canals of the topic of the civil engineering
MJawadkhan1
 
Machine foundation notes for civil engineering students
Machine foundation notes for civil engineering studentsMachine foundation notes for civil engineering students
Machine foundation notes for civil engineering students
DYPCET
 
Introduction to Additive Manufacturing(3D printing)
Introduction to Additive Manufacturing(3D printing)Introduction to Additive Manufacturing(3D printing)
Introduction to Additive Manufacturing(3D printing)
vijimech408
 
Agents chapter of Artificial intelligence
Agents chapter of Artificial intelligenceAgents chapter of Artificial intelligence
Agents chapter of Artificial intelligence
DebdeepMukherjee9
 
860556374-10280271.pptx PETROLEUM COKE CALCINATION PLANT
860556374-10280271.pptx PETROLEUM COKE CALCINATION PLANT860556374-10280271.pptx PETROLEUM COKE CALCINATION PLANT
860556374-10280271.pptx PETROLEUM COKE CALCINATION PLANT
Pierre Celestin Eyock
 
Frontend Architecture Diagram/Guide For Frontend Engineers
Frontend Architecture Diagram/Guide For Frontend EngineersFrontend Architecture Diagram/Guide For Frontend Engineers
Frontend Architecture Diagram/Guide For Frontend Engineers
Michael Hertzberg
 
AI Chatbots & Software Development Teams
AI Chatbots & Software Development TeamsAI Chatbots & Software Development Teams
AI Chatbots & Software Development Teams
Joe Krall
 
Deepfake Phishing: A New Frontier in Cyber Threats
Deepfake Phishing: A New Frontier in Cyber ThreatsDeepfake Phishing: A New Frontier in Cyber Threats
Deepfake Phishing: A New Frontier in Cyber Threats
RaviKumar256934
 
Slide share PPT of SOx control technologies.pptx
Slide share PPT of SOx control technologies.pptxSlide share PPT of SOx control technologies.pptx
Slide share PPT of SOx control technologies.pptx
vvsasane
 
acid base ppt and their specific application in food
acid base ppt and their specific application in foodacid base ppt and their specific application in food
acid base ppt and their specific application in food
Fatehatun Noor
 
Slide share PPT of NOx control technologies.pptx
Slide share PPT of  NOx control technologies.pptxSlide share PPT of  NOx control technologies.pptx
Slide share PPT of NOx control technologies.pptx
vvsasane
 
Dahua Smart Cityyyyyyyyyyyyyyyyyy2025.pdf
Dahua Smart Cityyyyyyyyyyyyyyyyyy2025.pdfDahua Smart Cityyyyyyyyyyyyyyyyyy2025.pdf
Dahua Smart Cityyyyyyyyyyyyyyyyyy2025.pdf
PawachMetharattanara
 
698642933-DdocfordownloadEEP-FAKE-PPT.pptx
698642933-DdocfordownloadEEP-FAKE-PPT.pptx698642933-DdocfordownloadEEP-FAKE-PPT.pptx
698642933-DdocfordownloadEEP-FAKE-PPT.pptx
speedcomcyber25
 
Understand water laser communication using Arduino laser and solar panel
Understand water laser communication using Arduino laser and solar panelUnderstand water laser communication using Arduino laser and solar panel
Understand water laser communication using Arduino laser and solar panel
NaveenBotsa
 
[PyCon US 2025] Scaling the Mountain_ A Framework for Tackling Large-Scale Te...
[PyCon US 2025] Scaling the Mountain_ A Framework for Tackling Large-Scale Te...[PyCon US 2025] Scaling the Mountain_ A Framework for Tackling Large-Scale Te...
[PyCon US 2025] Scaling the Mountain_ A Framework for Tackling Large-Scale Te...
Jimmy Lai
 
Environment .................................
Environment .................................Environment .................................
Environment .................................
shadyozq9
 
Construction Materials (Paints) in Civil Engineering
Construction Materials (Paints) in Civil EngineeringConstruction Materials (Paints) in Civil Engineering
Construction Materials (Paints) in Civil Engineering
Lavish Kashyap
 
IPC-7711D-7721D_ EN 2023 TOC Rework, Modification and Repair of Electronic As...
IPC-7711D-7721D_ EN 2023 TOC Rework, Modification and Repair of Electronic As...IPC-7711D-7721D_ EN 2023 TOC Rework, Modification and Repair of Electronic As...
IPC-7711D-7721D_ EN 2023 TOC Rework, Modification and Repair of Electronic As...
ssuserd9338b
 
Lecture - 7 Canals of the topic of the civil engineering
Lecture - 7  Canals of the topic of the civil engineeringLecture - 7  Canals of the topic of the civil engineering
Lecture - 7 Canals of the topic of the civil engineering
MJawadkhan1
 
Machine foundation notes for civil engineering students
Machine foundation notes for civil engineering studentsMachine foundation notes for civil engineering students
Machine foundation notes for civil engineering students
DYPCET
 
Introduction to Additive Manufacturing(3D printing)
Introduction to Additive Manufacturing(3D printing)Introduction to Additive Manufacturing(3D printing)
Introduction to Additive Manufacturing(3D printing)
vijimech408
 
Agents chapter of Artificial intelligence
Agents chapter of Artificial intelligenceAgents chapter of Artificial intelligence
Agents chapter of Artificial intelligence
DebdeepMukherjee9
 
860556374-10280271.pptx PETROLEUM COKE CALCINATION PLANT
860556374-10280271.pptx PETROLEUM COKE CALCINATION PLANT860556374-10280271.pptx PETROLEUM COKE CALCINATION PLANT
860556374-10280271.pptx PETROLEUM COKE CALCINATION PLANT
Pierre Celestin Eyock
 
Frontend Architecture Diagram/Guide For Frontend Engineers
Frontend Architecture Diagram/Guide For Frontend EngineersFrontend Architecture Diagram/Guide For Frontend Engineers
Frontend Architecture Diagram/Guide For Frontend Engineers
Michael Hertzberg
 

INTERRUPTS OF 8086 MICROPROCESSOR

  • 3. • An Interrupt is either a Hardware generated CALL (externally derived from a hardware signal) OR • A Software-generated CALL (internally derived from the execution of an instruction or by some other internal event
  • 4.  An interrupt is used to cause a temporary halt in the execution of program.  The meaning of ‘interrupts’ is to break the sequence of operation.  While the Microprocessor is executing a program, an ‘interrupt’ breaks the normal sequence of execution of instructions, diverts its execution to some other program called Interrupt Service Routine (ISR). • After executing ISR, IRET returns the control back again to the main program. Interrupt processing is an alternative to polling.
  • 5. The keyboard controller can hold only a single keystroke. Therefore, the keyboard controller must be freed before the next keystroke arrives. The keystroke is passed to the CPU by putting it in the keyboard buffer. So, the keyboard controller keeps on passing the keystroke input to the CPU, but how does the CPU attend to it? The CPU is not at the disposal of the keyboard controller; it is usually busy doing several other operations. So, we need some mechanism to indicate to the CPU that a keystroke has arrived. How is this done? There are two approaches to making sure that the CPU pays attention:
  • 6.  The CPU executes other program, as soon as a key is pressed, the Keyboard generates an interrupt. The CPU will response to the interrupt – read the data. After that returns to the original program. So by proper use of interrupt, the CPU can serve many devices at the “same time”
  • 8. Interrupts are useful when interfacing I/O devices at relatively low data transfer rates, such as keyboard inputs. Interrupt processing allows the processor to execute other software while the keyboard operator is thinking about what to type next. When a key is pressed, the keyboard encoder debounces the switch and puts out one pulse that interrupts the microprocessor.
  • 9. – a time line shows typing on a keyboard, a printer removing data from memory, and a program executing – the keyboard interrupt service procedure, called by the keyboard interrupt, and the printer interrupt service procedure each take little time to execute
  • 12. TYPES OF INTERRUPT  SOFTWARE INTERRUPTS: There are instructions in 8086 which cause an interrupt. • INT instructions with type number specified. • INT 3, Break Point Interrupt instruction. • INTO, Interrupt on overflow instruction.  HARDWARE INTERRUPTS: The primary sources of interrupts, however, are the PCs timer chip, keyboard, serial ports, parallel ports, disk drives, CMOS real- time clock, mouse, sound cards, and other peripheral devices.
  • 14. The interrupt vector table contains 256 four byte entries,containg the CS:IP Interrupt vectors for each of the 256 possible interrupts. The table is used to locate the interrupt service routine addresses for each of those interrupts. The Interrupt vector table is located in the first 1024 bytes of memory at addresses 000000H-0003FFH.It contains the address(segment and offset)of the interrupt service provider
  • 16. The interrupt vector table for the microprocessor and (b) the contents of an interrupt vector. – the first five interrupt vectors are identical in all Intel processors – Intel reserves the first 32 interrupt vectors – the last 224 vectors are user-available – each is four bytes long in real mode and contains the starting address of the interrupt service procedure. – the first two bytes contain the offset address – the last two contain the segment address
  • 18. TYPE 0 The divide error : whenever the results from a division overflows or an attempt is made to divide by zero.
  • 21. Type 2 The non-maskable interrupt occurs when a logic 1 is placed on the NMI input pin to the microprocessor. non- maskable—it cannot be disabled
  • 23. Type 3 A special one-byte instruction (INT 3) that uses this vector to access its interrupt-service procedure. often used to store a breakpoint in a program for debugging
  • 25. TYPE 4 Overflow is a special vector used with the INTO instruction. The INTO instruction interrupts the program if an overflow condition exists.
  • 26. TYPE 5 The BOUND instruction compares a register with boundaries stored in the memory. If the contents of the register are greater than or equal to the first word in memory and less than or equal to the second word, no interrupt occurs because the contents of the register are within bounds. if the contents of the register are out of bounds, a type 5 interrupt ensues as reflected by the overflow flag (OF)
  • 29. Type 7 The coprocessor not available interrupt occurs when a coprocessor is not found, as dictated by the machine status word (MSW or CR0) coprocessor control bits. if an ESC or WAIT instruction executes and no coprocessor is found, a type 7 exception or interrupt occurs
  • 30. Type 8 A double fault interrupt is activated when two separate interrupts occur during the same instruction.
  • 31. In computing, a double fault is a serious type of error that occurs when a central processing unit (CPU) cannot adequately handle a certain type of system event that requires the CPU’s immediate attention. Double faults may cause computer crashes and error messages, automatic restarting of the machine, and the loss of any unsaved data. They are often caused by problems in the computer’s hardware such as a bad memory module or overheating CPU.
  • 32. Type 9 The coprocessor segment overrun occurs if the ESC instruction (coprocessor opcode) memory operand extends beyond offset address FFFFH in real mode.
  • 33.  Type 10 An invalid task state segment interrupt occurs in the protected mode if the TSS is invalid because the segment limit field is not 002BH or higher. usually because the TSS is not initialized  Type 11 The segment not present interrupt occurs when the protected mode P bit (P = 0) in a descriptor indicates that the segment is not present or not valid.
  • 34. • Type 12 A stack segment overrun occurs if the stack segment is not present (P = 0) in the protected mode or if the limit of the stack segment is exceeded.
  • 35. Type 13 The general protection fault occurs for most protection violations in 80286–Core2 in protected mode system. These errors occur in Windows as general protection faults. A list of these protection violations follows.
  • 36. • Type 13 PROTECTION VIOLATIONS o (a) Descriptor table limit exceeded o (b) Privilege rules violated o (c) Invalid descriptor segment type loaded o (d) Write to code segment that is protected o (e) Read from execute-only code segment o (f) Write to read-only data segment o (g) Segment limit exceeded o (h) CPL = IOPL when executing CTS, HLT, LGDT, LIDT, LLDT, LMSW, or LTR o (i) CPL > IOPL when executing CLI, IN, INS, LOCK, OUT, OUTS, and STI (cont.)
  • 37. Type 14 Page fault interrupts occur for any page fault memory or code access in 80386, 80486, and Pentium–Core2 processors. Type 16 Coprocessor error takes effect when a coprocessor error (ERROR = 0) occurs for ESCape or WAIT instructions for 80386, 80486, and Pentium–Core2 only.
  • 38. Type 17 Alignment checks indicate word and double word data are addressed at an odd memory location (or incorrect location, in the case of a double word). interrupt is active in 80486 and Pentium–Core2
  • 39. Type 18 A machine check activates a system memory management mode interrupt in Pentium– Core2.
  翻译: