🎓 BookMCQ
← Back to 11. Programmable Interrupt Controller: 8259

📝 Interrupt Modes of 8259A (3 MCQs)

Programmable Interrupt Handling Choices in the 8259A

The 8259A provides several operating arrangements so that interrupt requests can be handled according to system requirements. These include fully nested priority operation, rotating priority, special mask mode and software polling. It also supports edge-triggered or level-triggered request recognition, automatic end of interrupt and cascaded configurations. The selected features determine how requests are recognized, prioritized, acknowledged and released.

Fixed Priority and Fully Nested Request Processing

After initialization, the controller normally uses fully nested mode, assigning IR0 the highest priority and IR7 the lowest. While one request is in service, requests of the same or lower priority are inhibited, but an eligible higher-priority request can interrupt when the processor permits nesting. The ISR records active service levels until an EOI command or automatic completion clears them.

Rotating Priority and Special Mask Operation

Rotating priority changes the priority arrangement so that a device can receive the lowest priority after service, improving access for requests of similar importance. Special mask mode provides finer software control while a service level remains active. It allows unmasked requests at other levels, including lower-priority levels, to be considered instead of applying the normal in-service blocking rule.

Polling and Trigger Recognition in Different Systems

In polled operation, software reads the controller to identify the highest-priority pending request rather than relying on the processor's interrupt response. Separately, ICW1 selects edge-triggered recognition, which responds to a low-to-high transition, or level-triggered recognition, which responds to a high input level. These choices determine how external devices must present and maintain their request signals.

Automatic EOI and Cascaded Controller Arrangements

The AEOI option clears the in-service state automatically at the end of the final interrupt-acknowledge pulse. It can reduce software overhead when nested service is not required. Cascade operation connects a master to slave controllers through CAS0–CAS2, allowing up to 64 interrupt levels. Special fully nested mode can be selected for particular cascaded systems through ICW4.

Clarifying the Purpose of Each Interrupt Mode

'Rotating priority disables fixed priority hardware' is incorrect because it changes the priority assignment used by the resolver. 'Polling means the controller stops receiving requests' is incorrect because requests continue to be recorded. 'AEOI is the same as a software EOI command' is incorrect because AEOI clears service state automatically at the final acknowledge pulse.

Mode Selection and Operating Characteristics in Examination Questions

Compare fully nested and rotating priority, and explain how special mask mode modifies normal in-service blocking. Identify polling through OCW3 and recognize edge or level triggering through ICW1. Questions may also test AEOI, cascade operation and the purpose of SFNM, so distinguish initialization settings from operating commands.

Interrupt Mode and Control Vocabulary

  • FNM - Default fully nested priority operation.
  • Rotation - Changes the priority order after service.
  • SMM - Special mask mode selection.
  • Poll Mode - Software reads pending interrupt information.
  • LTIM - Selects level-triggered recognition.
  • AEOI - Automatically clears an in-service level.
  • SFNM - Supports nested service in cascaded systems.
1
Easy
1
Medium
1
Hard

📝 All Interrupt Modes of 8259A MCQs

Q1. A system designer wants to generate periodic interrupts using counter 0 of the 8253. Which pin must be connected to the interrupt request line of the 8259A to ensure the interrupt is triggered?

A.CLK0 (Pin 9)
B.OUT0 (Pin 10) ✅
C.GATE0 (Pin 11)
D.CS (Pin 21)
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: OUT0 is the output terminal of counter 0. When the counter reaches its terminal count, it toggles OUT0, which can be wired to the interrupt request (IRQ) input of the 8259A. CLK0 only provides the timing signal, and GATE0 merely enables or disables counting; they do not produce an interrupt. CS is used for chip selection, not for interrupt signaling. Therefore connecting OUT0 to the IRQ line ensures the interrupt is generated when the counter expires.

Q2. Which combination of control signals CS, RD, WR, A1, and A0 causes the 8253 to write a mode word into its mode register?

A.CS=0, RD=0, WR=1, A1=1, A0=1
B.CS=0, RD=1, WR=1, A1=0, A0=0
C.CS=0, RD=1, WR=0, A1=1, A0=1 ✅
D.CS=1, RD=0, WR=0, A1=0, A0=0
💡 Difficulty: medium | ✅ Correct: C

📖 Explanation: The table of control‑signal actions shows that writing a mode word requires CS low, RD high, WR low, and the address lines selecting the mode register (A1=1, A0=1). In option C the signals match this pattern, so the 8253 interprets the bus cycle as a mode‑word write. Option A has WR high, which indicates a read operation. Option B sets WR high, also preventing a mode‑word write. Option D sets CS high, which disables the device entirely. Thus only option C correctly triggers a mode‑word write.

Q3. During configuration of the 8259A in level‑triggered mode, a designer keeps pin GATE2 low while also enabling counter 2. What is the most likely result on interrupt generation from counter 2?

A.Counter 2 will never generate an interrupt request.
B.Counter 2 will continuously assert the interrupt request. ✅
C.Counter 2 will generate an interrupt only after a system reset.
D.There will be no effect on interrupt generation.
💡 Difficulty: hard | ✅ Correct: B

📖 Explanation: Keeping GATE2 low disables the counting operation of counter 2, regardless of its enable bit. In level‑triggered mode the interrupt request is generated only when the counter produces an active output on its OUT2 pin. Because GATE2 prevents the counter from counting, OUT2 never becomes active, so the 8259A never receives an interrupt request from this source. Option B describes continuous interrupts, which would require the output to be permanently asserted, not the case here. Therefore the correct outcome is that counter 2 will never generate an interrupt request.

🔗 Related Topics (MCQs)