Resistor ladder
A resistor ladder is an electrical circuit made from repeating units of resistors, in specific configurations.
An R–2R ladder configuration is a simple and inexpensive way to perform digital-to-analog conversion (DAC), using repetitive arrangements of precise resistor networks in a ladder-like configuration. A string resistor ladder configuration implements the non-repetitive reference network.
History
A 1953 paper "Coding by Feedback Methods"[1] describes "decoding networks" that convert numbers (in any base) represented by voltage sources or current sources connected to resistor networks in a "shunt resistor decoding network" (which in base 2 corresponds to the binary-weighted configuration) or in a "ladder resistor decoding network" (which in base 2 corresponds to R–2R configuration) into a single voltage output. The paper gives an advantage of R–2R that impedances seen by the sources are more equal.
Another historic description is in US Patent 3108266, filed in 1955, "Signal Conversion Apparatus".[2]
String resistor ladder network
A string of many resistors connected between two reference voltages is called a "resistor string". The resistors act as voltage dividers between the referenced voltages. A Kelvin divider or string DAC is a string of equal valued resistors.[3]
Analog-to-digital conversion
Each tap of the string generates a different voltage, which can be compared with another voltage: this is the basic principle of a flash ADC (analog-to-digital converter). Often a voltage is converted to a current, enabling the possibility to use an R–2R ladder network.
- Disadvantage: for an n-bit ADC, the number of resistors grows exponentially, as resistors are required, while the R–2R resistor ladder only increases linearly with the number of bits, as it needs only resistors.
- Advantage: higher impedance values can be reached using the same number of components.
Digital-to-analog conversion
A string resistor can function as a DAC by having the bits of the binary number control electronic switches connected to each tap.[4]
Binary weighted
The binary weighted configuration uses power of two multiples of a base resistor value. However as the ratios of resistor values increases, the ability to trim the resistors to accurate ratio tolerances becomes diminished. More accurate ratios can be obtained by using similar values, as is used in R–2R ladder. Hence R–2R provides more accurate digital-to-analog conversion.[5][6]
R–2R resistor ladder network (digital to analog conversion)
Voltage Mode
A voltage mode R–2R resistor ladder network is shown in Figure 1. Bit an−1 (most significant bit, MSB) through bit a0 (least significant bit, LSB) are driven from digital logic gates. Ideally, the bit inputs are switched between V = 0 (logic 0) and V = Vref (logic 1). The R–2R network causes these digital bits to be weighted in their contribution to the output voltage Vout. Depending on which bits are set to 1 and which to 0, the output voltage (Vout) will have a corresponding stepped value between 0 and Vref minus the value of the minimal step, corresponding to bit 0. The actual value of Vref (and the voltage of logic 0) will depend on the type of technology used to generate the digital signals.[7]
For a digital value VAL, of a R–2R DAC with N bits and 0 V/Vref logic levels, the output voltage Vout is:
For example, if N = 5 (hence 2N = 32) and Vref = 3.3 V (typical CMOS logic 1 voltage), then Vout will vary between 0 volts (VAL = 0 = 000002) and the maximum (VAL = 31 = 111112):
with steps (corresponding to VAL = 1 = 000012)
The R–2R ladder is inexpensive and relatively easy to manufacture, since only two resistor values are required (or even one, if R is made by placing a pair of 2R in parallel, or if 2R is made by placing a pair of R in series). It is fast and has fixed output impedance R. The R–2R ladder operates as a string of current dividers, whose output accuracy is solely dependent on how well each resistor is matched to the others. Small inaccuracies in the MSB resistors can entirely overwhelm the contribution of the LSB resistors. This may result in non-monotonic behavior at major crossings, such as from 011112 to 100002.
Depending on the type of logic gates used and design of the logic circuits, there may be transitional voltage spikes at such major crossings even with perfect resistor values. These can be filtered with capacitance at the output node (the consequent reduction in bandwidth may be significant in some applications). Finally, the 2R resistance is in series with the digital-output impedance. High-output-impedance gates (e.g., LVDS) may be unsuitable in some cases. For all of the above reasons (and doubtless others), this type of DAC tends to be restricted to a relatively small number of bits; although integrated circuits may push the number of bits to 14 or even more, 8 bits or fewer is more typical.
The R–2R DAC described above directly outputs a voltage and so is called voltage mode (or sometimes normal mode).
Current Mode
Since the output impedance is independent of digital code, the analog output may equally-well be taken as a current into a virtual ground, a configuration called current mode (or sometimes inverted mode). Using current mode, the gain of the DAC may be adjusted with a series resistor at the reference voltage terminal.[8] The current for all bits pass through an equivalent resistance of 2R to ground. The less significant the bit, the more resistors its signal must pass through. At each node each bit's current is divided by two.[9]
Accuracy of R–2R resistor ladders
Resistors used with the more significant bits must be proportionally more accurate than those used with the less significant bits; for example, in the R–2R network discussed above, inaccuracies in the bit-4 (MSB) resistors must be insignificant compared to 1⁄32 (~3.1%) of R. Further, to avoid problems at the 100002-to-011112 transition, the sum of the inaccuracies in the lower bits must also be significantly less than that. The required accuracy doubles with each additional bit: for 8 bits, the accuracy required will be better than 1⁄256 (~0.4%).
However, variances for resistances when manufactured in a single component tend to be much lower than variances between components or between batches of manufacturing, and hence a resistor network can be purchased as a single component. And within integrated circuits, high-accuracy R–2R networks may be printed directly onto a single substrate using thin-film technology, ensuring the resistors share similar electrical characteristics. Even so, they must often be laser-trimmed to achieve the required precision. Such on-chip resistor ladders for digital-to-analog converters achieving 16-bit accuracy have been demonstrated.[10]
Resistor ladder with unequal rungs
It is not necessary that each "rung" of the R–2R ladder use the same resistor values. It is only necessary that the "2R" value matches the sum of the "R" value plus the Thévenin-equivalent resistance of the lower-significance rungs. Figure 2 shows a linear 4-bit DAC with unequal resistors.
This allows a reasonably accurate DAC to be created from a heterogeneous collection of resistors by forming the DAC one bit at a time. At each stage, resistors for the "rung" and "leg" are chosen so that the rung value matches the leg value plus the equivalent resistance of the previous rungs. The rung and leg resistors can be formed by pairing other resistors in series or parallel in order to increase the number of available combinations. This process can be automated.
References
- Smith, B. D. (1953-08-01). "Coding by Feedback Methods" (PDF). Proceedings of the Institute of Radio Engineers. 41 (8): 1053–8. Archived (PDF) from the original on 2023-04-17 – via worldradiohistory.com/Archive-IRE.
- U.S. Patent 3108266.: "Signal Conversion Apparatus", filed July 22, 1955.
- Kester, Walt (2009). "MT-014 Tutorial: Basic DAC Architectures I: String DACs and Thermometer (Fully Decoded) DACs" (PDF). Analog Devices. Archived (PDF) from the original on 2023-03-13. Retrieved 2023-07-06.
- https://inst.eecs.berkeley.edu/~ee247/fa08/files07/lectures/L14_2_f08.pdf
- "R/2R LADDER NETWORKS Application Note AFD006". studylib.net. Retrieved 2023-06-26.
- "R2r-ladder-networks - Best - R/2R LADDER NETWORKS - Application Note Resistor ladder networks - Studocu".
- Logic Threshold Voltage Levels.
- Kester, Walt (2009). "MT-015 Tutorial: Basic DAC Architectures II: Binary DACs" (PDF). Analog Devices. Archived (PDF) from the original on 2022-10-06. Retrieved 2023-06-26.
- Fleming, Adam; Hunkele, Mark (2005-03-11). "Digital to Analog Converters (DAC)". Archived from the original (PPT) on 2022-04-02.
- http://www.ti.com/lit/ds/symlink/dac161s055.pdf
External links
- ECE209: DAC Lecture Notes - Ohio State University
- EE247: D/A Converters - Berkeley University of California
- Simplified DAC/ADC Lecture Notes - University of Michigan
- Tutorial MT-014: String DACs and Fully-Decoded DACs - Analog Devices
- Tutorial MT-015: Binary DACs - Analog Devices
- Tutorial MT-016: Segmented DACs - Analog Devices
- Tutorial MT-018: Intentionally Nonlinear DACs - Analog Devices
- R2R Resistor Ladder Networks - BI Technologies
- R/2R Ladder Networks Application Note - TT Electronics