BEC302 · DIGITAL SYSTEM DESIGN · Unit 5
Digital-to-Analog converters (DAC)
Unit Scope & Exam Weightage: This unit bridges digital and analogue worlds: DAC specifications, binary-weighted resistor and R–2R ladder DACs, ADC specifications and conversion principle, switched-capacitor circuits, and ADC types — dual slope, successive approximation, counting type and flash. The paper repeatedly asks 7-mark numericals on ADC resolution/quantisation/error and SAR conversion, plus 7-mark derivations of R–2R and successive-approximation operation. Expect 14–21 marks.
Front Page: Importance-Wise Topic Roadmap (2023–26 PYQs)
| Priority | Topic (Exact Syllabus) | PYQs Asked | Marks Weightage | Tag |
|---|---|---|---|---|
| 1 | Analog-to-digital converters (ADC): Specifications of ADCs | 3 (2025-26 ×3) |
7m + 7m + 2m | Survival Mode Numerical |
| 2 | R-2R ladder | 3 (2023-24, 2025-26 ×2) |
7m × 3 | Survival Mode Derivation |
| 3 | principle of ADC (successive approximation numerical) | 2 (2023-24, 2025-26) |
7m × 2 | Algorithm |
| 4 | switched capacitor circuits: Basic concept | 1 (2023-24) |
7m | Core Concept |
| 5 | Specifications of DACs | 1 (2023-24) |
2m | Quick Definition |
| 6 | Weighted resistor / dual slope / counting type / flash | 0 direct | — | Supporting Topic |
2-Hour Last-Night Survival Checklist:
- Step size: (ADC) and when full scale is defined as the largest code; quantisation error is . For 8-bit, 5 V: mV, error ±9.77 mV.
- SAR conversion: 10-bit at 1 MHz → 10 clock periods = 10 µs; test bits MSB first, keep a bit only if DAC output ≤ analogue input (truncation, not rounding).
- R–2R ladder: requires only two resistor values; output impedance is constant looking into any node; .
- Percentage resolution: ; for 10-bit DAC with 10 mV step, V and resolution ≈0.0978%.
- ADC speed: flash (fastest, comparators) > SAR ( clocks) > counting type (up to clocks) > dual slope (slow, high noise rejection).
1. Specifications of DACs and ADCs
DAC (2 Marks): a circuit that converts an -bit digital word into a proportional analogue voltage or current. ADC (2 Marks): a circuit that samples an analogue voltage and produces the -bit digital word nearest to (or just below) it.
1.1 DAC Specifications
| Specification | Meaning |
|---|---|
| Resolution | Smallest change in output for a 1-LSB change in input = |
| Full-scale output | Analogue value for code |
| Linearity | Maximum deviation from the ideal straight-line transfer curve |
| Monotonicity | Output never decreases when the input code increases |
| Settling time | Time for output to settle within ±½ LSB after a code change |
| Offset / gain error | Constant shift and slope error of the transfer characteristic |
1.2 ADC Specifications
| Specification | Meaning |
|---|---|
| Resolution | Number of bits ; step size |
| Quantisation error | Difference between sample and represented level, max ±½ LSB |
| Conversion time | Time from start-of-conversion to valid digital output |
| Sampling rate | Maximum conversions per second (Nyquist: ≥2× signal bandwidth) |
| Accuracy | Includes offset, gain, linearity and quantisation errors |
| Missing codes | A code never produced due to nonlinearity (must be absent in a good ADC) |
Examiner Tip (resolution wording): If the question gives V and 8 bits, the step size is mV; if it asks "percentage resolution", use . Write both the step size and the percentage so either marking convention is covered.
2. DAC Architectures
2.1 Binary-Weighted Resistor DAC
An inverting op-amp sums currents from branches with resistors , switched to when the bit is 1 and to ground when it is 0. With :
Drawback: for 10 bits the largest resistor is ; if kΩ the range is 1 kΩ to 512 kΩ — too wide for accurate matching on an IC.
2.2 R–2R Ladder DAC
Only two resistor values are used. Every node looking right into the ladder presents resistance to ground, so bit currents halve systematically as one moves along the ladder.
%%{init: {'theme': 'base', 'look': 'handDrawn', 'themeVariables': {'fontFamily': "'Nunito', sans-serif", 'fontSize': '17px', 'primaryColor': '#EFEAD6', 'primaryBorderColor': '#0F766E', 'lineColor': '#23211C'}}}%%
flowchart LR
REF["Vref"] --> L["2R from MSB node"]
L --> N1["Node b(n-1)"]
N1 --> R1["R"]
R1 --> N2["Node b(n-2)"]
N2 --> R2["R"]
R2 --> N3["..."]
N1 --> S1["2R to switch"]
N2 --> S2["2R to switch"]
N3 --> S3["2R to switch"]
S1 --> OP["Op-amp summing node"]
S2 --> OP
S3 --> OP
Derivation of the output: because each successive node contributes half the current of the previous one, the summing node receives weighted by , by , etc. With feedback resistor :
| Feature | Weighted-resistor DAC | R–2R ladder DAC |
|---|---|---|
| Resistor values | Many ( to ) | Only and |
| Matching accuracy | Poor for high | Excellent |
| Output impedance | Varies with code | Constant |
| Monotonicity | Harder to guarantee | Inherently good |
| IC suitability | Low | High |
Worked example: 4-bit R–2R, V, input 1011:
V.
2.3 Switched-Capacitor Circuits
Switched-capacitor circuit (2 Marks): a network in which MOS switches periodically connect a capacitor between two nodes, transferring packets of charge so that it behaves like a resistor of .
| Application | How the switched capacitor is used |
|---|---|
| Sample-and-hold | Capacitor stores the input voltage while the switch opens |
| SC filters | Replaces resistors in active-RC filters; cutoff set by ratio × clock |
| Pipelined ADC | Multiplying DAC and residue amplifier use capacitor arrays |
| Sigma–delta ADC | Integrator built from switched capacitors; oversampling gives high resolution |
Advantages: accurate time constants depend on capacitor ratios and clock frequency, not on absolute resistor values; fully compatible with CMOS. Limitation: clock feed-through and charge injection require careful switch design.
3. ADC Architectures and Principle
3.1 Successive Approximation Register (SAR) ADC
Principle: a DAC, a comparator and a successive-approximation register perform a binary search. The MSB is tried first; if the DAC output is less than or equal to the input, the bit is kept, otherwise it is cleared. Each bit requires one clock, so conversion time .
%%{init: {'theme': 'base', 'look': 'handDrawn', 'themeVariables': {'fontFamily': "'Nunito', sans-serif", 'fontSize': '17px', 'primaryColor': '#EFEAD6', 'primaryBorderColor': '#0F766E', 'lineColor': '#23211C'}}}%%
flowchart TD
START["Start of conversion<br/>clear all bits"] --> MSB["Set MSB = 1"]
MSB --> DAC["DAC converts trial word"]
DAC --> CMP{"VDAC <= VIN ?"}
CMP -->|Yes| KEEP["Keep bit = 1"]
CMP -->|No| CLEAR["Clear bit = 0"]
KEEP --> NEXT["Move to next bit"]
CLEAR --> NEXT
NEXT --> MSB
NEXT --> DONE["After n clocks: output code"]
3.2 Other ADC Types
| Type | Hardware | Conversion time | Strength | Weakness |
|---|---|---|---|---|
| Flash | comparators + priority encoder | One clock | Fastest | Huge hardware for large |
| Counting type | Counter + DAC + comparator | Up to | Very simple | Slow |
| Dual slope | Integrator + counter | Excellent noise rejection, accurate | Very slow; used in DMMs | |
| SAR | DAC + comparator + register | Best speed/accuracy/cost compromise | Needs a precise DAC |
After-Topic PYQs:
- 2025-26 (7 Marks): "An 8-bit ADC has a reference voltage of 5 V. (a) Calculate the resolution (b) Determine the quantization error (c) Find the digital output for an input of 2.6 V."
- 2025-26 (7 Marks): "Assume the following values for the ADC: clock frequency = 1 MHz; mV; DAC has F.S. output = 10.23 V and a 10-bit input. Determine the following values: (i) The digital equivalent obtained for V. (ii) The conversion time. (iii) The resolution of this converter."
- 2025-26 (2 Marks): "Calculate the step size of a 10-bit ADC with 5 V reference."
- 2023-24 (7 Marks): "Describe the principle of operation of a successive approximation ADC."
- 2023-24 (7 Marks): "Explain switched capacitor and give its applications."
- 2023-24 (7 Marks): "Explain the principle of operation of an R-2R ladder DAC."
- 2023-24 (2 Marks): "What are the key specifications of a DAC?"
- 2025-26 (7 Marks): "What is the advantage of R/2R ladder DACs over those that use binary weighted resistors? A 10-bit DAC has a step size of 10 mV. Determine the full-scale output voltage and the percentage resolution."
Solved Exam-Ready Questions
Solved Q1 (2025-26 — 7 Marks | 8-bit ADC Numerical)
Q: An 8-bit ADC has a reference voltage of 5 V. (a) Calculate the resolution (b) Determine the quantization error (c) Find the digital output for an input of 2.6 V.
Solution:
- Number of levels .
- (a) Resolution / step size: V . Percentage resolution (or by the FS convention).
- (b) Quantisation error: maximum (i.e. ±½ LSB). RMS error mV if required.
- (c) Digital code: . Truncating (SAR behaviour) gives ; rounding to the nearest level also gives 133 since the fraction 0.12 < 0.5.
- Binary conversion: → .
- Reconstructed voltage: V; error V, well within ±½ LSB ✓.
Solved Q2 (2025-26 — 7 Marks | SAR ADC Numerical)
Q: Assume the following values for the ADC: clock frequency = 1 MHz; mV; DAC has F.S. output = 10.23 V and a 10-bit input. Determine the following values: (i) The digital equivalent obtained for V. (ii) The conversion time. (iii) The resolution of this converter.
Solution:
- Step size: with full-scale = V, . The comparator threshold mV is much smaller than ½ LSB, so comparisons are decisive.
- SAR trial table (candidate code kept only if ):
| Bit tried | Weight (V) | Cumulative trial (V) | Decision | Bit |
|---|---|---|---|---|
| 5.12 | 5.12 | 5.12 > 3.728 → clear | 0 | |
| 2.56 | 2.56 | ≤ 3.728 → keep | 1 | |
| 1.28 | 3.84 | > 3.728 → clear | 0 | |
| 0.64 | 3.20 | ≤ → keep | 1 | |
| 0.32 | 3.52 | ≤ → keep | 1 | |
| 0.16 | 3.68 | ≤ → keep | 1 | |
| 0.08 | 3.76 | > → clear | 0 | |
| 0.04 | 3.72 | ≤ → keep | 1 | |
| 0.02 | 3.74 | > → clear | 0 | |
| 0.01 | 3.73 | > → clear | 0 |
- (i) Digital equivalent: , representing 3.72 V (error mV from truncation).
- (ii) Conversion time: one bit per clock → .
- (iii) Resolution: step size ; percentage resolution .
- Check: 372×10 mV = 3.72 V ≤ 3.728 V and 373×10 mV = 3.73 V > 3.728 V, so the SAR choice is correct.
Solved Q3 (2025-26 — 2 Marks | ADC Step Size)
Q: Calculate the step size of a 10-bit ADC with 5 V reference.
Solution: V . Maximum quantisation error is ±2.44 mV, and percentage resolution is .
Solved Q4 (2023-24 — 7 Marks | Successive Approximation Principle)
Q: Describe the principle of operation of a successive approximation ADC.
Solution:
- Blocks: sample-and-hold, DAC, comparator, successive-approximation register (SAR), and clock/control logic.
- On start, all bits are cleared. The SAR sets the MSB to 1; the DAC produces half-scale.
- The comparator checks whether . If yes the bit stays 1; if no it is reset to 0.
- The same test repeats for the next bit, with the previously decided bits held, until all bits are decided — a binary search over levels.
- Conversion time: ; for 10 bits at 1 MHz it is 10 µs (independent of input amplitude, unlike the counting type).
- Accuracy: limited by DAC linearity, comparator offset and quantisation ±½ LSB.
- Use: the most common general-purpose ADC (data acquisition, microcontrollers, audio).
Solved Q5 (2023-24 — 7 Marks | R–2R Ladder Principle)
Q: Explain the principle of operation of an R-2R ladder DAC.
Solution:
- Network: a ladder of series and shunt branches; each bit switch connects its leg either to (bit 1) or to virtual ground (bit 0) at the op-amp summing node.
- Key property: looking right from any node, the equivalent resistance is (a leg in parallel with equals ), so each stage halves the current reaching the next stage.
- Weights: MSB contributes , next bit , …, LSB .
- Output with : .
- Example: 3-bit, V, input
101→ V. - Advantages: only two resistor values, constant output impedance, excellent monotonicity and easy IC fabrication (see comparison table in Section 2.2).
Solved Q6 (2025-26 — 7 Marks | R–2R Advantage and DAC Numerical)
Q: What is the advantage of R/2R ladder DACs over those that use binary weighted resistors? A 10-bit DAC has a step size of 10 mV. Determine the full-scale output voltage and the percentage resolution.
Solution:
- Advantage: a binary-weighted DAC needs resistors from to (512:1 ratio for 10 bits), which are hard to match accurately on a chip. The R–2R ladder needs only and , giving precise ratios, constant output impedance and good monotonicity.
- Full-scale output: the largest code is , so .
- Percentage resolution: .
- Alternative convention: if full scale is taken as V, the percentage is — both are acceptable if stated.
- Check: for code
1111111111= 10.23 V and for1000000000= 5.12 V = half scale ✓.
Solved Q7 (2023-24 — 7 Marks | Switched Capacitor)
Q: Explain switched capacitor and give its applications.
Solution:
- Structure: a capacitor connected between two nodes through MOS switches driven by a two-phase non-overlapping clock.
- Charge transfer: in phase 1 the capacitor charges to ; in phase 2 it discharges into , moving charge each cycle.
- Equivalent resistance: average current , hence .
- Applications: sample-and-hold circuits, switched-capacitor filters (cutoff set by capacitor ratios and clock), pipelined and sigma–delta ADCs, capacitive DACs.
- Advantages: accurate ratios in IC form, programmable filters via clock frequency, no large resistors.
- Non-idealities: charge injection, clock feed-through and finite op-amp bandwidth.
Solved Q8 (2023-24 — 2 Marks | DAC Specifications)
Q: What are the key specifications of a DAC?
Solution: The key specifications are resolution (1-LSB step), full-scale output, linearity, monotonicity, settling time, offset/gain error and glitch impulse. Together they describe how closely the analogue output follows the ideal straight-line relation with digital code.
Practice Questions (Self-Test)
- (7 Marks) For a 6-bit R–2R DAC with V, find the output for code
101010and the maximum output. - (7 Marks) An ADC has V and 12 bits. Find step size, percentage resolution and maximum quantisation error.
- (7 Marks) Explain why the counting-type ADC is slower than the SAR ADC and give one application of each.
- (7 Marks) Derive the transfer function of a first-order RC low-pass filter and relate its cutoff to a switched-capacitor clock.
- (2 Marks) State two advantages of R–2R over binary-weighted DAC.
- (7 Marks) A flash ADC uses 255 comparators. How many bits is it, and how many resistors are needed in the reference ladder? (Ans: 8 bits; 256 equal resistors.)