

If the triangle wave is correctly phased with the ADC, only four samples are required. A triangle wave is a good choice for a dither as it has an even dispersion of values and averages out to zero. There are other ways to generate an acceptable dither. Although it could be done with a DAC, it would be an expensive solution. This dither was generated with a hypothetical DAC. In this case, averaging the four signal removes it effectively. It takes four samples to calculate the result, or put differently, it has been “oversampled by four.” Adding a specific offset to the input to increase resolution by oversampling is known as additive “dithering” because it adds noise to your input and relies upon internal filtering to be removed. This input has been digitized with 10-bit resolution. The average of the four results is 191.75, and the sum is 767. For each offset, the signal is digitized ( Fig. These particular values do average to zero and have a peak-to-peak value of 12 mV. The particular values aren’t important as long as they average to zero and have a peak-to-peak value greater than the ADC’s least significant bit, 8 mV in this case. For instance, you can add four different values: –6, –3, +3, +6 mV. Now suppose you have a digital-to-analog converter (DAC) that allows you to add a small amount of offset to the input. Say you want to digitize 1.534 V to 10-bit resolution. Getting 10-bit performance requires being able to resolve one-quarter steps. 10-bit performance for the same input range requires a resolution of 2 mV. Figure 1 illustrates the mapping of the analog input voltage versus the digital output, shown for a small section of this ADC.įor this ADC, the Δ is 8 mV and the output will be 0xc0 for an input of 1.536 V ±4 mV. For example, an 8-bit ADC with a 2.048-V input range has a resolution of 8 mV (2.048 V/2 8 steps). The resolution (Δ or least significant bit) is this range divided by the total number of possible steps. This process is called oversampling.Īn ADC generates a digital output that’s proportional to the ratio of the input voltage to the input range. Fortunately, you can get 10-bit performance with an 8-bit ADC by averaging multiple samples. And because of board-space limitations, adding an external ADC may not be acceptable. The design becomes even more challenging when you’re designing a product that will require 8-bit performance for the standard model and 10 bits for the higher-end model.Īs you’ll sell more standard models, you don’t want to burden your design with the extra cost of a higher-resolution ADC. What’s the cost of an unused hardware resource? If you require 10-bit performance but only have an 8-bit ADC, your first inclination may be to add an external ADC to your system. What’s the cost of an underused hardware resource? If you spec your microcontroller to have a 10-bit analog-to-digital converter (ADC) but only require 8 bits, you’ve paid for extra performance that just isn’t needed.
