🎓 BookMCQ
← Back to 14. Serial Communication and Programmable Communication Interface

📝 Modem IC 8251 in 8085A Microprocessor (9 MCQs)

8251 USART as the Digital Communication Interface for a Modem

The Intel 8251A is a programmable USART used between the 8085A microprocessor and serial communication equipment such as a modem. It converts processor data bytes into serial signals and converts received serial signals into parallel data. Although modem-control connections are provided, the 8251A is not itself a modem; external modem circuitry performs the required signal modulation and telephone-line interfacing.

Modem-Control Connections Through DTR, RTS, CTS and DSR

The 8251A provides two software-controlled outputs, DTR and RTS, and two inputs, CTS and DSR. DTR and RTS communicate terminal readiness and transmission requests. CTS indicates whether the external device permits transmission, while DSR reports an external device condition that software can examine through the status register.

Transmit Authorization and Serial Data Flow

For transmission, software sets the TxEN bit in the command word and the external CTS input must be low. The transmitter then shifts parallel data through TxD using TxC. Incoming serial data arrives at RxD, where the receiver uses RxC to assemble characters and indicate their availability through RxRDY.

Example of Modem-Controlled Transmission

Suppose the 8085 enables transmission by setting TxEN in the command word. Even when TxRDY indicates available buffer space, the transmitter cannot begin sending unless CTS is low. When the modem asserts CTS, the 8251A can transmit a character loaded by the processor, subject to the programmed communication format.

Relationship Between the USART and External Modem Circuitry

The 8251A handles character framing, synchronization, serial conversion and basic modem handshaking. An external modem converts the digital communication stream into signals suitable for the transmission medium and performs the reverse operation during reception. Electrical interface circuits may also be needed to match the USART's TTL-compatible signals to the modem connection.

Correcting Confusion About Modem and USART Functions

'The 8251A modulates telephone-line signals' is incorrect because it performs digital serial communication. 'CTS is generated by the 8251A' is incorrect because CTS is an external input. 'DTR and DSR are both processor outputs' is incorrect because DTR is an output and DSR is an input.

Modem Handshake Signals and Transmission Conditions in Exams

Identify DTR and RTS as outputs and CTS and DSR as inputs. Remember that CTS low permits transmission when TxEN is set. Distinguish serial conversion performed by the USART from modulation performed by external equipment, and interpret DSR and modem-control settings when tracing communication status.

Modem Interface and Handshaking Terms

  • DTR - Data terminal ready output.
  • RTS - Request-to-send output.
  • CTS - External clear-to-send input.
  • DSR - External data-set-ready input.
  • TxEN - Enables the transmitter.
  • Modem - Converts signals for a communication medium.
2
Easy
4
Medium
3
Hard

📝 All Modem IC 8251 in 8085A Microprocessor MCQs

Q1. What is the maximum number of bytes that a single DMA operation can transfer using the 8257 controller?

A.8 KB
B.16 KB ✅
C.32 KB
D.64 KB
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: The 8257 terminal count register reserves the lower 14 bits for the byte count. With 14 bits, the largest unsigned value is 214−1=163832^{14}-1 = 16383, allowing a transfer of up to 214=163842^{14}=16384 bytes, which equals 16 KB. Therefore option B is correct. Option A (8 KB) uses only 13 bits, option C (32 KB) would need 15 bits, and option D (64 KB) would require 16 bits, all exceeding the register’s capacity.

Q2. What do the two most significant bits of the terminal count register indicate in the 8257 DMA controller?

A.The type of I/O operation ✅
B.The DMA channel priority
C.The memory address mode
D.The interrupt vector
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: The two most significant bits of the terminal count register are reserved to specify the type of operation the DMA controller must perform, such as memory‑to‑I/O or I/O‑to‑memory transfers. This determines how the controller interprets the address and data phases. Option A reflects this purpose. The other choices describe functions handled by different registers: priority is set elsewhere, address mode is fixed by the address register, and interrupt vectors are generated by the status word, not by these bits.

Q3. In a system where a peripheral asserts a DMA request, which signal tells the microprocessor that it must release the bus so the DMA controller can take control?

A.HLDA
B.HRQ ✅
C.DACK
D.READY
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: When a peripheral needs DMA service, it asserts a DRQ line. The DMA controller then signals the CPU with the HOLD REQUEST line (HRQ) to ask the processor to relinquish the bus. The CPU acknowledges this request by asserting HLDA, but the initial indication that the CPU must release the bus is HRQ. Thus option B is correct. HLDA is the acknowledgment, DACK indicates channel acknowledgment, and READY reflects peripheral readiness, none of which directly request bus release.

Q4. Which function is performed by the Mode Set Register of the 8257 DMA controller?

A.Selects single‑byte or block‑transfer mode ✅
B.Sets the DMA channel priority
C.Programs the address enable line
D.Generates interrupt requests
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: The Mode Set Register configures how each channel operates, selecting between single‑byte transfers, block transfers, demand mode, or auto‑initialize mode. It tells the controller whether the address should increment, decrement, or remain fixed, and whether the transfer repeats automatically. Therefore option A is correct. Channel priority is programmed in a separate priority register, address enable is controlled by the AEN pin, and interrupt generation is handled by the status word, not by the mode register.

Q5. The terminal count register uses the lower 14 bits for the byte count. What is the largest count value that can be stored, expressed as a power of two?

A.2122^{12}
B.2132^{13}
C.2142^{14} ✅
D.2152^{15}
💡 Difficulty: medium | ✅ Correct: C

📖 Explanation: The terminal count register stores the byte count in its lower 14 bits. The maximum value representable with 14 bits is 214−12^{14}-1, which corresponds to a transfer of 2142^{14} bytes when counting from zero. Consequently the largest power‑of‑two count is 2142^{14}. Option C matches this value. 2122^{12} and 2132^{13} are smaller limits, while 2152^{15} would require 15 bits and exceed the register’s capacity.

Q6. Two channels need to transfer 10 KB each, but the DMA controller can move only 16 KB in a single operation. Which technique allows both transfers to complete without exceeding the limit?

A.Increase the terminal count register ✅
B.Use channel chaining
C.Enable burst mode
D.Split each transfer into two smaller blocks
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: The DMA controller can move at most 16 KB in a single operation because the terminal count register holds only 14 bits. To transfer two 10 KB blocks, the controller must perform two separate operations. Channel chaining allows one channel to trigger another automatically after its count reaches zero, effectively linking the two transfers without CPU intervention. Increasing the terminal count (option A) is impossible, burst mode (option C) does not change the count limit, and splitting each transfer (option D) is essentially what chaining accomplishes, but chaining is the dedicated mechanism.

Q7. Why does using DMA generally reduce CPU overhead compared with programmed I/O?

A.The CPU can continue executing other instructions ✅
B.DMA bypasses the address bus
C.DMA generates no interrupts
D.DMA uses a faster clock
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: DMA offloads the data‑movement task from the CPU, allowing the processor to continue executing its own instruction stream while the DMA engine transfers bytes over the bus. This reduction in CPU involvement directly lowers overhead. DMA does not bypass the address bus (it still uses it), it can generate interrupts upon completion, and its clock is typically the same as the system clock, so options B, C, and D describe incorrect reasons.

Q8. If the DMA address register is loaded with 0x20000x2000 and the terminal count register is set to 1024 bytes, what will be the address register value after the transfer completes assuming the controller increments the address after each byte?

A.0x24000x2400 ✅
B.0x20000x2000
C.0x24040x2404
D.0x23FF0x23FF
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: The address register starts at 0x20000x2000 and the controller increments the address after each byte transferred. After moving 1024 bytes (which is 0x04000x0400 in hexadecimal), the final address becomes 0x2000+0x0400=0x24000x2000 + 0x0400 = 0x2400. Therefore option A is correct. Option B would imply no change, option C adds an extra four bytes that do not exist, and option D incorrectly subtracts one, none of which match the defined increment behavior.

Q9. What is the primary purpose of the DACK lines in the 8257 DMA controller during multi‑channel arbitration?

A.Indicate which channel has been granted bus access
B.Reset the selected channel ✅
C.Request the CPU to hold the bus
D.Acknowledge completion of a transfer
💡 Difficulty: hard | ✅ Correct: B

📖 Explanation: The DACK (DMA Acknowledge) lines are used by the controller to inform the peripheral which channel has been granted control of the bus during multi‑channel arbitration. When a particular channel is selected, its corresponding DACK line is asserted, enabling that device to place or receive data. Resetting a channel (option B) is done by other control signals, requesting a hold (option C) uses HRQ, and acknowledging transfer completion (option D) is signaled by the TC line.

🔗 Related Topics (MCQs)