🎓 BookMCQ
← Back to 10. Programmable Keyboard and Display Interface: 8279

📝 Block Diagram of 8279 (13 MCQs)

Major Functional Sections in the 8279 Block Diagram

The functional block diagram of the Intel 8279 consists of a CPU interface, keyboard section, scan section, display section and timing and control circuitry. These sections coordinate peripheral communication, key detection, data buffering and display refreshing. Internal connections use an eight-bit data path, allowing keyboard information and display data to move between functional blocks and the processor.

Data Bus Buffer and I/O Control Logic

The data bus buffer connects internal registers with external data lines DB0–DB7. I/O control logic interprets CS, RD, WR and A0 to identify processor operations. A0 distinguishes command and status accesses from ordinary data accesses, while CS selects the device for communication.

Keyboard Control and FIFO Sensor RAM Organization

The keyboard section contains eight return lines, debounce circuitry and FIFO or sensor RAM control. In scanned keyboard operation, detected key information is stored in the FIFO. In sensor matrix operation, the memory records the status of sensor rows. The IRQ signal indicates when new information or an applicable event requires processor attention.

Scan Counter and Display RAM Connections

The scan counter generates sequential scanning signals through SL0–SL3. Its encoded or decoded operation determines how external keyboard rows and display positions are selected. The display section contains sixteen bytes of RAM, display address registers and output circuits that provide synchronized data through OUT A0–A3 and OUT B0–B3.

Example of Data Movement Through the Internal Blocks

When a keyboard key is pressed, the scan circuitry identifies its position and the debounce logic validates the operation. The key code enters FIFO RAM, and IRQ notifies the processor. The CPU subsequently selects the FIFO data register, reads the stored code through DB0–DB7 and processes the input.

Misconceptions About the 8279 Block Diagram

'The scan counter stores keyboard data' is incorrect because it generates scanning sequences. 'The display RAM contains keyboard entries' confuses separate memory blocks because keyboard data normally enters FIFO RAM. 'A0 generates chip selection' is incorrect because CS selects the device while A0 distinguishes internal access types.

Functional Block Identification and Signal-Tracing Questions

Practise identifying the five main functional sections and tracing information between them. Understand the relationships among scan counter, return lines, FIFO, display RAM and CPU interface. Examination diagrams may require identifying the function of DB0–DB7, IRQ, SL0–SL3, RD, WR and display output connections.

Internal Block and Interface Signal Terminology

  • Data Bus Buffer - Connects internal data with DB0–DB7.
  • I/O Control - Decodes processor access signals.
  • Scan Counter - Generates sequential scan signals.
  • FIFO RAM - Stores keyboard entries.
  • Sensor RAM - Stores sensor status information.
  • Display RAM - Stores display character bytes.
3
Easy
6
Medium
4
Hard

📝 All Block Diagram of 8279 MCQs

Q1. Which pin on the 8253 provides the ground connection?

A.Pin 12 ✅
B.Pin 21
C.Pin 24
D.Pin 18
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: Pin 12 is the ground terminal for the 8253, connecting the chip to the system ground reference. Selecting any other pin would not provide the required reference, causing the device to malfunction. Grounding the circuit ensures proper voltage levels for all internal logic. This is essential when wiring the chip on a board, as a missing ground connection can lead to erratic counting behavior.

Q2. What is the primary function of the CS (Chip Select) pin on the 8253?

A.Enables the device when low ✅
B.Provides clock signal
C.Selects counter 0
D.Outputs count value
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: The CS pin is active‑low, meaning the chip becomes operational only when this pin is driven low. When CS is high, the entire device is placed in a high‑impedance state, preventing any interaction with the bus. This design protects the chip from unintended activation and allows multiple devices to share the same data lines without interference.

Q3. How does the control‑signal combination CS=0, RD=0, WR=1, A1=1, A0=0 affect the 8253?

A.Read counter 2 ✅
B.Write mode word
C.Load counter 1
D.No operation
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: With CS low the chip is enabled. RD low and WR high indicate a read operation, and the address lines A1=1, A0=0 select counter 2 according to the address map. Therefore the device places the current count of counter 2 on the data bus. The other choices describe different address selections or write operations, which do not match this signal set.

Q4. A microcontroller must load a value into counter 1 while leaving counters 0 and 2 unchanged. Which control‑signal states should be asserted?

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

📖 Explanation: Loading a counter requires CS low, WR low, and RD high. The address lines must point to the desired counter; for counter 1 the table specifies A1=0 and A0=1. This combination triggers the load operation only for counter 1, leaving the other counters unaffected. The other options either address the wrong counter or use the wrong read/write polarity, so they would not perform the intended load.

Q5. If pin 21 (CS) is left floating and not driven low, what is the most likely behavior of the 8253?

A.Device disabled ✅
B.Device always enabled
C.Only counter 0 works
D.All pins become inputs
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: The CS pin is active‑low; when it is not asserted (i.e., left high or floating), the chip places all its internal circuitry into a high‑impedance state, effectively disabling it. Consequently no counting or data transfer occurs. The other answers assume the chip remains active or that only part of it works, which contradicts the defined behavior of an inactive CS signal.

Q6. Why are the RD and WR pins designed as active‑low signals rather than active‑high?

A.Active low reduces power consumption
B.Active low matches other pins
C.Active low improves noise immunity ✅
D.Active low simplifies wiring
💡 Difficulty: medium | ✅ Correct: C

📖 Explanation: Active‑low signaling is common in TTL families because a low voltage level is less susceptible to noise pickup on a shared bus, improving reliability. Additionally, many microprocessors provide active‑low control lines, making integration straightforward. While power savings and wiring simplicity are benefits, the primary advantage is the robustness against spurious transitions that could corrupt data transfers.

Q7. When reading the current count from counter 2, which pins correspond to the address lines A0 and A1?

A.Pins 19 and 20 are not used for address
B.Pin 19 is A1, Pin 20 is A0
C.Pins 19 and 20 are ground and VCC
D.Pin 19 is A0, Pin 20 is A1 ✅
💡 Difficulty: hard | ✅ Correct: D

📖 Explanation: Pins 19 and 20 are dedicated address inputs named A0 and A1 respectively. To select counter 2, both lines must be set to logic 1, meaning A0=1 and A1=1. This configuration tells the chip to place the count of counter 2 on the data bus. The other statements either misidentify the pins or claim they are unrelated to addressing, which is incorrect.

Q8. If both WR and RD are mistakenly held low while CS is low, what operation will the 8253 perform?

A.No operation (3‑state) ✅
B.Load counter
C.Write mode word
D.Read counter
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: When CS is low, the chip is enabled, but the simultaneous assertion of both WR and RD creates an undefined condition not listed in the control table. The device treats this as a 3‑state or no‑operation condition to avoid conflicting actions. Therefore it does not load, write, or read any data. The other options describe defined actions that require either WR or RD to be high, not both low.

Q9. A system needs a 1 ms periodic interrupt using counter 0 with a 4.194 MHz clock. Which mode and count value should be programmed?

A.Mode 0 with count 2100
B.Mode 2 with count ≈4200 ✅
C.Mode 3 with count 5000
D.Mode 1 with count 4000
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: A 4.194 MHz clock has a period of about 0.238 µs. To obtain a 1 ms interval, the counter must divide the clock by roughly 1000 µs / 0.238 µs ≈ 4200 counts. Mode 2 (rate generator) automatically reloads the count after reaching zero, making it ideal for periodic interrupts. The other modes either do not auto‑reload or use incorrect count values, so they would not produce the required 1 ms timing.

Q10. How do the GATE inputs influence the counting operation of each counter in the 8253?

A.GATE pins reset the counter
B.GATE pins select the counter
C.GATE pins enable counting when low ✅
D.GATE pins provide output signals
💡 Difficulty: hard | ✅ Correct: C

📖 Explanation: Each counter has a dedicated GATE input that acts as an enable control. When the GATE pin is driven low, the counter is allowed to count pulses on its clock input; when the pin is high, counting is halted regardless of clock activity. This mechanism lets designers pause or synchronize counters without altering the clock source. The other statements mischaracterize the GATE function, confusing it with reset, selection, or output duties.

Q11. Which pin supplies the +5 V supply to the 8253?

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

📖 Explanation: Pin 24 is the designated +VCC pin on the 8253, providing the required +5 V power rail for the internal circuitry. Supplying the correct voltage is critical for reliable operation; using any other pin would either leave the chip unpowered or connect the supply to a signal line, potentially causing damage. The other pins serve distinct functions such as ground, chip select, or read control.

Q12. To write a mode word to the control register, which address‑line settings must be used?

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

📖 Explanation: The mode‑word register is selected when both address lines are high (A1=1, A0=1) according to the device’s address map. With CS low and WR low (write operation), the microprocessor can place the desired mode byte on the data bus, and the chip will store it in the control word register. The other address combinations target the individual counters, not the mode register.

Q13. What is the purpose of having separate OUT pins for each counter, and how does this benefit external interfacing?

A.They combine counts from all counters
B.They allow cascading of counters
C.They provide independent outputs for each counter ✅
D.They generate clock signals
💡 Difficulty: hard | ✅ Correct: C

📖 Explanation: Each counter’s OUT pin delivers its own count or status signal, enabling the designer to connect distinct external devices—such as LEDs, relays, or other logic—directly to the appropriate counter. This independence prevents signal contention and allows simultaneous, unrelated timing functions. The other options describe functions that are not provided by the OUT pins, such as combining counts or generating clocks.

🔗 Related Topics (MCQs)