The real world is analog — temperature, sound, light and voltage all vary smoothly — but microprocessors, memories and communication links handle only digital ones and zeros. Bridging these two worlds are two indispensable circuits: the Digital-to-Analog Converter (DAC), which turns a binary code into a proportional voltage, and the Analog-to-Digital Converter (ADC), which samples an analog signal and encodes it as a binary number. Almost every modern system — from a mobile phone to an instrumentation panel — depends on them.
This article covers why conversion is needed, the two classic DAC architectures (weighted-resistor and R-2R ladder), the four main ADC types (flash, counter/ramp, successive-approximation and dual-slope), and the key performance parameters: resolution, step size, full-scale, quantisation error, conversion time and the speed-versus-resolution trade-off. These topics are heavily tested in Wireless PSI and GPSC technical papers, especially numerical questions on step size and the number of comparators in a flash ADC.
Why Convert Between Analog and Digital?
Sensors produce continuous analog signals, but storage, processing and noise-immune transmission demand digital data. An ADC digitises the sensor output so a processor can analyse it; after processing, a DAC reconstructs an analog waveform to drive a speaker, motor or display. Digital data resists noise, can be stored indefinitely and compressed, and is easily encrypted — advantages that analog signals lack.
Exam tip: Remember the direction. A DAC has a digital input and analog output; an ADC has an analog input and digital output. The audio chain is a useful mental model — microphone, ADC, processor, DAC, speaker.
DAC Basics: Turning Bits into Voltage
A DAC accepts an n-bit binary number and produces an output voltage (or current) proportional to that number. Each input bit is given a weight according to its binary position: the most significant bit (MSB) contributes the largest share and the least significant bit (LSB) the smallest. The DAC sums these weighted contributions, usually with an op-amp summing amplifier.
The analog output for an input code D is the code multiplied by the step size. With reference voltage Vref and n bits, the output rises in equal steps from zero up toward full-scale.
Vout = (Vref / 2n) × DD = decimal value of the binary input code; the output is proportional to that code
Weighted-Resistor (Binary-Weighted) DAC
In this design each bit drives a resistor whose value is scaled by powers of two: R for the MSB, 2R for the next bit, 4R, 8R and so on, all feeding an op-amp summing junction. The currents add in binary proportion, so the output reflects the input code. It is simple and fast for a few bits.
Common mistake: Assuming the weighted-resistor DAC scales well. For high resolution it needs a very wide spread of precise resistor values — an 8-bit converter requires resistors differing by 128:1, which is hard to fabricate accurately. That is exactly why the R-2R ladder is preferred.
R-2R Ladder DAC
The R-2R ladder uses only two resistor values — R and 2R — arranged in a repeating ladder network. Because only two values are needed regardless of resolution, the resistors can be trimmed to high relative accuracy and the design integrates beautifully on a chip. This is the dominant DAC architecture in modern ICs.
| DAC type | Resistor values | Strength | Weakness |
|---|
| Weighted-resistor | R, 2R, 4R, 8R ... (wide spread) | Simple, conceptually clear, fast | Hard to make accurate at high resolution |
| R-2R ladder | Only R and 2R | Easy to integrate, scalable, accurate | Slightly more components per bit |
DAC Resolution, Step Size and Full-Scale
Resolution is the number of distinct output levels a converter can produce, set by the number of bits n. An n-bit DAC has 2n levels and 2n − 1 steps between zero and full-scale.
Number of output levels = 2nn = number of bits
The step size (also called resolution in volts, or the value of one LSB) is the smallest change in output voltage, equal to the full-scale reference divided by the number of steps.
Step size = VFS / (2n − 1)V_FS = full-scale reference voltage; the step equals one LSB
Full-scale (VFS) is the maximum output, reached when all input bits are 1. The actual maximum output is one step below VFS because the code 000...0 already uses one level for zero.
Exam tip: A favourite numerical: for an 8-bit DAC with 5 V full-scale, step size = 5 / (28 − 1) = 5 / 255 ≈ 19.6 mV. More bits means smaller steps and finer resolution.
ADC Basics and the Four Main Types
An ADC samples the analog input, holds the value, then compares it against internal references to find the matching binary code. The four classic architectures trade speed against complexity and accuracy.
Flash (Parallel) ADC
The flash ADC is the fastest. It uses a bank of comparators, one for each quantisation level, all comparing the input simultaneously against a resistor-divider reference ladder. A priority encoder converts the comparator outputs to binary in a single step. The price is hardware: the comparator count grows exponentially with resolution.
Number of comparators = 2n − 1n = resolution in bits; each comparator handles one threshold level
Exam tip: A 3-bit flash ADC needs 23 − 1 = 7 comparators; a 4-bit needs 15. This exponential growth is why flash ADCs are limited to low bit counts (typically up to about 8 bits).
Counter / Ramp ADC
A counter-type ADC drives a counter into a DAC, ramping the DAC output upward until it matches the input; the counter value at that instant is the result. It is simple but slow, and conversion time depends on the input magnitude — large inputs take longer because the count must climb higher.
Successive-Approximation ADC (SAR)
The successive-approximation register (SAR) ADC performs a binary search. It sets the MSB first, compares, keeps or clears it, then moves to the next bit, taking exactly n comparison steps for n bits. It offers an excellent balance of speed, accuracy and cost, making it the workhorse of general-purpose data acquisition and most microcontroller ADCs.
Dual-Slope (Integrating) ADC
The dual-slope ADC integrates the input for a fixed time, then integrates a reference in the opposite direction until the integrator returns to zero, measuring how long that takes. Because it averages over a period, it strongly rejects noise (especially mains hum) and is very accurate, but slow. It dominates digital voltmeters and panel meters.
| ADC type | Conversion steps | Speed | Typical use |
|---|
| Flash (parallel) | 1 (simultaneous) | Very high | Video, RF, fast digitising |
| Successive-approximation | n steps for n bits | High | General data acquisition, MCUs |
| Counter / ramp | Up to 2^n steps | Low | Simple low-cost designs |
| Dual-slope | 2 integration phases | Very low | Digital voltmeters, accuracy |
Quantisation Error and Conversion Time
Because an ADC maps a continuous input onto a finite set of codes, the digital value can never represent the input exactly. The difference is quantisation error, bounded by ± half of one LSB. More bits shrink the LSB and therefore the error.
Maximum quantisation error = ± (1/2) LSB = ± VFS / (2 × 2n)One LSB is the smallest resolvable input change; error is half a step at most
Conversion time is how long one conversion takes; its inverse limits the maximum sampling rate. Flash is near-instant, SAR scales linearly with bits, and dual-slope and counter types are slow.
Common mistake: Confusing resolution (number of bits) with accuracy. A converter can have many bits yet poor accuracy if its reference drifts or its linearity is bad. Resolution sets the smallest step you can represent, not how truthful that step is.
Resolution-vs-Speed Trade-off and Sample-and-Hold
There is an unavoidable tension between speed, resolution and cost. Flash buys speed at the cost of exponential hardware; dual-slope buys accuracy and noise rejection at the cost of speed; SAR sits in the practical middle. Designers pick the architecture from the application's bandwidth and precision needs.
A sample-and-hold (S/H) circuit freezes the analog input at the sampling instant so it stays constant while the ADC converts. Without it, a changing input during conversion would corrupt the code — especially important for SAR and counter types that take several clock cycles.
Choosing a Converter
Match the converter to the job. For very high-speed digitising (video, radar), choose flash. For general-purpose acquisition at moderate speed and good resolution, choose SAR. For high-accuracy, noise-tolerant DC measurement (meters), choose dual-slope. Always check that the conversion time supports the required sampling rate, and that the resolution gives an acceptable quantisation error.
| Requirement | Best ADC choice | Reason |
|---|
| Maximum speed | Flash | Single-step parallel conversion |
| Balanced speed and cost | Successive-approximation | n steps, good resolution, cheap |
| High accuracy and noise rejection | Dual-slope | Averages input, rejects mains hum |
| Lowest circuit complexity | Counter / ramp | Single counter plus comparator |
- A DAC converts a binary code to a proportional analog output; an ADC converts an analog input to a binary code.
- Weighted-resistor DACs need a wide resistor spread; R-2R ladders use only two values and are preferred in ICs.
- Step size = V_FS / (2^n - 1); an n-bit converter has 2^n levels. More bits means smaller steps and finer resolution.
- A flash ADC needs 2^n - 1 comparators and is fastest; SAR takes n steps; dual-slope is most accurate but slowest.
- Quantisation error is at most half an LSB; a sample-and-hold keeps the input steady during conversion.
- Choose the architecture by trading speed against resolution, accuracy and cost.
Practice MCQs
Q1. What is the step size of an 8-bit DAC with a full-scale output of 5.1 V?
- A.20 mV
- B.19.6 mV
- C.637.5 mV
- D.5.1 mV
Correct Answer: A
Explanation: Step size = V_FS / (2^n - 1) = 5.1 / (256 - 1) = 5.1 / 255 = 0.02 V = 20 mV. Using 255 (steps), not 256 (levels), gives the standard exam answer.
Q2. Which DAC architecture uses only two distinct resistor values?
- A.Weighted-resistor DAC
- B.R-2R ladder DAC
- C.Flash DAC
- D.Dual-slope DAC
Correct Answer: B
Explanation: The R-2R ladder uses only R and 2R regardless of resolution, which makes it accurate and easy to integrate. The weighted-resistor DAC needs a wide spread of values.
Q3. How many comparators are required in a 4-bit flash ADC?
Correct Answer: C
Explanation: A flash ADC needs 2^n - 1 comparators. For n = 4: 2^4 - 1 = 16 - 1 = 15. This exponential growth limits flash ADCs to low bit counts.
Q4. Which ADC type is the fastest?
- A.Successive-approximation
- B.Dual-slope
- C.Flash (parallel)
- D.Counter / ramp
Correct Answer: C
Explanation: The flash ADC compares the input against all reference levels simultaneously and produces the code in a single step, making it the fastest but the most hardware-intensive.
Q5. The maximum quantisation error of an ideal ADC is:
- A.Equal to one LSB
- B.Half of one LSB
- C.Equal to the full-scale voltage
- D.Zero
Correct Answer: B
Explanation: Because the continuous input is rounded to the nearest code, the error never exceeds plus or minus half of one LSB. More bits reduce the LSB and hence the error.
Q6. Which ADC is best suited for a precision digital voltmeter due to its strong rejection of mains-frequency noise?
- A.Flash ADC
- B.Dual-slope (integrating) ADC
- C.Counter ADC
- D.SAR ADC
Correct Answer: B
Explanation: The dual-slope ADC integrates the input over a fixed period, averaging out noise such as 50 Hz hum, giving high accuracy. It is slow but ideal for DC measurement.
Q7. A successive-approximation ADC of n bits completes one conversion in how many comparison steps?
- A.1 step
- B.n steps
- C.2^n steps
- D.2^n - 1 steps
Correct Answer: B
Explanation: The SAR performs a binary search, resolving one bit per clock cycle, so an n-bit conversion takes exactly n steps regardless of the input value.
Q8. What is the purpose of a sample-and-hold circuit ahead of an ADC?
- A.To amplify the input
- B.To hold the input constant during conversion
- C.To filter quantisation noise
- D.To convert digital codes to voltage
Correct Answer: B
Explanation: A sample-and-hold freezes the analog value at the sampling instant so it does not change while the ADC converts, preventing code errors in multi-step converters such as SAR and counter types.