Dual Slope Analog-to-Digital Converter
Requires a Wolfram Notebook System
Interact on desktop, mobile and cloud with the free Wolfram CDF Player or other Wolfram Language products.
Requires a Wolfram Notebook System
Edit on desktop, mobile and cloud with any Wolfram Language product.
Analog-to-digital conversion has been increasingly important since the dawn of the digital era. There are actually dozens of different conversion techniques employed by electrical engineers, each with their own advantages and disadvantages.[more]
The particular methodology used in this Demonstration is called dual slope; for a long time this was the primary mode of analog-to-digital conversion. Dual slope operates by using an integrator circuit to integrate the voltage signal for a specific length of time () and then integrate a reference voltage (±5 V) to get a linear slope toward 0 V, recording the amount of time it takes to get to 0 V from the first integration. The integration of the constant voltage creates a linear voltage ramp toward 0 V, so by recording the time it takes to get to 0 V from the last part of the integration of the signal, it gives you a value proportional to the top part of the integration of the signal (as with a linear voltage ramp, time is proportional to voltage). Although this gives you a time proportional to the voltage of the integration (because the first integration is for a constant duration every time and is relatively short), it also gives a value relatively proportional to the signal ().
In this Demonstration, the parts of the sine wave () that are integrated and the voltage created from the first integration itself are in red, and the constant slope downward is in blue.
The first integration goes from 0 V to some voltage () after integrating the voltage signal for a specific amount of time, then the second integration goes from that voltage () to 0 V with a constant, linear slope and records/outputs the length of time it takes to reach 0 V from .
The formula for how an op-amp integrator circuit works is , where is the resistance and is the capacitance. Integrating a constant voltage gives . Only a single-input signal is considered.[less]
Dual slope is a spin-off of the simplest types of analog-to-digital conversion, as shown in the Demonstration "Analog-to-Digital Conversion Algorithm with a Single Slope". Single slope operates by using a capacitor to create a linear voltage ramp to compare the actual signal to, and then recording the time it takes the linear ramp to reach the signal (as it is a linear voltage ramp, the time it takes is linearly proportional to the voltage itself). The problem with single slope is that it uses a capacitor as its method of integration; this requires a very consistent capacitor that does not accumulate errors over time (drift), which is not only very difficult to do, but very expensive. Interestingly enough, dual slope fixes this problem by having the capacitors do two integrations, one after another rather than just one. First the integrator integrates the signal, then it integrates a constant voltage; because these integrations happen directly after one another, you can set them to be the same (the first one goes from 0 V to and the second goes from to 0 V) so you get . Because these integrations happen thousands of times per second, you can assume that the resistor and capacitor remain constant during one pair of integrations, so you can cancel the values on both sides. This makes dual slope very reliable with high fidelity, as it no longer depends very much on the fidelity of the capacitor (typically a very finicky component).
 P. Horowitz and W. Hill, The Art of Electronics, Cambridge: Cambridge University Press, 1998.