SlideShare a Scribd company logo
1 of 15
Programmable Interrupt
Controller (PIC)
INTEL 8259
Programmable Interrupt Controller (PIC)
 8259 is a programmable interrupt controller.
 used to expand the interrupts of 8085.
 One 8259 can accept 8 interrupt requests and allow one by one to
processor INTR pin.
 can be used in cascaded mode to expand the interrupt up to 64.
Features of 8259
 programmed to work with 8085 & 8086.
 it manages 8 interrupts according to the instructions written into its
control registers.
 the priorities of interrupts are programmable.
 8259 can be programmed to accept either level triggered or edge
triggered
 The interrupts can be masked or unmasked individually.
 The 8259s can be cascaded to accept a maximum of 64 interrupts.
Pin details of 8259
 28 pin IC packed in DIP
Interfacing 8259 with 8085 Microprocessor
 It requires two internal address and they are A =0 or A = 1.
 It can be either memory mapped or I/O mapped in the system.
The interfacing of 8259 to 8085 is shown in figure is I/O
mapped in the system.
 The low order data bus lines D0-D7 are connected to D0-D7 of
8259.
 The address line A0 of the 8085 processor is connected to A0 of
8259 to provide the internal address.
 The 8259 require one chip select signal. Using 3-to-8 decoder
generates the chip select signal for 8259.
 The address lines A4, A5 and A6 are used as input to decoder.
 The control signal IO/M (low) is used as logic high enables for
decoder and the address line A7 is used as logic low enable for
decoder.
 The I/O addresses of 8259 are shown in table.
Working of 8259 with 8085 Microprocessor
 First the 8259 should be programmed by sending Initialization
Command Word (ICW) and Operational Command Word (OCW).
 These command words will inform 8259 about the following:
 Type of interrupt signal (Level triggered / Edge triggered).
 Type of processor (8085/8086).
 Call address and its interval (4 or 8).
 Masking of interrupts.
 Priority of interrupts.
 Type of end of interrupts.
 Once 8259 is programmed it is ready for accepting interrupt signal.
When it receives an interrupt through any one of the interrupt lines
IR0-IR7 it checks for its priority and also checks whether it is
masked or not.
 If the previous interrupt is completed and if the current request
has highest priority and unmasked, then it is serviced.
 For servicing this interrupt the 8259 will send INT signal to INTR
pin of 8085.
 In response it expects an acknowledge INTA (low) from the
processor.
 When the processor accepts the interrupt, it sends three INTA
(low) one by one.
 In response to first, second and third INTA (low) signals, the
8259 will supply CALL opcode, low byte of call address and high
byte of call address respectively. Once the processor receives the
call opcode and its address, it saves the content of program
counter (PC) in stack and load the CALL address in PC and start
executing the interrupt service routine stored in this call address.
Functional block diagram of 8259
 It has eight functional blocks. They are
 Control logic
 Read Write logic
 Data bus buffer
 Interrupt Request Register (IRR)
 In-Service Register (ISR)
 Interrupt Mask Register (IMR)
 Priority Resolver (PR)
 Cascade buffer.
Control Logic
 For servicing interrupt the 8259 will send INT signal to INTR pin of 8085.
 When the processor acceptd the interupts ,it sends 3 INTA (low) one by one.
 In response:
 1st INTA(low) - 8259 supply CALL opcode
 2nd INTA(low)-low byte of call address
 3rd INTA(low) -high byte of call address
 Once the processor receive the call opcode and its address, it saves the
content of program counter in stack and load the CALL address in PC and start
executing the interrupt service routine stored in call address.
Read/Write/Logic
 The data bus and its buffer are used for the following activities.
 The processor sends control word to data bus buffer through D0-D7.
 The processor read status word from data bus buffer through D0-D7.
 From the data bus buffer the 8259 call opcode and address through D0-D7 to
the processor.
Data Bus Buffer
 The processor uses the RD (low), WR (low) and A0 to read or write 8259.
 The 8259 is selected by CS (low).
Interrupt Mask Register
 The IRR has eight input lines (IR0-IR7) for interrupts. When these lines go
high, the request is stored in IRR. It registers a request only if the interrupt is
unmasked.
 Normally IR0 has highest priority and IR7 has the lowest priority. The
priorities of the interrupt request input are also programmable.
Interrupt Request Register
 The interrupt mask register (IMR) stores the masking bits of the
interrupt lines to be masked. The relevant information is send by the
processor through OCW.
Priority Resolver
 The in-service register keeps track of which interrupt is currently being
serviced.
In-Service Register
 The priority resolver examines the interrupt request, mask and in-
service registers and determines whether INT signal should be sent to the
processor or not.
Cascade Buffer/Comparator
 The cascade buffer/comparator is used to expand the interrupts of 8259.

More Related Content

What's hot

Memory & I/O interfacing
Memory & I/O  interfacingMemory & I/O  interfacing
Memory & I/O interfacingdeval patel
 
PPT on 8085 Microprocessor
PPT on 8085 Microprocessor  PPT on 8085 Microprocessor
PPT on 8085 Microprocessor DebrajJana4
 
8237 dma controller
8237 dma controller8237 dma controller
8237 dma controllerTech_MX
 
Programmableperipheralinterface 8255 ppt
Programmableperipheralinterface 8255 pptProgrammableperipheralinterface 8255 ppt
Programmableperipheralinterface 8255 pptsharan Kumar
 
Addressing modes of 8051
Addressing modes of 8051Addressing modes of 8051
Addressing modes of 8051SARITHA REDDY
 
Chapter 1 microprocessor introduction
Chapter 1 microprocessor introductionChapter 1 microprocessor introduction
Chapter 1 microprocessor introductionShubham Singh
 
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 KawareProf. Swapnil V. Kaware
 
Addressing modes 8085
Addressing modes 8085Addressing modes 8085
Addressing modes 8085ShivamSood22
 
8086 microprocessor-architecture
8086 microprocessor-architecture8086 microprocessor-architecture
8086 microprocessor-architectureprasadpawaskar
 
Microprocessor 8085 complete
Microprocessor 8085 completeMicroprocessor 8085 complete
Microprocessor 8085 completeShubham Singh
 
I/O port programming in 8051
I/O port programming in 8051I/O port programming in 8051
I/O port programming in 8051ssuser3a47cb
 
Architecture of 8086 Microprocessor
Architecture of 8086 Microprocessor  Architecture of 8086 Microprocessor
Architecture of 8086 Microprocessor Mustapha Fatty
 
Architecture of 8051
Architecture of 8051Architecture of 8051
Architecture of 8051hello_priti
 
DMA controller intel 8257
DMA controller intel 8257DMA controller intel 8257
DMA controller intel 8257Daniel Ilunga
 
Instruction set of 8086
Instruction set of 8086Instruction set of 8086
Instruction set of 80869840596838
 

What's hot (20)

Memory & I/O interfacing
Memory & I/O  interfacingMemory & I/O  interfacing
Memory & I/O interfacing
 
PPT on 8085 Microprocessor
PPT on 8085 Microprocessor  PPT on 8085 Microprocessor
PPT on 8085 Microprocessor
 
Interfacing 8255
Interfacing 8255Interfacing 8255
Interfacing 8255
 
8237 dma controller
8237 dma controller8237 dma controller
8237 dma controller
 
Programmableperipheralinterface 8255 ppt
Programmableperipheralinterface 8255 pptProgrammableperipheralinterface 8255 ppt
Programmableperipheralinterface 8255 ppt
 
Addressing modes of 8051
Addressing modes of 8051Addressing modes of 8051
Addressing modes of 8051
 
Chapter 1 microprocessor introduction
Chapter 1 microprocessor introductionChapter 1 microprocessor introduction
Chapter 1 microprocessor introduction
 
8259 a
8259 a8259 a
8259 a
 
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
 
8253
82538253
8253
 
Addressing modes 8085
Addressing modes 8085Addressing modes 8085
Addressing modes 8085
 
8086 microprocessor-architecture
8086 microprocessor-architecture8086 microprocessor-architecture
8086 microprocessor-architecture
 
Microprocessor 8085 complete
Microprocessor 8085 completeMicroprocessor 8085 complete
Microprocessor 8085 complete
 
8255 ppi
8255 ppi8255 ppi
8255 ppi
 
I/O port programming in 8051
I/O port programming in 8051I/O port programming in 8051
I/O port programming in 8051
 
Architecture of 8086 Microprocessor
Architecture of 8086 Microprocessor  Architecture of 8086 Microprocessor
Architecture of 8086 Microprocessor
 
Architecture of 8051
Architecture of 8051Architecture of 8051
Architecture of 8051
 
DMA controller intel 8257
DMA controller intel 8257DMA controller intel 8257
DMA controller intel 8257
 
Instruction set of 8086
Instruction set of 8086Instruction set of 8086
Instruction set of 8086
 
Memory interfacing
Memory interfacingMemory interfacing
Memory interfacing
 

Similar to Intel 8259 - Programmable Interrupt Controller

8259 Interrupt Controller
8259 Interrupt Controller8259 Interrupt Controller
8259 Interrupt ControllerShivamSood22
 
8259 A P R O G R A M M A B L E I N T E R R U P T C O N T R O L L E R2
8259 A  P R O G R A M M A B L E  I N T E R R U P T  C O N T R O L L E R28259 A  P R O G R A M M A B L E  I N T E R R U P T  C O N T R O L L E R2
8259 A P R O G R A M M A B L E I N T E R R U P T C O N T R O L L E R2Aisu
 
8259 programmable PPI interfacing with 8085 .ppt
8259 programmable PPI interfacing with 8085 .ppt8259 programmable PPI interfacing with 8085 .ppt
8259 programmable PPI interfacing with 8085 .pptDrVikasMahor
 
3.programmable interrupt controller 8259
3.programmable interrupt controller 82593.programmable interrupt controller 8259
3.programmable interrupt controller 8259MdFazleRabbi18
 
8259 programmable interrupt controller
8259 programmable interrupt controller8259 programmable interrupt controller
8259 programmable interrupt controllerSrikrishna Thota
 
Microprocessor.pptx
Microprocessor.pptxMicroprocessor.pptx
Microprocessor.pptxSachinKupade
 
8259 Programmable Interrupt Controller by vijay
8259 Programmable Interrupt Controller by vijay8259 Programmable Interrupt Controller by vijay
8259 Programmable Interrupt Controller by vijayVijay Kumar
 
8259.pptx
8259.pptx8259.pptx
8259.pptxsrenr
 
B sc e5.2 mp unit 3 interfacing
B sc e5.2 mp unit 3 interfacingB sc e5.2 mp unit 3 interfacing
B sc e5.2 mp unit 3 interfacingMahiboobAliMulla
 
21262738 8259a-programmable-interrupt-controller-2
21262738 8259a-programmable-interrupt-controller-221262738 8259a-programmable-interrupt-controller-2
21262738 8259a-programmable-interrupt-controller-2lords_ko
 
Microprocessor questions converted
Microprocessor questions convertedMicroprocessor questions converted
Microprocessor questions convertedArghodeepPaul
 
UNIT 1 Microprocessors.pptx
UNIT 1 Microprocessors.pptxUNIT 1 Microprocessors.pptx
UNIT 1 Microprocessors.pptxGowrishankar C
 
Micro Processor And Micro Controller for engineering in Pondicherry University
Micro Processor And Micro Controller for engineering in Pondicherry UniversityMicro Processor And Micro Controller for engineering in Pondicherry University
Micro Processor And Micro Controller for engineering in Pondicherry UniversityShyamShyam76
 
Microprocessor and Microcontroller lec5
Microprocessor and Microcontroller lec5Microprocessor and Microcontroller lec5
Microprocessor and Microcontroller lec5Ameen San
 
T-states in microprocessor 8085
T-states in microprocessor 8085T-states in microprocessor 8085
T-states in microprocessor 8085yedles
 
System Connection Of 8254 and Its Port Selection
System Connection Of 8254 and Its Port SelectionSystem Connection Of 8254 and Its Port Selection
System Connection Of 8254 and Its Port SelectionMohammedIrfanulAlamT
 

Similar to Intel 8259 - Programmable Interrupt Controller (20)

8259
82598259
8259
 
8259 Interrupt Controller
8259 Interrupt Controller8259 Interrupt Controller
8259 Interrupt Controller
 
8259 A P R O G R A M M A B L E I N T E R R U P T C O N T R O L L E R2
8259 A  P R O G R A M M A B L E  I N T E R R U P T  C O N T R O L L E R28259 A  P R O G R A M M A B L E  I N T E R R U P T  C O N T R O L L E R2
8259 A P R O G R A M M A B L E I N T E R R U P T C O N T R O L L E R2
 
8259a.pdf
8259a.pdf8259a.pdf
8259a.pdf
 
8259 programmable PPI interfacing with 8085 .ppt
8259 programmable PPI interfacing with 8085 .ppt8259 programmable PPI interfacing with 8085 .ppt
8259 programmable PPI interfacing with 8085 .ppt
 
3.programmable interrupt controller 8259
3.programmable interrupt controller 82593.programmable interrupt controller 8259
3.programmable interrupt controller 8259
 
8259 updated
8259 updated 8259 updated
8259 updated
 
8259 programmable interrupt controller
8259 programmable interrupt controller8259 programmable interrupt controller
8259 programmable interrupt controller
 
Icws
IcwsIcws
Icws
 
Microprocessor.pptx
Microprocessor.pptxMicroprocessor.pptx
Microprocessor.pptx
 
8259 Programmable Interrupt Controller by vijay
8259 Programmable Interrupt Controller by vijay8259 Programmable Interrupt Controller by vijay
8259 Programmable Interrupt Controller by vijay
 
8259.pptx
8259.pptx8259.pptx
8259.pptx
 
B sc e5.2 mp unit 3 interfacing
B sc e5.2 mp unit 3 interfacingB sc e5.2 mp unit 3 interfacing
B sc e5.2 mp unit 3 interfacing
 
21262738 8259a-programmable-interrupt-controller-2
21262738 8259a-programmable-interrupt-controller-221262738 8259a-programmable-interrupt-controller-2
21262738 8259a-programmable-interrupt-controller-2
 
Microprocessor questions converted
Microprocessor questions convertedMicroprocessor questions converted
Microprocessor questions converted
 
UNIT 1 Microprocessors.pptx
UNIT 1 Microprocessors.pptxUNIT 1 Microprocessors.pptx
UNIT 1 Microprocessors.pptx
 
Micro Processor And Micro Controller for engineering in Pondicherry University
Micro Processor And Micro Controller for engineering in Pondicherry UniversityMicro Processor And Micro Controller for engineering in Pondicherry University
Micro Processor And Micro Controller for engineering in Pondicherry University
 
Microprocessor and Microcontroller lec5
Microprocessor and Microcontroller lec5Microprocessor and Microcontroller lec5
Microprocessor and Microcontroller lec5
 
T-states in microprocessor 8085
T-states in microprocessor 8085T-states in microprocessor 8085
T-states in microprocessor 8085
 
System Connection Of 8254 and Its Port Selection
System Connection Of 8254 and Its Port SelectionSystem Connection Of 8254 and Its Port Selection
System Connection Of 8254 and Its Port Selection
 

Recently uploaded

Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girlsssuser7cb4ff
 
Piping Basic stress analysis by engineering
Piping Basic stress analysis by engineeringPiping Basic stress analysis by engineering
Piping Basic stress analysis by engineeringJuanCarlosMorales19600
 
Transport layer issues and challenges - Guide
Transport layer issues and challenges - GuideTransport layer issues and challenges - Guide
Transport layer issues and challenges - GuideGOPINATHS437943
 
Vishratwadi & Ghorpadi Bridge Tender documents
Vishratwadi & Ghorpadi Bridge Tender documentsVishratwadi & Ghorpadi Bridge Tender documents
Vishratwadi & Ghorpadi Bridge Tender documentsSachinPawar510423
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)dollysharma2066
 
Class 1 | NFPA 72 | Overview Fire Alarm System
Class 1 | NFPA 72 | Overview Fire Alarm SystemClass 1 | NFPA 72 | Overview Fire Alarm System
Class 1 | NFPA 72 | Overview Fire Alarm Systemirfanmechengr
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.eptoze12
 
8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitter8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitterShivangiSharma879191
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvLewisJB
 
lifi-technology with integration of IOT.pptx
lifi-technology with integration of IOT.pptxlifi-technology with integration of IOT.pptx
lifi-technology with integration of IOT.pptxsomshekarkn64
 
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncWhy does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncssuser2ae721
 
computer application and construction management
computer application and construction managementcomputer application and construction management
computer application and construction managementMariconPadriquez1
 
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor CatchersTechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catcherssdickerson1
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxk795866
 
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)Dr SOUNDIRARAJ N
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 

Recently uploaded (20)

Design and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdfDesign and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdf
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girls
 
Piping Basic stress analysis by engineering
Piping Basic stress analysis by engineeringPiping Basic stress analysis by engineering
Piping Basic stress analysis by engineering
 
Transport layer issues and challenges - Guide
Transport layer issues and challenges - GuideTransport layer issues and challenges - Guide
Transport layer issues and challenges - Guide
 
Vishratwadi & Ghorpadi Bridge Tender documents
Vishratwadi & Ghorpadi Bridge Tender documentsVishratwadi & Ghorpadi Bridge Tender documents
Vishratwadi & Ghorpadi Bridge Tender documents
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
 
Class 1 | NFPA 72 | Overview Fire Alarm System
Class 1 | NFPA 72 | Overview Fire Alarm SystemClass 1 | NFPA 72 | Overview Fire Alarm System
Class 1 | NFPA 72 | Overview Fire Alarm System
 
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.
 
8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitter8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitter
 
Work Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvvWork Experience-Dalton Park.pptxfvvvvvvv
Work Experience-Dalton Park.pptxfvvvvvvv
 
lifi-technology with integration of IOT.pptx
lifi-technology with integration of IOT.pptxlifi-technology with integration of IOT.pptx
lifi-technology with integration of IOT.pptx
 
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncWhy does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
 
computer application and construction management
computer application and construction managementcomputer application and construction management
computer application and construction management
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor CatchersTechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptx
 
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
UNIT III ANALOG ELECTRONICS (BASIC ELECTRONICS)
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 

Intel 8259 - Programmable Interrupt Controller

  • 2. Programmable Interrupt Controller (PIC)  8259 is a programmable interrupt controller.  used to expand the interrupts of 8085.  One 8259 can accept 8 interrupt requests and allow one by one to processor INTR pin.  can be used in cascaded mode to expand the interrupt up to 64.
  • 3. Features of 8259  programmed to work with 8085 & 8086.  it manages 8 interrupts according to the instructions written into its control registers.  the priorities of interrupts are programmable.  8259 can be programmed to accept either level triggered or edge triggered  The interrupts can be masked or unmasked individually.  The 8259s can be cascaded to accept a maximum of 64 interrupts.
  • 4. Pin details of 8259  28 pin IC packed in DIP
  • 5. Interfacing 8259 with 8085 Microprocessor
  • 6.  It requires two internal address and they are A =0 or A = 1.  It can be either memory mapped or I/O mapped in the system. The interfacing of 8259 to 8085 is shown in figure is I/O mapped in the system.  The low order data bus lines D0-D7 are connected to D0-D7 of 8259.  The address line A0 of the 8085 processor is connected to A0 of 8259 to provide the internal address.
  • 7.  The 8259 require one chip select signal. Using 3-to-8 decoder generates the chip select signal for 8259.  The address lines A4, A5 and A6 are used as input to decoder.  The control signal IO/M (low) is used as logic high enables for decoder and the address line A7 is used as logic low enable for decoder.  The I/O addresses of 8259 are shown in table.
  • 8. Working of 8259 with 8085 Microprocessor  First the 8259 should be programmed by sending Initialization Command Word (ICW) and Operational Command Word (OCW).  These command words will inform 8259 about the following:  Type of interrupt signal (Level triggered / Edge triggered).  Type of processor (8085/8086).  Call address and its interval (4 or 8).  Masking of interrupts.  Priority of interrupts.  Type of end of interrupts.  Once 8259 is programmed it is ready for accepting interrupt signal. When it receives an interrupt through any one of the interrupt lines IR0-IR7 it checks for its priority and also checks whether it is masked or not.
  • 9.  If the previous interrupt is completed and if the current request has highest priority and unmasked, then it is serviced.  For servicing this interrupt the 8259 will send INT signal to INTR pin of 8085.  In response it expects an acknowledge INTA (low) from the processor.  When the processor accepts the interrupt, it sends three INTA (low) one by one.  In response to first, second and third INTA (low) signals, the 8259 will supply CALL opcode, low byte of call address and high byte of call address respectively. Once the processor receives the call opcode and its address, it saves the content of program counter (PC) in stack and load the CALL address in PC and start executing the interrupt service routine stored in this call address.
  • 10. Functional block diagram of 8259  It has eight functional blocks. They are  Control logic  Read Write logic  Data bus buffer  Interrupt Request Register (IRR)  In-Service Register (ISR)  Interrupt Mask Register (IMR)  Priority Resolver (PR)  Cascade buffer.
  • 11.
  • 12. Control Logic  For servicing interrupt the 8259 will send INT signal to INTR pin of 8085.  When the processor acceptd the interupts ,it sends 3 INTA (low) one by one.  In response:  1st INTA(low) - 8259 supply CALL opcode  2nd INTA(low)-low byte of call address  3rd INTA(low) -high byte of call address  Once the processor receive the call opcode and its address, it saves the content of program counter in stack and load the CALL address in PC and start executing the interrupt service routine stored in call address.
  • 13. Read/Write/Logic  The data bus and its buffer are used for the following activities.  The processor sends control word to data bus buffer through D0-D7.  The processor read status word from data bus buffer through D0-D7.  From the data bus buffer the 8259 call opcode and address through D0-D7 to the processor. Data Bus Buffer  The processor uses the RD (low), WR (low) and A0 to read or write 8259.  The 8259 is selected by CS (low).
  • 14. Interrupt Mask Register  The IRR has eight input lines (IR0-IR7) for interrupts. When these lines go high, the request is stored in IRR. It registers a request only if the interrupt is unmasked.  Normally IR0 has highest priority and IR7 has the lowest priority. The priorities of the interrupt request input are also programmable. Interrupt Request Register  The interrupt mask register (IMR) stores the masking bits of the interrupt lines to be masked. The relevant information is send by the processor through OCW.
  • 15. Priority Resolver  The in-service register keeps track of which interrupt is currently being serviced. In-Service Register  The priority resolver examines the interrupt request, mask and in- service registers and determines whether INT signal should be sent to the processor or not. Cascade Buffer/Comparator  The cascade buffer/comparator is used to expand the interrupts of 8259.