EngineeringComputer EngineeringMedium

Digital-to-Analog Conversion

Also known as:DACD/A ConverterDigital-to-Analogue Conversion

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).

Key Formula

Output Voltage V_out = V_ref × D / 2^n

LaTeX: V_{out} = V_{ref} \times \frac{D}{2^n}

SymbolMeaningUnit
V_outAnalog output voltageV (Volts)
V_refReference (full-scale) voltageV (Volts)
DDigital input value (unsigned integer)dimensionless
nResolution in bitsbits

Worked Example

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)

DAC Resolution and Voltage Step Size (V_ref = 3.3 V)

Resolution (bits)Steps (2^n)Step Size (LSB)Typical Application
8-bit25612.9 mVSimple audio, LED dimming
10-bit1,0243.22 mVPWM motor control, basic audio
12-bit4,0960.806 mVIndustrial control, waveform gen.
16-bit65,53650.4 µVHi-fi audio (CD quality)
24-bit16,777,2160.197 µVStudio audio, precision instruments

Interactive Tools

WolframAlpha

Calculate DAC output voltages, resolution, and LSB step sizes

Open Tool

Desmos Scientific Calculator

Evaluate DAC formulas and plot transfer functions interactively

Open Tool

Tinkercad Circuits

Simulate DAC circuits with op-amp output stages in the browser

Open Tool
Diagram showing the complete ADC and DAC signal chain for digital audio processing

Wikimedia Commons, CC BY-SA

Related Terms

Engineering

Analog-to-Digital Conversion

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.

Engineering

Semiconductor Device

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.

Engineering

Embedded System

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.

dacsignal-processinganalogaudioresolutionconversion