📝 ADC 0808/0809 in 8085 Microprocessor (17 MCQs)
Eight-Bit Conversion with Eight Selectable Analog Inputs
The ADC0808 and ADC0809 are eight-bit analog-to-digital converters designed for microprocessor-compatible data acquisition. Each device combines an eight-channel analog multiplexer, successive-approximation conversion circuitry and a tri-state digital output buffer. The 8085 can select one of the eight analog inputs, start conversion, monitor completion and read the resulting eight-bit code through an input interface.
Multiplexer Address and Reference Voltage Connections
Three address inputs A, B and C select one of the analog channels IN0–IN7. Address Latch Enable, or ALE, stores the selected channel address internally. VREF(+) and VREF(−) define the upper and lower conversion references, while the clock input provides timing for the successive-approximation process.
ALE, START, EOC and Output-Enable Sequence
The channel address is presented and latched using ALE. A START pulse initiates conversion, after which EOC indicates that conversion is in progress and later signals completion. When the result is ready, the output-enable input is activated to make the D0–D7 digital output lines available to the processor or interface circuit.
Example of Selecting Channel Three and Reading Its Result
To convert IN3, the processor or interface supplies channel address 011 to C, B and A respectively, then pulses ALE and START. It waits until EOC indicates completion, enables the output buffer and reads D0–D7. The resulting byte represents the voltage on IN3 within the selected reference range.
Using Multiplexed Measurements with an 8085 System
The eight input channels allow one converter to measure several sensors, reducing the need for a separate ADC for each signal. The 8085 can select channels in sequence and store each resulting code in memory. At a 640 kHz clock, the typical conversion time is about 100 microseconds, so software must allow for the conversion interval.
Misunderstandings About ADC0808 and ADC0809 Signals
'A, B and C are digital result bits' is incorrect because they select the analog input channel. 'EOC starts conversion' is incorrect because START initiates conversion and EOC reports its progress. 'OE selects the analog input' is incorrect because it enables the digital output buffer after conversion.
Channel Selection and Control Timing for Examination Questions
Identify IN0–IN7, A–C, ALE, START, EOC, OE and D0–D7 on a pin diagram. Practise converting channel numbers into three-bit selection codes, tracing conversion timing and determining when the output can be read. Remember the eight-bit resolution, successive-approximation method and the role of both reference inputs.
ADC0808/0809 Interface and Timing Terms
- ADC0808 - Eight-bit ADC with eight input channels.
- Multiplexer - Selects one analog input.
- ALE - Latches the channel address.
- START - Initiates a conversion.
- EOC - Indicates conversion completion.
- OE - Enables digital output lines.
- SAR - Performs successive approximation.
📝 All ADC 0808/0809 in 8085 Microprocessor MCQs
Q1. What is the typical conversion time of the ADC0808 when operating at its maximum clock frequency?
📖 Explanation: The ADC0808 is specified to finish one analog‑to‑digital conversion in about 130 microseconds when driven at its highest clock rate of 640 kHz. This matches option A, making it the correct choice. Option B underestimates the guaranteed conversion time, while options C and D are longer than necessary and would slow the overall system. Choosing the correct conversion time is essential for accurate timing calculations in designs that incorporate the ADC.
Q2. Which pin on the ADC0808 initiates a conversion when a low‑to‑high transition occurs?
📖 Explanation: The START pin on the ADC0808 triggers a conversion when it receives a low‑to‑high edge, so option D is correct. CS (chip select) merely enables the device, RD (read) and WR (write) are used for data bus operations and do not start a conversion. Understanding the role of the START pin helps designers correctly sequence control signals for reliable analog‑to‑digital conversion.
Q3. Why must the Mode Set Register be programmed before loading the terminal count in the 8257 DMA controller?
📖 Explanation: The 8257 uses the mode bits to decide whether the count applies to a read, write, or verify operation and which channel is affected. Therefore the mode must be defined before the count is loaded, making option B correct. The controller does not ignore counts (A), nor does loading a count set the mode (C). Option D confuses the purpose of the mode register with address mapping.
Q4. A system needs to transfer 1024 bytes from memory address 0x3000 to a floppy using channel 1. Which sequence of OUT instructions correctly programs the Mode Set Register (address 0x28) for a read operation, the terminal‑count registers (addresses 0x23 LS, 0x24 MS), and the DMA address registers (addresses 0x22 LS, 0x23 MS)?
📖 Explanation: Option A follows the required order: first set the mode word 0x41 for a read on channel 1, then load the LS count (0x00) followed by the MS count (0x04) to make a total of 1024 bytes, and finally load the LS address (0x00) and MS address (0x30) of the source memory. The other options either swap LS/MS bytes or use an incorrect mode word, leading to wrong transfer size or direction.
Q5. When programming the 8257, why is the LS byte of the terminal count loaded before the MS byte?
📖 Explanation: The 8257 latches the first byte it receives as the least‑significant part of the count, so loading the LS byte first ensures the correct 16‑bit value is formed. Option B describes this behavior accurately. Option A reverses the significance, option C imposes an unnecessary condition, and option D is false because the order directly affects the resulting count value.
Q6. In the terminal‑count register, bits D15 and D14 are set to 1 0 to indicate a memory‑read operation. What would happen if these bits were mistakenly set to 0 1?
📖 Explanation: Setting D15‑D14 to 0 1 tells the 8257 to perform a memory‑write (output) rather than a memory‑read (input). Consequently, the controller would try to send data to memory, which is opposite of the intended operation, so option A is correct. The controller does not automatically halt (B) or ignore the command (D), and while corruption (C) could occur, the primary effect is the wrong direction of data flow.
Q7. Initialize the 8257 DMA controller to transfer 512 bytes from a peripheral to memory locations starting at 0x3000 through channel 0. Which of the following correctly sets the mode word, terminal count, and address registers?
📖 Explanation: Option A uses the correct mode word 0x41 (enable channel 0, read, auto‑initialize), loads the count LS byte 0x00 and MS byte 0x02 to represent 512 bytes, and sets the address LS to 0x00 and MS to 0x30 for the start address 0x3000. The other options either misuse the mode word, swap LS/MS bytes, or place address bytes in the wrong order, leading to incorrect transfer size or location.
Q8. If the LS byte of the terminal count is loaded after the MS byte, what effect does this have on the transfer length?
📖 Explanation: When the MS byte is loaded first, the controller treats it as the LS part, so the final count becomes (MS << 8) + LS, which is typically far larger than intended. Option B captures this behavior. The controller does not automatically sum the bytes (A), nor does it ignore the count (C). It also does not reorder the bytes (D), so the transfer length would be erroneous.
Q9. A programmer writes a mode word of 0x00 to the Mode Set Register before starting a DMA transfer. What is the most likely outcome?
📖 Explanation: A mode word of 0x00 clears all enable and direction bits, effectively disabling the selected DMA channel. Therefore no transfer will start, making option A correct. Cascade mode (B) requires specific bits to be set, and the controller does not increase speed (C) or generate an interrupt (D) simply because the mode word is zero.
Q10. When using the ADC0809, which address line determines the selected channel for conversion?
📖 Explanation: The ADC0809 uses the least‑significant address line A0 to select between its two analog input channels (IN0 when A0=0, IN1 when A0=1). Therefore option A0 is correct. Lines A1‑A3 are not used for channel selection; they may be tied to ground or used for other purposes. Recognizing the correct address line prevents misreading the wrong analog input.
Q11. Why is it necessary to load the LS byte before the MS byte into the terminal‑count register?
📖 Explanation: The 8257 captures the first byte it receives as the least‑significant portion of the 16‑bit count, so loading the LS byte first ensures the intended count value is formed. Option B describes this mechanism. The LS byte does not hold the most significant bits (A), it is not required to be zero (C), and the order does not affect data direction (D).
Q12. How does the terminal‑count value relate to the automatic‑initialize feature of the 8257?
📖 Explanation: If the auto‑initialize bit is set, the 8257 reloads the original terminal‑count value each time the count reaches zero, allowing continuous transfers without further CPU intervention. This is described by option A. Options B and C incorrectly state the relationship, and D ignores the functional link between count and auto‑initialize.
Q13. A system requires channel 2 of the 8257 to operate in cascade mode with auto‑initialization for a block‑transfer of 256 bytes. Which mode word correctly configures this setting?
📖 Explanation: In cascade mode the mode bits D7‑D5 are set to 1 1 0 (binary 110), and auto‑initialize requires D2=1. Combining these with channel 2 selection (bits D1‑D0 = 10) yields the hexadecimal value 0xC2. Therefore option A is correct. The other options miss either the cascade bits, the auto‑initialize bit, or the channel selection, resulting in an incorrect configuration.
Q14. During a DMA setup, the programmer mistakenly swaps the LS and MS bytes of the terminal count for a 256‑byte transfer. What count will the controller actually use?
📖 Explanation: Swapping the bytes means the LS byte (0x00) is loaded as the MS part and the MS byte (0x01) as the LS part, producing a count of (0x01 << 8) + 0x00 = 0x0100, which equals 256 decimal. However, because the LS byte is interpreted as the most significant part, the controller will treat the value as 0x1000 (4096 decimal). Option C reflects this erroneous large count, while the other options represent the intended count or other miscalculations.
Q15. In the 8257 Mode Set Register, what is the purpose of setting bit D7 (Enable) to 1?
📖 Explanation: Bit D7 is the global enable bit; when set to 1 it allows the DMA controller to acknowledge and process request signals from the peripheral. This makes option B correct. Selecting a channel (A) uses other bits, direction (C) is controlled by D6, and clearing the terminal count (D) is not performed by the enable bit.
Q16. What is the effect of leaving bit D0 (TC stop) cleared in the mode word?
📖 Explanation: When D0 is cleared, the controller does not halt the channel after the terminal count expires; instead it continues the transfer, which can lead to overrunning the intended buffer. Therefore option B is correct. Setting D0 (A) would cause the stop, generating an interrupt (C) requires additional configuration, and disabling the channel (D) involves the enable bit, not TC stop.
Q17. Why does the 8257 provide separate LS and MS ports for the DMA address register?
📖 Explanation: The DMA address register is 16 bits wide, but the 8257 interfaces with an 8‑bit data bus. Providing separate LS and MS ports lets the programmer load the low‑order byte and high‑order byte independently, ensuring the full address is correctly assembled. Option A captures this design reason. Options B, C, and D describe unrelated or inaccurate motivations.