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

📝 Left Entry Mode(Type Writer Mode) of 8279 (10 MCQs)

Sequential Character Entry from the Leftmost Display Position

Left Entry mode configures the 8279 display so that characters are written sequentially from the leftmost display position toward the right. Each display position corresponds directly to a display RAM address. Address 0 represents the leftmost position, and successive addresses represent positions farther to the right.

Display RAM Address and Auto-Increment Operation

The CPU selects a starting display RAM address using the Write Display RAM command. When the auto-increment option is enabled, the internal address advances after each data write. This allows characters to be entered consecutively without issuing a separate address command for every display position.

Sequential Display Filling and Address Wraparound

New characters fill the display from left to right. In a sixteen-position arrangement, the first character occupies address 0 and the sixteenth occupies address 15. After the last location, the address sequence wraps around to address 0, allowing subsequent characters to replace earlier entries.

Example of Writing Three Characters in Left Entry Mode

Assume the display is configured for eight-digit left entry and display RAM address 0 is selected with auto-increment enabled. Writing three successive character bytes places them at addresses 0, 1 and 2. The first three positions display the characters from left to right, while the remaining positions retain their existing contents.

Applications in Typewriter-Style Display Systems

Left Entry mode is suitable for typewriter-like displays, text-entry panels and systems where characters should appear in the order they are entered from the left. The direct relationship between display RAM addresses and digit positions makes sequential character placement easy to manage through software.

Misconceptions About Left Entry Operation

'The first character appears at the rightmost digit' describes right entry rather than left entry. 'The display automatically shifts every existing character' is incorrect because left entry fills sequential RAM positions. 'Auto-increment changes the character code' is incorrect because it advances the display RAM address.

Display Address Sequencing and Left Entry Questions

Understand the mapping of display RAM addresses to physical positions. Trace successive writes with and without auto-increment and determine when the address wraps to zero. Examination questions may compare left and right entry, identify the first displayed character position or calculate which location receives a particular data byte.

Typewriter Display and Addressing Terminology

  • Left Entry - Fills display positions from left to right.
  • Typewriter Mode - Supports sequential left-side entry.
  • Display RAM - Stores character patterns.
  • Address 0 - Represents the leftmost position.
  • Auto-Increment - Advances the display RAM address.
  • Wraparound - Returns the address to the beginning.
2
Easy
5
Medium
3
Hard

📝 All Left Entry Mode(Type Writer Mode) of 8279 MCQs

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

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

📖 Explanation: The ground pin stabilizes the circuit by providing a reference voltage of 0 V. Pin 12 is internally connected to the device’s substrate, ensuring that all internal transistors share a common reference. Selecting any other pin would either leave the circuit floating or connect to a functional line, causing unpredictable behavior. Understanding the ground role helps students wire the chip correctly, preventing noise and ensuring reliable operation in real hardware projects.

Q2. Why is the CS (Chip Select) signal designed to be active low in the 8253?

A.To reduce power consumption
B.To simplify interfacing with TTL logic
C.Because low voltage indicates enable ✅
D.To match the microprocessor's active‑low convention
💡 Difficulty: easy | ✅ Correct: C

📖 Explanation: CS being active low follows the convention used by many microprocessors, where a low voltage on the select line enables the device. This design reduces the chance of accidental activation due to noise, as a high‑impedance or floating line is less likely to be interpreted as active. Options A and B describe possible benefits but are not the primary reason, while option C misstates the logic level’s meaning. Recognizing this convention aids designers when connecting multiple peripherals.

Q3. How does the combination CS=0, RD=0, WR=1, A1=0, A0=1 affect the 8253's operation?

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

📖 Explanation: When CS is low, the device is enabled. RD low and WR high indicate a read cycle, and the address bits 0 1 select counter 1. Therefore the chip places the current count of counter 1 on the data bus for the CPU to read. Options A and C describe write operations, which require WR low, and option D is the undefined 3‑state condition. This understanding lets engineers correctly retrieve timer values during debugging.

Q4. What role do the address lines A0 and A1 play when selecting a specific counter or the control word register?

A.They provide power to the chip
B.They select which counter is addressed
C.They set the operating mode of the counter ✅
D.They reset the device
💡 Difficulty: medium | ✅ Correct: C

📖 Explanation: A0 and A1 form a two‑bit address that the 8253 decodes to choose between its three counters or the control word register. By presenting different binary combinations, the CPU can target a particular counter for loading a count or reading its value. Options A and D describe unrelated functions, while option C confuses address selection with mode configuration, which is set by the mode word. Mastery of this addressing scheme is essential for proper timer programming.

Q5. Explain why the 8253 requires both a gate input and a clock input for each counter to generate a timed output.

A.The gate supplies the data value ✅
B.The clock provides timing while the gate enables counting
C.Both signals are redundant and interchangeable
D.The gate determines the voltage level of the output
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: Each counter counts rising edges of the clock only while the gate signal is high. The clock determines the speed of counting, and the gate acts as an enable that can start or pause the count without altering the clock frequency. Option A confuses gate function with data loading, option C incorrectly suggests redundancy, and option D misinterprets gate as an output driver. Recognizing this dual‑signal requirement is crucial when designing precise timing circuits.

Q6. A system designer connects Pin 10 (OUT0) to an LED that should blink at 2 Hz. If the clock input receives a 1 kHz signal, which mode and count value should be programmed for counter 0?

A.Mode 3, count 250
B.Mode 0, count 500 ✅
C.Mode 2, count 500
D.Mode 2, count 250
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: In mode 2 (rate generator), the output toggles each time the counter reaches zero. To obtain a 2 Hz blink, the counter must overflow twice per second, so the required count is 1000 Hz2 Hz=500\frac{1000\text{ Hz}}{2\text{ Hz}} = 500. Loading 500 into counter 0 yields the desired period. Options A and D use the wrong mode or count, and option B selects an inappropriate mode for simple toggling. Applying this calculation ensures the LED blinks at the intended rate.

Q7. During debugging, the CPU reads from Pin 14 (GATE1) expecting a high level, but the read returns low. Which of the following actions will correctly enable counter 1 to start counting?

A.Pull pin 14 low ✅
B.Pull pin 14 high
C.Connect pin 14 to ground
D.Tie pin 14 to VCC
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: Counter 1 begins counting only when its gate input is high. A low reading indicates that the gate is currently disabling the counter. Raising the gate voltage to a logical high level satisfies the enable condition, allowing the clock pulses to be counted. Option A would further disable counting, option C duplicates the low condition, and option D ties the line to a supply voltage that may not match the required logic level. Ensuring the gate is high is essential for proper timer operation.

Q8. A microcontroller uses the 8253 to generate three different periodic interrupts. Counter 2 must produce an interrupt every 0.1 ms, using a 4 MHz clock. Which gate, output, and clock pins must be correctly wired, and what count value should be loaded?

A.Use pins 16 (GATE2), 17 (OUT2), 18 (CLK2); count = 400
B.Use pins 13, 14, 15; count = 4000
C.Use pins 16, 17, 18; count = 4000 ✅
D.Use pins 13, 14, 15; count = 400
💡 Difficulty: hard | ✅ Correct: C

📖 Explanation: The 0.1 ms interval corresponds to a frequency of 10.0001 s=10,000 Hz\frac{1}{0.0001\text{ s}} = 10{,}000\text{ Hz}. With a 4 MHz clock, the required count is 4,000,00010,000=400\frac{4{,}000{,}000}{10{,}000} = 400. Counter 2’s pins are 16 (gate), 17 (output), and 18 (clock), so they must be connected accordingly, and the count of 400 must be loaded. Options B and D reference the wrong pins, and option C uses an incorrect count, leading to a much longer period. Proper wiring and count selection guarantee the intended interrupt rate.

Q9. An engineer accidentally ties the CS pin to VCC instead of pulling it low during operation. What immediate effect will this have on all read and write cycles, and how can the issue be diagnosed using the RD and WR signals?

A.Device will ignore all cycles; RD/WR will have no effect ✅
B.Device will always read zeros
C.Device will always write the mode word
D.Device will reset counters
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: CS being high disables the 8253, placing it in a three‑state condition where it neither responds to reads nor writes. Consequently, regardless of the states of RD and WR, the chip will not place data on the bus or accept new values. Options B, C, and D describe behaviors that require the chip to be enabled, which does not occur when CS is high. Observing that RD and WR transitions produce no bus activity confirms the disabled state, prompting the correction of the CS connection.

Q10. If the address lines A0 and A1 are both set to 1, which register is being accessed, and what type of operation (read/write) would be appropriate to load a new mode word?

A.Counter 2, write mode word
B.Control word register, write mode word
C.Counter 1, read counter ✅
D.Counter 0, read counter
💡 Difficulty: medium | ✅ Correct: C

📖 Explanation: When A1 = 1 and A0 = 1 with CS low, the 8253 interprets the address as the control word register. To load a new mode word, a write operation (WR low) must be performed while RD is high. Therefore the correct action is to write to the control word register, not to read a counter value. Options A, D, and B either select a counter or describe a read operation, which would not change the mode configuration. Knowing the address mapping ensures correct programming of the timer.

🔗 Related Topics (MCQs)