šŸŽ“ BookMCQ
← Back to 10. Programmable Keyboard and Display Interface: 8279

šŸ“ Display Interface of 8279 (10 MCQs)

Sixteen-Byte Display RAM and Output Organization

The display interface of the 8279 provides automatic refreshing of multiplexed numeric or alphanumeric displays. Its internal display RAM contains sixteen locations, each storing an eight-bit character pattern. The processor writes display information into RAM, and the controller repeatedly transfers the stored patterns to external display drivers through two four-bit output ports.

Display Data Outputs and Scan-Line Selection

OUT A0–A3 and OUT B0–B3 carry display data. These groups can operate as two separate four-bit outputs or as one eight-bit data output. SL0–SL3 select display positions sequentially, synchronizing the appropriate character data with the selected digit. External driver circuits provide the current required by the display elements.

Display Refresh and Blank Signal Operation

The internal scan circuitry continuously selects display positions and provides their corresponding RAM data. BD is the active display-blanking output, used during digit switching or when the display is programmed to be blanked. Automatic refreshing allows the CPU to update display RAM without manually generating every digit-selection and segment-output sequence.

Example of Writing a Character into Display RAM

Suppose display RAM location 00H is selected and the processor writes character pattern 88H. The 8279 stores the byte and supplies its corresponding data through OUT A and OUT B when the associated digit is selected. The scan counter repeatedly refreshes that position along with the remaining configured display digits.

Display Multiplexing and External Driver Applications

The display interface reduces the number of CPU connections needed for several display digits by sharing data outputs and scan lines. It can operate with eight or sixteen eight-bit character positions, subject to the selected scan arrangement. External decoder and driver circuits can convert the output data into appropriate segment and digit-selection signals.

Misconceptions About Display Interface Operation

'Display RAM directly supplies current to LED segments' is incorrect because output driver circuits are required. 'SL lines carry the eight-bit character pattern' confuses digit selection with display data. 'BD stores blank characters' is incorrect because it is a display-control output rather than a memory location.

Display RAM and Multiplexed Output Examination Questions

Identify display RAM capacity, output ports and scan-line functions. Trace how a programmed byte reaches the selected display position and understand the function of BD. Practise distinguishing an eight-bit display output from two independent four-bit groups and explaining automatic refreshing and external driver requirements.

Display Interface and Multiplexing Terminology

  • Display RAM - Stores sixteen eight-bit display patterns.
  • OUT A - Supplies one four-bit output.
  • OUT B - Supplies the second four-bit output.
  • SL Lines - Select display positions.
  • BD - Blanks the display output.
  • Multiplexing - Shares outputs across several digits.
2
Easy
5
Medium
3
Hard

šŸ“ All Display Interface of 8279 MCQs

Q1. To read the count from counter 2, which set of control signal levels must be asserted?

A.CS low, RD low, WR high, A1 high, A0 low āœ…
B.CS low, RD high, WR low, A1 low, A0 low
C.CS high, RD low, WR low, A1 high, A0 high
D.CS low, RD low, WR low, A1 low, A0 high
šŸ’” Difficulty: easy | āœ… Correct: A

šŸ“– Explanation: The 8253 performs a read when the chip‑select (CS) line is asserted low, the read line (RD) is low, and the write line (WR) remains high. The address bits A1=1 and A0=0 specifically select counter 2. Option A matches this exact combination, making it correct. The other options either set the wrong logic levels for RD/WR or use incorrect address bits, which would either initiate a write operation or address a different counter, thus failing to read counter 2.

Q2. A designer connects pins 13‑15 of the 8253 to a peripheral that needs a clock pulse every 10 µs. Which pin provides the clock input for counter 1, and what must be the state of the GATE 1 pin for the counter to count continuously?

A.Pin 13, GATE 1 low
B.Pin 15, GATE 1 high āœ…
C.Pin 14, GATE 1 low
D.Pin 15, GATE 1 low
šŸ’” Difficulty: medium | āœ… Correct: B

šŸ“– Explanation: Pin 15 is labeled CLK1, the clock input for counter 1. For the counter to count continuously, the gate input must be held high (logic 1) so that counting is not blocked. Option B correctly identifies both the clock pin and the required gate state. Option A misidentifies the clock pin, Option C selects the gate pin instead of the clock, and Option D sets the gate low, which would prevent counting.

Q3. If the address lines A0 and A1 are both set to 1, which internal register of the 8253 is selected for a write operation?

A.Counter 0
B.Counter 1
C.Counter 2
D.Control word register āœ…
šŸ’” Difficulty: medium | āœ… Correct: D

šŸ“– Explanation: When A1=1 and A0=1, the address decoder selects the control word register. A write operation to this register occurs when CS is low, WR is low, and RD is high. Therefore the correct answer is the control word register. Options A‑C refer to the three counters, which are selected with different address combinations (00, 01, 10). Only option D matches the address pattern for the control word.

Q4. In a system, the CS pin is inadvertently left floating (neither driven low nor high). Explain the likely effect on all read/write operations and suggest a hardware fix.

A.Device will always be enabled, causing bus contention
B.Device will never respond, leading to no operation
C.Device may randomly enable, causing intermittent failures āœ…
D.Device will ignore address lines but still respond to data
šŸ’” Difficulty: hard | āœ… Correct: C

šŸ“– Explanation: A floating CS pin leaves the line susceptible to noise, so it can randomly transition between low and high. This intermittent activation causes the 8253 to sometimes respond and sometimes ignore bus cycles, leading to unpredictable behavior. Option C describes this scenario. Option A assumes a constant low level, which would not occur without a defined pull‑down. Option B assumes a constant high level, which would require a pull‑up. Option D is inaccurate because address decoding still occurs when CS is active.

Q5. You need to generate a periodic interrupt every 1 ms using counter 0 in mode 2 (rate generator). The system clock is 1 MHz. Which value should be loaded into the counter, and which pins are used for clock and gate?

A.Load 0x03E7, use pin 10 for clock and pin 11 for gate āœ…
B.Load 0x03E7, use pin 12 for clock
C.Load 0x0FFF, use pin 10 and pin 11
D.Load 0x03E7, use pin 13 and pin 14
šŸ’” Difficulty: hard | āœ… Correct: A

šŸ“– Explanation: For a rate generator, the count equals (input frequency Ć· desired output frequency)ā€Æāˆ’ā€Æ1. With a 1 MHz clock and a 1 kHz interrupt, the count is (1 000 000 ÷ 1 000)ā€Æāˆ’ā€Æ1 = 999, which is 0x03E7 in hexadecimal. Counter 0’s clock is supplied to pin 10 (CLK0) and its gate is pin 11 (GATE0). Option A provides both the correct load value and the proper pins. The other options either use the wrong load value or incorrect pins.

Q6. What is the purpose of the CS (Chip Select) pin on the 8253 timer?

A.Provides power supply
B.Enables the device when low āœ…
C.Generates clock pulses
D.Selects which counter to read
šŸ’” Difficulty: easy | āœ… Correct: B

šŸ“– Explanation: The CS pin acts as an enable control for the entire 8253 device. It is active‑low, meaning the timer responds to bus cycles only when CS is driven to a logical low level. This prevents unintended interactions when multiple devices share the same bus. Option B correctly describes this function. Option A confuses CS with a power pin, Option C describes a clock function, and Option D misattributes the selection role, which is handled by the address lines A0 and A1.

Q7. Why does the 8253 require both RD (Read) and WR (Write) signals, instead of a single bidirectional data line?

A.To simplify timing
B.To allow simultaneous read/write
C.To differentiate read and write cycles āœ…
D.To provide error checking
šŸ’” Difficulty: medium | āœ… Correct: C

šŸ“– Explanation: Separate RD and WR signals give the controller a clear indication of the intended operation. When RD is low and WR is high, the device knows a read cycle is occurring; when WR is low and RD is high, a write cycle is intended. This separation avoids ambiguity that a single bidirectional line would introduce, ensuring reliable data transfer. Option C captures this reasoning. Options A and B are inaccurate, and Option D is not a function of these control lines.

Q8. How does the combination of A1 and A0 address lines determine which counter or register is accessed?

A.They select only counters
B.They select only the control word register
C.They encode a 2‑bit value that maps to counters 0‑2 and the control word āœ…
D.They are not used for selection
šŸ’” Difficulty: medium | āœ… Correct: C

šŸ“– Explanation: The two address lines form a 2‑bit binary code (00, 01, 10, 11). Each code corresponds to a specific internal resource: 00 selects counter 0, 01 selects counter 1, 10 selects counter 2, and 11 selects the control word register. Thus the combination directly maps to the desired element. Option C correctly describes this mapping. Options A and B limit the mapping to only one type of resource, and Option D incorrectly claims the lines are unused.

Q9. Explain how the active‑low nature of the RD and WR pins influences the design of interfacing circuits, particularly regarding pull‑up resistors.

A.No influence
B.Requires pull‑down resistors
C.Necessitates pull‑up resistors to ensure default high state āœ…
D.Forces use of open‑collector outputs only
šŸ’” Difficulty: hard | āœ… Correct: C

šŸ“– Explanation: Because RD and WR are active‑low, they must default to a high (inactive) level when not driven. Pull‑up resistors on these lines guarantee that the signals stay high, preventing accidental reads or writes due to noise. Option C reflects this requirement. Option A ignores the need for a default level, Option B suggests the opposite polarity, and Option D imposes an unnecessary restriction on output type.

Q10. Which pin on the 8253 is designated as the ground terminal?

A.Pin 12 āœ…
B.Pin 21
C.Pin 24
D.Pin 19
šŸ’” Difficulty: medium | āœ… Correct: A

šŸ“– Explanation: The ground connection for the 8253 is assigned to pin 12, providing the reference voltage for the entire chip. Selecting the correct ground pin is essential for stable operation. Option A identifies this pin correctly. Pin 21 is the chip‑select line, pin 24 supplies +5 V, and pin 19 is an address line (A0), so the other options are incorrect.

šŸ”— Related Topics (MCQs)