TrySet Input Voltage (V) to 1.65, Reference Voltage (V) to 3.3 and ADC Resolution (bits) to 10.
ObserveThe output is 511 of 1023, with a 3.223 mV LSB and a reconstructed voltage of 1.6484 V.
ExplainThe tool floors input divided by reference times 1023, then clamps the result to the available code range.
Technical boundaries. The transfer assumes an ideal converter with no noise or offset. Its displayed half-LSB error uses reference/2^bits, whereas reconstruction uses reference/(2^bits−1); that displayed bound is not a valid maximum reconstruction error for this flooring rule.
ADC Conversion Calculator
Change input voltage, reference span, and bit count. Predict whether the code will rise or fall, then compare the result with the ideal transfer model. Check what happens at the input limits. This widget floors the input scaled by 2^N−1 and reconstructs at that code level. Its displayed half-step bound uses a different midpoint model and is not a valid maximum error for that reconstruction. Try 8 bits, a 4 V span and 1.99 V input. The widget returns code 126 and reconstructs about 1.97647 V. Its error is about −13.53 mV, larger than its displayed ±7.8125 mV half-step bound. The models must not be mixed. Use the actual transfer curve when estimating error.
viewof adc_vin = Inputs.range([0,5], {value:1.65,step:0.01,label:"Input Voltage (V)"})viewof adc_vref = Inputs.range([0.1,5], {value:3.3,step:0.1,label:"Reference Voltage (V)"})viewof adc_bits = Inputs.range([8,24], {value:10,step:1,label:"ADC Resolution (bits)"})