🎓 BookMCQ
← Back to 13. Interfacing Data converters: A/D and D/A Converters

📝 Single Slope A/D Converter in 8085 Microprocessor (8 MCQs)

Time Measurement Using a Single Linear Reference Ramp

A single-slope ADC converts an analog voltage by measuring the time required for a known ramp voltage to reach the input level. Its main sections include a ramp generator, comparator, clock, counter and control logic. The ramp begins at a defined level and changes at a controlled rate, while the counter records clock pulses during the comparison interval.

Ramp Generator and Comparator Operation

The ramp generator produces a voltage that changes approximately linearly with time. One comparator input receives the unknown analog signal, while the other receives the ramp. When both voltages reach the specified crossing condition, the comparator changes state and signals the control logic to stop the counter.

Counter Timing and Formation of the Digital Output

The counter is reset at the beginning of conversion and starts counting clock pulses as the ramp progresses. The elapsed time to the comparator transition is proportional to the input magnitude when the ramp slope is constant. The captured count is therefore converted into the binary representation of the input voltage.

Example of a Ramp Crossing at the Midpoint of Its Range

Suppose a linear ramp rises from 0 V to 5 V in 10 ms, and the input is 2.5 V. The ramp reaches the input after approximately 5 ms. With a 1 kHz counting clock, the counter records about 5,000 pulses, subject to the circuit's timing and endpoint conventions.

Ramp Stability and the Accuracy of Single-Slope Conversion

The result depends on the ramp slope, clock frequency, comparator offset and timing stability. Changes in the ramp generator or clock can cause conversion error because the measured interval is the basis of the digital result. A single-slope design is conceptually straightforward but is more sensitive to ramp linearity and component drift than a dual-slope arrangement.

Distinguishing a Single Ramp from a Dual-Slope Process

'The input is integrated for a fixed interval and then de-integrated' describes a dual-slope converter, not the basic single-slope process. 'The counter records the analog voltage directly' is incorrect because it records elapsed clock intervals. 'The ramp slope has no effect on conversion' is incorrect because it determines the time-to-voltage relationship.

Ramp Slope and Timing Calculations for Examinations

Identify the ramp generator, comparator and clocked counter, and explain the voltage-crossing event that ends conversion. Calculate the ramp slope from voltage change divided by time, then determine the crossing time for a specified input. Distinguish the single-ramp method from counter-driven DAC conversion and fixed-time dual-slope integration.

Single-Ramp Conversion Terms

  • Ramp Generator - Produces a linearly changing voltage.
  • Comparator - Detects the ramp-input crossing.
  • Ramp Slope - Voltage change per unit time.
  • Counter - Records elapsed clock pulses.
  • Clock - Supplies timing reference pulses.
  • Crossing Time - Time at which voltages match.
2
Easy
3
Medium
3
Hard

📝 All Single Slope A/D Converter in 8085 Microprocessor MCQs

Q1. What is the primary function of the Mode Set Register in the 8257 DMA controller?

A.To select the transfer mode for a channel ✅
B.To store data being transferred
C.To generate interrupt signals
D.To provide power supply
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: The Mode Set Register holds the configuration bits that tell the DMA controller how a channel should operate, such as transfer type and auto‑initialize. Selecting the correct mode ensures the controller moves data correctly. Option A matches this purpose, while the other choices describe unrelated functions like storage, interrupt generation, or power supply, which are not performed by this register.

Q2. Why does a single‑slope A/D converter require a counter that counts up from zero to the reference voltage for each conversion?

A.Because the counter provides a decreasing voltage
B.Because the comparator only triggers when the counter voltage exceeds the input
C.Because the counter's ramp creates a time‑proportional representation of the input voltage ✅
D.Because the counter stores the final digital result
💡 Difficulty: easy | ✅ Correct: C

📖 Explanation: In a single‑slope converter the counter generates a linearly increasing voltage that is compared with the analog input. The time needed for the ramp to reach the input voltage is proportional to the input level, producing the digital code. Option C describes this relationship. The other options either reverse the voltage direction, misstate the comparator role, or confuse the counter with storage, none of which explain the conversion principle.

Q3. In the initialization sequence for the 8257, why must the terminal count be loaded before the DMA address register?

A.The address register depends on the count value to calculate offsets
B.Loading the count first ensures the controller knows the transfer length before addressing memory ✅
C.The address register cannot be written until the mode word is set
D.The order does not matter; it's arbitrary
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: The controller needs to know how many bytes will be transferred before it begins fetching or storing data, because the address register may be auto‑incremented for each byte transferred. Loading the terminal count first establishes the transfer length, preventing premature address updates. Option B captures this requirement. Option A suggests a dependence that does not exist, C refers to the mode word, and D incorrectly claims the order is irrelevant.

Q4. How does setting D7=0 and D6=1 in the mode word of channel 0 affect the operation of the 8257 DMA controller?

A.It selects single‑address mode with auto‑initialize disabled
B.It enables block‑transfer mode with address increment after each byte ✅
C.It configures demand‑transfer mode with address decrement
D.It puts the channel in disabled state
💡 Difficulty: hard | ✅ Correct: B

📖 Explanation: In the 8257 mode word, the bits D7‑D6 define the transfer mode. The pattern 01 selects block‑transfer mode, where the controller moves a block of data and automatically increments the address after each byte. This mode is useful for bulk transfers such as to a floppy. Option B correctly describes the effect. Option A mixes single‑address and auto‑initialize concepts, C describes demand‑transfer with decrement which uses a different bit pattern, and D is false because the channel remains active in block mode.

Q5. A system must transfer 1024 bytes from memory address 0x2000 to a floppy using channel 1. The Mode Set Register address is 0x28, the Terminal Count Register address is 0x21, and the DMA address register for channel 1 is 0x22. Which sequence correctly loads mode word 0x44, count low 0x00, count high 0x04, address low 0x00, and address high 0x20?

A.OUT 0x28, A←0x44; OUT 0x21, A←0x00; OUT 0x21, A←0x04; OUT 0x22, A←0x00; OUT 0x22, A←0x20 ✅
B.OUT 0x28, A←0x44; OUT 0x21, A←0x04; OUT 0x21, A←0x00; OUT 0x22, A←0x20; OUT 0x22, A←0x00
C.OUT 0x28, A←0x44; OUT 0x22, A←0x00; OUT 0x22, A←0x20; OUT 0x21, A←0x00; OUT 0x21, A←0x04
D.OUT 0x28, A←0x44; OUT 0x21, A←0x00; OUT 0x22, A←0x00; OUT 0x21, A←0x04; OUT 0x22, A←0x20
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: The correct order is: write the mode word to the Mode Set Register (0x28), then load the low‑byte of the terminal count (0x00) followed by the high‑byte (0x04) to the Terminal Count Register (0x21). After the count, the low‑byte of the start address (0x00) and the high‑byte (0x20) are written to the DMA address register for channel 1 (0x22). Option A follows this exact sequence. The other options either swap low/high bytes or write to the wrong register order, which would cause incorrect transfer parameters.

Q6. A single‑slope A/D converter uses a 10‑bit counter and a 5 V reference. If the analog input is 2.5 V, what digital code is produced?

A.512 ✅
B.1024
C.256
D.0
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: The converter counts upward until the generated voltage equals the input. With a 10‑bit counter, the full‑scale code is 210=10242^{10}=1024 representing 5 V. Half of full scale corresponds to 2.5 V, giving 1024×2.55=5121024 \times \frac{2.5}{5}=512. Therefore the output code is 512. Option A reflects this calculation. Option B would be the full‑scale code, C is a quarter‑scale result, and D would indicate zero voltage, none of which match the 2.5 V input.

Q7. Given a DMA controller initialized with mode word 0x41 for channel 0, a terminal count of 0x0200, and a starting address of 0x3000, how many memory cycles are needed to complete the transfer if each cycle moves one byte in block‑transfer mode?

A.512 cycles ✅
B.256 cycles
C.1024 cycles
D.128 cycles
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: The terminal count value 0x02000x0200 equals decimal 512, indicating the controller will transfer 512 bytes. In block‑transfer mode each byte requires one memory cycle, and the address auto‑increments after each transfer. Therefore the total number of cycles equals the number of bytes, i.e., 512. Option A provides this count. The other options represent half, double, or a quarter of the actual transfer size, which would be incorrect for the given count.

Q8. When configuring a single‑slope A/D converter for a 0‑to‑10 V input range with a 12‑bit counter, what is the voltage resolution per LSB?

A.10 V212\frac{10\text{ V}}{2^{12}} ≈ 2.44 mV ✅
B.10 V210\frac{10\text{ V}}{2^{10}} ≈ 9.77 mV
C.5 V212\frac{5\text{ V}}{2^{12}} ≈ 1.22 mV
D.10 V28\frac{10\text{ V}}{2^{8}} ≈ 39.06 mV
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: Resolution is found by dividing the full‑scale voltage by the total number of quantization steps, which is 212=40962^{12}=4096 for a 12‑bit counter. Thus each LSB represents 10 V4096≈2.44 mV\frac{10\text{ V}}{4096} \approx 2.44\text{ mV}. Option A states this calculation correctly. Option B uses a 10‑bit divisor, C halves the voltage range, and D uses an 8‑bit divisor, all leading to inaccurate resolution values. The correct resolution is essential for interpreting converter output accurately in real‑world measurements.

🔗 Related Topics (MCQs)