SlideShare a Scribd company logo
INTERRUPTS OF 8086
NAME- RAJEEV KUMAR
REGNO- 20UGELE08
DEPARTMENT- ELECTRICAL ENGINEERING
SEMESTER- IV
CONTENTS
1. INTERRUPTS
2. TYPES OF INTERRUPTS
3. Interrupt instruction of 8086
4. Instruction of interrupt
5. Reference
INTERRUPT
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.
When the Microprocessor is executing a program, an ‘interrupt’ breaks the normal
sequence of execution of instruction, diverts its execution to some other program called
Interrupt Service Routine (ISR).
After executing ISR, IRET return the control back again to the main program Interrupt
Processing is an alternative to, the polling.
HARDWERE
INTERRUPT
SOFTWERE
INTERRUPT
MASKABLE
INTERRUPT
NON- MASKABLE
INTERRUPT
HARDWARE INTERRUPT
.
The 8086 has two hardware interrupt pins, i.e. NMI and INTR. NMI is a
non-maskable interrupt and INTR is a maskable interrupt having lower
priority. One more interrupt pin associated is INTA called interrupt
acknowledge.
The primary sources of interrupts, however, are the PCs timer chip,
Keyboard, serial port, parallel port, disk drives, CMOS real-time clock,
Mouse, Sound Card and other Peripheral devices.
DIAGRAM OF INTERRUPT
NON-MASKABLE INTERRUPT
It is a single non-maskable interrupt pin (NMI) having higher
priority than the maskable interrupt request pin (INTR)and it is of
type 2 interrupt.
When this interrupt is activated, these actions take place −
•Completes the current instruction that is in progress.
•Pushes the Flag register values on to the stack.
•Pushes the CS (code segment) value and IP (instruction
pointer) value of the return address on to the stack.
•IP is loaded from the contents of the word location 00008H.
•CS is loaded from the contents of the next word location
0000AH .
•Interrupt flag and trap flag are reset to 0.
MASKABLE INTERRUPT
The INTR is a maskable interrupt because the microprocessor will be interrupted only if interrupts are
enabled using set interrupt flag instruction. It should not be enabled using clear interrupt Flag instruction.
The INTR interrupt is activated by an I/O port. If the interrupt is enabled and NMI is disabled, then the
microprocessor first completes the current execution and sends ‘0’ on INTA pin twice. The first ‘0’ means
INTA informs the external device to get ready and during the second ‘0’ the microprocessor receives the 8
bit, say X, from the programmable interrupt controller.
These actions are taken by the microprocessor −
•First completes the current instruction.
•Activates INTA output and receives the interrupt type, say X.
•Flag register value, CS value of the return address and IP value of the return
address are pushed on to the stack.
•IP value is loaded from the contents of word location X × 4
•CS is loaded from the contents of the next word location.
•Interrupt flag and trap flag is reset to 0
SOFTWARE INTERRUPT
When the source of interrupt is the execution of interrupt instruction,
this interrupt is known as software interrupt.
. IN 8086 there are about 256 interrupt such as INT 00H, INT 01H,
INT 02H to INT FFH
Whenever the INT interrupt instruction is executed, the
microprocessor automatically saves the contents of the flag register,
Instruction Pointer(IP) and the code segment register on the stack and
jump to specified memory location.
Software Interrupt are always generated by INT instruction and
Used for divided- by- Zero error, single step, NMI, break point, and
overflow interrupt.
Interrupt Type 0- INT
00H(Divide by zero Error)
The 8086 generates a type 0 interrupt, if the result of DIV or IDV operation is too
large to fit in the destination register.
For this interrupt ,8086 push the content of the flag register on the stack, reset IF
and TF and also pushes the content of CS and IP onto the stack.
Then 8086 gets the starting address of the interrupt service procedure from the
interrupt pointer table.
Therefore, Load the new value of CS from addresses 00002H and 00003H; also
load the new value of IP from addresses 00000H and 00001H.
Interrupt Type-INT 01H(Single Step)
During execution of sequence of instruction, there is frequently a need to examine the content of CPU’s register
and system memory.
This is done by executing one instruction at a time and then inspecting the registers and memory.
If they are correct, the user can give the command to go on and execute the next generation. This is called single
stepping.
When the CPU gets a type 1 interrupt, initially it pushes the flag register onto the stack, changing the trap bit
and pops the flag register back from the stack.
Then it loads the CS value from starting address 00006H and IP value from starting address 00004H for the type
1 interrupt service routine.
New Microsoft PowerPoint Presentation.pptx
Interrupt Instruction of 8086
The interrupt instruction of 8086 microprocessor are CLI, STI, INT n INTO, HLT and WAIT.
Mnemonics Function Operation
CLI Clear interrupt instruction,
IF affected.
IF 0
STI Set Interrupt flag, IF affected IF 1
INTO Interrupt overflow. TF and IF
affected.
Same as INT4
Reference
Soumitra Kumar Mandal
Microprocessor - 8086 Interrupts
(tutorialspoint.com)
This Photo by Unknown Author is licensed under CC BY-NC-ND

More Related Content

PPT
8086 micro processor
PPTX
Interrupts of microprocessor 8085
PPTX
3.programmable interrupt controller 8259
PPSX
8051 architecture
PPT
Architecture of 8086 Microprocessor
PPTX
Internal architecture-of-8086
PPTX
Math Co-processor 8087
PPTX
Interrupts in pic
8086 micro processor
Interrupts of microprocessor 8085
3.programmable interrupt controller 8259
8051 architecture
Architecture of 8086 Microprocessor
Internal architecture-of-8086
Math Co-processor 8087
Interrupts in pic

What's hot (20)

PPTX
Memory Segmentation of 8086
PPTX
Microprocessor 80286
PPTX
Timer counter in arm7(lpc2148)
PPT
8086 pin details
PPTX
Internal Architecture of 8086| msbte sem 4 microprocessor
PPT
Addressing modes of 8051
PPTX
8086 Microprocessor
PPT
80486 microprocessor
PPTX
Adc and dac
PDF
Instruction formats-in-8086
PPT
SAURABH MITRA-8086 MICROPROCESSOR
PPTX
Memory banking-of-8086-final
PDF
Unit 5
PPTX
Architecture of 8051
PDF
MICROPROCESSOR & MICROCONTROLLER 8086,8051 Notes
PPTX
8086 memory segmentation
PDF
Minimum and Maximum Modes of microprocessor 8086
PDF
80386 microprocessor system instruction
PDF
Unit 1 MPMC
Memory Segmentation of 8086
Microprocessor 80286
Timer counter in arm7(lpc2148)
8086 pin details
Internal Architecture of 8086| msbte sem 4 microprocessor
Addressing modes of 8051
8086 Microprocessor
80486 microprocessor
Adc and dac
Instruction formats-in-8086
SAURABH MITRA-8086 MICROPROCESSOR
Memory banking-of-8086-final
Unit 5
Architecture of 8051
MICROPROCESSOR & MICROCONTROLLER 8086,8051 Notes
8086 memory segmentation
Minimum and Maximum Modes of microprocessor 8086
80386 microprocessor system instruction
Unit 1 MPMC
Ad

Similar to New Microsoft PowerPoint Presentation.pptx (20)

PPTX
8086 Microprocessor Interrupts - UG Final Sem.pptx
PDF
Unit 3 (Complete) - 8086 Interrupt Structure.pdf
PPTX
Interrupts of 8086
PPTX
Interrupts
PPTX
3.12_8086 microprocessor Interrupts.pptx
PPTX
LECTURE_8 Interrupts.pptx hello and thanks for the University of
PPT
Vino's 8086 interrupts
PPTX
8086 interrupts in assembly language‏‏ lecture8.pptx
PPTX
Interrupts on 8086 microprocessor by vijay kumar.k
PPT
63071507 interrupts-up
PPSX
8086 Interrupts ...
PDF
Chapter 7 Interrupts in microprocessor and assembly language.pdf
PDF
Micro unit 8
PDF
27901623002_ARIJIT MITRA_Interrupts of 8086 microprocessor.pdf
PPTX
interrupts.pptx
PPTX
MPMC UNIT 2 MPMC UNIT 2 MPMC UNIT 2 MPMC UNIT 2
PPTX
MPMC UNIT 2 MPMC UNIT 2 MPMC UNIT 2 MPMC UNIT 2
PPT
Ch12 microprocessor interrupts
PPT
8251
PDF
5a_8085 Interrupts & Direct Memory Access_pptx.pdf
8086 Microprocessor Interrupts - UG Final Sem.pptx
Unit 3 (Complete) - 8086 Interrupt Structure.pdf
Interrupts of 8086
Interrupts
3.12_8086 microprocessor Interrupts.pptx
LECTURE_8 Interrupts.pptx hello and thanks for the University of
Vino's 8086 interrupts
8086 interrupts in assembly language‏‏ lecture8.pptx
Interrupts on 8086 microprocessor by vijay kumar.k
63071507 interrupts-up
8086 Interrupts ...
Chapter 7 Interrupts in microprocessor and assembly language.pdf
Micro unit 8
27901623002_ARIJIT MITRA_Interrupts of 8086 microprocessor.pdf
interrupts.pptx
MPMC UNIT 2 MPMC UNIT 2 MPMC UNIT 2 MPMC UNIT 2
MPMC UNIT 2 MPMC UNIT 2 MPMC UNIT 2 MPMC UNIT 2
Ch12 microprocessor interrupts
8251
5a_8085 Interrupts & Direct Memory Access_pptx.pdf
Ad

More from RAJEEVKUMARYADAV11 (7)

PPTX
New Microsoft PowerPoint Presentation (2).pptx
PPTX
Presentation1.pptx
PPTX
Environmental science ppt [autosaved]
PPTX
New microsoft power point presentation
PPTX
Environmental science ppt [autosaved]
PPTX
New microsoft power point presentation
PPTX
New microsoft power point presentation
New Microsoft PowerPoint Presentation (2).pptx
Presentation1.pptx
Environmental science ppt [autosaved]
New microsoft power point presentation
Environmental science ppt [autosaved]
New microsoft power point presentation
New microsoft power point presentation

Recently uploaded (20)

PPT
Introduction, IoT Design Methodology, Case Study on IoT System for Weather Mo...
PPTX
Information Storage and Retrieval Techniques Unit III
PDF
BIO-INSPIRED ARCHITECTURE FOR PARSIMONIOUS CONVERSATIONAL INTELLIGENCE : THE ...
PDF
null (2) bgfbg bfgb bfgb fbfg bfbgf b.pdf
PDF
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
PDF
Artificial Superintelligence (ASI) Alliance Vision Paper.pdf
PPTX
Safety Seminar civil to be ensured for safe working.
PDF
III.4.1.2_The_Space_Environment.p pdffdf
PDF
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
PPT
Total quality management ppt for engineering students
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PPTX
CURRICULAM DESIGN engineering FOR CSE 2025.pptx
PPTX
Fundamentals of Mechanical Engineering.pptx
PDF
737-MAX_SRG.pdf student reference guides
PDF
Categorization of Factors Affecting Classification Algorithms Selection
PDF
Analyzing Impact of Pakistan Economic Corridor on Import and Export in Pakist...
PDF
EXPLORING LEARNING ENGAGEMENT FACTORS INFLUENCING BEHAVIORAL, COGNITIVE, AND ...
PDF
PREDICTION OF DIABETES FROM ELECTRONIC HEALTH RECORDS
PPTX
UNIT 4 Total Quality Management .pptx
Introduction, IoT Design Methodology, Case Study on IoT System for Weather Mo...
Information Storage and Retrieval Techniques Unit III
BIO-INSPIRED ARCHITECTURE FOR PARSIMONIOUS CONVERSATIONAL INTELLIGENCE : THE ...
null (2) bgfbg bfgb bfgb fbfg bfbgf b.pdf
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
Artificial Superintelligence (ASI) Alliance Vision Paper.pdf
Safety Seminar civil to be ensured for safe working.
III.4.1.2_The_Space_Environment.p pdffdf
Enhancing Cyber Defense Against Zero-Day Attacks using Ensemble Neural Networks
Total quality management ppt for engineering students
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
Automation-in-Manufacturing-Chapter-Introduction.pdf
CURRICULAM DESIGN engineering FOR CSE 2025.pptx
Fundamentals of Mechanical Engineering.pptx
737-MAX_SRG.pdf student reference guides
Categorization of Factors Affecting Classification Algorithms Selection
Analyzing Impact of Pakistan Economic Corridor on Import and Export in Pakist...
EXPLORING LEARNING ENGAGEMENT FACTORS INFLUENCING BEHAVIORAL, COGNITIVE, AND ...
PREDICTION OF DIABETES FROM ELECTRONIC HEALTH RECORDS
UNIT 4 Total Quality Management .pptx

New Microsoft PowerPoint Presentation.pptx

  • 1. INTERRUPTS OF 8086 NAME- RAJEEV KUMAR REGNO- 20UGELE08 DEPARTMENT- ELECTRICAL ENGINEERING SEMESTER- IV
  • 2. CONTENTS 1. INTERRUPTS 2. TYPES OF INTERRUPTS 3. Interrupt instruction of 8086 4. Instruction of interrupt 5. Reference
  • 3. INTERRUPT 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. When the Microprocessor is executing a program, an ‘interrupt’ breaks the normal sequence of execution of instruction, diverts its execution to some other program called Interrupt Service Routine (ISR). After executing ISR, IRET return the control back again to the main program Interrupt Processing is an alternative to, the polling.
  • 5. HARDWARE INTERRUPT . The 8086 has two hardware interrupt pins, i.e. NMI and INTR. NMI is a non-maskable interrupt and INTR is a maskable interrupt having lower priority. One more interrupt pin associated is INTA called interrupt acknowledge. The primary sources of interrupts, however, are the PCs timer chip, Keyboard, serial port, parallel port, disk drives, CMOS real-time clock, Mouse, Sound Card and other Peripheral devices.
  • 7. NON-MASKABLE INTERRUPT It is a single non-maskable interrupt pin (NMI) having higher priority than the maskable interrupt request pin (INTR)and it is of type 2 interrupt. When this interrupt is activated, these actions take place − •Completes the current instruction that is in progress. •Pushes the Flag register values on to the stack. •Pushes the CS (code segment) value and IP (instruction pointer) value of the return address on to the stack. •IP is loaded from the contents of the word location 00008H. •CS is loaded from the contents of the next word location 0000AH . •Interrupt flag and trap flag are reset to 0.
  • 8. MASKABLE INTERRUPT The INTR is a maskable interrupt because the microprocessor will be interrupted only if interrupts are enabled using set interrupt flag instruction. It should not be enabled using clear interrupt Flag instruction. The INTR interrupt is activated by an I/O port. If the interrupt is enabled and NMI is disabled, then the microprocessor first completes the current execution and sends ‘0’ on INTA pin twice. The first ‘0’ means INTA informs the external device to get ready and during the second ‘0’ the microprocessor receives the 8 bit, say X, from the programmable interrupt controller. These actions are taken by the microprocessor − •First completes the current instruction. •Activates INTA output and receives the interrupt type, say X. •Flag register value, CS value of the return address and IP value of the return address are pushed on to the stack. •IP value is loaded from the contents of word location X × 4 •CS is loaded from the contents of the next word location. •Interrupt flag and trap flag is reset to 0
  • 9. SOFTWARE INTERRUPT When the source of interrupt is the execution of interrupt instruction, this interrupt is known as software interrupt. . IN 8086 there are about 256 interrupt such as INT 00H, INT 01H, INT 02H to INT FFH Whenever the INT interrupt instruction is executed, the microprocessor automatically saves the contents of the flag register, Instruction Pointer(IP) and the code segment register on the stack and jump to specified memory location. Software Interrupt are always generated by INT instruction and Used for divided- by- Zero error, single step, NMI, break point, and overflow interrupt.
  • 10. Interrupt Type 0- INT 00H(Divide by zero Error) The 8086 generates a type 0 interrupt, if the result of DIV or IDV operation is too large to fit in the destination register. For this interrupt ,8086 push the content of the flag register on the stack, reset IF and TF and also pushes the content of CS and IP onto the stack. Then 8086 gets the starting address of the interrupt service procedure from the interrupt pointer table. Therefore, Load the new value of CS from addresses 00002H and 00003H; also load the new value of IP from addresses 00000H and 00001H.
  • 11. Interrupt Type-INT 01H(Single Step) During execution of sequence of instruction, there is frequently a need to examine the content of CPU’s register and system memory. This is done by executing one instruction at a time and then inspecting the registers and memory. If they are correct, the user can give the command to go on and execute the next generation. This is called single stepping. When the CPU gets a type 1 interrupt, initially it pushes the flag register onto the stack, changing the trap bit and pops the flag register back from the stack. Then it loads the CS value from starting address 00006H and IP value from starting address 00004H for the type 1 interrupt service routine.
  • 13. Interrupt Instruction of 8086 The interrupt instruction of 8086 microprocessor are CLI, STI, INT n INTO, HLT and WAIT. Mnemonics Function Operation CLI Clear interrupt instruction, IF affected. IF 0 STI Set Interrupt flag, IF affected IF 1 INTO Interrupt overflow. TF and IF affected. Same as INT4
  • 14. Reference Soumitra Kumar Mandal Microprocessor - 8086 Interrupts (tutorialspoint.com)
  • 15. This Photo by Unknown Author is licensed under CC BY-NC-ND