tools

ADC / DAC Resolution Calculator

LSB size, code to voltage and back, quantization noise, ideal SNR and ENOB for any resolution and reference.

[loading tool…]

How it works

An n-bit converter splits the reference into 2ⁿ steps:

LSB = Vref / 2ⁿ          V = code × Vref / 2ⁿ

Many firmware helpers (including the STM32 HAL/LL __LL_ADC_CALC_DATA_TO_VOLTAGE macro) divide by 2ⁿ − 1 instead, so the top code maps exactly to Vref. The difference is under one LSB; pick the one your code uses.

An ideal converter’s quantization noise is LSB / √12 rms, so its best SNR is 6.02 n + 1.76 dB: 74 dB for 12 bits. Real ADCs lose some to noise and distortion; the datasheet’s SINAD gives the effective number of bits:

ENOB = (SINAD − 1.76) / 6.02

Tips

  • Measuring an unknown supply? Divide it down below Vref first (voltage divider tool) and keep the divider’s impedance within the ADC’s limit.
  • On STM32, measure VREFINT to compute the real VDDA instead of assuming 3.3 V.

References

esc
All tools
ADC / DAC Resolution Calculator[embedded]
Base64 Encoder / Decoder[dev]
Battery Runtime Calculator[hardware]
Chmod Calculator[dev]
CRC Calculator[embedded]
Cron Expression Builder[dev]
CSV ⇄ JSON Converter[dev]
Duty-Cycle Battery Life[embedded]
Generator Wattage Calculator[hardware]
Hash Generator[dev]
HTML Entity Encoder[dev]
JSON Formatter & Validator[dev]
JSONPath Tester[dev]
JWT Decoder[dev]
LED Resistor Calculator[embedded]
LLM Memory / VRAM Estimator[ai]
Lorem Ipsum Generator[text]
Markdown Preview[text]
Markdown Table Generator[text]
Number & Float Inspector[embedded]
Number to Words[text]
Ohm's Law Calculator[embedded]
Password Generator[dev]
Quantization Size Calculator[ai]
RC / LC Filter Calculator[embedded]
Regex Tester[dev]
Register / Bitfield Viewer[embedded]
Resistor Color Code[embedded]
Roman Numeral Converter[text]
Solar Battery Bank Sizing[hardware]
Solar Panel Output[hardware]
SQL Formatter[dev]
Subnet / CIDR Calculator[dev]
Tensor Shape Calculator[ai]
Timer / PWM Calculator[embedded]
UART Baud Rate Error[embedded]
Unix Timestamp Converter[dev]
UPS Runtime Calculator[hardware]
URL Encoder & Parser[dev]
UUID Generator & Inspector[dev]
Voltage Divider Calculator[embedded]
Voltage Drop Calculator[hardware]
Wire Size Calculator[hardware]
XML Formatter[dev]
YAML Validator & Converter[dev]
Commands
Toggle theme (auto → light → dark)
Copy link to this page
Go to all tools
Lire en français
↑↓ move↵ open⌘↵ new tab