MT-003:Understand SINAD, ENOB, SNR, THD, THD + N, and SFDR So You Don't Get Lost in the Noise Floor
Total Page:16
File Type:pdf, Size:1020Kb
MT-003 TUTORIAL Understand SINAD, ENOB, SNR, THD, THD + N, and SFDR so You Don't Get Lost in the Noise Floor by Walt Kester INTRODUCTION Six popular specifications for quantifying ADC dynamic performance are SINAD (signal-to- noise-and-distortion ratio), ENOB (effective number of bits), SNR (signal-to-noise ratio), THD (total harmonic distortion), THD + N (total harmonic distortion plus noise), and SFDR (spurious free dynamic range). Although most ADC manufacturers have adopted the same definitions for these specifications, some exceptions still exist. Because of their importance in comparing ADCs, it is important not only to understand exactly what is being specified, but the relationships between the specifications. There are a number of ways to quantify the distortion and noise of an ADC. All of them are based on an FFT analysis using a generalized test setup such as shown in Figure 1. fs ANALOG M N BUFFER M-POINT POINT INPUT N-BIT 2 ADC MEMORY FFT fa M-WORDS PROCESSOR SPECTRAL OUTPUT Figure 1: Generalized Test Setup for FFT Analysis of ADC Output The spectral output of the FFT is a series of M/2 points in the frequency domain (M is the size of the FFT—the number of samples stored in the buffer memory). The spacing between the points is fs/M, and the total frequency range covered is dc to fs/2, where fs is the sampling rate. The width of each frequency "bin" (sometimes called the resolution of the FFT) is fs/M. Figure 2 shows an FFT output for an ideal 12-bit ADC using the Analog Devices' ADIsimADC® program. Note that the theoretical noise floor of the FFT is equal to the theoretical SNR plus the FFT process gain, 10×log(M/2). It is important to remember that the value for noise used in the SNR calculation is the noise that extends over the entire Nyquist bandwidth (dc to fs/2), but the FFT acts as a narrowband spectrum analyzer with a bandwidth of fs/M that sweeps over the spectrum. This has the effect of pushing the noise down by an amount equal to the process gain—the same effect as narrowing the bandwidth of an analog spectrum analyzer. Rev.A, 10/08, WK Page 1 of 8 MT-003 The FFT data shown in Figure 2 represents the average of 5 individual FFTs. Note that averaging a number of FFTs does not affect the average noise floor, it only acts to "smooth" the random variations in the amplitudes contained in each frequency bin. ADC FULLSCALE SNR = 6.02N + 1.76dB = 74dB FFT NOISE FLOOR = 110dB RMS QUANTIZATION NOISE LEVEL M = 36dB 10 log 2 N = 12, M = 8192 DATA GENERATED USING ADIsimADC® Figure 2: FFT Output for an Ideal 12-Bit ADC, Input = 2.111MHz, fs = 82MSPS, Average of 5 FFTs, M = 8192, Data Generated from ADIsimADC® The FFT output can be used like an analog spectrum analyzer to measure the amplitude of the various harmonics and noise components of a digitized signal. The harmonics of the input signal can be distinguished from other distortion products by their location in the frequency spectrum. Figure 3 shows a 7-MHz input signal sampled at 20 MSPS and the location of the first 9 harmonics. Aliased harmonics of fa fall at frequencies equal to |±Kfs ± nfa|, where n is the order of the harmonic, and K = 0, 1, 2, 3,.... The second and third harmonics are generally the only ones specified on a data sheet because they tend to be the largest, although some data sheets may specify the value of the worst harmonic. Harmonic distortion is normally specified in dBc (decibels below carrier), although in audio applications it may be specified as a percentage. It is the ratio of the rms signal to the rms value of the harmonic in question. Harmonic distortion is generally specified with an input signal near full-scale (generally 0.5 to 1 dB below full-scale to prevent clipping), but it can be specified at any level. For signals much lower than full-scale, other distortion products due to the differential nonlinearity (DNL) of the converter—not direct harmonics—may limit performance. Page 2 of 8 MT-003 RELATIVE fa = 7MHz AMPLITUDE HARMONICS AT: |±Kf ±nf | s a fs = 20MSPS n = ORDER OF HARMONIC, K = 0, 1, 2, 3, . HARMONICS 3 2 HARMONICS 6 4 9 8 5 7 123 456 78 910 FREQUENCY (MHz) Figure 3: Location of Distortion Products: Input Signal = 7 MHz, Sampling Rate = 20 MSPS Total harmonic distortion (THD) is the ratio of the rms value of the fundamental signal to the mean value of the root-sum-square of its harmonics (generally, only the first 5 harmonics are significant). THD of an ADC is also generally specified with the input signal close to full-scale, although it can be specified at any level. Total harmonic distortion plus noise (THD + N) is the ratio of the rms value of the fundamental signal to the mean value of the root-sum-square of its harmonics plus all noise components (excluding dc). The bandwidth over which the noise is measured must be specified. In the case of an FFT, the bandwidth is dc to fs/2. (If the bandwidth of the measurement is dc to fs/2 (the Nyquist bandwidth), THD + N is equal to SINAD—see below). Be warned, however, that in audio applications the measurement bandwidth may not necessarily be the Nyquist bandwidth. Spurious free dynamic range (SFDR) is the ratio of the rms value of the signal to the rms value of the worst spurious signal regardless of where it falls in the frequency spectrum. The worst spur may or may not be a harmonic of the original signal. SFDR is an important specification in communications systems because it represents the smallest value of signal that can be distinguished from a large interfering signal (blocker). SFDR can be specified with respect to full-scale (dBFS) or with respect to the actual signal amplitude (dBc). The definition of SFDR is shown graphically in Figure 4. Page 3 of 8 MT-003 FULL SCALE (FS) INPUT SIGNAL LEVEL (CARRIER) SFDR (dBFS) SFDR (dBc) dB WORST SPUR LEVEL f FREQUENCY s 2 Figure 4: Spurious Free Dynamic Range (SFDR) The Analog Devices' ADIsimADC® ADC modeling program allows various high performance ADCs to be evaluated at varioius operating frequencies, levels, and sampling rates. The models yield an accurate representation of actual performance, and a typical FFT output for the AD9444 14-bit, 80-MSPS ADC is shown in Figure 5. Note that the input frequency is 95.111 MHz and is aliased back to 15.111 MHz by the sampling process. The output also displays the locations of the first five harmonics. In this case, all the harmonics are aliases. The program also calculates and tabulates the important performance parameters as shown in the left-hand data column. SINAD = 73.20dB SNR = 73.42dB THD = 86.31dB SFDR = 89.03dBc NOISE FLOOR = 109.67dB M = 8192 Figure 5: AD9444 14-Bit, 80MSPS ADC fin = 95.111MHz, fs = 80MSPS, Average of 5 FFTs, M = 8192, Data Generated from ADIsimADC® Page 4 of 8 MT-003 SIGNAL-TO-NOISE-AND-DISTORTION RATIO (SINAD), SIGNAL-TO-NOISE RATIO (SNR), AND EFFECTIVE NUMBER OF BITS (ENOB) SINAD and SNR deserve careful attention, because there is still some variation between ADC manufacturers as to their precise meaning. Signal-to-Noise-and-Distortion (SINAD, or S/(N + D) is the ratio of the rms signal amplitude to the mean value of the root-sum-square (rss) of all other spectral components, including harmonics, but excluding dc. SINAD is a good indication of the overall dynamic performance of an ADC because it includes all components which make up noise and distortion. SINAD is often plotted for various input amplitudes and frequencies. For a given input frequency and amplitude, SINAD is equal to THD + N, provided the bandwidth for the noise measurement is the same for both (the Nyquist bandwidth). A typical plot for the AD9226 12-bit, 65-MSPS ADC is shown in Figure 6. ANALOG INPUT FREQUENCY (MHz) Figure 6: AD9226 12-bit, 65-MSPS ADC SINAD and ENOB for Various Input Full-Scale Spans (Range) The SINAD plot shows that the ac performance of the ADC degrades due to high-frequency distortion and is usually plotted for frequencies well above the Nyquist frequency so that performance in undersampling applications can be evaluated. SINAD plots such as these are very useful in evaluating the dynamic performance of ADCs. SINAD is often converted to effective- number-of-bits (ENOB) using the relationship for the theoretical SNR of an ideal N-bit ADC: SNR = 6.02N + 1.76 dB. The equation is solved for N, and the value of SINAD is substituted for SNR: − dB76.1SINAD ENOB = . Eq. 1 02.6 Page 5 of 8 MT-003 Note that Equation 1 assumes a full-scale input signal. If the signal level is reduced, the value of SINAD decreases, and the ENOB decreases. It is necessary to add a correction factor for calculating ENOB at reduced signal amplitudes as shown in Equation 2: ⎛ Fullscale Amplitude ⎞ SINAD −1.76 db + 20log⎜ ⎟ MEASURED ⎜ Input Amplitude ⎟ ENOB = ⎝ ⎠ . Eq. 2 6.02 The correction factor essentially "normalizes" the ENOB value to full-scale regardless of the actual signal amplitude. Signal-to-noise ratio (SNR, or sometimes called SNR-without-harmonics) is calculated from the FFT data the same as SINAD, except that the signal harmonics are excluded from the calculation, leaving only the noise terms.