PROBLEM 098 · Easy · The R-2R ladder DAC
Binary Ladder
A 3-bit R-2R DAC
The problem
Build a 3-bit R-2R ladder DAC from resistors only. The test bench drives the three bits on the nets “b2” (most significant), “b1” and “b0” with 0 or 1.8 V. The ladder has three nodes: “out” (the output, at the most significant end), “n1” and “n0”. A 2R resistor joins each bit to its node (“b2” to “out”, “b1” to “n1”, “b0” to “n0”); a series resistor R joins “out” to “n1” and “n1” to “n0”; and a 2R resistor from “n0” to ground terminates the ladder.
At every node, looking toward the end, the resistance is 2R: each step splits the current in two, so each bit contributes half as much to the output as the bit above it: Vout = VDD·(4·b2 + 2·b1 + b0)/8. Use R = 10 kΩ and 2R = 20 kΩ.
The test bench
- Supply: not needed.
- The test bench applies the codes 000 to 111 to “b2”, “b1”, “b0” one after another (as separate runs) and measures the voltage of “out” for each. It reports the worst deviation from the ideal staircase in units of one least significant bit (LSB = 225 mV).
Numbers to hit
- Worst deviation from the ideal staircase at most 0.1 LSB
Design it yourself
Draw the circuit on a schematic canvas, size every transistor, and see it simulated in your browser with ngspice and the SkyWater SKY130 models. Every transistor lights up green, gold or red by operating region as you move the sliders.
Sign in or create a free account →More on switched-capacitor and converters
- Switch OnA bigger switch settles faster but kicks more charge into the capacitor when it opens. Find the size that satisfies both.
- Both WaysAn NMOS cannot pass a voltage near the supply: it turns itself off. Add a PMOS in parallel and the full range is passed.
- Tick TockReplace the input resistor with a switched capacitor: an integrator whose time constant is a ratio of capacitors and a clock.
- Eight StepsEight equal resistors between the reference and ground give seven evenly spaced taps: the heart of a flash ADC and of a string DAC.
- Charge ThiefHalf the channel charge goes to the capacitor when the switch opens. A half-size dummy switch on the opposite clock takes it back.