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

📝 Interfacing of 8259A with 8085A (13 MCQs)

Connecting the 8259A to the 8085A System Bus

The 8259A interfaces with the 8085A through the processor data bus, interrupt connection and control signals. Its eight IR inputs receive requests from peripheral devices, while its INT output connects to the 8085A INTR input. The 8259A INTA input receives the processor's active-low interrupt-acknowledge signal. This arrangement centralizes priority selection and interrupt-vector delivery.

Data Bus, Address Selection and Read-Write Connections

The 8259A D7–D0 pins connect to the system's eight-bit data bus, allowing command, status and vector information to pass between the devices. Its A0 input selects command or data register functions, while CS is activated by address-decoding circuitry. The active-low RD and WR inputs are controlled by suitable 8085A read and write signals, with I/O or memory selection used as required.

Interrupt Acknowledge and Vector Transfer Between Devices

When the controller activates INT, the 8085A recognizes the request through INTR after completing its current instruction, provided maskable interrupts are enabled. The processor then generates INTA pulses. In MCS-80/85 mode, the 8259A responds with three data transfers: the CALL opcode, the low-order destination address byte and the high-order address byte.

Example of Two I/O Ports for Command and Data Access

Suppose address decoding assigns port 80H to A0 = 0 and port 81H to A0 = 1. The instruction OUT 80H writes a command such as ICW1, while OUT 81H writes ICW2, ICW4 or the interrupt mask. The matching IN instructions read selected status or mask information from the controller.

Peripheral Request Lines and Cascaded Controller Connections

Peripheral devices connect their interrupt outputs to IR0–IR7 according to the required priority arrangement. The 8259A combines eligible requests and sends one interrupt signal to the 8085A. For larger systems, CAS0–CAS2 connect a master controller to slave controllers, while each device receives a decoded chip-select signal. This arrangement expands interrupt capacity without requiring a separate processor input for every device.

Common Wiring and Register-Selection Errors

'INT connects to the 8085A INTA pin' is incorrect because INT connects to INTR, while the processor's INTA output connects to the controller's INTA input. 'A0 selects the interrupt level' is incorrect because it selects command or data register access. 'CS can remain permanently active' is incorrect because address decoding should select the controller only during its assigned access.

Interfacing Details Commonly Tested in 8085A Questions

Trace the data bus, INTR, INTA, CS, RD, WR and A0 connections in an interface diagram. Distinguish the controller's INT output from its INTA input and identify the role of address decoding. In programming questions, interpret the two port addresses according to A0, and explain how peripheral requests reach the processor through the controller.

Bus Connections and Interrupt Interface Terms

  • INTR - 8085A input for maskable interrupts.
  • INT - 8259A interrupt output.
  • INTA - Active-low acknowledge input of the 8259A.
  • CS - Enables the selected controller.
  • A0 - Selects command or data register access.
  • RD - Enables controller data output.
  • WR - Enables command or data input.
3
Easy
4
Medium
6
Hard

📝 All Interfacing of 8259A with 8085A MCQs

Q1. Which pin on the 8253 is designated as the Chip Select (CS) terminal?

A.Pin 21 ✅
B.Pin 22
C.Pin 23
D.Pin 24
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: The CS terminal is pin 21 and it is active low, meaning the device responds when this pin is driven low. Pin 22 is the RD line, pin 23 is WR, and pin 24 supplies +5 V. Recognizing the correct pin prevents wiring errors that would keep the 8253 permanently disabled, ensuring the microprocessor can correctly enable the chip when needed.

Q2. Why is the CS (Chip Select) input on the 8253 defined as active‑low?

A.To reduce power consumption when inactive
B.To simplify interfacing with TTL logic that commonly uses low‑active signals ✅
C.Because the 8085 only generates low‑level control signals
D.To protect the device from voltage spikes
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: Active‑low inputs are a common design choice because most TTL logic families naturally produce low signals for enable functions, and this convention matches the 8085’s control lines. Low‑active CS ensures the chip is only active when the processor explicitly pulls the line low, avoiding accidental activation from noise and simplifying circuit design.

Q3. When the 8085 writes a mode word to counter 1, which combination of control pins must be asserted low?

A.CS low, WR low, A1 low, A0 low
B.CS low, WR low, A1 high, A0 high
C.CS low, RD low, WR high, A1 high, A0 high ✅
D.CS high, WR low, A1 high, A0 high
💡 Difficulty: easy | ✅ Correct: C

📖 Explanation: According to the control‑signal table, writing a mode word requires CS = 0, RD = 1, WR = 0, A1 = 1, and A0 = 1. Therefore the correct pins are CS low, WR low, and both address lines high. The other options either set RD low (which would trigger a read operation) or set address lines incorrectly, causing the wrong register to be programmed.

Q4. What is the primary purpose of the GATE n input on each 8253 counter?

A.It provides the clock signal for the counter
B.It enables or disables counting based on an external condition
C.It determines the output polarity of the OUT pin
D.It selects the counter’s operating mode ✅
💡 Difficulty: medium | ✅ Correct: D

📖 Explanation: The GATE pin controls whether the counter is allowed to count; when GATE is high (or enabled) the counter receives clock pulses, and when low the counting is halted. This allows external hardware to pause a specific timer without affecting the others. The other choices describe functions of CLK (clock), OUT (output), or mode selection, which are unrelated to the gating mechanism.

Q5. To read the current value of counter 2, which address‑line settings (A1, A0) must the 8085 present?

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

📖 Explanation: The table shows that a read operation for counter 2 uses CS = 0, RD = 0, WR = 1, with A1 = 1 and A0 = 0. Setting those address lines selects counter 2’s register for reading. Any other combination would address a different counter or perform a write, leading to incorrect data being retrieved.

Q6. If the CLK 2 pin of counter 2 is left unconnected, what is the most likely effect on that counter’s behavior?

A.It will continue counting using the internal oscillator
B.It will freeze and never increment ✅
C.It will count at half the expected rate
D.It will generate random counts
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: CLK 2 supplies the external clock pulses that drive counting. Without a clock source, the counter cannot advance, so it remains at the loaded value. The 8253 does not contain an internal oscillator to replace a missing clock, so the counter does not count at any rate, deterministic or random.

Q7. How does the OUT n pin of an 8253 counter relate to interrupt handling in an 8259A interrupt controller?

A.OUT n directly triggers an interrupt request line on the 8259A
B.OUT n provides a clock that the 8259A uses for timing
C.OUT n can be wired to an interrupt request input, allowing the counter’s terminal count to generate an IRQ ✅
D.OUT n is unrelated to interrupt handling and only drives LEDs
💡 Difficulty: medium | ✅ Correct: C

📖 Explanation: The OUT pin can be connected to one of the 8259A’s interrupt request inputs; when the counter reaches its terminal count, the OUT line toggles, producing an interrupt request that the 8259A can prioritize and vector. The other options misinterpret the role of OUT, which does not supply a clock nor is it limited to visual indicators.

Q8. A designer needs a 1 kHz square wave from counter 0 using a 2 MHz system clock. Which count value should be loaded into counter 0 in mode 2?

A.500500
B.10001000
C.20002000 ✅
D.40004000
💡 Difficulty: hard | ✅ Correct: C

📖 Explanation: In mode 2 the output toggles each time the counter reaches zero, so the output frequency equals clock/count\text{clock}/\text{count}. With a 2 MHz clock, a 1 kHz wave requires a count of 2,0002{,}000 (2,000,000/1,000=2,0002{,}000{,}000/1{,}000 = 2{,}000). Loading 500 or 1000 would produce higher frequencies, while 4000 would halve the desired frequency.

Q9. If both CS and RD signals are asserted low at the same time, what operation does the 8253 perform?

A.It reads the selected counter ✅
B.It writes a mode word
C.It loads the selected counter
D.It performs no operation
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: When CS = 0 and RD = 0 while WR = 1, the control‑signal table indicates a read operation for the counter selected by A1/A0. Therefore the device places the current count on the data bus. Writing a mode word requires WR = 0, and loading a counter requires WR = 0 with RD = 1, so those options are incorrect.

Q10. What unpredictable behavior might occur if the address pins A0 and A1 are left floating?

A.The counter may randomly select different counters for each operation ✅
B.The clock frequency will double
C.The CS line will become permanently low
D.The device will enter a low‑power shutdown mode
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: Floating address lines can pick up noise and switch between logic high and low, causing the 8253 to intermittently select different counters or registers. This leads to erratic reads/writes and makes debugging difficult. The other choices describe effects that are not directly caused by undefined address inputs.

Q11. To make counter 1 reset whenever an external enable signal goes low for a single clock cycle, which wiring is appropriate?

A.Connect the external signal to GATE 1 and tie CLK 1 to the system clock
B.Connect the external signal to CLK 1 and tie GATE 1 high
C.Connect the external signal to both GATE 1 and CLK 1 ✅
D.Leave GATE 1 high and use software reset
💡 Difficulty: hard | ✅ Correct: C

📖 Explanation: By wiring the external pulse to both GATE 1 and CLK 1, a low pulse will temporarily disable counting (GATE 1 = 0) and also provide a clock edge that forces the counter to reload its initial value, effectively resetting it for one cycle. Using only GATE 1 would pause counting without resetting, and tying GATE 1 high removes gating control.

Q12. When choosing between the 8253 timer and the 8259A interrupt controller for handling many peripheral requests, which device provides vectored interrupt capability?

A.8253
B.8259A ✅
C.Both provide vectored interrupts
D.Neither provides vectored interrupts
💡 Difficulty: hard | ✅ Correct: B

📖 Explanation: The 8259A is specifically designed as a programmable interrupt controller that supplies interrupt vectors, allowing the CPU to identify the source of each request. The 8253 is a timer/counter and does not generate interrupt vectors; it can only raise an IRQ line. Therefore only the 8259A offers vectored interrupt handling.

Q13. A system needs to poll the status of counter 0 while counters 1 and 2 keep running uninterrupted. Which control‑signal sequence should the 8085 use?

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

📖 Explanation: Reading a counter requires CS = 0, RD = 0, WR = 1, and the address lines set to select counter 0 (A1 = 0, A0 = 0). This sequence places the current count on the data bus without affecting the other counters, which continue counting because their GATE and CLK inputs remain active. The other options either write instead of read or select the wrong counter.)

🔗 Related Topics (MCQs)