SlideShare a Scribd company logo
1 of 28
88225599 AA 
PPrrooggrraammmmaabbllee 
IInntteerrrruupptt 
ccoonnttrroolllleerr
Interrupts in MMiiccrrooccoommppuutteerr SSyysstteemm 
Microcomputer system design requires 
that I.O devices such as keyboards, 
displays, sensors and other components 
receive servicing in an efficient manner 
so that large amounts of the total 
system tasks can be assumed by the 
microcomputer with little or no effect on 
throughput
What iiss PPIICC && WWhhyy sshhoouulldd wwee oopptt ffoorr iitt ?? 
 The Programmable Interrupt Controller (PIC) functions 
as an overall manager in an Interrupt-Driven system 
environment. 
 It accepts requests from the peripheral equipment, 
determines which of the incoming requests is of the 
highest importance (priority), ascertains whether the 
incoming request has a higher priority value than the 
level currently being serviced, and issues an interrupt to 
the CPU based on this determination. 
 Each peripheral device or structure usually has a special 
program or ``routine'' that is associated with its specific 
functional or operational requirements ; this is referred to 
as a ``service routine''.
88225599AA BBlloocckk DDiiaaggrraamm
88225599 PPiinn CCoonnnneeccttiioonnss
IIRRRR aanndd IISSRR 
 INTERRUPT REQUEST REGISTER (IRR) AND 
IN-SERVICE REGISTER (ISR) 
 The interrupts at the IR input lines are handled 
by two registers in cascade, the Interrupt 
Request Register (IRR) and the In-Service 
(ISR). 
 The IRR is used to store all the interrupt levels 
which are requesting service; and the ISR is 
used to store all the interrupt levels which are 
being serviced.
PPrriioorriittyy RReessoollvveerr 
 This logic block determines the priorities of 
the bits set in the IRR. 
 The highest priority is selected and 
strobed into the corresponding bit of the 
ISR during INTA pulse.
IInntteerrrruupptt MMaasskk RReeggiisstteerr 
 The IMR stores the bits which mask the 
interrupt lines to be masked. The IMR 
operates on the IRR. 
 Masking of a higher priority input will not 
affect the interrupt request lines of lower 
quality.
IINNTT((IInntteerrrruupptt)) 
 This output goes directly to the CPU 
interrupt input. 
 The VOH level on this line is designed to be 
fully compatible with the 8080A, 8085A 
and 8086 input levels.
INTA(Interrupt AAcckknnoowwlleeddggeemmeenntt)) 
INTA pulses will cause the 8259A to 
release vectoring information onto the 
data bus. The format of this data depends 
on the system mode of the 8259A.
DDaattaa BBuuss BBuuffffeerr 
 This 3-state, bidirectional 8-bit buffer is 
used to interface the 8259A to the system 
Data Bus. 
 Control words and status information are 
transferred through the Data Bus Buffer
RReeaadd--WWrriittee CCoonnttrrooll LLooggiicc 
 The function of this block is to accept OUTput 
commands from the CPU. 
 It contains the Initialization Command Word 
(ICW) registers and Operation Command Word 
(OCW) registers which store the various control 
formats for device operation. 
 This function block also allows the status of the 
8259A to be transferred onto the Data Bus
CChhiipp SSeelleecctt (( CCSS )) 
 A LOW on this input enables the 8259A. 
No reading or writing of the chip will occur 
unless the device is selected 
AA00 
 This input signal is used in conjunction with WR and RD 
signals to write commands into the various command 
registers, as well as reading the various status registers 
of the chip. This line can be tied directly to one of the 
address lines
RRDD && WWRR 
 A LOW on WR input enables the CPU to 
write control words (ICWs and OCWs) to 
the 8259A. 
 A LOW on RD input enables the 8259A to 
send the status of the Interrupt Request 
Register (IRR), In Service Register (ISR), 
the Interrupt Mask Register (IMR), or the 
Interrupt level onto the Data Bus.
88225599AA BBlloocckk DDiiaaggrraamm ((RReeppeeaatt))
The Cascade BBuuffffeerr//CCoommppaarraattoorr 
This block is used to expand the number of 
interrupt levels by cascading two or more 8259A.
IINNTTEERRRRUUPPTT SSEEQQUUNNCCEE 
 The events occur as follows in an MCS-80/85 system: 
 1. One or more of the INTERRUPT REQUEST lines (IR7-0) are raised high, 
setting the corresponding IRR bit (s). 
 2. The 8259A evaluates these requests, and sends an INT to the CPU, if 
appropriate. 
 3. The CPU acknowledges the INT and responds with an INTA pulse. 
 4. Upon receiving an INTA from the CPU group, the highest priority ISR bit is 
set, and the corresponding IRR bit is reset. The 8259A will also release a CALL 
instruction code (11001101) onto the 8-bit Data Bus through its D0-7 pins. 
 5. This CALL instruction will initiate two more INTA pulses to be sent to the 
8259A from the CPU group. 
 6. These two INTA pulses allow the 8259A to release its preprogrammed 
subroutine address onto the Data Bus. The lower 8-bit address is released at 
the first INTA pulse and the higher 8-bit address is released at the second INTA 
pulse. 
 7. This completes the 3-byte CALL instruction released by the 8259A. In the 
AEOI mode the ISR bit is reset at the end of the third INTA pulse. Otherwise, the 
ISR bit remains set until an appropriate EOI command is issued at the end of 
the interrupt sequence.
8259 Interface ttoo SSttaannddaarrdd SSyysstteemm BBuuss
PPRROOGGRRAAMMMMIINNGG TTHHEE 88225599AA 
 The 8259A accepts two types of command words generated by the 
CPU: 
 1. Initialization Command Words (ICWs): Before normal operation 
can begin, each 8259A in the system must be brought to a starting 
point by a Sequence of 2 to 4 bytes timed by WR pulses. 
 2. Operation Command Words (OCWs): These are the command 
words which command the 8259Ato operate in various interrupt 
modes. 
 These modes are: 
 a. Fully nested mode 
 b. Rotating priority mode 
 c. Special mask mode 
 d. Polled mode 
 The OCWs can be written into the 8259A anytime after initialization.
IInniittiiaalliizzaattiioonn CCoommmmaanndd WWoorrddss
IICCWW FFoorrmmaatt 
 ICW 1: 
AA00 DD00 DD11 DD22 DD33 DD44 DD55 DD6 DD7 
00 AA7 AA6 AA55 11 LLTTIIMM AADDII SSNNGGLL IICC 44 
IICC44==11 IICCWW44 nneeeeddeedd 
IICC44==00 IICCWW44 nnoott nneeeeddeedd 
SSNNGGLL==11 SSiinnggllee SSNNGGLL==00 CCaassccaaddee MMooddee 
LLTTIIMM==11 LLeevveell TTrriiggggeerreedd MMooddee 
LLTTIIMM==00 EEddggee TTrriiggggeerreedd MMooddee 
AA55--AA7 VVeeccttoorr AAddddrreesssseess
IICCWW FFoorrmmaatt (( ccoonnttdd..)) 
 ICW 2: 
AA00 DD00 DD11 DD22 DD33 DD44 DD55 DD66 DD77 
11 AA1155//TT77 AA1144//TT66 AA1133//TT55 AA1122//TT44 AA1111//TT33 AA1100 AA99 AA88 
AA88 –– AA1155 
((VVEECCTTOORR AADDDDRREESSSSEESS iinn ccaassee ooff MMCCSS 8800//8855 ssyysstteemm)) 
TT33--TT77 
((VVEECCTTOORR AADDDDRREESSSSEESS iinn ccaassee ooff MMCCSS 88008866//88008888 ssyysstteemm))
IICCWW FFoorrmmaatt ((ccoonnttdd..)) 
 ICW 3: (MASTER MODE) 
AA00 DD00 DD11 DD22 DD33 DD44 DD55 DD66 DD77 
11 SS77 SS66 SS55 SS44 SS33 SS22 SS11 SS00 
SS00 –– SS77 == 11,, IIRR iinnppuutt hhaass aa ssllaavvee 
== 00,, IIRR iinnppuutt ddooeess nnoott hhaavvee aa ssllaavvee 
 ICW 3: (SLAVE MODE) 
AA00 DD00 DD11 DD22 DD33 DD44 DD55 DD66 DD77 
11 00 00 00 00 00 IIDD22 IIDD11 IIDD00 
 IIDD00--22 == SSllaavvee IIDDss
Operation CCoommmmaanndd WWoorrddss ((OOCCWW)) 
 OOCCWW11::-- 
 AA00 DD77 DD66 DD55 DD44 DD33 DD22 DD22 DD11 DD00 
11 MM77 MM66 MM55 MM44 MM44 MM33 MM22 MM11 MM00 
IInntteerrrruupptt MMaasskk == 11 MMaasskk SSeett 
== 00 MMaasskk RReesseett
Operation CCoommmmaanndd WWoorrddss ((OOCCWW)) 
((ccoonnttdd..)) 
 OOCCWW 22::-- 
 AA00 DD77 DD66 DD55 DD44 DD33 DD22 DD11 DD00 
00 RR SSLL EEOOII 00 00 LL22 LL11 LL00 
00 00 11 -- NNoonn--SSppeecciiffiicc EEOOII CCoommmmaanndd 
00 11 11 -- SSppeecciiffiicc EEOOII CCoommmmaanndd 
11 00 11 -- RRoottaattee oonn NNoonn--SSppeecciiffiicc EEOOII CCoommmmaanndd 
11 00 00 -- RRoottaattee iinn aauuttoommaattiicc EEOOII mmooddee ((SSeett)) 
00 00 00 -- RRoottaattee iinn aauuttoommaattiicc EEOOII mmooddee ((CClleeaarr)) 
11 11 11 -- RRoottaattee oonn SSppeecciiffiicc EEOOII ccoommmmaanndd 
11 11 00 -- SSeett PPrriioorriittyy CCoommmmaanndd 
00 11 00 -- NNoo OOppeeaarraattiioonn 
 LL00 –– LL22 == IIRR LLeevveell ttoo bbee aacctteedd uuppoonn
OOppeerraattiioonn CCoommmmaanndd WWoorrddss ((OOCCWW)) 
((ccoonnttdd..)) 
 OOCCWW 33 ::-- 
 AA00 DD77 DD66 DD55 DD44 DD33 DD22 DD11 DD00 
00 00 EESSMMMM SSMMMM 00 11 PP RRRR RRIISS 
NNoo AAccttiioonn 00 00 
NNoo AAccttiioonn 00 11 
RReeaadd IIRR rreegg.. oonn nneexxtt RRDD ppuullssee 11 00 
RReeaadd IIRR rreegg.. oonn nneexxtt RRDD ppuullssee 11 11 
PP ==11 PPoollll CCoommmmaanndd 
==00 NNoo PPoollll CCoommmmaanndd 
EESSMMMM SSMMMM 
00 00 NNoo AAccttiioonn 
00 11 NNoo AAccttiioonn 
11 00 RReesseett SSppeecciiaall MMaasskk 
11 11 SSeett SSppeecciiaall MMaasskk
OOCCWW DDeessccrriippttiioonn ::-- 
 OOCCWW 33 ::-- 
 ESMM (Enable Special Mask Mode) - When this bit is 
set to 1 it enables the SMM bit to set or reset the Special 
Mask Mode. When ESMM e 0 the SMM bit becomes a 
``don't care''. 
 SMM (Special Mask Mode) - If ESMM = 1 and SMM = 1 
the 8259A will enter Special Mask Mode. If ESMM = 1 
and SMM = 0 the 8259A will revert to normal mask 
mode. When ESMM = 0, SMM has no effect.
CCAASSCCAADDEE MMOODDEE

More Related Content

What's hot

8251
82518251
8251
Aisu
 
Interrupt11
Interrupt11Interrupt11
Interrupt11
Aisu
 

What's hot (20)

27. 8259 programmable interrupt controller
27. 8259 programmable interrupt controller27. 8259 programmable interrupt controller
27. 8259 programmable interrupt controller
 
8259 Programmable Interrupt Controller
8259 Programmable Interrupt Controller8259 Programmable Interrupt Controller
8259 Programmable Interrupt Controller
 
8251 USART
8251 USART8251 USART
8251 USART
 
8251
82518251
8251
 
Interrupt11
Interrupt11Interrupt11
Interrupt11
 
Interrupt
InterruptInterrupt
Interrupt
 
Interrupts
InterruptsInterrupts
Interrupts
 
8251 USART
8251 USART8251 USART
8251 USART
 
Microprocessors-based systems (under graduate course) Lecture 9 of 9
Microprocessors-based systems (under graduate course) Lecture 9 of 9 Microprocessors-based systems (under graduate course) Lecture 9 of 9
Microprocessors-based systems (under graduate course) Lecture 9 of 9
 
Pci
PciPci
Pci
 
Interrupts of microprocessor 8085
Interrupts of microprocessor  8085Interrupts of microprocessor  8085
Interrupts of microprocessor 8085
 
Project
ProjectProject
Project
 
8155 PPI
8155 PPI8155 PPI
8155 PPI
 
Interrupts in 8051
Interrupts in 8051Interrupts in 8051
Interrupts in 8051
 
Arm7 Interfacing examples
Arm7   Interfacing examples Arm7   Interfacing examples
Arm7 Interfacing examples
 
State transition diagram 8085
State transition diagram 8085State transition diagram 8085
State transition diagram 8085
 
Microprocessor Architecture 4
Microprocessor Architecture  4Microprocessor Architecture  4
Microprocessor Architecture 4
 
Interrupts of 8085
Interrupts of 8085Interrupts of 8085
Interrupts of 8085
 
Pic full note
Pic full notePic full note
Pic full note
 
Microprocessor presentation
Microprocessor presentationMicroprocessor presentation
Microprocessor presentation
 

Viewers also liked (10)

Serial And Parallel Data Transmission By ZAK
Serial And Parallel Data Transmission By ZAKSerial And Parallel Data Transmission By ZAK
Serial And Parallel Data Transmission By ZAK
 
Timing diag
Timing diagTiming diag
Timing diag
 
Timing diagram
Timing diagramTiming diagram
Timing diagram
 
8254 Programmable Interval Timer by vijay
8254 Programmable Interval Timer by vijay8254 Programmable Interval Timer by vijay
8254 Programmable Interval Timer by vijay
 
Timing diagram 8085 microprocessor
Timing diagram 8085 microprocessorTiming diagram 8085 microprocessor
Timing diagram 8085 microprocessor
 
Serial Communication
Serial CommunicationSerial Communication
Serial Communication
 
Unit – 2
Unit – 2Unit – 2
Unit – 2
 
Transmission modes
Transmission modesTransmission modes
Transmission modes
 
8051 serial communication-UART
8051 serial communication-UART8051 serial communication-UART
8051 serial communication-UART
 
8259 Programmable Interrupt Controller by vijay
8259 Programmable Interrupt Controller by vijay8259 Programmable Interrupt Controller by vijay
8259 Programmable Interrupt Controller by vijay
 

Similar to 8259

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
DrVikasMahor
 
Dalls02950 1
Dalls02950 1Dalls02950 1
Dalls02950 1
S BW
 
Microcontrollers ii
Microcontrollers iiMicrocontrollers ii
Microcontrollers ii
Kumar Kumar
 

Similar to 8259 (20)

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
 
ESD III UNIT.pptx
ESD III UNIT.pptxESD III UNIT.pptx
ESD III UNIT.pptx
 
FPGA Verilog Processor Design
FPGA Verilog Processor DesignFPGA Verilog Processor Design
FPGA Verilog Processor Design
 
Intel Quark HSUART
Intel Quark HSUARTIntel Quark HSUART
Intel Quark HSUART
 
Control Memory
Control MemoryControl Memory
Control Memory
 
Dalls02950 1
Dalls02950 1Dalls02950 1
Dalls02950 1
 
Design and development of programmable controller for air sampling machine
Design and development of programmable controller for air sampling machineDesign and development of programmable controller for air sampling machine
Design and development of programmable controller for air sampling machine
 
Microprocessor-Based Automatic Door Opener
Microprocessor-Based Automatic Door OpenerMicroprocessor-Based Automatic Door Opener
Microprocessor-Based Automatic Door Opener
 
AUTOMATIC WIRELESS POWER GRID CONTROL
AUTOMATIC WIRELESS POWER GRID CONTROLAUTOMATIC WIRELESS POWER GRID CONTROL
AUTOMATIC WIRELESS POWER GRID CONTROL
 
8259a.pdf
8259a.pdf8259a.pdf
8259a.pdf
 
Spark
SparkSpark
Spark
 
Lecture 10 _serial_communication
Lecture 10 _serial_communicationLecture 10 _serial_communication
Lecture 10 _serial_communication
 
IRJET - Automated Monitoring Test Rig for Circuit Breaker Operation
IRJET -  	  Automated Monitoring Test Rig for Circuit Breaker OperationIRJET -  	  Automated Monitoring Test Rig for Circuit Breaker Operation
IRJET - Automated Monitoring Test Rig for Circuit Breaker Operation
 
Scada plc by PANKAJ CHAUDHARY
Scada plc by PANKAJ CHAUDHARYScada plc by PANKAJ CHAUDHARY
Scada plc by PANKAJ CHAUDHARY
 
Microcontrollers ii
Microcontrollers iiMicrocontrollers ii
Microcontrollers ii
 
Internal structure of 8086
Internal structure of 8086Internal structure of 8086
Internal structure of 8086
 
80286 microprocessor
80286 microprocessor80286 microprocessor
80286 microprocessor
 
Microcontroller part 2
Microcontroller part 2Microcontroller part 2
Microcontroller part 2
 
Microprocessor & Interfacing (Part-2) By Er. Swapnil V. Kaware
Microprocessor & Interfacing (Part-2) By Er. Swapnil V. KawareMicroprocessor & Interfacing (Part-2) By Er. Swapnil V. Kaware
Microprocessor & Interfacing (Part-2) By Er. Swapnil V. Kaware
 
3.programmable interrupt controller 8259
3.programmable interrupt controller 82593.programmable interrupt controller 8259
3.programmable interrupt controller 8259
 

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
 
8279nptel
8279nptel 8279nptel
8279nptel
 
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
 
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

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
MsecMca
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ssuser89054b
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 

Recently uploaded (20)

Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
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
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
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
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
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
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 

8259

  • 1. 88225599 AA PPrrooggrraammmmaabbllee IInntteerrrruupptt ccoonnttrroolllleerr
  • 2. Interrupts in MMiiccrrooccoommppuutteerr SSyysstteemm Microcomputer system design requires that I.O devices such as keyboards, displays, sensors and other components receive servicing in an efficient manner so that large amounts of the total system tasks can be assumed by the microcomputer with little or no effect on throughput
  • 3. What iiss PPIICC && WWhhyy sshhoouulldd wwee oopptt ffoorr iitt ??  The Programmable Interrupt Controller (PIC) functions as an overall manager in an Interrupt-Driven system environment.  It accepts requests from the peripheral equipment, determines which of the incoming requests is of the highest importance (priority), ascertains whether the incoming request has a higher priority value than the level currently being serviced, and issues an interrupt to the CPU based on this determination.  Each peripheral device or structure usually has a special program or ``routine'' that is associated with its specific functional or operational requirements ; this is referred to as a ``service routine''.
  • 6. IIRRRR aanndd IISSRR  INTERRUPT REQUEST REGISTER (IRR) AND IN-SERVICE REGISTER (ISR)  The interrupts at the IR input lines are handled by two registers in cascade, the Interrupt Request Register (IRR) and the In-Service (ISR).  The IRR is used to store all the interrupt levels which are requesting service; and the ISR is used to store all the interrupt levels which are being serviced.
  • 7. PPrriioorriittyy RReessoollvveerr  This logic block determines the priorities of the bits set in the IRR.  The highest priority is selected and strobed into the corresponding bit of the ISR during INTA pulse.
  • 8. IInntteerrrruupptt MMaasskk RReeggiisstteerr  The IMR stores the bits which mask the interrupt lines to be masked. The IMR operates on the IRR.  Masking of a higher priority input will not affect the interrupt request lines of lower quality.
  • 9. IINNTT((IInntteerrrruupptt))  This output goes directly to the CPU interrupt input.  The VOH level on this line is designed to be fully compatible with the 8080A, 8085A and 8086 input levels.
  • 10. INTA(Interrupt AAcckknnoowwlleeddggeemmeenntt)) INTA pulses will cause the 8259A to release vectoring information onto the data bus. The format of this data depends on the system mode of the 8259A.
  • 11. DDaattaa BBuuss BBuuffffeerr  This 3-state, bidirectional 8-bit buffer is used to interface the 8259A to the system Data Bus.  Control words and status information are transferred through the Data Bus Buffer
  • 12. RReeaadd--WWrriittee CCoonnttrrooll LLooggiicc  The function of this block is to accept OUTput commands from the CPU.  It contains the Initialization Command Word (ICW) registers and Operation Command Word (OCW) registers which store the various control formats for device operation.  This function block also allows the status of the 8259A to be transferred onto the Data Bus
  • 13. CChhiipp SSeelleecctt (( CCSS ))  A LOW on this input enables the 8259A. No reading or writing of the chip will occur unless the device is selected AA00  This input signal is used in conjunction with WR and RD signals to write commands into the various command registers, as well as reading the various status registers of the chip. This line can be tied directly to one of the address lines
  • 14. RRDD && WWRR  A LOW on WR input enables the CPU to write control words (ICWs and OCWs) to the 8259A.  A LOW on RD input enables the 8259A to send the status of the Interrupt Request Register (IRR), In Service Register (ISR), the Interrupt Mask Register (IMR), or the Interrupt level onto the Data Bus.
  • 16. The Cascade BBuuffffeerr//CCoommppaarraattoorr This block is used to expand the number of interrupt levels by cascading two or more 8259A.
  • 17. IINNTTEERRRRUUPPTT SSEEQQUUNNCCEE  The events occur as follows in an MCS-80/85 system:  1. One or more of the INTERRUPT REQUEST lines (IR7-0) are raised high, setting the corresponding IRR bit (s).  2. The 8259A evaluates these requests, and sends an INT to the CPU, if appropriate.  3. The CPU acknowledges the INT and responds with an INTA pulse.  4. Upon receiving an INTA from the CPU group, the highest priority ISR bit is set, and the corresponding IRR bit is reset. The 8259A will also release a CALL instruction code (11001101) onto the 8-bit Data Bus through its D0-7 pins.  5. This CALL instruction will initiate two more INTA pulses to be sent to the 8259A from the CPU group.  6. These two INTA pulses allow the 8259A to release its preprogrammed subroutine address onto the Data Bus. The lower 8-bit address is released at the first INTA pulse and the higher 8-bit address is released at the second INTA pulse.  7. This completes the 3-byte CALL instruction released by the 8259A. In the AEOI mode the ISR bit is reset at the end of the third INTA pulse. Otherwise, the ISR bit remains set until an appropriate EOI command is issued at the end of the interrupt sequence.
  • 18. 8259 Interface ttoo SSttaannddaarrdd SSyysstteemm BBuuss
  • 19. PPRROOGGRRAAMMMMIINNGG TTHHEE 88225599AA  The 8259A accepts two types of command words generated by the CPU:  1. Initialization Command Words (ICWs): Before normal operation can begin, each 8259A in the system must be brought to a starting point by a Sequence of 2 to 4 bytes timed by WR pulses.  2. Operation Command Words (OCWs): These are the command words which command the 8259Ato operate in various interrupt modes.  These modes are:  a. Fully nested mode  b. Rotating priority mode  c. Special mask mode  d. Polled mode  The OCWs can be written into the 8259A anytime after initialization.
  • 21. IICCWW FFoorrmmaatt  ICW 1: AA00 DD00 DD11 DD22 DD33 DD44 DD55 DD6 DD7 00 AA7 AA6 AA55 11 LLTTIIMM AADDII SSNNGGLL IICC 44 IICC44==11 IICCWW44 nneeeeddeedd IICC44==00 IICCWW44 nnoott nneeeeddeedd SSNNGGLL==11 SSiinnggllee SSNNGGLL==00 CCaassccaaddee MMooddee LLTTIIMM==11 LLeevveell TTrriiggggeerreedd MMooddee LLTTIIMM==00 EEddggee TTrriiggggeerreedd MMooddee AA55--AA7 VVeeccttoorr AAddddrreesssseess
  • 22. IICCWW FFoorrmmaatt (( ccoonnttdd..))  ICW 2: AA00 DD00 DD11 DD22 DD33 DD44 DD55 DD66 DD77 11 AA1155//TT77 AA1144//TT66 AA1133//TT55 AA1122//TT44 AA1111//TT33 AA1100 AA99 AA88 AA88 –– AA1155 ((VVEECCTTOORR AADDDDRREESSSSEESS iinn ccaassee ooff MMCCSS 8800//8855 ssyysstteemm)) TT33--TT77 ((VVEECCTTOORR AADDDDRREESSSSEESS iinn ccaassee ooff MMCCSS 88008866//88008888 ssyysstteemm))
  • 23. IICCWW FFoorrmmaatt ((ccoonnttdd..))  ICW 3: (MASTER MODE) AA00 DD00 DD11 DD22 DD33 DD44 DD55 DD66 DD77 11 SS77 SS66 SS55 SS44 SS33 SS22 SS11 SS00 SS00 –– SS77 == 11,, IIRR iinnppuutt hhaass aa ssllaavvee == 00,, IIRR iinnppuutt ddooeess nnoott hhaavvee aa ssllaavvee  ICW 3: (SLAVE MODE) AA00 DD00 DD11 DD22 DD33 DD44 DD55 DD66 DD77 11 00 00 00 00 00 IIDD22 IIDD11 IIDD00  IIDD00--22 == SSllaavvee IIDDss
  • 24. Operation CCoommmmaanndd WWoorrddss ((OOCCWW))  OOCCWW11::--  AA00 DD77 DD66 DD55 DD44 DD33 DD22 DD22 DD11 DD00 11 MM77 MM66 MM55 MM44 MM44 MM33 MM22 MM11 MM00 IInntteerrrruupptt MMaasskk == 11 MMaasskk SSeett == 00 MMaasskk RReesseett
  • 25. Operation CCoommmmaanndd WWoorrddss ((OOCCWW)) ((ccoonnttdd..))  OOCCWW 22::--  AA00 DD77 DD66 DD55 DD44 DD33 DD22 DD11 DD00 00 RR SSLL EEOOII 00 00 LL22 LL11 LL00 00 00 11 -- NNoonn--SSppeecciiffiicc EEOOII CCoommmmaanndd 00 11 11 -- SSppeecciiffiicc EEOOII CCoommmmaanndd 11 00 11 -- RRoottaattee oonn NNoonn--SSppeecciiffiicc EEOOII CCoommmmaanndd 11 00 00 -- RRoottaattee iinn aauuttoommaattiicc EEOOII mmooddee ((SSeett)) 00 00 00 -- RRoottaattee iinn aauuttoommaattiicc EEOOII mmooddee ((CClleeaarr)) 11 11 11 -- RRoottaattee oonn SSppeecciiffiicc EEOOII ccoommmmaanndd 11 11 00 -- SSeett PPrriioorriittyy CCoommmmaanndd 00 11 00 -- NNoo OOppeeaarraattiioonn  LL00 –– LL22 == IIRR LLeevveell ttoo bbee aacctteedd uuppoonn
  • 26. OOppeerraattiioonn CCoommmmaanndd WWoorrddss ((OOCCWW)) ((ccoonnttdd..))  OOCCWW 33 ::--  AA00 DD77 DD66 DD55 DD44 DD33 DD22 DD11 DD00 00 00 EESSMMMM SSMMMM 00 11 PP RRRR RRIISS NNoo AAccttiioonn 00 00 NNoo AAccttiioonn 00 11 RReeaadd IIRR rreegg.. oonn nneexxtt RRDD ppuullssee 11 00 RReeaadd IIRR rreegg.. oonn nneexxtt RRDD ppuullssee 11 11 PP ==11 PPoollll CCoommmmaanndd ==00 NNoo PPoollll CCoommmmaanndd EESSMMMM SSMMMM 00 00 NNoo AAccttiioonn 00 11 NNoo AAccttiioonn 11 00 RReesseett SSppeecciiaall MMaasskk 11 11 SSeett SSppeecciiaall MMaasskk
  • 27. OOCCWW DDeessccrriippttiioonn ::--  OOCCWW 33 ::--  ESMM (Enable Special Mask Mode) - When this bit is set to 1 it enables the SMM bit to set or reset the Special Mask Mode. When ESMM e 0 the SMM bit becomes a ``don't care''.  SMM (Special Mask Mode) - If ESMM = 1 and SMM = 1 the 8259A will enter Special Mask Mode. If ESMM = 1 and SMM = 0 the 8259A will revert to normal mask mode. When ESMM = 0, SMM has no effect.