Analog to Digital and Digital to Analog Converters
Understanding the conversion between analog and digital signals is crucial for modern electronics.
Drafted with Aria, reviewed by the AiCanCode.org team. Spotted an error? Use Give Feedback at the bottom of the page.
Why it matters
Analog to Digital Converters (ADCs) and Digital to Analog Converters (DACs) are essential in modern electronics, enabling the interface between analog real-world signals and digital systems. They are used in applications ranging from audio processing to instrumentation and control systems.
Key ideas
- Analog to Digital Converter (ADC): Converts continuous analog signals into discrete digital numbers. Key parameters include resolution, sampling rate, and quantization error.
- Digital to Analog Converter (DAC): Converts digital numbers to analog output levels; reconstruction filtering may be needed to form a smooth waveform. Important parameters include resolution, settling time, and linearity.
- Resolution: The smallest change in an analog input signal that results in a change in the output digital signal, typically measured in bits.
- Sampling Rate: The frequency at which an analog signal is sampled to convert it into a digital signal.
- Quantization Error: The difference between the actual analog value and the quantized digital value.
Quantization conventions
For a unipolar ideal n-bit ADC with input span VFS, nominal bin width q = VFS/2^n. There are 2^n codes, numbered 0 through 2^n − 1. Exact transition locations and endpoint behavior depend on the stated transfer convention. For an ideal straight-binary DAC with reference Vref and binary-weighted scaling, Vout = D Vref/2^n. Its maximum code gives Vref(1 − 1/2^n), not Vref. Some systems instead define an endpoint-scaled relation using 2^n − 1; state that convention explicitly rather than mixing formulas. For a uniform quantizer assigning the bin midpoint as its represented value, quantization error magnitude is at most q/2 away from overload and threshold details.
Worked example
An ideal 8-bit ADC spans 0 to 5 V, with code D = floor(Vin/q) clipped to 0…255. q = 5/256 = 0.01953125 V = 19.53125 mV. At Vin = 2 V, D = floor(2/0.01953125) = floor(102.4) = 102. Code 102 represents the interval [1.9921875, 2.01171875) V under this convention. Its midpoint is 2.001953125 V. The distinction between a code bin, a reconstruction value and a DAC output must be retained.
Common mistakes
- Confusing resolution with accuracy.
- Ignoring quantization error in precision-sensitive applications.
- Misinterpreting the number of bits as the only factor affecting ADC/DAC performance.
For GATE EE
Questions often involve calculating the resolution, sampling rate, or output voltage of ADCs and DACs. Practice problems on quantization error and signal reconstruction are also common.
Quick check
- What is the resolution of a 10-bit ADC with a 3 V reference voltage?
- How does increasing the number of bits in an ADC affect its resolution?
- What is the primary function of a DAC?
Answers: 1. 0.00293 V, 2. Increases resolution, 3. Converts digital signals to analog signals.
Finished this topic? Mark it so your progress, study plan and readiness keep up.
Stuck on something here?