How DACs Convert Binary to Analog Voltage
Digital-to-Analog Converters (DACs) are fundamental electronic devices that bridge discrete digital computing and the continuous physical world by translating binary code into corresponding analog voltage levels. This article explains the underlying mechanics of DACs, detailing how reference voltages, resistor networks, switching mechanisms, and output filters work together to transform sequences of 0s and 1s into smooth, continuous electrical waveforms.
The Foundation: Binary Weighting and Reference Voltage
A DAC translates an \(N\)-bit binary word into an analog voltage proportional to a known reference voltage (\(V_{ref}\)). In a binary system, each bit represents a power of two, ranging from the Least Significant Bit (LSB) to the Most Significant Bit (MSB).
The theoretical output voltage (\(V_{out}\)) of an ideal DAC is calculated using the formula:
\[V_{out} = V_{ref} \times \frac{\text{Digital Input Value}}{2^N}\]
For example, in an 8-bit DAC with a reference voltage of 5V, there
are \(2^8 = 256\) possible voltage
steps. The LSB represents the smallest step size (resolution), which is
\(5\text{V} / 256 \approx
19.53\text{mV}\). An input of 00000001 yields
~19.53mV, while 11111111 yields approximately 4.98V.
Conversion Architectures
DACs use precision resistor networks and electronic switches to physically generate voltages corresponding to binary values. The two most common architectures are:
1. Binary-Weighted Resistor Network
In this design, each bit of the digital input controls a switch connected to an operational amplifier (op-amp) summing circuit via a specific resistor: * The MSB connects to a resistor of value \(R\). * The next bit connects to \(2R\), the next to \(4R\), then \(8R\), scaling up by powers of two.
When a bit is high (1), current flows through that
resistor into the op-amp. Because resistance doubles with each lower
bit, the current is halved, directly mirroring binary weighting. The
op-amp sums these currents and outputs a proportional voltage. While
simple in concept, this method is difficult to manufacture for
high-resolution DACs due to the wide range of precision resistor values
required.
2. R-2R Ladder Network
The R-2R ladder solves the manufacturing challenge of binary-weighted networks by utilizing only two resistor values: \(R\) and \(2R\).
The resistors are arranged in a repeating ladder formation. As the reference voltage propagates through the ladder, each junction divides the voltage and current in half. Electronic switches directed by the digital input connect these nodes either to the ground or to the summing bus of an op-amp. This generates a weighted sum of currents that directly corresponds to the binary input, offering high precision, scalability, and ease of fabrication.
Smoothing the Output: Reconstruction Filtering
The raw output directly from the resistor network is a “staircase” voltage—a series of discrete voltage steps updated at each clock cycle.
To convert these sharp discrete steps into a smooth, continuous analog signal, the DAC output passes through an analog low-pass filter, known as a reconstruction or anti-imaging filter. This filter removes the high-frequency harmonics caused by the abrupt voltage transitions, yielding a clean, continuous analog voltage wave.