SlideShare a Scribd company logo
1 of 28
8259A PROGRAMMABLE 
INTERRUPT CONTROLLER
Interrupt handling by 
CPU vs. 8259
Why 8259A ?? 
• 8085 Processor has only 5 hardware interrupts to handle 
a maximum of 5 I/O devices. 
(RST 7.5, RST6.5, RST 5.5, INTR, TRAP) 
• If the I/O devices are more than 5, more number of 
interrupt pins are required. 
• In such case of multiple interrupt systems 8259 – PIC is 
designed to care of the interrupts. 
• Every 8259 IC can handle a maximum of 8 interrupts 
along with priorities.
• When an interrupts occurs ,it Vectors an interrupt request to the 
vector table. 
• However all the 8 interrupts are spaced at an interval of four to 
eight locations. 
• Resolve 8 levels of interrupt priorities in variety of modes & 
Mask each interrupt request individually. 
• Read the status of pending interrupts, in-service interrupts and 
masked interrupts. 
• Accepts either the level triggered or edge triggered interrupt 
request. 
• Expandable to 64 priority levels by cascading additional 8259As & 
compatible with 8-bit as well as 16-bit processors.
8259A PIC- BLOCK DIAGRAM 
It includes 8 blocks. 
• Control logic 
• Read/Write logic 
• Data bus buffer 
• Three registers (IRR,ISR and IMR) 
• Priority resolver 
• Cascade Buffer
8259A PIC- PIN DIGRAM
8259A PIC- BLOCK DIAGRAM
8259A PIC- BLOCK DIAGRAM
8259A PIC- INTERRUPTS AND CONTROL 
LOGIC SECTION 
This section consists of 
• IRR (Interrupt Request 
Register) 
• ISR (In-Service Register) 
• Priority Resolver 
• IMR (Interrupt Mask 
Register) 
• Control logic block 
IRR 
• 8 interrupt inputs set 
corresponding bits of IRR 
• Used to store the 
information about the 
interrupt inputs 
requesting service.
8259A PIC- INTERRUPTS AND CONTROL 
LOGIC SECTION 
ISR 
• Used to store information 
about the interrupts 
currently being serviced. 
PRIORITY RESOLVER 
• Examines three registers and 
determines whether INT 
should be sent to MPU. 
• Determines the priorities of the 
bits set in IRR as dictated by 
priority mode set by OCWs. 
• The bit corresponding to 
highest priority input is set in 
ISR during input.
8259A PIC- INTERRUPTS AND CONTROL 
LOGIC SECTION 
IMR 
• This register can be programmed by an OCW to store 
the bits which mask specific interrupts. 
• An interrupt which is masked by software (By 
programming the IMR) will not be recognized and 
serviced even if it sets corresponding bits in the IRR.
8259A PIC- INTERRUPTS AND CONTROL 
LOGIC SECTION 
CONTROL LOGIC 
• Has two pins: 
INT (Interrupt) Output 
( Interrupt Acknowledge) Input 
• INT Connected to Interrupt pin of MPU. 
 When interrupt occurs this pin goes high.
8259A PIC- BLOCK DIAGRAM 
DATA BUS BUFFER 
• 8 bit 
• Bidirectional 
• Tri-state Buffer used to Interface the 8259 to the 
system data bus. 
• Control words, Status words and vectoring data 
are all passed through the data bus buffer.
8259A PIC- READ/WRITE CONTROL LOGIC 
SECTION 
• Contains ICW and OCW registers programmed by the 
CPU to set up the 8259 to operate in various modes. 
• Also accepts read command from CPU to permit the 
CPU to read status words. 
•  Chip Select  Active Low input 
 Used to select the Device. 
•  Read  Active Low input 
 Used by CPU to read the status of 
ISR,IRR,IMR or the Interrupt level. 
•  Write  Active Low input 
 Used to write OCW and ICW onto the 8259. 
*ICW Initialization Control Word 
OCW Operation Control Word
8259A PIC- CASCADE BUFFER/ 
COMPARATOR 
• Generates control signals for cascade operation. 
• 8259 cascaded with other 8259s 
 Interrupt handling capacity to 64 levels 
 Former is called master and latter is slave. 
• 8259 can be set up as master or slave by
8259A PIC- CASCADE BUFFER/ 
COMPARATOR 
CAS 0-2 
• For master 8259 these pins are outputs and for slaves these are 
inputs. 
• When 8259 is a master the CALL op-code is generated by master in 
response to the first Interrupt acknowledge. 
• The vectoring address must be released by slave 8259. 
• The master puts out the identification code to select one of the slave 
from 8 slaves through these pins. 
• The slave thus selected puts out the address of ISR during second 
and third interrupt acknowledge pulses from the CPU.
Interrupt Sequence 
Following events occur: 
1) One or more interrupt request lines(IR0-IR7) are raised high. 
2) Priority resolver checks for the 3 register and sets INT high. 
3) In response to INTR signal 8085 mp sends an INTA pulse. 
4) Upon receiving INTA from 8085, corresponding IRR 
line(IR0-IR7) is reset. 
4) 8259 places the opcode for call instruction. 
5) Call instruction initiates two more interrupt acknowledge 
cycles. 
6) During the two interrupt acknowledge cycles, 8259 places 
the lower byte of ISR and higher byte of ISR address. 
7) When interrupt cycle is completed an EOI command is 
issued by the microprocessor.
8259A- OPERATING MODES 
FULLY NESTED MODE: 
• General purpose mode / default mode. 
• IR0 to IR7 are arranged from highest to lowest. 
• IR0 Highest IR7Lowest 
AUTOMATIC ROTATION MODE: 
• In this mode, a device after being serviced, receives the 
lowest priority. 
SPECIFIC ROTATION MODE: 
• Similar to automatic rotation mode, except that the user 
can select any IR for the lowest priority, thus fixing all 
other priorities.
8259-INTERRUPT PROCESS IN FULLY NESTED MODE
8259A- OPERATING MODES 
END OF INTERRUPT (EOI): 
• After the completion of an interrupt service, the 
corresponding ISR bits needs to be reset to update the 
information in the ISR. This is called EOI command. 
It can be issued in three formats: 
NON SPECIFIC EOI COMMAND:(manually) 
• When this command is sent to 8259A, it resets the 
highest priority ISR bit. 
SPECIFIC EOI COMMAND:(manually) 
• This command specifies which ISR bit is to reset.
8259A- OPERATING MODES 
AUTOMATIC EOI: 
• In this mode, no command is necessary. 
• During the end of interrupt acknowledge cycle, the ISR 
bit is reset. 
• Used for master only
Command words (ICW & OCW) 
The command words of 8259A are classified in two groups, 
1) Initialization command words (ICWs) 
(Total of 4 –ICWs) 
2) Operation command words (OCWs) 
(Total of 3 - OCWs) 
8259 must be initialized by writing two to four command 
words into their respective command word registers. 
If A0=0,D4=1: The control word is ICW1 
If A0=1: The control word is ICW2
ICW1 and ICW2 are compulsory 
command words for initialization sequence 
of 8259A while ICW3 and ICW4 are 
optional.
ADI=1 for 8086 based system 
For 8086 Don’t Care
For 8085 system they are filled by A15-A11 of the interrupt vector address and 
Least significant 3 bits are same as the respective bits of the vector address. 
For 8086 system they are filled by most significant 5 bits of interrupt type and 
the least significant 3 bits are 0, pointing to IR0.
8259 updated
8259 updated

More Related Content

What's hot

Direct memory access (dma) with 8257 DMA Controller
Direct memory access (dma) with 8257 DMA ControllerDirect memory access (dma) with 8257 DMA Controller
Direct memory access (dma) with 8257 DMA ControllerMuhammed Afsal Villan
 
8086 memory interface.pptx
8086 memory interface.pptx8086 memory interface.pptx
8086 memory interface.pptxHebaEng
 
Memory Segmentation of 8086
Memory Segmentation of 8086Memory Segmentation of 8086
Memory Segmentation of 8086Nikhil Kumar
 
3.programmable interrupt controller 8259
3.programmable interrupt controller 82593.programmable interrupt controller 8259
3.programmable interrupt controller 8259MdFazleRabbi18
 
8051 architecture
8051 architecture8051 architecture
8051 architecturesb108ec
 
8086 microprocessor
8086 microprocessor8086 microprocessor
8086 microprocessorVikas Gupta
 
Master synchronous serial port (mssp)
Master synchronous serial port (mssp)Master synchronous serial port (mssp)
Master synchronous serial port (mssp)babak danyal
 
8259 programmable interrupt controller
8259 programmable interrupt controller8259 programmable interrupt controller
8259 programmable interrupt controllerSrikrishna Thota
 
8086 pin details
8086 pin details8086 pin details
8086 pin detailsAJAL A J
 
Addressing modes 8085
Addressing modes 8085Addressing modes 8085
Addressing modes 8085ShivamSood22
 

What's hot (20)

Direct memory access (dma) with 8257 DMA Controller
Direct memory access (dma) with 8257 DMA ControllerDirect memory access (dma) with 8257 DMA Controller
Direct memory access (dma) with 8257 DMA Controller
 
Pin diagram 8085
Pin diagram 8085 Pin diagram 8085
Pin diagram 8085
 
Serial Communication in 8051
Serial Communication in 8051Serial Communication in 8051
Serial Communication in 8051
 
8086 micro processor
8086 micro processor8086 micro processor
8086 micro processor
 
Interrupts in 8051
Interrupts in 8051Interrupts in 8051
Interrupts in 8051
 
8086 memory interface.pptx
8086 memory interface.pptx8086 memory interface.pptx
8086 memory interface.pptx
 
8086
80868086
8086
 
Memory Segmentation of 8086
Memory Segmentation of 8086Memory Segmentation of 8086
Memory Segmentation of 8086
 
3.programmable interrupt controller 8259
3.programmable interrupt controller 82593.programmable interrupt controller 8259
3.programmable interrupt controller 8259
 
8051 architecture
8051 architecture8051 architecture
8051 architecture
 
Interrupts of microprocessor 8085
Interrupts of microprocessor  8085Interrupts of microprocessor  8085
Interrupts of microprocessor 8085
 
80286 microprocessors
80286 microprocessors80286 microprocessors
80286 microprocessors
 
8086 microprocessor
8086 microprocessor8086 microprocessor
8086 microprocessor
 
Master synchronous serial port (mssp)
Master synchronous serial port (mssp)Master synchronous serial port (mssp)
Master synchronous serial port (mssp)
 
ARM Micro-controller
ARM Micro-controllerARM Micro-controller
ARM Micro-controller
 
8259 programmable interrupt controller
8259 programmable interrupt controller8259 programmable interrupt controller
8259 programmable interrupt controller
 
8051 timer counter
8051 timer counter8051 timer counter
8051 timer counter
 
8086 pin details
8086 pin details8086 pin details
8086 pin details
 
DMA operation
DMA operationDMA operation
DMA operation
 
Addressing modes 8085
Addressing modes 8085Addressing modes 8085
Addressing modes 8085
 

Similar to 8259 updated

21262738 8259a-programmable-interrupt-controller-2
21262738 8259a-programmable-interrupt-controller-221262738 8259a-programmable-interrupt-controller-2
21262738 8259a-programmable-interrupt-controller-2lords_ko
 
8259 Interrupt Controller
8259 Interrupt Controller8259 Interrupt Controller
8259 Interrupt ControllerShivamSood22
 
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
 
Intel 8259 - Programmable Interrupt Controller
Intel 8259 - Programmable Interrupt Controller  Intel 8259 - Programmable Interrupt Controller
Intel 8259 - Programmable Interrupt Controller Nikhil Baby
 
Microprocessor & Interfacing (Part-1) By Er. Swapnil V. Kaware
Microprocessor & Interfacing (Part-1) By Er. Swapnil V. KawareMicroprocessor & Interfacing (Part-1) By Er. Swapnil V. Kaware
Microprocessor & Interfacing (Part-1) By Er. Swapnil V. KawareProf. Swapnil V. Kaware
 
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
 
Microprocessor and Microcontroller lec5
Microprocessor and Microcontroller lec5Microprocessor and Microcontroller lec5
Microprocessor and Microcontroller lec5Ameen San
 
8259 Operating Modes.pptx
8259 Operating Modes.pptx8259 Operating Modes.pptx
8259 Operating Modes.pptxMeenaAnusha1
 
Unit 6 assembly language programming
Unit 6   assembly language programmingUnit 6   assembly language programming
Unit 6 assembly language programmingKartik Sharma
 
Timing n interrupt.pptx
Timing n interrupt.pptxTiming n interrupt.pptx
Timing n interrupt.pptxJasaRChoudhary
 
introduction to embedded systems part 2
introduction to embedded systems part 2introduction to embedded systems part 2
introduction to embedded systems part 2Hatem Abd El-Salam
 
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
 

Similar to 8259 updated (20)

21262738 8259a-programmable-interrupt-controller-2
21262738 8259a-programmable-interrupt-controller-221262738 8259a-programmable-interrupt-controller-2
21262738 8259a-programmable-interrupt-controller-2
 
8259 Interrupt Controller
8259 Interrupt Controller8259 Interrupt Controller
8259 Interrupt Controller
 
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
 
8259
82598259
8259
 
8259a.pdf
8259a.pdf8259a.pdf
8259a.pdf
 
Intel 8259 - Programmable Interrupt Controller
Intel 8259 - Programmable Interrupt Controller  Intel 8259 - Programmable Interrupt Controller
Intel 8259 - Programmable Interrupt Controller
 
Microprocessor & Interfacing (Part-1) By Er. Swapnil V. Kaware
Microprocessor & Interfacing (Part-1) By Er. Swapnil V. KawareMicroprocessor & Interfacing (Part-1) By Er. Swapnil V. Kaware
Microprocessor & Interfacing (Part-1) By Er. Swapnil V. Kaware
 
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
 
Icws
IcwsIcws
Icws
 
Microprocessor and Microcontroller lec5
Microprocessor and Microcontroller lec5Microprocessor and Microcontroller lec5
Microprocessor and Microcontroller lec5
 
8259 Operating Modes.pptx
8259 Operating Modes.pptx8259 Operating Modes.pptx
8259 Operating Modes.pptx
 
Unit 6 assembly language programming
Unit 6   assembly language programmingUnit 6   assembly language programming
Unit 6 assembly language programming
 
UNIT 2.pptx
UNIT 2.pptxUNIT 2.pptx
UNIT 2.pptx
 
8255.pdf
8255.pdf8255.pdf
8255.pdf
 
Timing n interrupt.pptx
Timing n interrupt.pptxTiming n interrupt.pptx
Timing n interrupt.pptx
 
introduction to embedded systems part 2
introduction to embedded systems part 2introduction to embedded systems part 2
introduction to embedded systems part 2
 
8086 Interrupts ...
8086 Interrupts                                                              ...8086 Interrupts                                                              ...
8086 Interrupts ...
 
8279nptel
8279nptel 8279nptel
8279nptel
 
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
 

More from jemimajerome

More from jemimajerome (13)

Addressing modes-of-8085
Addressing modes-of-8085 Addressing modes-of-8085
Addressing modes-of-8085
 
8295
82958295
8295
 
8279 d
8279 d8279 d
8279 d
 
8279 d
8279 d8279 d
8279 d
 
8279 d
8279 d8279 d
8279 d
 
8279
8279 8279
8279
 
8259
8259 8259
8259
 
8253,8254
8253,8254 8253,8254
8253,8254
 
8086 microprocessor-architecture-120207111857-phpapp01
8086 microprocessor-architecture-120207111857-phpapp018086 microprocessor-architecture-120207111857-phpapp01
8086 microprocessor-architecture-120207111857-phpapp01
 
8086-instruction-set-ppt
 8086-instruction-set-ppt 8086-instruction-set-ppt
8086-instruction-set-ppt
 
8086
80868086
8086
 
8086 instruction set
8086 instruction set8086 instruction set
8086 instruction set
 
8085 microprocessor ramesh gaonkar
8085 microprocessor   ramesh gaonkar8085 microprocessor   ramesh gaonkar
8085 microprocessor ramesh gaonkar
 

Recently uploaded

HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxSCMS School of Architecture
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Arindam Chakraborty, Ph.D., P.E. (CA, TX)
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationBhangaleSonal
 
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...HenryBriggs2
 
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARHAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARKOUSTAV SARKAR
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"mphochane1998
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network DevicesChandrakantDivate1
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsvanyagupta248
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptDineshKumar4165
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapRishantSharmaFr
 
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...Health
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptMsecMca
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdfKamal Acharya
 
kiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal loadkiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal loadhamedmustafa094
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptNANDHAKUMARA10
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTbhaskargani46
 
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best ServiceTamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Servicemeghakumariji156
 
Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086anil_gaur
 

Recently uploaded (20)

HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equation
 
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
scipt v1.pptxcxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...
 
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARHAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network Devices
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech students
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdf
 
kiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal loadkiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal load
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best ServiceTamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
 
Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086
 

8259 updated

  • 2. Interrupt handling by CPU vs. 8259
  • 3. Why 8259A ?? • 8085 Processor has only 5 hardware interrupts to handle a maximum of 5 I/O devices. (RST 7.5, RST6.5, RST 5.5, INTR, TRAP) • If the I/O devices are more than 5, more number of interrupt pins are required. • In such case of multiple interrupt systems 8259 – PIC is designed to care of the interrupts. • Every 8259 IC can handle a maximum of 8 interrupts along with priorities.
  • 4. • When an interrupts occurs ,it Vectors an interrupt request to the vector table. • However all the 8 interrupts are spaced at an interval of four to eight locations. • Resolve 8 levels of interrupt priorities in variety of modes & Mask each interrupt request individually. • Read the status of pending interrupts, in-service interrupts and masked interrupts. • Accepts either the level triggered or edge triggered interrupt request. • Expandable to 64 priority levels by cascading additional 8259As & compatible with 8-bit as well as 16-bit processors.
  • 5. 8259A PIC- BLOCK DIAGRAM It includes 8 blocks. • Control logic • Read/Write logic • Data bus buffer • Three registers (IRR,ISR and IMR) • Priority resolver • Cascade Buffer
  • 6. 8259A PIC- PIN DIGRAM
  • 9. 8259A PIC- INTERRUPTS AND CONTROL LOGIC SECTION This section consists of • IRR (Interrupt Request Register) • ISR (In-Service Register) • Priority Resolver • IMR (Interrupt Mask Register) • Control logic block IRR • 8 interrupt inputs set corresponding bits of IRR • Used to store the information about the interrupt inputs requesting service.
  • 10. 8259A PIC- INTERRUPTS AND CONTROL LOGIC SECTION ISR • Used to store information about the interrupts currently being serviced. PRIORITY RESOLVER • Examines three registers and determines whether INT should be sent to MPU. • Determines the priorities of the bits set in IRR as dictated by priority mode set by OCWs. • The bit corresponding to highest priority input is set in ISR during input.
  • 11. 8259A PIC- INTERRUPTS AND CONTROL LOGIC SECTION IMR • This register can be programmed by an OCW to store the bits which mask specific interrupts. • An interrupt which is masked by software (By programming the IMR) will not be recognized and serviced even if it sets corresponding bits in the IRR.
  • 12. 8259A PIC- INTERRUPTS AND CONTROL LOGIC SECTION CONTROL LOGIC • Has two pins: INT (Interrupt) Output ( Interrupt Acknowledge) Input • INT Connected to Interrupt pin of MPU.  When interrupt occurs this pin goes high.
  • 13. 8259A PIC- BLOCK DIAGRAM DATA BUS BUFFER • 8 bit • Bidirectional • Tri-state Buffer used to Interface the 8259 to the system data bus. • Control words, Status words and vectoring data are all passed through the data bus buffer.
  • 14. 8259A PIC- READ/WRITE CONTROL LOGIC SECTION • Contains ICW and OCW registers programmed by the CPU to set up the 8259 to operate in various modes. • Also accepts read command from CPU to permit the CPU to read status words. •  Chip Select  Active Low input  Used to select the Device. •  Read  Active Low input  Used by CPU to read the status of ISR,IRR,IMR or the Interrupt level. •  Write  Active Low input  Used to write OCW and ICW onto the 8259. *ICW Initialization Control Word OCW Operation Control Word
  • 15. 8259A PIC- CASCADE BUFFER/ COMPARATOR • Generates control signals for cascade operation. • 8259 cascaded with other 8259s  Interrupt handling capacity to 64 levels  Former is called master and latter is slave. • 8259 can be set up as master or slave by
  • 16. 8259A PIC- CASCADE BUFFER/ COMPARATOR CAS 0-2 • For master 8259 these pins are outputs and for slaves these are inputs. • When 8259 is a master the CALL op-code is generated by master in response to the first Interrupt acknowledge. • The vectoring address must be released by slave 8259. • The master puts out the identification code to select one of the slave from 8 slaves through these pins. • The slave thus selected puts out the address of ISR during second and third interrupt acknowledge pulses from the CPU.
  • 17. Interrupt Sequence Following events occur: 1) One or more interrupt request lines(IR0-IR7) are raised high. 2) Priority resolver checks for the 3 register and sets INT high. 3) In response to INTR signal 8085 mp sends an INTA pulse. 4) Upon receiving INTA from 8085, corresponding IRR line(IR0-IR7) is reset. 4) 8259 places the opcode for call instruction. 5) Call instruction initiates two more interrupt acknowledge cycles. 6) During the two interrupt acknowledge cycles, 8259 places the lower byte of ISR and higher byte of ISR address. 7) When interrupt cycle is completed an EOI command is issued by the microprocessor.
  • 18. 8259A- OPERATING MODES FULLY NESTED MODE: • General purpose mode / default mode. • IR0 to IR7 are arranged from highest to lowest. • IR0 Highest IR7Lowest AUTOMATIC ROTATION MODE: • In this mode, a device after being serviced, receives the lowest priority. SPECIFIC ROTATION MODE: • Similar to automatic rotation mode, except that the user can select any IR for the lowest priority, thus fixing all other priorities.
  • 19. 8259-INTERRUPT PROCESS IN FULLY NESTED MODE
  • 20. 8259A- OPERATING MODES END OF INTERRUPT (EOI): • After the completion of an interrupt service, the corresponding ISR bits needs to be reset to update the information in the ISR. This is called EOI command. It can be issued in three formats: NON SPECIFIC EOI COMMAND:(manually) • When this command is sent to 8259A, it resets the highest priority ISR bit. SPECIFIC EOI COMMAND:(manually) • This command specifies which ISR bit is to reset.
  • 21. 8259A- OPERATING MODES AUTOMATIC EOI: • In this mode, no command is necessary. • During the end of interrupt acknowledge cycle, the ISR bit is reset. • Used for master only
  • 22. Command words (ICW & OCW) The command words of 8259A are classified in two groups, 1) Initialization command words (ICWs) (Total of 4 –ICWs) 2) Operation command words (OCWs) (Total of 3 - OCWs) 8259 must be initialized by writing two to four command words into their respective command word registers. If A0=0,D4=1: The control word is ICW1 If A0=1: The control word is ICW2
  • 23. ICW1 and ICW2 are compulsory command words for initialization sequence of 8259A while ICW3 and ICW4 are optional.
  • 24.
  • 25. ADI=1 for 8086 based system For 8086 Don’t Care
  • 26. For 8085 system they are filled by A15-A11 of the interrupt vector address and Least significant 3 bits are same as the respective bits of the vector address. For 8086 system they are filled by most significant 5 bits of interrupt type and the least significant 3 bits are 0, pointing to IR0.