8.0 The Analog-Digital Interface: Data Converters
8.1 Introduction to Data Conversion
The physical world is inherently analog; quantities like temperature, pressure, and sound vary continuously over time. An analog signal is an electrical representation of such a quantity, being continuous and having an infinite number of possible values within a given range. In contrast, a digital signal is discrete, having only a finite number of pre-defined levels, typically represented as a binary code of 0s and 1s.
Since most modern processing and control systems are digital, data converters are essential interfacing circuits that bridge the gap between the analog world and digital systems. There are two fundamental types of data converters:
- Analog to Digital Converter (ADC): An ADC converts a continuous analog signal into a discrete digital representation.
- Digital to Analog Converter (DAC): A DAC performs the reverse operation, converting a digital code back into an analog signal.
Key Specifications
The performance of data converters is characterized by several key specifications.
- Resolution: Resolution defines the smallest change in the analog signal that the converter can discern or produce. It is determined by the number of bits (N) used in the digital representation. It can be defined in two ways:
- As the minimum change in analog input required to change the digital output: Resolution=\frac{1}{2^{N}}
- As the step size, or the ratio of the full-scale voltage to the total number of steps: Resolution=\frac{V_{FS}}{2^{N}-1} There is an inverse relationship between resolution and the number of bits; a higher number of bits leads to a finer (smaller) resolution.
- Conversion Time: This is the total time required for a converter to complete its conversion process.
- Analog-to-Digital Conversion Time: The time taken by an ADC to convert an analog input into a valid digital output.
- Digital-to-Analog Conversion Time: The time taken by a DAC to convert a digital input into its equivalent analog output voltage.
The following subsections will explore the architecture and operation of both DACs and ADCs in detail.
8.2 Digital-to-Analog Converters (DACs)
A Digital-to-Analog Converter (DAC) is an electronic circuit that transforms a digital input signal, represented by a binary code, into a corresponding analog output signal, typically a voltage or current.
Weighted Resistor DAC
The weighted resistor DAC utilizes an inverting summing amplifier with a set of input resistors whose values are binary weighted. For a 3-bit DAC with binary input b_2b_1b_0 (where b_2 is the Most Significant Bit, MSB), the resistor values would be R, 2R, and 4R. Digital switches connect each resistor to either ground (for a bit value of ‘0’) or a reference voltage +V_R (for a bit value of ‘1’).
Output Voltage Derivation: The nodal equation at the inverting terminal is: \frac{b_2 V_R}{2^0 R} + \frac{b_1 V_R}{2^1 R} + \frac{b_0 V_R}{2^2 R} + \frac{V_0}{R_f} = 0 Solving for V_0: V_0 = -R_f V_R \left( \frac{b_2}{R} + \frac{b_1}{2R} + \frac{b_0}{4R} \right) If we select R_f = R, the equation becomes: V_0 = -V_R \left( b_2 + \frac{b_1}{2} + \frac{b_0}{4} \right) This shows the output is a negative voltage proportional to the binary weighted value of the input.
The generalized equation for an N-bit DAC where R_f=R is: V_{0}=-V_R \left( \frac{b_{N-1}}{2^0} + \frac{b_{N-2}}{2^1} + … + \frac{b_0}{2^{N-1}} \right) Disadvantages:
- Large Resistor Range: As the number of bits increases, the range of resistor values required becomes very large. For an 8-bit DAC, the resistor for the LSB would be 128 \times the value of the resistor for the MSB.
- Fabrication Difficulty: It is very difficult to fabricate such a wide range of resistor values with high accuracy on a single integrated circuit.
R-2R Ladder DAC
The R-2R Ladder DAC overcomes the primary disadvantages of the weighted resistor type by using a clever resistor network that requires only two precision resistor values: R and 2R.
Circuit and Operation: The circuit consists of a repeating ladder structure of series resistors (R) and shunt resistors (2R). The digital input bits control switches that connect the bottom of the shunt resistors to either ground or the reference voltage.
Example: Input 100 Let’s find the output for a 3-bit R-2R DAC with a binary input of 100 and a reference voltage of V_R.
- The MSB switch (b_2) connects its 2R resistor to V_R. The other switches (b_1, b_0) connect their resistors to ground.
- The network to the right of the MSB can be simplified. The two rightmost 2R resistors are in parallel, equivalent to R. This R is in series with the next R, making 2R. This 2R is in parallel with the next 2R, making R, and so on. The entire ladder network presents an equivalent resistance of 2R to the input source.
- The reference voltage V_R is effectively connected to a voltage divider formed by two 2R resistors. The voltage at the input node to the op-amp becomes \frac{V_R}{2}.
- The op-amp is configured as an inverting amplifier with an input resistance of 2R and a feedback resistance of 2R.
- The final output voltage is: V_{0}=-\frac{2R}{2R}\left(\frac{V_{R}}{2}\right) = -\frac{V_{R}}{2} Advantages:
- Ease of Fabrication: Since only two resistor values are needed, it is much easier to fabricate accurate, matching resistors on an IC.
- Scalability: The network can be easily expanded for a higher number of bits by simply adding more R-2R sections.
8.3 Analog-to-Digital Converters (ADCs)
An Analog-to-Digital Converter (ADC) converts a continuous analog signal into a discrete digital signal. ADCs are broadly categorized as either Direct type or Indirect type.
Direct Type ADCs
Direct type ADCs perform the conversion by directly comparing the analog input voltage against a set of internally generated reference voltages.
- Counter type ADC: This ADC consists of a counter, a DAC, a comparator, and control logic. When a conversion starts, the counter begins counting from zero. The counter’s digital output is fed to the DAC, which generates a corresponding analog “staircase” voltage. The comparator continuously compares this staircase voltage to the analog input. When the staircase voltage exceeds the input voltage, the comparator’s output flips, stopping the counter. The digital value held in the counter at that moment is the result of the conversion.
- Successive Approximation ADC: This is a more efficient type of ADC that uses a Successive Approximation Register (SAR). Instead of counting linearly, the SAR intelligently tests the digital code one bit at a time, starting from the Most Significant Bit (MSB). For each bit, it sets the bit to ‘1’ and compares the resulting DAC output to the analog input. If the DAC output is less than the input, the bit is kept at ‘1’; otherwise, it is reset to ‘0’. This process is repeated for each bit down to the LSB, quickly converging on the correct digital value.
- Flash type ADC: This is the fastest ADC architecture. For an N-bit converter, it uses a voltage divider network to create 2^N-1 reference voltages, and 2^N-1 comparators to compare the analog input against all reference levels simultaneously. The outputs of the comparators are fed into a priority encoder, which near-instantaneously generates the corresponding N-bit binary output. Its parallel operation makes it extremely fast but also resource-intensive in terms of the number of comparators required.
Indirect Type ADC: Dual Slope ADC
Indirect type ADCs first convert the analog input voltage into a function of time or frequency, which is then measured to obtain the digital output.
The Dual Slope ADC is a highly accurate indirect ADC. It consists of an integrator, a comparator, a counter, and control logic.
Operation: The conversion process occurs in two distinct phases:
- Phase 1 (Fixed Time Integration): The analog input voltage, V_i, is applied to the integrator for a fixed period of time, determined by the counter. During this time, a capacitor in the integrator charges up at a rate proportional to V_i.
- Phase 2 (De-integration to Zero): At the end of the fixed time, the input of the integrator is switched to a known, stable negative reference voltage, -V_{ref}. The counter is reset and starts counting again. The capacitor now discharges at a constant rate. The time it takes for the capacitor to discharge back to zero is measured by the counter.
This discharge time is directly proportional to the original input voltage V_i. The final count held by the counter is the digital representation of the analog input. The key advantage of this method is its high accuracy, as it is insensitive to variations in the component values (R and C) and the clock frequency.
——————————————————————————–
This concludes our comprehensive study of linear integrated circuits and their applications. From the foundational principles of the operational amplifier to its role in complex signal processing, generation, and data conversion, these circuits form the bedrock of modern analog and mixed-signal electronics.