Antialiasing Filtering Considerations for high Precision Analog-to-Digital Converters | Analog Devices
Mục lục bài viết
Introduction
At a time when IoT, big data, and the cloud are all the rage in the trade press, it is worth it to cast an eye toward the technological advances that enable the digitization of our analog world. Feeding the cloud requires data it’s already digitized? The analog-to-digital converter (ADC) is the device that straddles these worlds and is key to defining the quality and accuracy of big data. Advances in ADC design approaches continue to push boundaries that provide the precision digital representation of the world around us. Speeds and resolutions can be pushed in a way that burns through historical metrology benchmarks.
High performance precision ADC have been pervasive across many application areas. Process control, programmable controllers, electric motor control, and distribution of electrical energy are distinct examples. Adding the less everyday domains of instrumentation where testing, research, development, and qualification of all styles of technologies rely on high precision digital conversion. Several ADC architectures are presently competing in terms of precision and, depending on their needs, the choices align with analog-to-digital conversion principles, such as successive approximation register (SAR) vs. Σ-Δ, which are respectively capable of resolutions of up to 24 bits and more for a few MSPS, and 32 bits at several hundred kSPS.
When faced with these levels of resolution and precision where the useful dynamics offered by these converters easily exceed the magical barrier of 100 dBFS (full scale), users face a real challenge in the design of analog conditioning circuitry for the signals to be digitized, as well as the associated antialiasing filters. Sampling rates and filtering techniques have evolved significantly over the past two decades and it is now possible to use a combination of analog and digital filters to achieve a better compromise between performance and complexity.
Figure 1. Typical measurement signal chain.
Figure 1 shows a typical example of this kind of partition for a data acquisition system. After conditioning the differential or nondifferential signals (amplification, scaling, adaptation and translation of levels, etc.), the latter is filtered before digitization to satisfy the Nyquist criterion. Depending on the oversampling rate of the ADC(s), additional digital filtering is used to comply with the specifications of the acquisition system.
Many of the aforementioned applications employ state-of-the-art high resolution ADCs due to the increased demand for very wide input dynamics. With the increased dynamics, one can expect system performance improvements along with a resulting compaction of the analog conditioning chain and a reduction in congestion and energy consumption, or even material costs.
Oversampling and Its Benefits
Before the advent of very fast, high resolution analog-to-digital converters, the dynamics problem was solved at the conditioning chain level by using fast programmable gain amplifiers, even faster comparators, and/or the paralleling of several ADCs, topped off with suitable digital processing to enable digitization of strong signals and discriminate small amplitudes near the noise level. In these antiquated and now obsolete architectures, this translated into complex circuits that were difficult to develop and were limited in terms of linearity, bandwidth, and sampling frequency. Today’s alternative is to apply oversampling techniques by exploiting the high sampling rates offered by modern and more economical ADCs. The action of sampling a signal at an FSE rate higher than the minimum imposed by the Nyquist theorem enables performing a gain operation through processing and increasing the signal/noise ratio of an encoder, and consequently increasing the number of effective bits. Indeed, the quantization noise and thermal noise are assimilated into a white noise that spreads uniformly over the entire Nyquist band and beyond. After oversampling, restricting the useful band by filtering and operating strictly at the minimum required sample rate, or 2 × BW, permits a reduction of noise energy by 3 dB for each octave of band reduction, as indicated in Figure 2. In other words, an oversampling factor of 4 ideally provides a theoretical increase in the signal-to-noise ratio of 6 dB; that is, one additional bit, as expressed by Equation 1:
In summary, oversampling has two advantages: namely, an improvement in the signal-to-noise ratio, and a relaxation of the demands placed on the antialiasing analog filter before the ADC.
Figure 2. Comparison of the spectral noise density by adding a digital decimation filter.
Antialiasing Filter: The Partition Dilemma
Ideally, the filters associated with the ADCs, and particularly those tasked with the problem of aliasing the spectrum, must have an amplitude response with the flattest possible bandwidth compared to their precision, as well as an out-of-band attenuation adequate to their dynamics. The transition band should generally be as steep as possible. Thus, these antialiasing, low-pass filters must have characteristics that enable them to eliminate parasitic images, noise, and other spurious tones. Depending on the application, significant attention should also be given to the phase response, and any excessive phase shift should be compensated. Many recommendations are considered elementary, but become very difficult to implement when they must be combined with the requirements of a specified 24- or 32-bit converter with an integral nonlinearity error of only a few LSBs and other similar static and dynamic parameters.
The interest in oversampling, as stated earlier, assumes its full importance here due to its beneficial effects not only on the signal-to-noise ratio, but also on the accompanying relaxation of the specifications for the analog antialiasing filter and its cutoff frequency. As shown in Figure 3c, oversampling spreads the transition band between the cutoff frequency at –3 dB and the beginning of the stop band. The order of the analog antialiasing filter is inversely proportional to the oversampling ratio. Data in Table 1 illustrates the relationship between the oversampling ratio and the analog antialiasing filter order for a given rejection target.
Figure 3. Oversampling, digital filtering, and decimation reduces the required analog antialising filter order.
The current technology provides for highly precise SAR ADC conversion rates that have increased considerably in recent years, and currently reach from over 1 MSPS up to 15 MSPS for 18-bit resolution. By comparison, the wideband Σ-Δ ADCs offer higher resolution at lower throughput rate with very high over sampling ratio. Looking at the Σ-Δ converters at equivalent (18-bit resolution) input bandwidth of hundreds of kHz is possible, but with the added functionality of digital filtering being in-built.
Σ-Δ ADCs with equivalent resolution can have a bandwidth in the hundreds of kHz range with the added benefit of a selection of digital filters inbuilt. These ADCs are fundamentally characterized by their overall metrological precision, which relates both to the static (dc) and dynamic (ac) parameters, and therefore the converters and the accompanying analog conditioning circuitry in these systems must have top tier specifications.
Conversely, most SAR ADCs do not include a digital filter except for the oversampling SARs such as LTC2512 and LTC2500-32, and their operation is therefore not impeded or limited by some unavoidable digital low-pass filtering that results in a compromise between computational accuracy, band-pass ripple, attenuated band rejection, propagation time, and power consumption. Meanwhile, some of the new wideband Σ-Δ ADCs such as the AD7768-1 are more flexible to allow a certain level of user programmability on its digital filter coefficients.
The LTC2378-20: First 20-Bit SAR ADC on the Market
In the race for performance, during 2014, Linear Technology (now part of Analog Devices) provided the first SAR ADC with 20-bit resolution and nothing less than linearity. The LTC2378-20 is an exceptional converter that still holds its own against the best of all other competitors that are closing in on MSPS.
The AD4020, Analog Devices’ first 20-bit SAR ADC, took a slightly different path. While combining low noise and low energy consumption, the AD4020 has sought to make the signal chain easier for the customer. Low noise and low energy at 1.8 MSPS are the traditional vectors. However, there are some key extras that help make it easier for hardware designers to achieve the necessary performance. The ability to quiet the analog front-end sampling is one example. The charging/discharging at the inputs as the converter transitions back to acquisition has always been a difficult problem. The typical knock on effect was that much higher speed driver amplifiers were required. With AD4020, high-Z mode, low power precision amplifiers that equate to the actual signal bandwidth of interest can now be employed, improving measurement precision. Limiting the conversion time to 350 ns allows for the extension of acquisition time, which also makes choosing the amplifier easier and, on the digital side, allows for slower serial data clocks to be used when reading data on the serial interface. In isolated applications, slower serial clocks reduce EMI effects and current consumption of the isolator. Holding the 10-lead MSOP or 10-lead QFN casing shared by the AD7980 family and the other 16- to 18-bit members of the AD40xx family means there is an easy upgrade of platform design choice for the hardware designer. Powered at 1.8 V, it consumes only 15 mW at 1.8 MSPS. This low component power consumption coupled with features that reduce current consumption of the supporting blocks in the signal chain mean that exceptional performance is achieved with the lowest possible thermal dissipation.
With sampling rates of 1 MSPS and 1.8 MSPS respectively, the LTC2378-20 and AD4020 offer significant possibilities for oversampling, particularly with respect to the audio band or beyond. To do this, a customized decimation filter must be implemented in an external FPGA or DSP. As mentioned earlier, the latter can be bypassed to reduce the latency to its minimum if necessary. With these primary sampling rate values and in considering the 0 kHz to 25 kHz band, the respective oversampling factors are approximately 16 or 32, and processing gains of 12 dB to 18 dB result along with a simplification of the antialiasing, low-pass filter with regard to conventional operation strictly according to Nyquist theorem.
ADC-to-DSP Link: Everything Is Serial
In recent years, the semiconductor industry and its coterie of designers have had an obvious penchant for a reduction in component sizes, leading to a real deflation of the casing pins and conditioning almost all the digital inputs or outputs in serial form, which are required to be interfaced with SPI buses, synchronous serial ports, etc. The converters in question here are not left with their serial interfaces used both to extract the samples and control the various functional options of the ADC. These serial interfaces are qualified to be compatible with SPI or with the DSP serial ports, but are not really so. At best, they hide the shift registers that set the rhythm of a clock signal for extracting data from the device, or to inject it during configuration. Like all of these SAR ADCs, the LTC2378-20 and AD4020 have frequency requirements for the serial clock (SCK) to recover 20 bits of data at the nominal sampling rate. As the phase of data reading is strictly limited to the duration of the acquisition time, which is of the order of some 300 ns, the digital activities on external access must be reduced to total silence during the conversion period, and a clock frequency of more than 60 MHz is necessary to recover all the bits from a sampling over the allotted time while respecting the sampling rate of 1 MSPS. This is a severe constraint imposed on the interface of the controller in charge of collecting the data from the ADCs, both for generating such clock frequencies, but also with respect to the time specifications to be achieved by the receiver side. The minimum SCK signal frequency of 64 MHz required by the LTC2378-20 means that it cannot be interfaced with just any general-purpose microcontroller or most DSPs with synchronous serial ports (SPORTs) that exceed the maximum frequency of barely 50 MHz, except for some members of the Blackfin® family, such as the ADSP-BF533 or ADSP-BF561 that can reach 90 Mbps. Therefore, there is concern that the use of a large CPLD or FPGA associated with low jitter clock generation circuitry is essential. Most of the digital interfaces for the serial output SAR ADCs share more or less the same timing and logic signal patterns as shown in Figure 4. As for the SDI configuration input, apart from the cascade modes, it is sought at much lower frequencies. The equivalent full cycle time for the ADC sampling period is
thus defining the maximum sampling frequency, consists of:
which itself is conditioned by the reading rate of the output data with
Figure 4. Timing diagram for the AD4020.
Fortunately, the AD4020, with its very short conversion time of 325 ns and a sampling rate of 1 MSPS, allows an acquisition time of 675 ns and consequently a serial data read frequency of less than 33 MHz; a frequency that matches that of the DSP synchronous serial ports, such as the SHARC® ADSP-21479; and very low energy consumption.
The LTC2512 and LTC2500-32 oversampling SARs reduce the serial data read frequency requirement by allowing the user to read out the contents of the filtered output register over multiple conversions. The wideband Σ-Δ ADCs further relax the serial interface clock timing by not requiring an interface quiet time during the ADC conversion.
An Ultra Low Power Multichannel Acquisition System
For reasons of energy consumption, precision, and flexibility in choice of operating modes, but also for commercial reasons, FPGA-based solutions cannot be considered in these areas. Only DSP floating-point processors are retained for the processing of the serial outputs from these 20-bit ADCs and for realizing optimized decimation filters.
Today, there are many data acquisition systems capable of simultaneous sampling over a large number of channels. This translates into many ADCs operating in parallel, while being governed by the same controller that also has the task of collecting the data and storing it in memory for subsequent analysis.
A system constructed around SAR ADCs associated with the capabilities of a SHARC ADSP-21479, or one of its fast ADSP-21469 or ADSP-21489 versions clocked at 450 MHz, is not only conceivable but presents itself as the most pertinent in terms of performance, development time, energy consumption, and compactness. These processors have all the functions and peripherals needed to support 8 analog-to-digital digitization channels, from synchronous serial interfaces to the generation of different clock signals and triggering conversion. Among all SHARC processors, the ADSP-21479 is the only 32-/40-bit floating-point DSP to be manufactured with a low leakage, 65 nm CMOS process, which has the advantage of substantially reducing leakage or static currents, and the evolution of the junction temperature is almost exponential. The dynamic current, which is a function of the frequency and activity of the processor and its peripherals, is also lower than that for standard or fast CMOS manufacturing processes. The flipside is a maximum CPU frequency reduced by about 30% to 40% compared to conventional versions, nevertheless largely sufficient for the needs of such an application.
The ADSP-21479 has many peripherals including a special block called a serial input port (SIP), that is capable of simultaneously receiving streams from eight external serial port transmitters in synchronous operation with clock and synchronization signals. In fact, it is possible to directly connect eight ADCs similar to the AD4020 directly to this interface, and thus to the processor. As shown in Figure 5, the 8 channels have their own IDP_SCK clock, IDP_FS synchronization, and IDP_DAT input signals, and their data, once deserialized, are automatically multiplexed into a 32-bit, 8-word FIFO memory before being transferred to the SHARC internal RAM, through either a 64-bit DMA packet or a read performed by the CPU. In a DMA transfer operation, the SIP is served by a double-indexed DMA channel operating in automatic ping-pong mode. In addition, the ADSP-21479 features four precision clock generators (for their low jitter) or PCGs capable of generating independent pairs of clock and synchronization signals from an internal or external source (TCXO). The frequency, period, pulse width, and phase of these stimuli are obtained by programming 20-bit internal dividers. Each PCGx generation unit provides a pair of CLK/FS signals shared by a pair of AD4020 converters, but the clock must be silent during the conversion phase, which accounts for the presence of a logic gate that combines the IDP_FS and IDP_SCK signals to create the SCK clock. The time diagram in Figure 5 shows that once the conversion time tconv has elapsed, the 20 bits from the current sample must be read as quickly as possible, that is, at the rate of 33.3 MHz to maintain the 1 MSPS magical barrier in the sampling frequency. About 600 ns later, the data is transferred to one of the SIP buffers and a new conversion cycle can be started using the IDP_FS or CNV signal to trigger a new conversion of the AD4020. Having a maximum 325 ns conversion time for the latter will correspond to the pulse width of the CNV signal, that is, 12 IDP_SCK clock periods or 360 ns. In summary, as shown in the timing diagram of Figure 5, 32 IDP_SCK signal periods, or a total of 960 ns, are required for a complete scan cycle, resulting in a maximum sampling rate of 1.040 MSPS.
Figure 5.Connection of 8, 20-bit, 1 MSPS SAR ADCs to a SHARC DSP using deserialization and DMA transfer into the DSP internal RAM.
Similarly, the ADC LTC2378-20 can be associated with an ADSP-21489 since it is capable of operating at the clocks of higher peripheral clock frequencies up to 50 MHz, and the sampling rate in this case will be 900 kSPS, as shown in Table 1. Unfortunately, the static supply current (Iddint), or leakage of the latter, is much higher than the dynamic current, which makes an unacceptably high overall consumption for this configuration by exceeding the available wattage.
Decimation Filtering
Assuming that these converters are used in oversampling mode, it is necessary to provide a decimation filter tailored for the band of interest with the aforementioned performance requirements, minimizing the impact on the DSP in terms of required computing power and energy consumption. Currently, the procedure for changing the sampling rate has become a standard digital signal processing operation, and these are performed using interpolators and digital decimators. For reasons of linearity in the phase response, the low-pass decimation filter uses a finite impulse response (FIR) topology, and different topologies can be used according to the degree of efficiency sought:
- Direct or optimized FIR filters for decimation
- Cascaded multirate FIR filters (half band)
- Polyphase FIR filters
Polyphase filters, whether of the FIR or IIR type, are one of the most efficient implementations of decimation or interpolation filters. Nevertheless, digital processing orthodoxy requires filtering before decimation. On this assumption, a 1/M decimation filter consists of a low-pass filter followed by a sampling frequency reduction stage (Figure 6a). The signal is filtered beforehand to avoid the aliasing of spectrum, then the samples are periodically eliminated at the rate of M – 1. However, the direct implementation of these decimation filters of the conventional FIR or other structures is wasteful of resources knowing that the rejected samples result from a few tens or even hundreds of multiplication-accumulations (MACs). The use of polyphase filters decomposed into several banks of filters, or filters optimized for decimation, leads to the production of efficient filters based on certain identities such as that illustrated in Figure 6b.
Figure 6. Conventional decimation filter and a decimation filter using the polyphase approach.
With their SIMD architecture and hardware accelerator dedicated to FIR filtering, and an instruction set optimized for digital signal processing, the SHARC ADSP-21479 is particularly well positioned for implementing these types of filters. Each SHARC processing element has a 32-/40-bit multiplier-accumulator capable of providing 533 MACs per second in fixed or floating point at a CPU frequency of 266 MHz. However, for some applications with a significant delay (room equalization or sound effects), increased computing power is necessary to free up the core from intensive and sustained multiplication operations, such as FIR, IIR, or FFT filtering, tasks that are performed by dedicated hardware accelerators. Thus, the user will have complete freedom to utilize the CPU for the calculation of more complex algorithms that require the full sophistication of the instruction set. The accelerator dedicated to FIR filtering has its own local memory for storing data and coefficients, and has the following characteristics:
- It supports IEEE-754 fixed-point or floating-point 32-bit arithmetic formats
- It has four multiplication-accumulation units operating in parallel
- It can operate in monorate or multirate processing modes (decimation or interpolation)
- It can handle up to 32 FIR filters for a total of 1024 coefficients in a simple iteration
The accelerator of the ADSP-21479 is clocked at the rate of the system clock or PCLK peripherals, half of the CCLK clock frequency of the CPU; that is, 133 MHz. This results in a total computing capacity of 533 MACs per second. The accelerator does not call for the execution of instructions; its operation is dictated by the configuration of specific registers and relies exclusively on DMA transfers for moving data between the internal and/or external memories.
Obviously, this accelerator will perform the implementation of multirate filters (interpolation or decimation) in an optimized way. Since a simple decimation filter provides only one output result for M input signals, the output rate is 1/M times lower than the input rate. Without resorting to the sophistication of the polyphase filter banks, which are complicated to implement because of the number of memory pointers required, the implementation of such an optimized FIR filter simply exploits the setting aside of the output from M – 1 samples to avoid doing those calculations, and only calculates the data for those that produce useful samples. This eliminates waste and, consequently, the number of operations is reduced in an M – 1 ratio—that is, 15 in the present example—resulting in a considerable saving of CPU cycles. However, for such a decimation ratio and short calculation window, the accelerator is not as effective as the core with its two calculation units, and is adversely affected by its DMA channels being reprogrammed during the passage from one filter to another. As implemented by a single calculation unit in SISD mode, the cost of such a filter in terms of the number of CCLK cycles is expressed as:
N is the number of coefficients for the filter and M is the decimation ratio.
The implementation of such a decimation filter for a single iteration amounts to about 150 cycles for an FIR filter (source to assembler 21k) corresponding to the ripple specifications of ±0.00001 dB in the band (0 kHz to 24 kHz) and an out-of-band attenuation of –130 dB for a sample rate of 62,500 SPS. The response of this filter, which has 97 coefficients (quantized in 32-bit FP IEEE-754 format) is shown in Figure 7 with MATLAB® Filter Designer. It is repeated on DMA interrupt occurrences at the rate of this sampling frequency for each active channel of the connected SIP or ADC.
Figure 7. Filter response of a decimation filter.
For the real-time and the DSP load, the filtering operation is repeated at the frequency of 62.5 kSPS, which represents 9,375,053 CCLK cycles, and a little more than 8 times more with the 8 ADC conversion channels because of the saving and restoration of the memory pointer values of each filter, stored in the SHARC data address generators. This translates into 80 million execution cycles per second or 80 MIPS of a SHARC DSP in SISD mode and half that in SIMD mode, with the two processing elements running in parallel. The execution of these eight decimator FIR filters occupies the ADSP-21479 clocked at 266 MHz at the rate of 30% and 15% respectively, according to the aforementioned modes.
Finally, Energy Consumption
While the energy consumption of the converters can be evaluated quite easily and accurately from their specifications, that of the processors is more difficult because of the number of parameters entering the equation of this consumption and its great variability according to the constraints of real time and the modes of operation. Without going into details that the reader can easily find in the technical notes relating to the estimation of the energy consumption of the various constituents of ADSP-214xx and ADSP-21479 processors in particular, where account is taken of the activity of functional blocks, junction temperature for static current, supply voltage values, number of input-output pins used, various external frequencies, and capacitive loads. The energy consumption corresponding to the activity of the DSP for this type of decimation filtering application, in accordance with the functional description of Figure 5, is given for several combinations of DSP and ADCs. These associated DSP variants with four or eight ADCs are established according to the functional capacities, the number of adequate inputs/outputs, and computing power of the processors as well as the overall performance of the ADCs. Owing to its very low static current, the solution constructed around the ADSP-21479 and its cluster of eight SAR ADCs is one that consumes the least energy while offering full latitude in the choice of filtering algorithms and other digital functions with an overall performance that is at best excellent.
This multichannel data acquisition system (DAQ) example also demonstrates that the use of FPGA is not mandatory for handling digital signal processing tasks and floating-point DSPs are a better fit for high precision SAR ADCs, especially when the power consumption is a hot concern.
Table 1. Comparison of Different SAR ADCs in Comparison with a DSP
Parameters
AD4020 and ADSP-21479
LTC2378 and ADSP-21489
AD4020 and ADSP-BF532
LTC2378 and ADSP-BF532
LTC2512
-24
LTC2500
-32
AD7768
-1 Medium Mode
AD7768
-1 Fast Mode
Conversion A/N
SAR
SAR
SAR
SAR
SAR
SAR
WB-Σ-Δ
WB-Σ-Δ
Resolution
20
20
20
20
24
32
24
24
Oversampling
Yes
Yes
Yes
Yes
Yes
Yes
Yes
Yes
In-Band Ripple (dB)
±0.00001
±0.00001
±0.00001
±0.00001
±0.001
±0.001
±0.003 programmable
±0.003 programmable
Stop Band Att (dB)
<–130
<–130
<–120
<–120
<–65
<–65
–110 programmable
–110 programmable
Decimation Filter
Opt FIR
Opt FIR
Opt FIR
Opt FIR
FIR
FIR
FIR
FIR
Sampling Frequency (MSPS)
1
0.91
1.8
1
1.0
1
4
8
Effective Oversampling Ratio
16
16
32
16
16
16
128
256
First Aliasing Zone (MHz)
1
1
2
1
1
1
8
16
Frequency After Decimation (kSPS)
62.5
62.5
62.5
62.5
62.5
62.5
62.5
62.5
AAF Order Required to Achieve –110 dB of Aliasing Rejection
5
5
4
5
5
5
3
3
Aliasing Rejection with the Filter Order Above (dB)
–123.4
–123.4
–123.4
–123.4
–123.4
62.5
–130
–147.5
SNR at 3 kHz with 5 V Reference (dBFS)
112
116
115
116
114
116
113.7
116.9
SFDR at 2 kHz (dBc)
122
128
122
128
120
128
128
128
THD at 20 kHz (dBfs)
122
128
122
128
120
128
–120
–120
Digital Filter Bypass
Yes
Yes
Yes
Yes
Yes
Yes
No
No
Frequency SCK/SDO (MHz)
33.3
50
61.5
64.1
1.5
1.5
1.5
1.5
ADC Consumption (mW)
10.8
24.8
15
24.8
32
30
19.7
36.8
DSP Consumption (mW)
185
832
70
75
Number of Channels
8
8
4
4
1
1
1
1
Total Energy Consumption (Typically at Tj = 55°C)
(mW)
272
1030
130
175
Energy Consumption per Channel (mW)
34
129
33
43
32
30
19.7
36.8
ADC Operating Temperature Range (°C)
–40 to +125
–40 to +85
–40 to +125
–40 to +85
–40 to +85
–40 to +85
–40 to +125
–40 to +125
References
ADSP-21000 Family Applications Handbook Vol.1. Analog Devices, Inc.
Fliege, N.J. Multirate Digital Signal Processing: Multirate Systems—Filter Banks—Wavelets. Wiley, 1999.
Harris, Frederic J. Multirate Signal Processing for Communications Systems. Prentice Hall, 2004.
Vaidyanathan, P.P. Multirate Systems and Filter Banks. Prentice Hall, 1993.