0% found this document useful (0 votes)
12 views

Chapter 5

Uploaded by

Toby Fox
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

Chapter 5

Uploaded by

Toby Fox
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 41

Chapter 5

Interrupt Operations
Introduction
5.1 Polling VS interrupt
Multiple interrupts
• If the processor gets multiple interrupts, then
we need to deal these interrupts one at a time
and the dealing approaches are:
• Sequential processing of interrupts
• Priority wise processing of interrupts / Nested
processing of interrupts
Interrupt processing in 8085
5.4.1 Interrupt Pins and Priorities (Hardware
interrupts)
5.4.2 Using priority interrupt controller (PIC)

• Priority interrupt controller (PIC)


• The INTR pin can be used for multiple peripherals
and to determine priorities among these devices
when two or more peripherals request interrupt
service simultaneously, PIC is used.
• If there are simultaneous requests, the priorities
are determined by the encoder, it responds to the
higher level input, ignoring the lower level input.
• 8259A can be used.
8259A
5.4.3 Interrupt Instructions
5.5. Interrupt processing in 8086
Interrupt vector table and its organization
• Interrupt Vector Table (IVT) is a 1024 bytes sized table that contains
addresses of interrupts.
• Each address is of 4 bytes long of the form offset: segment, which
represents the address of a routine to be called when the CPU receives
an interrupt.
• IVT can hold maximum of 256 addresses (0 to 255).
• The interrupt number is used as an index into the table to get the
address of the interrupt service routine.
• IVT act as pointers, unlike function call IVT need number as an
argument then as a result IVT point us to interrupt service routine (ISR).
• ISR executes its code, when ISR finished then returns back to original
statement.

You might also like