MOULDLKnowledge BaseElectrical Knowledge Base3D Model DownloadsMembership
中文版Model Store »
Knowledge Base › Electrical Knowledge Base › The binary-weighted resistor DAC principle
HomeModels
Table of contents

On this page

Electrical & Electronic Basics (600 articles)

Quick Reference

  • PLC & Programming
  • Electrical & Electronic Basics (monthly)(每月更新中)
  • Electrical Control & Drawings (monthly)(每月更新中)
  • Drives & Actuators (monthly)(每月更新中)
  • Sensors & Detection (monthly)(每月更新中)
  • Industrial Communication & Networks (monthly)(每月更新中)
  • HMI & Host Systems (monthly)(每月更新中)
  • Industrial Robots & Motion Control (monthly)(每月更新中)
  • Mechatronic System Integration (monthly)(每月更新中)
  • Fault Diagnosis & Standards (monthly)(每月更新中)

The binary-weighted resistor DAC principle

The weighted resistor network is the most intuitive DAC: one weighted resistor per bit into a summing node. This page shows how digital codes become analog voltage, and the fatal flaw.

1. How it works

Principle: in an N-bit weighted resistor DAC, each data bit Dk reaches the op-amp summing node, the inverting input, through a resistor of 2^(N-1-k) times R. When Dk is 1 that branch contributes a current of Vref over its resistor, the branch currents add at the summing node, and the op-amp output is minus Vref times D over 2^N, an analog voltage proportional to the code. The MSB carries the smallest resistor and the largest weight.

2. Numbers and practice

A 4-bit example: resistors R, 2R, 4R and 8R serve D3 down to D0. D3 set contributes the largest current, Vref over 2R, and D0 the smallest, Vref over 16R. The summed output is minus Vref times 8 D3 plus 4 D2 plus 2 D1 plus D0, all over 16. Linearity is good and the idea crystal clear, the perfect entry structure for understanding a DAC.

3. Pitfalls and fixes

The fatal flaw: as bits grow, the resistor spread opens as 2^N, 128 times from largest to smallest at 8 bits and 2048 times at 12. Precision resistors that large are bulky, costly and hard to match, and unequal temperature drift bends the line. So weighted resistor DACs suit low bit counts only, and everything higher moves to the R-2R ladder.

4. Weighted resistor DAC, 4-bit example

BitResistorWeight currentContribution
D3RVref over 2RLargest
D22RVref over 4RSecond
D14RVref over 8RSmall
D08RVref over 16RSmallest
SummingOp-ampCurrents addLinear
Many bitsSpread as 2^NHard to matchAbandoned

5. Notes

The weighted structure is fine and intuitive at low bit counts; above a few bits the resistor spread explodes and the R-2R ladder takes over. The inverting summer output tracks the code.

6. References

The quantities and component characteristics discussed here follow current national standards and the corresponding IEC documents: DAC principles per GB/T 4728 and IEC 60748 series. Always check the device datasheet and the product design file for ratings and derating.

7. Cautions

⚠️ Three common pitfalls:
① Weighted structure forced at high bit counts:resistor ratios of 2^N refuse to match and nonlinearity sets in
② Weight resistors not precise enough:monotonicity breaks and the output falls as the code rises
③ Summing node not a solid virtual ground:the output scaling drifts from the code

Locate the issue with the approach above, then confirm with measurements; safety-related circuits must follow the standards and manufacturer requirements.

Related reading

Related 3D models: Ready to build it? Download free 3D models & CAD drawings at MOULDL »
MOULDL · Electrical Knowledge Base · free self-study reference for electrical & automation engineers, 3D CAD models at MOULDL