Digital-to-Analog Conversion (DAC) is the process of transforming a discrete digital signal (a binary number representing a sampled value) into a continuous analog signal such as a voltage or current. DACs are essential in all audio playback, video output, motor control, and signal generation applications where a digital processor must interact with the physical analog world. Key performance metrics include resolution (number of bits), sampling rate, signal-to-noise ratio (SNR), and total harmonic distortion (THD).
Output Voltage V_out = V_ref × D / 2^n
LaTeX: V_{out} = V_{ref} \times \frac{D}{2^n}
| Symbol | Meaning | Unit |
|---|---|---|
| V_out | Analog output voltage | V (Volts) |
| V_ref | Reference (full-scale) voltage | V (Volts) |
| D | Digital input value (unsigned integer) | dimensionless |
| n | Resolution in bits | bits |
Problem
A 12-bit DAC has a reference voltage V_ref = 3.3 V. What is the analog output voltage when the digital input code is D = 2048?
Solution
Step 1 — Identify parameters: n = 12 bits, V_ref = 3.3 V, D = 2048. Step 2 — Calculate 2^n: 2^12 = 4096. Step 3 — Apply the DAC output formula: V_out = V_ref × D / 2^n = 3.3 × 2048 / 4096 = 3.3 × 0.5 = 1.65 V. Note: D = 2048 = 2^11 corresponds exactly to mid-scale (half of 4096), giving half the reference voltage.
Answer
V_out = 1.65 V (mid-scale output)
| Resolution (bits) | Steps (2^n) | Step Size (LSB) | Typical Application |
|---|---|---|---|
| 8-bit | 256 | 12.9 mV | Simple audio, LED dimming |
| 10-bit | 1,024 | 3.22 mV | PWM motor control, basic audio |
| 12-bit | 4,096 | 0.806 mV | Industrial control, waveform gen. |
| 16-bit | 65,536 | 50.4 µV | Hi-fi audio (CD quality) |
| 24-bit | 16,777,216 | 0.197 µV | Studio audio, precision instruments |
Wikimedia Commons, CC BY-SA
Analog-to-Digital Conversion (ADC) is the process of sampling a continuous analog signal (such as voltage from a microphone or sensor) at discrete time intervals and quantizing each sample into a digital binary code for processing by a computer or digital system. The two fundamental operations are sampling (governed by the Nyquist–Shannon sampling theorem) and quantization (introducing quantization noise proportional to resolution). ADCs are found in virtually all measurement systems, audio recording equipment, oscilloscopes, software-defined radios, and medical imaging devices.
A semiconductor device is an electronic component made from semiconductor materials (primarily silicon or germanium) whose electrical conductivity lies between that of conductors and insulators, and which can be precisely controlled by doping, applied voltage, or light. Fundamental semiconductor devices include diodes (p-n junctions), bipolar junction transistors (BJTs), and metal-oxide-semiconductor field-effect transistors (MOSFETs), the last of which is the building block of all modern digital logic and memory chips. Semiconductor devices underpin all of modern electronics, enabling amplification, switching, rectification, and signal processing.
An embedded system is a dedicated computer system designed to perform one or a few specific functions within a larger mechanical or electronic device, operating under real-time computing constraints. Embedded systems combine a microcontroller or microprocessor with custom software (firmware) and interface directly with hardware peripherals such as sensors, actuators, and displays. They are ubiquitous in modern life, found in smartphones, automotive ECUs, washing machines, medical pacemakers, and industrial PLCs.
From Greek "analogos" (proportionate, corresponding) and Latin "digitalis" (relating to a finger or digit, from "digitus"). The concept of digital-to-analog conversion emerged with early computer output systems in the 1950s. The first audio DACs appeared in consumer products in the late 1970s with the introduction of digital audio and compact disc technology in 1982.