Pitfalls in analog front-end design for DSP

Elektronik Embedded Systems

The analog front end sets the noise floor of a DSP system. The ADC is only as good as the supply, the reference and the ground it sees. A clean algorithm cannot save a noisy front end, and every bit lost in the front end cannot be recovered by the algorithm.

The following pitfalls cost the most signal-to-noise ratio (SNR) in practice. Each one costs effective bits (ENOB). All of them can be avoided at schematic and layout time, before the first measurement.

DC/DC converter: ripple and skip mode

A switching converter produces output ripple at its switching frequency and its harmonics. Amplitude typically a few mV to tens of mV, frequency usually 500 kHz to 2 MHz. This ripple couples through the supply pins into reference and signal path and shows up in the ADC spectrum as a narrow spur, often right next to the signal of interest or on one of its aliases.

At light output loads many converters switch to a pulse-skipping or PFM (pulse frequency modulation) mode. The loop no longer switches at a fixed frequency with variable duty; instead it emits individual pulses whenever the output falls below a threshold. The effective switching frequency drops and becomes load-dependent. Instead of a clear spectral line, a broad noise pattern with sub-harmonics of the nominal switching frequency appears, and its position moves with the operating point. This pattern can land in the band of interest and is hard to filter there.

The pitfall is over-dimensioning the converter. Whoever sizes the current generously because the load is still undefined ends up running it in the partial-load range. That is exactly where skip or PFM mode kicks in.

LDO: PSRR at the frequency of interest

The LDO as post-regulator is the standard tool to suppress converter ripple. What matters is the power supply rejection ratio (PSRR), the ratio between disturbance at the input and disturbance at the output, in decibels. At DC and low frequencies good LDOs reach 60 to 80 dB. As frequency rises PSRR falls, often to 30 to 50 dB at 100 kHz and below that in the megahertz range.

The pitfall is expecting the LDO to clean the converter ripple at every frequency. With 1 MHz converter switching frequency and 40 dB PSRR, 100 µV remain of a 10 mV ripple, enough to visibly disturb a 16-bit ADC at its reference.

Anti-aliasing filter

An ADC samples at rate fs. Anything above half the sampling rate (Nyquist frequency) folds back into the baseband when sampled and is afterwards indistinguishable from the real signal. The anti-aliasing filter ahead of the ADC has to attenuate that range down to below the noise floor of the desired resolution.

The pitfall is a filter that is too shallow. A simple RC pole rolls off at -20 dB/decade and therefore needs several decades between cutoff and Nyquist to reach useful attenuation. For an ADC at 100 kSPS with signals up to 20 kHz that barely works: at Nyquist (50 kHz) an RC with 20 kHz cutoff gives only about 8 dB of attenuation, far too little to cut broadband noise from op-amp and reference at the top.

Grounding and ground loops

Analog and digital ground belong tied together at exactly one point, typically directly under the ADC’s ground pin or at the ADC’s split-ground terminal (AGND/DGND). Digital return currents must not flow through the analog ground plane. If they do, they develop a voltage over the finite plane impedance that appears as a common-mode disturbance at the ADC reference.

A ground loop appears when two or more ground connections between boards form a closed ring. Potential differences between the reference points or external magnetic coupling (mains field, motor cables) drive a circulating current through this loop, which again ends up as ground voltage in the signal path.

At low frequencies (up to a few kHz) the single-point connection is clean. At higher frequencies the connection inductance dominates; a plane split with many short bonds between analog and digital regions (plane partitioning with dedicated return paths) becomes more robust than classical star grounding.

TVS and filter at the bus

Bus lines like RS-485, CAN or Ethernet carry transients (ESD, burst, surge per IEC 61000-4) and common-mode disturbances into the device. A transient voltage suppressor (TVS) clamps over-voltage below the allowable part voltage. A common-mode choke suppresses common-mode content without distorting the differential signal.

The pitfall is the TVS clamping capacitance. On a fast bus (CAN-FD from 2 Mbit/s, Ethernet 100BASE-T) a high capacitance distorts the signal edges and closes the eye diagram. For CAN-FD, TVS parts should stay under 10 pF per pin; for 100BASE-T noticeably below. That severely restricts the choice, because low-capacitance TVS parts usually have lower clamping power.

The second mistake is computing with the clamping voltage without accounting for series impedance. The TVS only clamps if the disturbance current does not rise faster than the TVS diode can react. A small series inductance or resistor between connector and TVS limits the rise rate and gives the TVS time to build up its clamping.

The bus is also a path for disturbances into the front end. If bus ground is not cleanly separated from the analog region, or if the TVS return current is routed through the analog plane, the bus disturbance runs straight into the signal path.

Layout: separate analog from digital

The switching node (SW node) of the DC/DC converter is the most aggressive aggressor on the board. Between the high-side and low-side MOSFETs, the voltage swings with a slew rate of several V/ns. The Fourier decomposition of these edges reaches into the low gigahertz range and radiates both directly (E-field over the SW-node area) and via the ripple currents in input and output loops (H-field via the loop).

Takeaway

The front end is won in the detail: supply, reference, ground, filter, layout. None of these pitfalls is spectacular, and none of them show up in the first functional test where the ADC measures a clean sine test signal. They surface as spurs in the spectrum, as reduced ENOB compared to the datasheet value of the ADC, and as missing bits at the end of the processing chain.

Ruling them out at schematic and layout time saves the long hunt for the noise source in the finished device. A change at the schematic takes minutes, at the layout hours, at the fabricated prototype weeks. That is the real economics of front-end care.

Keywords: analog front end, DSP, ADC, SNR, ENOB, DC/DC ripple, PFM skip mode, LDO PSRR, anti-aliasing filter, oversampling, noise bandwidth, grounding, star ground, EMC layout, bus TVS, CAN-FD signal integrity, electronics engineering Switzerland, swissEmbedded PCB design Aargau

Noise floor too high, effective bits too few? We analyse the front end, supply, ground and layout, size filters and PSRR to the actual frequency of interest, and pull the SNR up to where it belongs, at schematic and layout time.

Contact us →