You are on page 1of 15

OPERATING MODES OF

IC 8259
TYPES
 Fully nested mode
 Special fully nested mode
 Automatic rotation mode
 Specific rotation mode
 Special Mask Mode(SMM)
 Poll Mode
 End Of Interrupt(EOI)
 Automatic EOI mode(AEOI)
 Buffered mode
FULLY NESTED MODE
 Default mode
 IR0 – HISHEST PRIORITY
 IR7 – LOWEST PRIORITY
 The priority can be changed by
rotating priority mode
 ISR bit is set till the microprocessor
issues EOI.
Special fully nested mode (SFNM)

 Used where the cascading is used.


 Priority has to be programmed in the master using ICW4
 When an interrupt is in service, this slave can further send
request to the Master.
AUTOMATIC ROTATION MODE
 Used where interrupting devices are of equal priority
 IR receives lowest priority after being served and the next
IR receives the highest priority.

SPECIFIC ROTATION MODE


 Programmer can decide the lowest priority.
SPECIAL MASK MODE

 For every interrupt there is a respective mask bit (M0-M7)


 If any of the mask bit is set that particular IR is masked.
POLL MODE
 INT signal is masked by the microprocessor

https://www.geeksforgeeks.org/operating-modes-of-8259-pic/
END OF INTERRUPT COMMANDMODE(EOI)

 ISR bit can be reset using EOI or AEOI issued before


returning from the ISR.

 2 TYPES
1. SPECIFIC
2. NON-SPECIFIC
AUTOMATIC END OF INTERRUPT MODE

 8259 performs a non specific EOI operation at the trailing


edge of the INTA automatically
 i.e. when AEOI=1 in ICW4, AEOI is enabled.
Edge and level triggered mode

 ICW1 decides the edge and level triggering


if the LTIM of ICW1=0, edge triggered.
LTIM of ICW1=1, level triggered
https://media.geeksforgeeks.org/wp-content/uploads/20210604082518/Untitleddrawing2-660x396.png
READING 8259 REGISTERS
 ISR
 IRR
 IMR
OCW3- reads IRR and ISR registers
OCW1- reads IMR register
BUFFERED MODE
 Data buffers can be enabled or disabled
When pin SP/EN is enabled the data is placed on the data bus

https://lh5.ggpht.com/-aXCKkSbdwk4/VEkwTUTi7BI/AAAAAAAAqNQ/RV2OP1mVtNw/s1600-h/Priority%252520Interrupt%252520Controller%2525208259%2525205-01-
33%252520PM_thumb%25255B2%25255D.png
References:

 Operating modes of 8259 PIC - GeeksforGeeks

 operating modes of 8259 - G


8259 Block Diagram | Operating Modes of 8259 - eeeguide.com

 eeeguide.comhttps://www.eeeguide.com › Interfacing ICsoogle Search


THANK YOU

You might also like