📝 Transmitter Section in 8085A Microprocessor (10 MCQs)
Parallel-to-Serial Conversion in the 8251A Transmitter
The transmitter section of the 8251A converts parallel characters supplied by the 8085A into a serial data stream on TxD. Its transmit buffer and shifting circuitry allow the processor to prepare a subsequent character while the current character is being transmitted. Transmitter control manages bit timing, character framing, readiness and the conditions required to begin transmission.
Transmit Buffer, Shift Register and Clock Control
Parallel data enters the transmit input buffer through D0–D7 and is transferred into the serial shifting path. TxC controls the transmission rate, and data is shifted out on its falling edge. In asynchronous mode, the transmitter inserts the start bit, optional parity bit and programmed stop interval.
TxRDY and TxEMPTY During Character Transmission
TxRDY indicates that the transmit input buffer can accept another character, subject to the external CTS and transmitter-enable conditions on its output pin. It is reset when the processor writes data. TxEMPTY indicates that the transmitter is empty, helping software recognize that previously loaded transmission data has finished.
Example of Sending an Eight-Bit Character
Assume the transmitter is enabled, CTS is low and the mode is configured for eight-bit asynchronous operation. The 8085 writes 41H to the data port. The transmitter sends the least significant bit first, preceded by a start bit and followed by the selected parity and stop arrangement.
Continuous Output and Automatic Synchronization Characters
In synchronous mode, characters are shifted at the TxC rate without asynchronous start and stop framing. If the processor does not supply another data character before the transmitter becomes empty, the 8251A automatically inserts the programmed synchronization character or characters. This maintains the synchronous data stream while indicating the empty condition through TxEMPTY.
Distinguishing Buffer Readiness from Completed Transmission
'TxRDY means the last stop bit has been sent' is incorrect because it indicates that the input buffer can accept data. 'TxEMPTY and TxRDY always indicate the same condition' is incorrect because they monitor different transmitter stages. 'The 8251A sends the most significant bit first' is incorrect because serial characters are transmitted least significant bit first.
Transmit Timing, Framing and Status Signals for Exams
Trace the parallel data path into the transmit buffer and serial output through TxD. Identify the falling-edge relationship with TxC, and distinguish TxRDY from TxEMPTY. Explain how asynchronous framing differs from synchronous transmission, and remember that CTS must be low and TxEN set before normal transmission begins.
Transmitter Circuit and Readiness Terms
- TxD - Carries serial output data.
- TxC - Controls transmitter bit timing.
- TxRDY - Signals transmit-buffer availability.
- TxEMPTY - Indicates an empty transmitter.
- TxEN - Enables serial transmission.
- CTS - Permits transmission when low.
📝 All Transmitter Section in 8085A Microprocessor MCQs
Q1. What is the maximum number of bytes that a single DMA operation can transfer using the 14‑bit count field?
📖 Explanation: The 14‑bit count field can represent values from 0 to , which equals 16383, allowing a transfer of up to 16384 bytes. This is commonly expressed as 16 KB. Option B matches this value. Options A, C, and D correspond to 8 KB, 32 KB, and 64 KB, which exceed or fall short of the allowed range. Understanding the size limit is essential when planning DMA transfers, as exceeding it would require multiple operations.
Q2. Why are the two most significant bits of the terminal count register used to indicate the type of operation for a DMA channel?
📖 Explanation: The two most significant bits are reserved for operation coding, allowing the controller to differentiate among four possible transfer directions. This coding tells the DMA logic whether data moves between memory and I/O or between two memory locations. Option C correctly describes this purpose. Options A and B misinterpret the bits as address or mode controls, while D incorrectly claims they are unused. Proper use prevents incorrect data routing.
Q3. How does the DMA Address Register interact with the terminal count register during a block transfer?
📖 Explanation: During a block transfer, the address register provides the starting location and is automatically incremented (or decremented) after each byte, allowing sequential access. Simultaneously, the terminal count register counts down from the loaded value until it reaches zero, signalling completion. Option C captures this coordinated behavior. Option A suggests the address does not change, which would cause all data to be written to the same location. Option B is false because the registers serve different purposes, and D reverses the direction of operation.
Q4. What role does the HRQ (HOLD Request) line play in coordinating DMA activity with the CPU?
📖 Explanation: HRQ is an output from the DMA controller to the CPU, indicating that the DMA needs control of the system bus. When asserted, the CPU responds by placing its bus cycles on hold, allowing the DMA controller to become the bus master. This coordination avoids bus contention. Option B correctly describes this handshake. Option A confuses HRQ with a power signal, C misidentifies it as a reset, and D describes the DACK line rather than HRQ. Proper use ensures smooth data movement without interrupting the CPU.
Q5. In the 8257 DMA controller, what is the effect of setting the MODE bits to “Auto‑Initialize” for a channel, and why might this be advantageous for continuous data streaming?
📖 Explanation: Auto‑Initialize causes the DMA controller to automatically reload the address and count registers from their preset values once the terminal count reaches zero. This creates a looped transfer that can continue indefinitely, ideal for streaming data such as audio or video where the same buffer size repeats. Option B reflects this behavior. Option A describes the opposite effect, C incorrectly links it to interrupt handling, and D suggests the channel becomes insensitive to requests, which would halt data flow.
Q6. A system needs to transfer exactly 4 KB of sensor data from I/O port 0x30 to memory starting at address 0x2000 using Channel 2. Which values should be loaded into the DMA Address Register and the terminal count register (lower 14 bits) for Channel 2?
📖 Explanation: Four kilobytes equal bytes, which is in hexadecimal. The address register must contain the destination memory address, 0x2000, while the count register holds the number of bytes to move, 0x1000, fitting within the 14‑bit limit. Option A matches these requirements. Option B uses the correct address but an incorrect count (0x0400 = 1024 bytes). Options C and D mistakenly place the I/O port address in the DMA address register, which is not how the controller stores destination addresses.
Q7. During a DMA transfer, the DRQ line for Channel 1 is never asserted, but the CPU mistakenly enables the channel. What is the most likely outcome?
📖 Explanation: DRQ (DMA Request) is the signal that tells the DMA controller a peripheral needs service. If DRQ is never asserted, the controller has no reason to begin the transfer, even though the channel is enabled. Consequently, the DMA engine stays idle, and any software waiting for the transfer to finish will block, leading to a stalled CPU. Option B captures this. Option A would require a valid DRQ, C exaggerates the fault, and D is not how the controller behaves without a request.
Q8. An engineer configures Channel 0 for a memory‑to‑memory transfer of 12 KB. The terminal count register is loaded with bytes, but only the lower 14 bits are stored. What actual number of bytes will be transferred, and why?
📖 Explanation: The terminal count register uses only the least‑significant 14 bits, so any value above is truncated to those bits. 12288 in binary is ; keeping the lower 14 bits yields , which equals 8192 decimal. Therefore the DMA will move 8192 bytes, not the intended 12288. Option B explains this truncation. Options A and C ignore the 14‑bit limitation, and D misstates the bit width used.
Q9. A DMA channel is set to “Read” mode while connected to a peripheral that only supports write operations. Which of the following problems is most likely to occur?
📖 Explanation: In “Read” mode the DMA controller expects to receive data from the peripheral and places it onto the bus as a read operation. If the peripheral only drives the bus for writes, the direction is reversed, causing the controller to attempt to read while the device is trying to write, leading to mismatched control signals and potential data corruption. Option B describes this mismatch. Option A assumes silent failure, C unrealistically assumes immediate completion, and D misidentifies the typical response; most controllers do not automatically generate an interrupt for a mode mismatch.
Q10. A designer wants to use the 8257 to service four UARTs simultaneously, each requiring 256 bytes of buffer space. Assuming the DMA controller can only handle one active request at a time, which arbitration scheme should be employed to ensure each UART gets service without missing data?
📖 Explanation: Round‑robin arbitration cycles through each request in turn, giving each UART an equal opportunity to obtain the bus. This prevents any single device from monopolizing the DMA controller and ensures that all four buffers receive service within their timing constraints. Option B reflects this balanced approach. Fixed‑priority (A) could cause lower‑priority UARTs to miss data, random (C) offers no guarantee, and D is incorrect because the 8257 can only service one request at a time.