ADC Resolution and Voltage Step Calculator

Enter bits, reference voltage and gain to get the voltage step per count, convert readings, estimate noise performance and print a code table.

Roda no seu navegador. Seus arquivos nunca saem do seu dispositivo. Veja como conferir

…

Como fazer

  1. 1
    Describe the converter

    Enter bits, reference voltage, gain and unipolar or bipolar input.

  2. 2
    Read the resolution

    Check the LSB, range, quantisation noise and ideal SNR tiles.

  3. 3
    Convert values

    Type an input voltage to get its code, or a code to get its voltage.

  4. 4
    Add measured data

    On SNR, ENOB, oversampling enter datasheet SNR and THD.

  5. 5
    Try oversampling

    Change the oversampling ratio and sample rate to see the gain and output rate.

  6. 6
    Export

    Use the Code table tab, then CSV or Report.

Sobre esta ferramenta

Every embedded project that reads a sensor through an analogue-to-digital converter runs into the same questions. How many millivolts is one count? What code will the firmware see at 1.234 V? Is a 12-bit converter good enough, or do I need 16 bits? How much does averaging help? The answers come from a handful of formulas that are easy to get slightly wrong, especially with a programmable gain amplifier in front, a bipolar input that returns two's complement codes, or a reference that is not a round number. This calculator puts them together. It gives the size of one least significant bit, the full input range after gain, the rms quantisation noise and the ideal signal-to-noise ratio of 6.02N + 1.76 dB. It converts an input voltage to the code a perfect converter would return, and a code back to volts, in decimal, hexadecimal and binary. From a measured SNR and total harmonic distortion it works out SINAD and the effective number of bits, and it shows how far oversampling and averaging can lift that number and what output rate remains.

LSB and range

One LSB is the input span divided by 2 to the power of the number of bits, and divided again by any front-end gain. For a 12-bit converter with a 3.3 V reference, one count is 0.806 mV. In bipolar mode the span runs from −Vref to +Vref and codes are two's complement, so the most negative input is −2048 on a 12-bit part. The resolution-by-bit-depth table compares 8 to 24 bits for the same reference at a glance.

Voltage to code and back

The tool uses an ideal quantiser that rounds to the nearest code and clips at the ends. Typing an input beyond the range flags the clip in red. Converting a code back gives the voltage at the centre of that code. Real converters add offset and gain error, so for a measurement budget add the datasheet values for offset, gain error, INL and the reference tolerance.

SNR, SINAD and ENOB

Datasheets often quote SNR and THD separately. SINAD combines them, and ENOB = (SINAD − 1.76) / 6.02 tells you how many bits are really doing work. A 16-bit converter with 84 dB SINAD behaves like a perfect 13.7-bit one.

Oversampling

Averaging OSR samples reduces white noise by 10 log10(OSR) dB, or half a bit per doubling. Sixteen times oversampling adds two bits but cuts the output rate by sixteen. It only works when there is enough random noise, about one LSB, to dither the input; it cannot remove distortion or fixed offset.

Limits

Not a substitute for a licensed engineer's analogue design review. Results describe an ideal converter; sampling clock jitter, input filter settling, source impedance and layout are not modelled.

Exemplo prático

A 12-bit ADC uses a 3.3 V reference with unity gain. One LSB is 3.3 / 4096 = 0.806 mV, the quantisation noise is 0.233 mV rms, and the ideal SNR is 74.0 dB. An input of 1.234 V gives code round(1.234 / 0.000806) = 1532, or 0x5FC. The datasheet shows SNR 70 dB and THD −75 dB, so SINAD is 68.8 dB and ENOB is 11.1 bits. Averaging 16 samples adds 12 dB, about two bits, for 13.1 effective bits, and a 100 kS/s converter then delivers 6,250 results per second.

Resumo rápido

Perguntas frequentes

Should I divide by 2^N or 2^N − 1?

For an ideal converter one LSB is the span divided by 2^N, as in IEEE 1241 and most datasheets. Using 2^N − 1 gives a tiny difference that only matters for the very top code.

What does the gain setting do?

A programmable gain amplifier multiplies the input before the converter, so the input range and the LSB both shrink by the gain. Gain 8 on a ±2.5 V converter gives a ±0.3125 V range.

Why is my ENOB lower than the bit count?

Noise from the converter, the reference, the input amplifier and the board adds to the quantisation noise. ENOB includes all of it, which is why a 24-bit converter rarely gives more than about 20 effective bits.

How are negative codes shown?

In bipolar mode codes are two's complement: decimal values go negative, and the hexadecimal and binary columns show the raw register bits, so −1 on a 16-bit part is 0xFFFF.

Does averaging always add resolution?

Only if the noise is random and around one LSB or more. A perfectly quiet input gives the same code every time, so averaging adds nothing; designers sometimes add dither on purpose.

Can I export the code table?

Yes. Set the number of rows on the Code table tab and press CSV, or print the full report.

Totalmente grátisSem custo, sem cadastro
Arquivos privadosTudo roda no seu navegador
Fácil no seu idiomaDisponível em vários idiomas