08 — Quantization

Bits and what they are worth.

+ The questionA 24-bit converter divides its range into nearly seventeen million steps. How many of them carry information?

Codes, steps and the least significant bit

A 24-bit converter can produce 16,777,216 codes, 2 multiplied by itself 24 times, and each code stands for one narrow band of input voltage. Converters of that size are offered for blood-pressure designs. Renesas, a chip maker, offers a 24-bit sigma-delta converter on versions of its RL78/H1D microcontroller, a family that Renesas describes as well suited to healthcare devices, especially blood-pressure monitors. The monitor followed in this book uses a 12-bit converter with only 4,096 codes, and that converter still adds almost nothing to the uncertainty of the reading (Chapter 11). A bit count alone therefore does not decide how good a reading is: what a bit is worth depends on the signal, the noise and the display.

A converter compares its input with a reference voltage and returns a whole number, the code or count, that says what fraction of the reference the input is. The converter writes each code as a row of binary digits, or bits, each a 0 or a 1, and every added bit doubles the number of codes. The span of input that one code stands for is the converter's step, and it equals the full range divided by the number of codes. The step is also called the least significant bit, or LSB, because a change of one in the code's last bit stands for one step of input.

The step halves with every added bit, and at 24 bits it is as small as the noise of one ordinary resistor. For a range of 10 V the step is 2.44 mV at 12 bits and 596 nV at 24 bits, which is 0.06 parts per million of the range, by the table of Analog Devices, a converter maker. That 596 nV equals the thermal noise of a 2.2 kΩ resistor in a 10 kHz band at 25 °C, as the same table notes (Chapter 5). The noise of that single resistor, ahead of a 24-bit converter, would move its code by about a step.

In the monitor, one step of the converter corresponds to about a tenth of a millimeter of mercury in the cuff. In TI's design the converter's reference is 2.5 V, and its 4,096 codes give a step of about 0.61 mV. The amplifier ahead of the converter multiplies the bridge's output by 50, so one step corresponds to 12.2 µV at the bridge. At the sensor's typical 112 µV for each millimeter of mercury (Chapter 4), one step is therefore 0.109 mmHg of cuff pressure. The reference, the gain and the sensor fix the size of each step, and the step says nothing yet about how close the reading is to the pressure in the cuff.

Half a step either way

Within one step the converter cannot tell one input from another, so every reading carries an error of up to half a step in either direction. This quantization error, plotted against the input, is a sawtooth in Analog Devices' model. As in Chapter 2, the error is the reading minus the input. While the input rises through a step the code holds still, so the error falls from plus half a step to minus half a step and then jumps back, and every value in between is equally likely.

The sawtooth spreads the error evenly between its limits, a flat distribution (Chapter 11). The rms value of such an error is the step divided by the square root of 12, about 0.29 of a step, by Analog Devices' account. For the monitor, half a step is about 0.055 mmHg and the rms error 0.031 mmHg, the figure that the engineer enters for the converter in Chapter 11, where the errors of all the stages are combined. The model is not precise but is accurate enough for most applications, Analog Devices adds. It fails when the signal's frequency and the sampling rate are in a simple ratio, because the error then repeats in a pattern instead of scattering as noise.

18 — Two quantizations: the converter count and the display step
ideal transfer one count = 0.109 mmHg at the cuff (2.5 V ÷ 4,096, ÷ 50, ÷ 112 µV per mmHg) 150 the display rounds about 9 counts into each millimeter of mercury CONVERTER ERROR, ±0.055 mmHg error = reading − input, as in Chapter 2 rms = step ÷ √12 = 0.031 mmHg DISPLAY ERROR, 1 mmHg STEPS half-width 0.5 mmHg, about nine times the converter's 0.055 149.5 150.0 150.5 CUFF PRESSURE, mmHg Sources: TI TIDA-010266 (2.5 V reference, gain 50, 12-bit); Omron 2SMPP-03 typical span; sawtooth model from Analog Devices MT-001.
The signal in the chainNoise and errorUncertaintyReadingFocal detail
Plate 18 — Every reading is quantized twice: by the converter, in steps of 0.109 mmHg, and by the display, in steps of 1 mmHg. The display's rounding is the larger of the two by about nine times.

The quantization error alone sets the best signal-to-noise ratio, the SNR of Chapter 5, that a converter of a given number of bits can reach. For a sine wave that fills the converter's range, that best SNR is 6.02 dB for each bit plus 1.76 dB, which Analog Devices calls the theoretical performance of a perfect converter. Each extra bit halves the step, and halving the step halves the amplitude of the error, a ratio of 2 that is worth 6.02 dB. An ideal 12-bit converter therefore reaches 6.02 dB times 12, plus 1.76 dB, or 74.0 dB, and an ideal 24-bit converter 146.2 dB. No real converter reaches its ideal figure, because its own circuits add noise to the quantization error, and also distortion, which appears as harmonics of the signal.

Effective bits and noise-free bits

Makers therefore state what a real converter delivers, in bits of two kinds. The first starts from SINAD, the signal-to-noise-and-distortion ratio: the signal's rms amplitude divided by the rms amplitude of everything else in the converter's output, noise and distortion together, added as the square root of the sum of their squares (Chapter 5). Running the ideal formula backward turns SINAD into the effective number of bits: SINAD minus 1.76 dB, divided by 6.02 dB. A converter with 11.1 effective bits therefore adds as much noise and distortion as a perfect converter of 11.1 bits would. IEEE, the Institute of Electrical and Electronics Engineers, fixes converter terms in its standard, IEEE 1241-2023, and the definitions and formulas here are Analog Devices' versions. The 12-bit converter of TI's monitor design reaches up to 11.1 effective bits by TI's figures, about one bit short of twelve. Twelve doublings give 4,096 levels and 11.1 doublings about 2,200, so the monitor's converter behaves like a perfect one with about 2,200 levels rather than 4,096.

The second measure counts only the codes that hold still. In Analog Devices' formula, the noise-free resolution is the full range divided by the peak-to-peak noise, which is 6.6 times the rms noise (Chapter 5), with that ratio counted in bits: the resolution at which the output code does not flicker. Effective resolution divides the range by the rms noise instead, so it comes out about 2.7 bits higher, because 6.6 is about 2 multiplied by itself 2.7 times. "Noise-free bits" is a makers' term, used by Analog Devices and by TI. Both resolutions fall short of 24 bits even in Analog Devices' AD7190, a 24-bit converter for weigh scales, at its quietest setting, a gain of 128 and 4.7 readings a second. Its noise is then 8.5 nV rms, its effective resolution 23 bits and its noise-free resolution 20.5 bits, so noise leaves only about 1.5 million distinguishable levels among its 16.8 million codes.

A signal that fills only part of the range uses fewer codes still. In a weigh-scale example worked by Analog Devices, the load cell gives 10 mV at full load, about an eighth of the 78 mV between the AD7190's input limits of ±39.06 mV at that gain. The peak-to-peak noise is 6.6 times 8.5 nV, or 56.1 nV, and 10 mV divided by 56.1 nV gives 178,250 noise-free counts, or 17.4 bits. Of the 16,777,216 codes the converter can produce, about 1 % carry information in that design, and the rest describe noise or inputs the signal never reaches. The monitor's converter is the opposite case. The input-referred noise of the monitor's front end is under 10 µV from peak to peak by TI's figure (Chapter 5), less than one step of 12.2 µV. Noise therefore moves the code of a steady pressure by less than one step, and in this design the step, not the noise, limits the resolution.

19 — How many codes carry information
A 24-BIT CONVERTER (ANALOG DEVICES' AD7190 AT A GAIN OF 128, 4.7 READINGS A SECOND) Codes: 16,777,216 (24 bits) Above the rms noise: 23 effective bits Codes that hold still: about 1.5 million (20.5 noise-free bits) Used by a 10 mV load-cell signal: 178,250 counts (17.4 bits), about 1 % of the codes hatched: lost to noise dashed: unused range About 1 % of the codes carry the signal Bits count steps. Noise and the signal's span decide how many steps mean something. THE MONITOR'S 12-BIT CONVERTER (TI'S DESIGN) Codes: 4,096 (12 bits) Across 0 to 300 mmHg: about 2,750 counts of 0.109 mmHg; front-end noise under one count Values on a 1 mmHg display: about 300 0 4 8 12 16 20 24 bits each gridline a doubling Sources: Analog Devices AD7190 data sheet Rev. C and AD719x tutorial (worked example, maker's figures); TI TIDA-010266; counts in mmHg from Chapter 11's figures.
The signal in the chainNoise and errorReadingFocal detail
Plate 19 — Of a 24-bit converter's 16.8 million codes, noise and an unused range leave about 1 % carrying a weigh scale's signal. The monitor's 12-bit converter uses about 2,750 counts, each finer than its noise allows to flicker.

Linearity, dither and oversampling

Bits describe how finely a converter divides its range, not whether the divisions sit in the right places. In Analog Devices' definitions, integral nonlinearity, or INL, is the largest departure of the converter's actual transfer characteristic, the relation between each input and its code, from a straight line. Differential nonlinearity, or DNL, is the largest departure of any one step from its ideal size. A DNL worse than minus one step means that some step has no width at all, so its code never appears, and Analog Devices calls it a missing code.

A 24-bit code can be wrong by hundreds of its own steps

The AD7190 resolves 0.06 parts per million of its range, yet by Analog Devices' specification its transfer characteristic may depart from a straight line by up to ±15 parts per million of the range at gains above 1. That is about 250 of its own steps, since 15 divided by 0.06 is 250. The bit count and the INL are separate rows of the data sheet, as are the offset drift of ±5 nV per degree and the gain drift of ±1 part per million per degree, both typical. A designer who reads only the resolution row knows the converter's step but not its accuracy, and the reading's uncertainty cannot be worked out without the accuracy rows (Chapter 11).

Averaging can resolve finer than one step only if a little noise reaches the input, as Analog Devices states. A perfectly steady input that lies between two codes gives the same code every time, and averaging identical codes cannot reveal what lies between them. Dither, in Analog Devices' definition, is external noise added to the converter's input. About half a step rms of broadband noise, noise spread over a wide band of frequencies, tends to randomize the quantization error, by Analog Devices' figure. Noise much beyond about one step reduces the converter's SNR in proportion, so dither helps only in small amounts.

Averaging is the principle of oversampling: reading far faster than the signal needs and averaging the readings down. Four times as many readings give one more bit, and sixteen times as many give two, by Analog Devices' rule, because four readings halve the random noise (Chapter 5), a gain of 6 dB, one bit's worth. The converter in TI's design can oversample by 128 times in hardware. Since 128 is 2 multiplied by itself seven times, and each bit takes two doublings, it adds 3.5 bits in principle, taking 12 bits toward 15.5, provided that the input carries enough noise to act as dither.

The sigma-delta converter, also called delta-sigma, relies on oversampling more than any other kind of converter. In Analog Devices' description, the converter's loop combines the input with the output of a 1-bit converter driven by the loop's own result and feeds the sum to an integrator, a circuit whose output rises or falls at a rate set by what it receives. The integrator ramps up or down until the average of the 1-bit stream equals the input, and the loop shapes the quantization noise so that most of it falls outside the band of interest. A digital filter then turns the fast 1-bit stream into slower readings of many bits, a stage that loses no information by Analog Devices' account. That filter is why a sigma-delta converter averages over each conversion rather than taking instantaneous samples (Chapter 7).

Resolution against accuracy

Bits measure resolution, the smallest change a reading can show (Chapter 2). No bit count says how close the reading is to the pressure in the cuff, which is accuracy, and monitor makers state the two figures separately. Microlife, a monitor maker, gives its BP B3 Basic and WatchBP Office monitors a resolution of 1 mmHg and a static accuracy within ±3 mmHg for a steady cuff pressure. Under India's rule for automated sphygmomanometers, the display's scale interval is 1 mmHg (Chapter 30). The rule's maximum permissible error for the cuff pressure, the largest error it allows, is ±3 mmHg or 2 % of the reading, whichever is greater. At 150 mmHg, 2 % is 3 mmHg, so both branches give 3 mmHg, and a monitor may show 150 mmHg while the cuff holds any pressure from 147 to 153 mmHg, three display steps either way.

The display is itself a second quantization. The converter's step of 0.109 mmHg is about a ninth of the display step, so the firmware rounds about nine codes into each displayed millimeter of mercury. Rounding to 1 mmHg leaves an error of up to 0.5 mmHg either way, about nine times the converter's own half-step. The display therefore adds far more to the reading's uncertainty than the converter does, and the engineer counts it as a separate entry in Chapter 11.

A display can also show digits that the channel behind it cannot produce. Freescale's 2005 meter (Chapter 4) used an 8-bit converter whose 241 steps span 0 to 300 mmHg, a step its authors give as 1.24 mmHg. Those 241 steps join 242 codes, so a display of whole millimeters of mercury driven from them could show at most 242 values between 0 and 300. Of the 301 whole numbers in that range, 59, which is 301 minus 242, would never appear, the first of them 3, 8, 13 and 18 mmHg. Every reading would look exact to its last digit while the channel moved in steps about a quarter larger than that digit.

20 — Resolution against accuracy at 150 mmHg
converter count 0.109 mmHg about 9 in one display step 120 130 140 150 160 170 180 mmHg 150 display step 1 mmHg (Microlife; India's rule) Freescale's 2005 meter: 1.24 mmHg per count ±3 mmHg: Microlife; India's rule: ±3 mmHg or 2 % of the reading allowed: three display steps either way bare sensor, one standard uncertainty: about 26 mmHg (Chapter 11) after calibration: 0.70 mmHg (Chapter 11) Sources: Microlife BP B3 Basic and WatchBP Office manuals; India G.S.R. 498(E), 28 Jul 2025; Freescale AN1571; Chapter 11's budget. Makers' figures as stated.
The signal in the chainUncertaintyLimits and decisionsReadingFocal detail
Plate 20 — The converter and the display resolve far more finely than the reading is known. The rule allows three display steps of error either way, and before calibration the sensor's doubt spans about 26 mmHg.

The widest difference between resolution and accuracy in the chain lies in the sensor. Before calibration, the bare sensor's errors, combined, give a standard uncertainty of about 26 mmHg, a figure that the engineer works out in Chapter 11 from the sensor maker's limits. That is about 240 converter steps, behind a display that steps in single millimeters of mercury. The converter's 12 bits resolve far more finely than the reading is known, and only the calibration coefficients, numbers measured for each unit and stored in the firmware, bring the reading within the limit (Chapter 9).

Solved example: what the monitor's 12 bits are worth at the cuff
  • One step: 2.5 V ÷ 4,096 = 0.61 mV at the converter; divided by the gain of 50, 12.2 µV at the bridge; divided by 112 µV per mmHg, 0.109 mmHg at the cuff.
  • Quantization error: half a step either way, ±0.0545 mmHg, with an rms value of 0.109 ÷ √12 = 0.031 mmHg.
  • Noise: TI's front-end noise, under 10 µV peak to peak at the input, is 10 ÷ 12.2 = about 0.8 of a step.
  • Range: TI's range of interest spans about 300 mmHg (Chapter 3); 300 mmHg ÷ 0.109 mmHg = about 2,750 of the 4,096 codes.
  • Display: 1 mmHg is about 9 steps; the ±3 mmHg limit at 150 mmHg is about 28 steps either way.
  • Bare sensor: Chapter 11's 26 mmHg is about 240 steps.

The converter resolves about a ninth of a display step and about a twenty-eighth of the limit, so its bits give the monitor more resolution than it needs. They do nothing for accuracy: until calibration removes the sensor's error, which spans about 240 steps, the fine steps resolve a reading that may lie tens of millimeters of mercury from the cuff's pressure.

Specifying a converter and a display
  • Size the converter from the smallest change the channel must show and the noise ahead of it, not from its bit count: here 0.109 mmHg per step against a 1 mmHg display.
  • Read effective and noise-free bits at the gain, output rate and input range the design uses, and refer them to the signal's own span, which may fill only part of the range.
  • Enter the converter's nonlinearity, offset drift and gain drift as accuracy rows of the budget, apart from its step (Chapter 11).
  • Keep the display step at least as coarse as the channel's real resolution, so that no displayed digit is finer than the steps behind it.
  • State the display step and the accuracy as separate figures in the labeling and the technical file, as Microlife and India's rule do.
+ What this chapter established
  • A converter's step, its least significant bit, is its range divided by its codes: the monitor's 12 bits give a step of 0.109 mmHg at the cuff, and every reading carries a quantization error of 0.031 mmHg rms, at most half a step.
  • Noise and distortion reduce the bits a converter delivers, counted as effective or noise-free bits, and a signal that fills part of the range uses fewer still: about 1 % of a 24-bit converter's codes in Analog Devices' weigh-scale example.
  • Bits measure resolution only: a converter's nonlinearity can span hundreds of its own steps, and dither, oversampling and sigma-delta conversion gain finer steps from added noise and extra readings, not accuracy.
  • Resolution and accuracy are separate figures in makers' specifications and in India's rule, a 1 mmHg display against ±3 mmHg or 2 %, and the bare sensor's 26 mmHg spans about 240 steps until calibration removes it.
Created with Claude (Anthropic).
Educational reference material, not engineering, regulatory or clinical advice. Product and company names referenced are the property of their respective owners.