4.3 Direct Digital Synthesis (DDS), SDR Architectures, and Digital Filter Topologies
Key Takeaways
Direct Digital Synthesis (DDS) generates RF sine waves numerically by incrementing an N-bit phase accumulator by Frequency Tuning Word M at clock rate f_clk, yielding f_out = (M · f_clk) / 2^N with sub-hertz resolution Δf = f_clk / 2^N.
Software Defined Radios utilize orthogonal In-phase (I) and Quadrature (Q) baseband processing to separate positive and negative frequencies, eliminating image responses mathematically without analog IF crystal ladder filters.
Finite Impulse Response (FIR) filters use a finite set of input samples and are stable for finite coefficients. Symmetric or antisymmetric real coefficients give linear phase; sharp transitions may require many taps.
Infinite Impulse Response (IIR) filters are recursive, emulating sharp analog Butterworth/Chebyshev skirts with minimal coefficients, but possess non-linear phase and require all z-plane poles to reside strictly inside the unit circle (|z_p| < 1) for stability.
The Convolution Theorem establishes that discrete time-domain convolution (y[n] = x[n] * h[n] = Σ x[k] h[n-k])—evaluated by folding, shifting, multiplying, and summing—is mathematically equivalent to multiplication in the frequency domain (Y(f) = X(f) · H(f)).
4.3 Direct Digital Synthesis (DDS), SDR Architectures, and Digital Filter Topologies
Digital signal processing (DSP) and high-speed mixed-signal converters have revolutionized modern amateur radio transceiver design. In place of drift-prone analog LC tanks, varactor diodes, and crystal ladder filters, contemporary equipment employs Direct Digital Synthesis (DDS) for agile frequency generation, Software Defined Radio (SDR) front-ends for direct digitisation, and FIR/IIR digital filters operating via discrete convolution.
Sampling, Quantisation and Conversion
An ADC samples voltage at times , where , then assigns each sample an amplitude code. Sampling makes time discrete; quantisation gives a finite set of amplitude levels. An ideal 8-bit converter has 256 codes; over a 1 V input span its nominal step is . Rounding to the nearest level introduces quantisation error, rather than preserving every possible input voltage.
For ordinary real-valued baseband sampling, keep the highest signal frequency below the Nyquist frequency . Thus 3.4 kHz audio needs a rate greater than 6.8 kS/s; 8 kS/s leaves some transition space for an analogue anti-alias filter. At 8 kS/s, an unwanted 6 kHz tone aliases to 2 kHz and cannot later be distinguished from an original 2 kHz input using those samples alone.
Analogue input --> anti-alias filter --> ADC --> digital processing
Digital output --> DAC --> reconstruction/anti-image filter --> analogue output
The input filter prevents unwanted frequencies from folding into the sampled band. The output filter suppresses DAC spectral images. More bits improve amplitude resolution; they do not replace an adequate sampling rate or filtering.
Direct Digital Synthesis (DDS) Architecture
A Direct Digital Synthesiser—or Numerically Controlled Oscillator (NCO)—synthesizes periodic waveforms mathematically by computing digital phase samples and converting them to analog voltages at a constant master clock rate .
+-----------------+ +-----------------+ +---------+ +----------------+
f_clk ---->| N-bit Phase |====>| Phase-to-Amp |====>| High- |====>| Reconstruction |----> f_out
| Accumulator | | LUT / CORDIC | | Spd DAC | | Analog LPF |
M (FTW) -->| (overflow=f0) | | (P-bit MSBs) | +---------+ +----------------+
+-----------------+ +-----------------+
Functional Pipeline and Tuning Mathematics
- Phase Accumulator ( bits): Acts as an ideal digital integrator of frequency into phase. On each clock edge of , an -bit register increments its content by an -bit Frequency Tuning Word (FTW), denoted : Accumulator overflows establish the fundamental output frequency: The minimum frequency resolution (, for ) is: For a 32-bit accumulator clocked at , , delivering sub-hertz tuning agility across the Nyquist bandwidth.
- Phase-to-Amplitude Converter: Translates instantaneous phase values into sinusoidal amplitude words via a Read-Only Memory lookup table (LUT) or pipelined CORDIC algorithm.
- Digital-to-Analog Converter (DAC): Converts discrete digital words into an analog staircase voltage waveform.
- Reconstruction Low-Pass Filter: Suppresses DAC staircase sampling harmonics and Nyquist alias images (). Practical designs restrict to ensure realizable analog filter cutoff skirts.
- Phase Truncation Spurs: Passing only MSBs (e.g., 12 to 16 bits) to the sine LUT discards the least significant bits. This periodic truncation error modulates the carrier, generating discrete phase truncation spurs. DAC non-linearity also creates spurs. Spurious-Free Dynamic Range (SFDR) is the carrier-to-largest-spur ratio in the specified bandwidth; bit depth alone does not determine it.
Software Defined Radio (SDR) Front-End Architectures
SDR architectures represent RF signals as complex analytic phasors using In-phase () and Quadrature (, offset) baseband components: Because complex representation separates positive () and negative () frequencies, an SDR mathematically rejects image responses () without multi-pole analog IF crystal filters.
- Direct Conversion (Zero-IF / Low-IF): Translates RF directly to baseband using quadrature mixers. The Tayloe detector employs a 4-phase commutating switch clocked at into four integrating capacitors (). The capacitor outputs are combined to obtain the in-phase and quadrature baseband signals. Conversion loss, noise and intermodulation performance depend on the implemented circuit.
- Direct RF Sampling: High-speed ADCs (e.g., 16-bit at ) directly digitize the entire HF spectrum from the antenna. A Field-Programmable Gate Array (FPGA) Digital Down-Converter (DDC) applies digital quadrature mixing and decimation filtering, generating substantial processing gain: For approximately white ADC noise, this filtering improves in-band SNR. It does not raise the ADC clipping level or remove distortion spurs.
Digital Filtering: FIR vs. IIR Filter Topologies
Digital filtering in SDR transceivers is achieved through Finite Impulse Response (FIR) or Infinite Impulse Response (IIR) topologies.
Direct Form I, second-order IIR (a0 = 1)
Input delays: x[n] -> [z^-1] -> x[n-1] -> [z^-1] -> x[n-2]
Output delays: y[n] -> [z^-1] -> y[n-1] -> [z^-1] -> y[n-2]
Feedforward sum = b0*x[n] + b1*x[n-1] + b2*x[n-2]
Feedback sum = -a1*y[n-1] - a2*y[n-2]
y[n] = Feedforward sum + Feedback sum
Each z^-1 is one sample of delay. Both weighted sums feed the output.
Mathematical Difference Equations and z-Plane Stability
- FIR Filters (Non-Recursive): Output samples depend solely on present and past input samples: In the complex -plane, all poles reside at origin . FIR filters with finite coefficients are stable. Real coefficients that are symmetric or antisymmetric about the impulse-response midpoint give linear phase (constant group delay). FIR filters need not have linear phase. Sharp transitions may require many taps, increasing computation and delay.
- IIR Filters (Recursive): Output samples incorporate feedback from prior output samples:
- Realization Topologies: Direct Form I implements separate tapped delay lines for inputs and feedback outputs. Direct Form II is canonical, sharing a single tapped delay line of state variables, minimizing memory.
- -Plane Stability: Under the bilinear transform, , where is the sample period. It maps the left-half of the Laplace -plane inside the -plane unit circle. An IIR filter is bounded-input bounded-output (BIBO) stable if and only if all poles reside strictly inside the unit circle: For this causal rational filter, poles on or outside the unit circle () fail the BIBO stability condition; natural responses may persist or grow. Fixed-point coefficient quantization can shift pole positions toward the unit circle, causing arithmetic overflow and limit-cycle oscillations (persistent autonomous oscillations under zero input).
- Operational Trade-Offs: IIR filters can emulate classical analog filters (Butterworth, Chebyshev, elliptic), often meeting a magnitude-response specification with fewer coefficients than an FIR filter. Required order and delay depend on the specification. However, they exhibit non-linear phase (group delay dispersion), which can distort pulsed digital modulation waveforms.
| Filter Characteristic | Finite Impulse Response (FIR) | Infinite Impulse Response (IIR) |
|---|---|---|
| Structure | Non-recursive (feedforward only) | Recursive (feedback of prior outputs) |
| Difference Equation | ||
| -Plane Poles | All poles fixed at origin () | Configurable poles anywhere in -plane |
| Stability | Unconditionally stable | Conditionally stable ( required) |
| Phase Response | Linear phase with suitable coefficient symmetry | Usually non-linear phase |
| Computational Cost | Often more taps for a given sharp transition | Often fewer coefficients for the same magnitude response |
| Analog Emulation | Complex tapped delay | Direct Butterworth, Chebyshev, Elliptic |
Linear Time-Invariant Systems and Discrete Convolution
The response of any Linear Time-Invariant (LTI) system to an arbitrary input sequence is computed by convolving with the system's unit impulse response . For an FIR digital filter, the impulse response values correspond directly to the filter tap coefficients .
Definition and the Convolution Theorem
The continuous convolution integral and discrete convolution sum are:
The Convolution Theorem dictates that time-domain convolution is equivalent to point-by-point multiplication in the frequency domain: Convolving a digitized RF signal with an impulse response shapes the spectrum by multiplying by , attenuating out-of-band noise while preserving passband signals.
Step-by-Step Graphical Convolution
Evaluating discrete convolution follows five consecutive operations:
- Change of Variable: Express both sequences in terms of dummy summation index , yielding and .
- Fold (Flip): Time-reverse the impulse response about the origin () to form .
- Shift (Translate): Slide the flipped sequence along the -axis by displacement to form .
- Multiply: Compute the point-by-point product of overlapping samples .
- Sum (Accumulate): Sum all products to obtain output sample . Increment and repeat.
Graphical Representation of Discrete Convolution: y[n] = Σ x[k] h[n-k]
Step 1: Express sequences in dummy index k: x[k], h[k]
Step 2: Fold (flip) impulse response: h[k] -> h[-k]
Step 3: Shift h[-k] by index n: h[-k] -> h[n-k]
Steps 4 & 5: Multiply overlapping samples and Sum products to compute y[n]
At n = 1:
x[k]: ... x[0] x[1] x[2] ...
* *
h[1-k]: ... h[1] h[0] 0 ...
| |
Products: x[0]h[1] + x[1]h[0] ===> y[1] = Σ x[k] h[1-k]
DFT and FFT: Time Samples to Frequency Bins
The discrete Fourier transform (DFT) represents samples by complex frequency-bin values:
Each bin describes amplitude and phase at , with bin spacing . Bins above the positive Nyquist range represent negative frequencies for a real sampled waveform. An FFT is an efficient algorithm for the same DFT, not a different transform. The inverse transform reconstructs the sample sequence from its complex bins.
For , and :
Time samples x[n] DFT magnitude |X[k]|
+1 * 2 * *
0 +---*---+---*--> n 0 *---+---*---+--> k
-1 * 0 1 2 3
0 1 2 3
The result is . Bins 1 and 3 correspond to +2 kHz and −2 kHz: the two-sided representation of the sampled cosine. The forward-transform convention above gives magnitudes 2; dividing by gives 0.5 in each conjugate bin. Real FFT displays may use other stated normalisations. A finite record that does not contain whole cycles spreads energy between bins; windowing reduces sidelobes at the cost of a wider main lobe.
Worked Engineering Calculations
Example 1: DDS Tuning Word, Resolution, and Nyquist Image
Problem: A DDS synthesiser uses a 32-bit phase accumulator () clocked at . Calculate the frequency resolution (), the Tuning Word () for , and the primary Nyquist alias image.
Solution:
- Resolution: .
- Tuning Word ():
- Nyquist Image: , readily attenuated by an analog low-pass reconstruction filter.
Example 2: Discrete Convolution Sequence Evaluation
Problem: An input sequence () passes through an FIR filter with impulse response (). Compute the output sequence using the flip, shift, multiply, sum method.
Solution: Total output length is samples ():
- :
- :
- :
- : Output sequence: .
Example 3: IIR Filter Difference Equation and Stability Check
Problem: A first-order recursive filter has difference equation . Determine its transfer function , pole location, stability, and steady-state DC gain.
Solution:
- Transfer Function: Taking the -transform yields :
- Pole and Stability: The single pole is at . Because , the pole lies strictly inside the unit circle, confirming bounded-input bounded-output (BIBO) stability.
- DC Gain: Setting :
In digital signal processing for software defined transceivers, what is a primary mathematical distinction and operational trade-off between an Infinite Impulse Response (IIR) filter and a Finite Impulse Response (FIR) filter?
An IIR filter is unconditionally stable with all poles fixed at the z-plane origin, but requires significantly more coefficients than an FIR filter for steep skirts
An IIR filter incorporates feedback from prior output samples and can achieve very sharp cutoff skirts with few coefficients, but has non-linear phase and requires all z-plane poles to remain strictly inside the unit circle for stability
An IIR filter cannot emulate analog filter shapes like Butterworth or Chebyshev, whereas an FIR filter emulates them with zero computational latency
An IIR filter processes only real-valued signals, whereas an FIR filter is required for complex In-phase and Quadrature (I/Q) baseband processing
When computing discrete time-domain convolution y[n] = x[n] * h[n] to filter an RF signal in DSP, what sequence of operations is performed on the filter impulse response h[k] and input sequence x[k]?
Differentiate the impulse response, integrate the input sequence, and sum their instantaneous frequency deviations
Multiply the input and impulse response point-by-point in the time domain, then take the inverse Fourier transform of the product
Time-reverse (flip) the impulse response to h[-k], shift it by index n to form h[n-k], multiply overlapping samples with x[k], and accumulate the products to yield y[n]
Accumulate the input samples into a FIFO buffer, decimate by a factor of 4, and perform circular bit-shifting
In a Direct Digital Synthesis (DDS) architecture, what is the primary source of discrete spurious spectral lines (spurs) that appear in the output spectrum prior to the digital-to-analog converter (DAC)?
Truncating the phase accumulator output to a smaller number of bits when addressing the sine lookup table or CORDIC converter
Thermal noise generated by the master crystal oscillator feedback resistor
Non-linear capacitance changes within the varicap tuning diode
Intermodulation distortion produced by the analog reconstruction low-pass filter
Sections you finish are checked off in the contents.