📝 INTEL Programmable Keyboard/Display Interface 8279 (8 MCQs)
Architecture and Peripheral Integration of the 8279
The Intel 8279 is a programmable keyboard and display interface IC designed to reduce the processing requirements of an 8085-based computer system. It provides keyboard scanning, key debouncing, data buffering and multiplexed display refreshing. Its main resources include an eight-bit data interface, an eight-byte FIFO, a 16 × 8 display RAM, keyboard control circuitry and a programmable scan counter.
Keyboard Scanning and Display Refresh Facilities
The keyboard section uses eight return lines RL0–RL7 and four scan outputs SL0–SL3 to detect key operations. Its debounce circuitry removes signals caused by mechanical contact variations. The display section uses OUT A0–A3 and OUT B0–B3 to supply display data, while the scan outputs select individual display positions.
Internal RAM and Processor Communication
The 8279 contains an eight-character FIFO for keyboard or strobed input data, sensor RAM for scanned sensor information and sixteen bytes of display RAM. The processor communicates through DB0–DB7 using CS, RD, WR and A0. An interrupt output informs the CPU when keyboard or sensor information requires attention.
Example of Keyboard and Display Interface Operation
Suppose an eight-digit keyboard and display system uses encoded scanning and two-key lockout. The processor configures the 8279, and the device continuously scans the keyboard while refreshing the display. When a valid key is pressed, its code enters the FIFO and IRQ informs the processor that data is available.
Applications in Microprocessor-Based Input and Output Systems
The 8279 is suitable for calculators, numeric control panels, keyboards, digital instruments and display-based systems. It performs scanning, debouncing and display refreshing independently, allowing the 8085 to execute other programs. Its programmable modes support different keyboard arrangements and display formats without requiring the processor to manage every individual key and display operation.
Misconceptions About Keyboard and Display Interface Hardware
'The 8279 is only a keyboard controller' overlooks its programmable display section. 'The FIFO stores sixteen keyboard entries' confuses it with the sixteen-byte display RAM because the keyboard FIFO holds eight characters. 'The processor must continuously refresh every display digit' is incorrect because the 8279 performs automatic multiplexed refreshing.
8279 Functional Features and Peripheral Interfacing Questions
Identify the eight return lines, four scan lines, FIFO, sensor RAM and display RAM. Understand the processor interface signals and the roles of IRQ, SHIFT and CNTL/STB. Practise distinguishing keyboard scanning from display refreshing and selecting suitable operating modes for different input and output requirements.
8279 Keyboard and Display Interface Terminology
- 8279 - Programmable keyboard and display controller.
- FIFO - Stores eight keyboard entries.
- Display RAM - Holds sixteen display bytes.
- SL Lines - Generate keyboard and display scanning.
- RL Lines - Receive keyboard and sensor inputs.
- IRQ - Requests processor attention.
📝 All INTEL Programmable Keyboard/Display Interface 8279 MCQs
Q1. A system needs to generate a periodic interrupt using counter 0. Which pin should be connected to the interrupt line?
📖 Explanation: The interrupt line must receive the output of counter 0, which is provided on the OUT0 pin (pin 10). Connecting GATE0 would only control when the counter counts, not deliver the count value. CLK0 is not a defined pin for the 8253, and CS is used only to enable the whole chip. Therefore, OUT0 is the correct choice, ensuring the periodic signal reaches the interrupt circuitry.
Q2. What is the primary role of the CS (Chip Select) pin on the 8253?
📖 Explanation: CS is an active‑low input; when it is low the 8253 becomes operational and can respond to other control signals. It does not generate clocks, select individual counters (A0/A1 do that), or perform read operations. Hence the correct description is that CS enables the device when driven low, allowing the rest of the pins to function.
Q3. To write a mode word that configures counter 1 for square‑wave operation, which combination of control signals must be active? Use 0 for low and 1 for high.
📖 Explanation: According to the control‑signal table, writing a mode word requires CS low, RD high, WR low, and address lines A1 = 1, A0 = 1 to target the mode‑word register. Option A matches this exact pattern, while the other options either set RD low (which would initiate a read) or set the address lines incorrectly, preventing the mode word from being stored.
Q4. Why are the A0 and A1 terminals tied to the address bus in the 8253?
📖 Explanation: A0 and A1 are address inputs that let the CPU choose between counter 0, counter 1, counter 2, or the control‑word register. They do not supply voltage, produce clocks, or issue resets. By connecting them to the address bus, the processor can issue the proper command to the desired internal register, which is essential for correct operation of the three counters.
Q5. A microprocessor wants to read the current count of counter 2. Which control‑signal pattern should it assert?
📖 Explanation: Reading counter 2 uses the combination CS low, RD low, WR high, and the address lines set to A1 = 1, A0 = 0, as shown in the table for “Read counter 2”. Option A follows this exact pattern. The other options either set RD high (which would not initiate a read) or use the wrong address bits, leading to reading the wrong counter or no operation.
Q6. Which pin number on the 8253 is designated for the ground terminal?
📖 Explanation: The ground reference for the 8253 is provided on pin 12. Pin 10 is OUT0, pin 21 is the active‑low chip‑select line, and pin 24 supplies +5 V. Correctly connecting the ground pin ensures the device has a common reference voltage, which is essential for reliable digital operation.
Q7. If GATE2 is mistakenly wired to the same line as OUT1, what functional problem is most likely to occur?
📖 Explanation: OUT1 is an output pin that reflects the count of counter 1, while GATE2 is an input that controls counting for counter 2. Sharing the same line means the gating of counter 2 becomes dependent on the output state of counter 1, causing both counters to be enabled or disabled together and leading to unintended timing relationships. The other options describe effects that do not follow from this wiring error.
Q8. How does the active‑low nature of the RD and WR signals influence the timing when the CPU reads a counter value?
📖 Explanation: During a read, the CPU pulls the RD line low (active‑low) while WR remains high, signaling the 8253 to place the requested count on the data bus. The data stays valid as long as RD is low, and the CPU releases RD (returns it high) after capturing the value. Using WR low would indicate a write operation, and requiring both lines low would not match the defined protocol, making option A the only correct description of the timing behavior.