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

📝 D/A Converter IC 0808 in 8085 Microprocessor (12 MCQs)

Eight-Bit Current-Output Conversion with the DAC0808

The DAC0808, commonly written as DAC 0808 in microprocessor textbooks, is an eight-bit monolithic digital-to-analog converter. It accepts eight parallel digital inputs and produces a corresponding output current controlled by its reference current. Its TTL- and CMOS-compatible inputs allow an 8085-based system to supply binary data through an external latch or programmable input/output interface.

Reference Current and Internal Binary-Weighted Conversion

The reference-current circuit establishes the full-scale current available to the internal converter network. The eight input bits control weighted current contributions, which combine at the output. The DAC0808 provides a current output rather than a directly buffered voltage output. Its output current is approximately proportional to the digital code and reference current.

Digital Input Application and Current Output Response

When a new eight-bit code is applied, the internal current-switching network changes the output current to the level associated with that code. The output then approaches its final value within the specified settling time. An external operational amplifier is commonly connected to the current output to obtain a convenient voltage signal.

Example of Converting Code 80H into an Analog Current

Suppose the DAC0808 receives 80H, equivalent to decimal 128, with a reference current of 2 mA. The ideal output current is approximately 2 mA × 128/256 = 1 mA. An inverting operational-amplifier stage with a 2 kΩ feedback resistor produces approximately −2 V.

External Amplifier and Supply Requirements in an 8085 System

The current output normally feeds an op-amp configured as a current-to-voltage converter. The feedback resistor determines the voltage scale, while the reference circuit determines current magnitude. The DAC0808 also requires suitable supply and compensation connections according to its data sheet. Digital input data should remain stable during the required conversion and settling interval.

Clarifying the DAC0808 Output and Interface Requirements

'DAC0808 directly supplies a buffered analog voltage' is incorrect because its output is current. 'The IC contains an eight-bit input latch' is incorrect because an external latch or interface is normally required to hold data. 'The reference current does not affect output' is incorrect because it sets the output-current scale.

DAC0808 Pin Functions and Output Calculations for Examinations

Identify the eight digital input pins, reference connections and IOUT terminal. Distinguish the current output from the voltage delivered by the op-amp. Practise calculating the ideal output current from the reference current and digital code, then determine output voltage using the feedback resistor and amplifier polarity.

DAC0808 Circuit and Conversion Terms

  • DAC0808 - Eight-bit current-output DAC.
  • IOUT - Analog current output terminal.
  • IREF - Sets the full-scale current.
  • Feedback Resistor - Converts current into voltage.
  • Op-Amp - Provides current-to-voltage conversion.
  • Settling Time - Time for output stabilization.
2
Easy
6
Medium
4
Hard

📝 All D/A Converter IC 0808 in 8085 Microprocessor MCQs

Q1. What is the resolution (number of bits) of the 0808 D/A converter?

A.8-bit ✅
B.10-bit
C.12-bit
D.4-bit
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: The 0808 is defined as an 8‑bit digital‑to‑analog converter, meaning it processes an 8‑bit binary word to create an analog voltage. Hence its resolution is eight bits. Choices of 10‑bit, 12‑bit, and 4‑bit refer to other converter families and do not match the 0808 specification. Understanding the resolution tells a designer the smallest voltage increment the device can produce, which is vital for precision analog applications.

Q2. Why does the 0808 D/A converter require a stable reference voltage?

A.Because the output voltage is directly proportional to the reference voltage multiplied by the digital code ✅
B.Because the reference voltage sets the internal clock speed
C.Because the reference voltage powers the enable pin
D.Because the reference voltage determines the I/O pin polarity
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: The converter generates an output according to VOUT=VREF×CODE2n−1V_{OUT}=V_{REF}\times\frac{CODE}{2^{n}-1}. A stable VREFV_{REF} ensures that this proportional relationship remains constant, producing accurate analog levels. The other options describe unrelated functions: clock speed, enable pin operation, and pin polarity are not controlled by the reference voltage. In practical circuits, a noisy reference would cause output errors, undermining signal fidelity.

Q3. How does the binary‑weighted resistor ladder in the 0808 produce a voltage proportional to the digital input?

A.Each bit controls a resistor that contributes a weighted fraction of the reference voltage ✅
B.The ladder averages the reference voltage over all bits
C.The ladder converts the digital code into a frequency which is then filtered
D.The ladder uses a capacitor network to store charge proportional to the code
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: In a binary‑weighted ladder, the most significant bit (MSB) connects through a resistor of value RR, the next bit through 2R2R, then 4R4R, and so on. When a bit is high, the corresponding resistor connects the reference voltage to the summing node, adding its weighted portion. The sum of these weighted voltages yields VOUT=VREF×CODE255V_{OUT}=V_{REF}\times\frac{CODE}{255}. The other choices describe averaging, frequency conversion, or capacitive storage, which are not how the resistor ladder operates.

Q4. What is the purpose of the enable (E) pin on the 0808 IC?

A.It allows the output to be placed on the bus only when enabled, preventing bus contention ✅
B.It selects between two reference voltages
C.It switches the converter between 8‑bit and 10‑bit modes
D.It provides a reset function for the internal registers
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: The enable pin controls whether the analog output drivers are active. When E is asserted, the converter drives the output; when de‑asserted, the output drivers are high‑impedance, avoiding conflicts with other devices that might share the same analog line. The other options are unrelated: the 0808 does not switch reference sources, cannot change its resolution, and does not have a dedicated reset pin.

Q5. Explain why the 0808 D/A converter cannot be used for high‑speed waveform generation without additional buffering.

A.Its internal output stage has limited current capability and relatively long settling time, requiring a buffer for high‑frequency signals ✅
B.Because it lacks a built‑in clock generator
C.Because its digital inputs are multiplexed and cannot change quickly
D.Because it only supports unipolar output ranges
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: The 0808’s output drivers can source only a modest amount of current and need several microseconds to settle after a code change, which limits the maximum frequency of accurate waveform generation. Adding a buffer amplifier provides higher current drive and faster response, preserving waveform fidelity. The other statements are incorrect: the device does not contain a clock, its inputs are parallel (not multiplexed), and it can be configured for bipolar ranges with external circuitry.

Q6. A system supplies the 0808 with a 5 V reference and sends the binary code 0x9A (154 decimal). What analog voltage appears at the output?

A.3.0 V3.0\ \text{V} ✅
B.2.5 V2.5\ \text{V}
C.3.5 V3.5\ \text{V}
D.4.0 V4.0\ \text{V}
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: The output voltage follows VOUT=VREF×CODE255V_{OUT}=V_{REF}\times\frac{CODE}{255}. Substituting VREF=5 VV_{REF}=5\ \text{V} and CODE=154CODE=154 gives VOUT=5×154255≈3.02 VV_{OUT}=5\times\frac{154}{255}\approx3.02\ \text{V}, which rounds to 3.0 V. The 2.5 V, 3.5 V, and 4.0 V choices correspond to different fractions of the reference and are therefore inaccurate. This calculation demonstrates how to translate a digital word into a precise analog level in real‑world instrumentation.

Q7. When programming the 8257 DMA controller for a channel‑0 transfer, which hexadecimal value should be written to the Mode Set Register to enable the channel and stop on terminal count?

A.65 ✅
B.1
C.128
D.192
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: The Mode Set Register format for the 8257 places bits D7‑D0 as 0 1 0 0 0 0 1 = 0x41, which enables channel 0 and selects the stop‑on‑TC mode. Writing 0x01 would only set the enable bit without specifying the channel; 0x80 sets a different channel; 0xC0 combines unrelated bits. Using the correct mode word ensures the DMA operation begins correctly and halts after the specified byte count, a key step in reliable data movement.

Q8. To load a terminal count of 0x0123 into the 8257, which sequence of OUT instructions is correct?

A.OUT 73h, 0x23 ; then OUT 73h, 0x01 ✅
B.OUT 73h, 0x01 ; then OUT 73h, 0x23
C.OUT 72h, 0x23 ; then OUT 72h, 0x01
D.OUT 72h, 0x01 ; then OUT 72h, 0x23
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: The 8257 expects the least‑significant byte first, followed by the most‑significant byte, both written to the terminal count register address (73h). Therefore the correct order is LS = 0x23, then MS = 0x01. Switching the order would cause the controller to interpret the count incorrectly, leading to premature termination or overrunning of the transfer. The address 72h belongs to the DMA address register, not the count register.

Q9. A design uses a 12 V reference and a scaling op‑amp to obtain a 0–10 V output from the 0808. What gain must the op‑amp provide?

A.0.833 ✅
B.1.2
C.2
D.5
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: The 0808 can output up to the reference voltage, so with a 12 V reference its maximum output is 12 V. To scale this down to 10 V, the required gain is G=10 V12 V=0.833G=\frac{10\ \text{V}}{12\ \text{V}}=0.833. A gain of 1.2 would increase the voltage, while 2.0 and 5.0 would vastly exceed the desired range. Selecting the correct gain ensures the analog signal matches the required 0–10 V specification without clipping.

Q10. In a DMA transfer starting at address 0x3000 with a terminal count of 0x0200 (512 bytes) on channel 0, what is the address of the last byte transferred?

A.12799 ✅
B.13055
C.12543
D.12799
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: The transfer begins at 0x3000 and moves through 512 bytes. The final byte address is calculated as 0x3000+512−1=0x31FF0x3000 + 512 - 1 = 0x31FF. Options 0x32FF and 0x30FF represent off‑by‑one errors in the high or low byte, while the duplicate 0x31FF reinforces the correct answer. Knowing the address range is essential for verifying that the DMA operation does not overwrite unintended memory locations.

Q11. If a 0–5 V ramp is generated by updating the 0808 every 1 ms, and the converter’s settling time is 0.5 µs, what is the maximum frequency of the ramp you can reliably produce?

A.500 Hz
B.1 kHz ✅
C.2 kHz
D.5 kHz
💡 Difficulty: hard | ✅ Correct: B

📖 Explanation: The update period of 1 ms limits the ramp to a maximum of 1 kHz (since one full cycle would require at most 1 ms per step). Although the converter settles in 0.5 µs, which would allow much higher rates, the slower update rate is the bottleneck. Therefore the highest achievable ramp frequency is 1 kHz. The other frequencies either exceed the update constraint or are unnecessarily low.

Q12. Why must the terminal count be loaded LS byte first then MS byte when initializing the 8257 DMA controller?

A.Because the controller latches the LS byte and then combines it with the MS byte to form the full count ✅
B.Because the LS byte contains the address high bits
C.Because the LS byte sets the transfer mode
D.Because the LS byte resets the DMA channel
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: The 8257 is designed to receive the least‑significant byte first; it stores this value and then waits for the most‑significant byte to complete the 16‑bit count. Loading the bytes in reverse order would cause the controller to interpret the count incorrectly, potentially causing premature termination or memory overrun. The LS byte does not hold address or mode information, and it does not perform a channel reset.

🔗 Related Topics (MCQs)