From Analog to Digital
An Analog-to-Digital Converter (ADC) is an electronic circuit that converts a continuous analog signal, such as a microphone voltage, into a discrete digital representation, namely a binary number. This representation allows digital systems, including computers, to process, store, and transmit signals from the physical world.
ADC conversion methods can be divided into two main families according to how the transformation is carried out:
- Direct conversion methods: These methods compare the input voltage directly with a series of reference voltages to determine the digital output. They usually shorten conversion time but require more circuit elements.
- Indirect conversion methods: These methods first convert the analog voltage into an intermediate quantity, such as time or frequency, and then measure that quantity to produce the digital result. They usually operate more slowly but can provide high accuracy.
Direct Method 1: The Flash (Parallel) ADC
A Flash ADC is among the fastest ADC architectures. It performs comparisons between the input voltage and all threshold levels in parallel, hence the alternative name parallel ADC.
Operating principle
The architecture consists of three key parts:
- Resistor ladder: A chain of identical resistors creates a set of precise reference voltages. For an -bit converter, this ladder provides internal comparison thresholds.
- Comparator Bank: The core of the converter is a bank of . The unknown input voltage is applied to one input of every comparator, while the other input of each comparator is connected to a unique tap on the resistor ladder.
- Decoder: The comparator outputs form a "thermometer code": comparators with thresholds below the input return '1', while the others return '0'. A digital decoder converts this code into a standard -bit binary output.
Advantages and Disadvantages
Advantage: speed. Parallel comparisons make conversion time depend mainly on the delays of the comparators, latches, and decoder.
Disadvantage: complexity. The number of required comparators doubles with each additional bit of resolution (). An 8-bit Flash ADC needs 255 comparators, while a 10-bit one needs 1023. This increases cost, circuit area, and power consumption.
Direct Method 2: Successive Approximation ADC
The Successive Approximation Register (SAR) ADC is a widely used architecture that combines speed, resolution, and cost in one design. It uses a binary search to determine the code corresponding to the input voltage.
Operating principle
In the idealized approximation phase, an -bit converter performs one comparison per bit, or clock cycles:
- Initialize: The sets the most significant bit (MSB) to '1' and all other bits to '0'.
- Convert to analog: This test code is fed into a , which for a unipolar input range from 0 to generates an analog voltage equal to half of the reference voltage ().
- Compare: The comparator determines whether the input voltage is higher or lower than the DAC output.
- Decide and iterate: If is higher than the DAC output, the MSB remains '1'. If it is lower, the MSB is cleared. The SAR then moves to the next bit, sets it to '1', and the DAC generates a new test level (), depending on the previous decision. The process covers all bits, from most to least significant, narrowing the possible value at each step.
Advantages and Disadvantages
Advantage: balanced design. It combines useful speed and resolution with lower complexity and cost than a Flash ADC.
Disadvantage: conversion time. It is slower than a Flash ADC because the approximation phase requires sequential comparisons, usually one per clock cycle.
Indirect Method: Dual-Slope Integrating ADC
Integrating ADCs provide high accuracy and reduce the effect of some interference, but they convert more slowly. In a dual-slope architecture, the measurement integrates the input voltage and then returns the integrator to its starting level with a reference voltage.
Operating principle
The conversion happens in two distinct phases:
- Phase 1 (input integration): The unknown input voltage is applied to an for a fixed period, . During this time, a counter counts a fixed number of clock pulses (). The integrator output changes linearly, and its value after is proportional to the input voltage.
- Phase 2 (reference de-integration): The integrator input is switched from to a stable, known negative reference voltage, , where denotes the positive magnitude. The integrator output moves in the opposite direction and returns to zero. The counter is reset and counts clock pulses until a comparator detects zero. The return time, , corresponds to the number of clock pulses, , counted in this phase.
For a positive input voltage and , the count is proportional to . Factors from the integrator resistor (R) and capacitor (C) occur in both phases and cancel in the ratio of the times, so their tolerances have less effect on the result. The relationship is: .
Advantages and Disadvantages
Advantages: accuracy and noise rejection. Integration averages part of the high-frequency interference. The result is also less dependent on integrator component tolerances because the same factors occur in both phases.
Disadvantage: low speed. The two-phase integration process takes time, so this architecture is not intended for high-speed digitization of video or radio signals. It is often used in precision instruments such as digital multimeters.