ANALOG ↔ DIGITAL CONVERSION · INTERACTIVE INSTRUMENT SIMULATOR · MORAINE VALLEY COMMUNITY COLLEGE
SYSTEM READY
ADC Resolution
Levels: 1024 | Max code: 1023
Analog Voltage Range
Full-scale: 24 V
Analog Input Voltage
-12 V+12 V
VOLTS
── CH1 ANALOG INPUT── CH2 QUANTIZED
Digital Value (Dec)
—
Integer code
Hex Value
—
Base 16
Octal Value
—
Base 8
Step Size (LSB)
—
V per count
Quant. Error
—
±½ LSB max
% Full Scale
—
Input position
BINARY WORD — 10-BIT OUTPUT▲ MSB▲ LSB
Conversion History
#
Analog (V)
Decimal
Hex
Binary
LSB (mV)
DAC Resolution
Levels: 1024 | Max code: 1023
Output Voltage Range
Digital Input Code (Decimal)
01023
DEC
0x
── CH1 ANALOG OUTPUT (STAIRCASE)- - IDEAL ENVELOPE
Analog Output (V)
—
Reconstructed voltage
Decimal Code
—
Input code
Hex Code
—
Base 16
Binary Word
—
Bit pattern
Step Size (LSB)
—
mV per code
% Full Scale
—
Code utilization
BINARY WORD — 10-BIT INPUT
DAC History
#
Dec Code
Hex
Analog Out (V)
% FS
🔌 What is an ADC?
An Analog-to-Digital Converter (ADC) samples a continuous analog voltage and converts it to a discrete binary number. Every ADC performs two core operations:
Sampling — capturing the signal at uniform time intervals (must satisfy Nyquist: fs ≥ 2fmax)
Quantization — mapping the sample to the nearest of 2ᴺ discrete voltage levels
Higher bit depth = more levels = finer resolution = less quantization error. Each added bit improves dynamic range by ~6 dB and halves the step size.
Digital Code = floor[ (V_in − V_min) / (V_max − V_min) × (2ᴺ − 1) ]
Step Size (LSB) = (V_max − V_min) / (2ᴺ − 1)
Max Quant. Error = ±½ × LSB
Dynamic Range ≈ 6.02 × N + 1.76 dB
Live Formula — Current ADC Settings
Step Size=24V ÷1023=23.46 mV
Max Error=±11.73 mV
Dyn. Range=62.0 dB
🔊 What is a DAC?
A Digital-to-Analog Converter (DAC) reconstructs a continuous voltage from a binary code. DACs are essential in audio playback, motor control, RF signal generation, and industrial process control.
R-2R Ladder — uses a precision resistor network; low cost, widely used
Weighted Resistor — each bit drives a differently weighted resistor
Delta-Sigma (ΔΣ) — oversampling + noise shaping for 16–24 bit audio