Visual
Concept overview
An Analog-to-Digital Converter (ADC) samples a continuous voltage and produces a binary number proportional to its magnitude. A Digital-to-Analog Converter (DAC) does the reverse, converting a digital code into a proportional output voltage or current. Together they form the boundary between the physical world and the digital processing core of any microcontroller or DSP-based system. Resolution in bits determines the number of discrete levels, and sampling rate in samples per second determines the highest frequency that can be represented without aliasing.
Real-world applications
How it works in practice
In a successive approximation ADC, the conversion begins when the sample-and-hold circuit freezes the input voltage at the moment of sampling. A comparator then tests successive bits from MSB to LSB: the SAR logic sets each bit, generates a trial voltage from an internal DAC, and keeps the bit if the trial is below the input or clears it if above. After N clock cycles for an N-bit converter, the register holds the final code. For a 12-bit ADC running at 1 MSPS with a 3.3 V reference, the LSB size is 3.3 V divided by 4096, approximately 0.8 mV. The DAC side uses an R-2R ladder network. Each bit switches a node between the reference voltage and ground. The superposition of all weighted currents through the ladder produces the output voltage. Settling time of the output operational amplifier determines the maximum update rate. In embedded motor control, the timing of ADC conversion relative to the PWM carrier is critical: sampling at the centre of the PWM on-time avoids switching noise that appears at the edges.
Examples
Future scope
Delta-sigma ADCs with 24-bit resolution and integrated digital filters, such as the ADS1256 from Texas Instruments, are displacing older successive-approximation designs in precision instrumentation where conversion speed above a few kilosamples per second is not required. Time-interleaved ADC arrays that run multiple lower-speed converters in parallel and stitch their outputs together are reaching sampling rates above 100 GSPS in test and measurement equipment from Keysight and Tektronix. On the DAC side, current-steering architectures for RF direct-digital synthesis are enabling software-defined radio transmitters to generate waveforms directly at IF or RF frequencies without a separate upconversion stage.