- How the C/D and D/C converters are defined as ideal blocks, and the two frequency-domain relations that describe them.
- The central result of the chapter: a band-limited input makes the whole chain a single LTI system with \(H_{\text{eff}}(j\omega) = H(e^{j\omega T})\) for \(|\omega| \lt \pi/T\) — and why the factor \(T\) cancels.
- Why that equivalence collapses the moment aliasing occurs: the chain stops being time-invariant, and a 7 kHz tone can come out at 1 kHz.
- How to convert a specification between rad/s, hertz and rad/sample, and why the same filter coefficients build a different analogue filter at every sampling rate.
- Two systems that exist only because of this equivalence: the digital differentiator and the fractional-sample delay.
- Downsampling and upsampling — what each does to the spectrum, the anti-alias filter one needs and the anti-image filter the other needs.
- Rational rate conversion by \(L/M\), and the oversampled converter that Chapter 21 promised.
A Digital Path Between Two Analogue Points
Chapter 20 established that a band-limited signal loses nothing when it is reduced to a list of numbers, and Chapter 21 showed how the waveform is put back together again. Taken together they describe a round trip that achieves precisely nothing: a signal goes in, the same signal comes out. The point of the exercise is what happens in between.
Between the sampler and the reconstructor sits a computation — a sequence in, a sequence out, performed by a processor. The arrangement is so common that it is worth drawing once and then studying as an object in its own right. The world outside the dashed box is analogue: a microphone, an antenna, a strain gauge on one side, a loudspeaker or an actuator on the other. Inside it, everything is arithmetic.
Why go to the trouble? Because inside the box the engineering constraints disappear. A digital filter's coefficients are exact numbers; they do not drift with temperature, they do not have 5% tolerances, and they do not age. A response can be made exactly linear in phase, which no finite analogue network can achieve. A filter can be changed by rewriting a table, adapted while it runs, or replaced entirely by a different algorithm between one sample and the next. Signals can be stored, reversed, delayed by an arbitrary amount without a delay line, and processed by operations — median filtering, sorting, decision logic — that have no analogue circuit at all.
The price is the two converters, and the whole content of this chapter is the accounting of that price. Two questions must be answered. First, given the discrete-time system \(H(e^{j\Omega})\) that has been programmed, what continuous-time system has actually been built? Second, since the sampling rate is now a design variable rather than a fact of nature, how does one change it — and what is lost when one does?
The Two Converters
Both converters must be defined precisely before anything can be proved about the cascade. The continuous-to-discrete converter, written C/D, is the simplest object in the subject: it produces the sequence of sample values.
It is worth being clear about how this differs from the impulse-train sampler of Chapter 20. There, \(x_p(t) = \sum_n x_c(nT)\delta(t-nT)\) was a continuous-time signal carrying impulses of the right weights — a device invented purely so that the Fourier transform could be applied to it. It is not something a converter builds. What a converter delivers is a list of numbers indexed by \(n\), with no units of time attached and no memory of the rate at which it was taken. The impulse train was scaffolding; the sequence is the building.
Chapter 20 nevertheless left the frequency-domain relation between the two worlds in final form, and it is repeated here because everything below rests on it.
The discrete-to-continuous converter, D/C, is the ideal reconstructor of Chapter 21: it lays down one sinc pulse per sample and adds them up. Nothing else will do, because only band-limited interpolation inverts the sampling operation exactly.
Its frequency-domain description follows in one line. The interpolating pulse \(\sin(\pi t/T)/(\pi t/T)\) is the impulse response of an ideal lowpass filter of cutoff \(\pi/T\) and passband gain \(T\); shifting it to \(t = nT\) multiplies its transform by \(e^{-j\omega nT}\). Summing over \(n\) with weights \(y[n]\) therefore gives
Read the two boxed relations side by side. C/D takes a spectrum, stretches its axis by \(1/T\), replicates it every \(2\pi\), and divides by \(T\). D/C takes one period of a spectrum, compresses the axis by \(T\), throws away everything outside \((-\pi/T, \pi/T)\), and multiplies by \(T\). They are inverses of one another whenever the replicas of the first operation do not overlap — which is the sampling theorem, seen once more.
The order matters. Reconstructing a sequence and re-sampling it at the same rate always returns the original sequence, because the sinc pulse is zero at every sample instant but its own. Sampling a waveform and reconstructing it returns the original waveform only when it was band-limited to begin with.
The Effective Continuous-Time System
Now assemble the chain. Assume — and this hypothesis is the whole story — that the input is band-limited so that \(X_c(j\omega) = 0\) for \(|\omega| \ge \pi/T\). Then in the base period \(|\Omega| \le \pi\) only the \(k=0\) term of the replication sum survives, and the C/D relation collapses to a clean statement:
The discrete-time system then multiplies by its frequency response, which is legitimate because \(x[n]\) is being passed through an LTI system and Chapter 16 established that multiplication of DTFTs is what such a system does:
Finally the D/C relation converts back, evaluating the sequence spectrum at \(\Omega = \omega T\) and multiplying by \(T\). For \(|\omega| \lt \pi/T\),
The output spectrum is the input spectrum multiplied by a fixed function of \(\omega\). That is exactly the signature of a continuous-time LTI system, and the function is its frequency response.
Valid whenever the input is band-limited to \(|\omega| \lt \pi/T\). The digital filter's response, read on an axis stretched by the factor \(1/T\) and truncated at the Nyquist frequency, is the analogue system that has been built.
Three features of this result deserve separate attention.
The first is the cancellation of \(T\). The C/D converter introduced a factor \(1/T\) and the D/C converter a factor \(T\), and they annihilate each other. The gain of the effective system is therefore the digital filter's gain, unmodified, at every rate. Only the frequency axis depends on \(T\). This is a genuine convenience: a unity-gain digital filter builds a unity-gain analogue system whether it runs at 8 kHz or 8 MHz.
The second is the truncation at \(\pi/T\). Whatever the digital filter does, \(H_{\text{eff}}\) is identically zero above the Nyquist frequency, because the D/C converter's final lowpass forbids anything else. No system of this form can produce an output component above \(f_s/2\) — so a chain of this kind cannot generate a harmonic, cannot up-convert, and cannot manufacture bandwidth. If that is what is wanted, the rate must be raised first, which is what Section 22-8 is for.
The third is the periodicity that has quietly vanished. \(H(e^{j\Omega})\) is \(2\pi\)-periodic and always will be; \(H_{\text{eff}}(j\omega)\) is not periodic at all, because only one period of it is ever used. The truncation window \(|\omega| \lt \pi/T\) selects a single period and discards the rest.
Reading the Frequency Map
With the equivalence established, most practical work reduces to fluency in converting a frequency between the three currencies in circulation. The continuous-time world quotes \(\omega\) in radians per second or \(f\) in hertz; the discrete-time world quotes \(\Omega\) in radians per sample, or sometimes the normalised frequency \(f/f_s\) in cycles per sample. All four are the same number wearing different clothes.
| Discrete-time \(\Omega\) | Normalised \(f/f_s\) | At \(f_s = 8\) kHz | At \(f_s = 44.1\) kHz | Meaning |
|---|---|---|---|---|
| \(0\) | \(0\) | 0 Hz | 0 Hz | DC |
| \(0.1\pi\) | \(0.05\) | 400 Hz | 2205 Hz | low frequency |
| \(0.5\pi\) | \(0.25\) | 2000 Hz | 11025 Hz | quarter rate |
| \(\pi\) | \(0.5\) | 4000 Hz | 22050 Hz | Nyquist — fastest representable |
| \(2\pi\) | \(1\) | 8000 Hz | 44100 Hz | the sampling rate itself; aliases to DC |
The last row of that table is the one students find unsettling and it is worth stating plainly: a component at exactly the sampling frequency is indistinguishable from a constant, because it is sampled at the same point of its cycle every time. There is nothing pathological here — it is the \(2\pi\)-periodicity of Chapter 3 arriving in physical units.
The design consequence is that the same coefficients are a different filter at every rate. A lowpass whose cutoff is programmed at \(\Omega_c = 0.2\pi\) cuts at 800 Hz in a telephone codec running at 8 kHz and at 4410 Hz in an audio player running at 44.1 kHz — same multiplications, same additions, entirely different physical behaviour. A digital filter is specified in normalised frequency and only becomes a physical object when a clock is attached to it.
This cuts both ways, and pleasantly so. To meet an analogue specification, convert the specification to \(\Omega\), design once, and the design is then reusable at any rate simply by re-scaling the clock. An entire filter library can be written in normalised frequency and deployed across products whose sampling rates differ by three orders of magnitude.
Differentiators and Fractional Delays
The equivalence is not only a tool for analysis. Read backwards, it is a design method: name the analogue system you want, map its frequency response onto \(|\Omega| \lt \pi\), and the discrete-time filter falls out. Two classic cases show what this buys, and both produce systems that would be awkward or impossible to build with components.
Start with the differentiator. The wanted effective response is \(H_{\text{eff}}(j\omega) = j\omega\) over the whole representable band. Substituting \(\omega = \Omega/T\) gives the digital filter immediately.
Its impulse response comes from the inverse DTFT of Chapter 16. Because \(j\Omega\) is odd and purely imaginary, the integral splits neatly:
For integer \(n\) the second term vanishes and \(\cos\pi n = (-1)^n\), leaving a strikingly simple sequence.
Odd-symmetric, infinite in both directions, and decaying only as \(1/n\). A practical differentiator is this response windowed to a few dozen taps and shifted to make it causal — which adds a pure delay but leaves the magnitude untouched.
Compare that with the naive first difference \(y[n] = (x[n]-x[n-1])/T\), whose response is \(\big(1-e^{-j\Omega}\big)/T\), of magnitude \(2\sin(\Omega/2)/T\). At low frequencies \(2\sin(\Omega/2) \approx \Omega\) and the two agree, but at \(\Omega = \pi\) the true differentiator has gain \(\pi/T\) while the first difference has only \(2/T\) — an error of 36%. The first difference is a differentiator only in the bottom fraction of the band.
The second case is stranger and more useful. Consider a delay of \(\Delta\) sampling periods, where \(\Delta\) need not be an integer. The wanted analogue system is \(H_{\text{eff}}(j\omega) = e^{-j\omega\Delta T}\), so \(H(e^{j\Omega}) = e^{-j\Omega\Delta}\), and the impulse response is a shifted sinc.
When \(\Delta\) is an integer the sinc's zeros land on every sample but one and the filter degenerates to a shift, as it must. When \(\Delta\) is fractional no such collapse occurs and the response is infinite and non-causal — because "delay by half a sample" is a statement about the underlying continuous waveform, not about the list of numbers. There is no half-way position between two entries of an array; there is a perfectly definite half-way position on the band-limited curve those entries define, and the sinc filter computes it. Fractional delays of this kind are how a beamformer steers an array, how a digital audio workstation aligns two tracks recorded at slightly different offsets, and how a timing-recovery loop nudges a receiver's sampling instant.
The Mirror Problem
The converters can be arranged the other way round: a sequence in, D/C to make a waveform, an analogue system, then C/D to make a sequence again. This arrangement is rarely built — nobody converts to analogue in order to filter and converts back — but it is analytically valuable, because it is how one gives meaning to the phrase "the continuous-time system equivalent to this digital filter", and it is the tidiest derivation of the fractional-delay result just quoted.
The algebra runs in the same three steps with the roles exchanged. The D/C output is band-limited to \(|\omega| \lt \pi/T\) by construction, so the final C/D can never alias, and no hypothesis is needed this time — the equivalence is unconditional.
Only the values of \(H_c\) below the Nyquist frequency are used; whatever the analogue prototype does above \(\pi/T\) is irrelevant, since no signal in the chain has energy there.
Setting \(H_c(j\omega) = e^{-j\omega \Delta T}\) reproduces the fractional delay in a line. Setting \(H_c(j\omega) = j\omega\) reproduces the differentiator. The construction is a definition-maker: any analogue operation whose response is known can be transported into the discrete domain by reading it on the compressed axis \(\omega = \Omega/T\).
There is a catch, and it is the reason this is not the standard filter-design method. Real analogue prototypes — a Butterworth lowpass, a Chebyshev bandpass — are not band-limited. They have nonzero response above \(\pi/T\), and the recipe above simply ignores it, which is the same as inserting a brick-wall filter that the prototype did not have. Two repairs are in common use. Impulse invariance sets \(h[n] = T\,h_c(nT)\), sampling the prototype's impulse response, and consequently aliases the prototype's tail back into the band — acceptable for lowpass designs with fast roll-off, useless for highpass. The bilinear transform instead substitutes \(s = \frac{2}{T}\frac{1-z^{-1}}{1+z^{-1}}\), which maps the entire \(j\omega\) axis onto the unit circle exactly once and so cannot alias at all, at the cost of warping the frequency axis nonlinearly. Both belong to a filter-design course; the machinery they rest on — the mapping between the \(s\)-plane and the \(z\)-plane — is built in Chapter 23.
Downsampling and Decimation
Once a signal is a sequence, its sampling rate becomes something a program can change. The two elementary operations are removing samples and inserting them, and each has a characteristic effect on the spectrum that must be understood before either can be used safely.
Downsampling by an integer factor \(M\) keeps every \(M\)th sample and discards the rest.
Since the result is what a slower converter would have produced, one already knows what to expect: replicas every \(2\pi\) in the new variable are replicas every \(2\pi/M\) in the old one, so the danger of overlap is \(M\) times greater. The derivation makes this precise, and the trick is to reach the answer without leaving the discrete domain. Define an intermediate sequence \(x_p[n]\) which keeps the retained samples in place and zeroes the others,
The second form of the comb is the finite geometric sum: for \(n\) a multiple of \(M\) every term is 1 and the average is 1, while otherwise the \(M\) unit vectors are equally spaced around the circle and cancel. Multiplying by \(e^{j2\pi kn/M}\) shifts a DTFT by \(2\pi k/M\), so
Removing the intervening zeros is a pure re-indexing which stretches the frequency axis by \(M\): since \(x_d[n] = x_p[nM]\) and every nonzero sample of \(x_p\) survives, \(X_d(e^{j\Omega}) = X_p(e^{j\Omega/M})\). Substituting gives the result.
The original spectrum is stretched by \(M\), scaled by \(1/M\), and superposed with \(M-1\) shifted copies of itself. If \(X(e^{j\Omega}) = 0\) for \(\pi/M \le |\Omega| \le \pi\), the copies do not overlap and nothing is lost.
The remedy is the same one Chapter 21 prescribed for the analogue sampler: filter first. A digital lowpass of cutoff \(\pi/M\) placed ahead of the downsampler guarantees the condition, at the cost of deliberately discarding the band from \(\pi/M\) to \(\pi\). The cascade of that filter with the downsampler is called a decimator, and the word "decimation" in the literature always implies the filter; a bare downsampler with no filter is an invitation to aliasing.
The efficiency argument is worth noting. It appears wasteful to compute a filtered value at every input sample and then throw \(M-1\) out of every \(M\) away, and it is: a polyphase implementation computes only the outputs that will be kept, dividing the arithmetic by \(M\) with no change to the result. That reorganisation is standard in multirate design and rests on nothing more than writing the convolution sum with its indices grouped modulo \(M\).
Upsampling and Interpolation
The opposite operation inserts \(L-1\) zeros between consecutive samples. The result is a sequence at \(L\) times the rate carrying the same information, and — importantly — one whose spectrum requires no approximation to describe.
The derivation is a single substitution: only the indices \(n = mL\) contribute to the transform sum, and \(e^{-j\Omega n}\) becomes \(e^{-j\Omega Lm}\). No aliasing can occur and no information can be lost, because nothing has been thrown away — a fact that makes upsampling the safe half of rate conversion.
What has happened instead is that the frequency axis has been compressed by \(L\). A spectrum that occupied \((-\pi, \pi)\) now occupies \((-\pi/L, \pi/L)\), and the \(2\pi\)-periodic repetitions that used to sit outside the interval have been pulled inside it. There are now \(L-1\) unwanted copies — images — within a single period, and they are precisely what makes the zero-stuffed sequence sound and look wrong: the staircase of zeros is high-frequency junk.
The expander followed by this lowpass is called an interpolator. The passband gain must be \(L\), not 1, because the filter must fill in the inserted zeros rather than merely pass what is there.
The gain \(L\) is easy to justify without appealing to energy arguments. The impulse response of the ideal image-rejection filter is \(h[n] = \sin(\pi n/L)/(\pi n/L)\), a sinc stretched by \(L\), whose value at \(n=0\) is exactly 1 and which is zero at every other multiple of \(L\). Convolving \(x_e\) with it therefore leaves the original samples untouched at positions \(n = mL\) and fills the gaps with the band-limited curve through them. The DTFT of that sequence is \(L\) in the passband — so the gain is not a normalisation chosen for convenience but the value that makes \(x_i[mL] = x[m]\) hold exactly.
Cheaper interpolators replace the ideal sinc with something short. Holding each sample for \(L\) output instants is the discrete zero-order hold, \(h[n] = 1\) for \(0 \le n \le L-1\); joining the samples by straight lines is the triangular kernel \(h[n] = 1 - |n|/L\) for \(|n| \le L\), which is the discrete twin of the analogue linear interpolator. Both are poor image rejecters — Chapter 21's droop analysis applies verbatim, since the triangle is the convolution of two rectangles and so has a \(\operatorname{sinc}^2\) response — but both are so cheap that they are used constantly in graphics and in coarse rate changes.
Rational Rate Change and the Oversampled Converter
Integer factors are rarely what practice demands. A studio recording at 48 kHz must be issued on a compact disc at 44.1 kHz; a codec running at 8 kHz must feed a system running at 16 kHz; a software radio must move between whatever rate the hardware provides and whatever rate the demodulator wants. All of these are rational ratios, and any rational ratio can be realised by an interpolator followed by a decimator.
Two details make this work. The first is that the expander must come before the compressor. Downsampling first would discard information that the subsequent upsampling could never restore; upsampling first is lossless, so the pair in that order preserves everything the final rate can carry. The second is that the two filters the cascade appears to need — an anti-image lowpass at \(\pi/L\) and an anti-alias lowpass at \(\pi/M\) — sit back to back at the same rate and therefore merge into one, whose cutoff is the more restrictive of the two.
The intermediate rate can be alarming. Converting 44.1 kHz to 48 kHz needs \(L/M = 48/44.1 = 480/441 = 160/147\), so the signal passes through a nominal rate of \(160 \times 44.1 = 7.056\) MHz. Nothing is actually computed at that rate: the expander's output is mostly zeros, the filter's multiplications by those zeros are skipped, and the decimator's discarded outputs are never formed. A polyphase structure reduces the work to roughly one filter's worth of arithmetic per output sample, which is the only reason such conversions are routine.
The chapter closes by redeeming a promise made at the end of Chapter 21. The analogue anti-aliasing filter ahead of a converter must pass the signal band and reject everything from \(f_s - f_M\) upwards, and at rates barely above Nyquist that transition is so narrow that only a high-order elliptic design will do — expensive, phase-distorting, and drifting with temperature. Oversampling removes the problem by moving it. Sample at \(K f_s\) instead of \(f_s\); the first replica now begins at \(Kf_s - f_M\), so the analogue filter's transition band is enormous and a simple second-order design suffices. The sharp filtering is then done digitally, at \(\Omega_c = \pi/K\), and the sequence is decimated by \(K\) to the wanted rate.
The second gain is a bonus. Quantisation noise of power \(q^2/12\) is spread uniformly over \(\pm Kf_s/2\); the decimation filter keeps only the fraction \(1/K\) of that band, so the in-band noise falls by \(10\log_{10}K\) dB — 3 dB, or half a bit, for every doubling of the rate.
The same argument runs backwards at the output. Chapter 21 computed the compact-disc reconstruction problem as a transition ratio of \((44.1-20)/20 = 1.205\), which demanded ninth-order elliptic analogue filters in the first generation of players. Four-times oversampling — interpolate the stored samples by 4 with a digital filter, then convert at 176.4 kHz — turns that ratio into \((176.4-20)/20 = 7.82\) and reduces the analogue filter to something a single op-amp will build. The impossible analogue problem has been traded for an easy digital one, which is a fair summary of what the whole chapter is for.
What has been assumed throughout is that the discrete-time systems in these diagrams can be designed, analysed and checked for stability. For finite-length filters that is straightforward; for the recursive filters that do most of the work economically it is not, and the tool that makes it possible is the subject of Chapter 23. Chapter 26 will then supply the algorithms that make the arithmetic fast.
Worked Examples
Problem. An ideal discrete-time lowpass filter has unity gain for \(|\Omega| \lt 0.3\pi\) and zero gain elsewhere. (a) What analogue cutoff frequency does it realise at \(f_s = 8\) kHz, and at \(f_s = 44.1\) kHz? (b) With \(f_s = 8\) kHz, find the output for \(x_c(t) = \cos(2\pi\,1000\,t) + \cos(2\pi\,3000\,t)\).
Solution (a). Use \(f = \Omega f_s/(2\pi)\). At 8 kHz, \(f_c = 0.3\pi \times 8000/(2\pi) = 0.15 \times 8000 = 1200\) Hz. At 44.1 kHz, \(f_c = 0.15 \times 44100 = 6615\) Hz. The coefficients are identical; the filters are not.
Solution (b). First check the band limit. The highest input component is at 3000 Hz and the Nyquist frequency is 4000 Hz, so \(3000 \lt 4000\) and no aliasing occurs — the effective-system result applies. Map each component:
The first component lies in the passband and is reproduced exactly; the second lies in the stopband and is removed. Hence \(y_c(t) = \cos(2\pi\,1000\,t)\). Equivalently: \(H_{\text{eff}}\) is an ideal analogue lowpass at 1200 Hz, which passes 1 kHz and stops 3 kHz.
Problem. Keep the filter and the rate of Example 1, but let the input be \(x_c(t) = \cos(2\pi\,7000\,t)\). Find the output, and explain why the result proves the overall chain is not an LTI system.
Solution. The band limit is violated: 7000 Hz exceeds the Nyquist frequency of 4000 Hz, so Section 22-3 does not apply and the sampler must be handled directly. The samples are
using \(\cos(-\theta)=\cos\theta\) at the last step. The sequence is identical to the one a 1 kHz tone would have produced. Since \(0.25\pi \lt 0.3\pi\) the filter passes it untouched, and the D/C converter — which can only produce frequencies below \(\pi/T\) — reconstructs it as
A 7 kHz input has produced a 1 kHz output. Chapter 8 established that an LTI system responds to a sinusoid with a sinusoid of the same frequency, scaled and shifted; a system that changes frequency cannot be LTI. The linearity survives — doubling the input still doubles the output — but time-invariance does not, because shifting the input by, say, \(T/4\) shifts the sampling instants relative to the waveform and yields a different sequence than a mere shift would give. This is the precise sense in which "aliasing breaks the equivalence".
Problem. A chain runs at \(f_s = 4\) kHz with the ideal differentiator \(H(e^{j\Omega}) = j\Omega/T\), \(|\Omega| \lt \pi\). Verify that it differentiates \(x_c(t) = \cos(2\pi\,600\,t)\) correctly, and evaluate the first three samples of its impulse response.
Solution. Here \(T = 250\ \mu\text{s}\), and the input frequency maps to \(\Omega_0 = 2\pi(600)(250\times 10^{-6}) = 0.3\pi\), comfortably inside the band. The effective response at that frequency is
and \(j\omega_0 = j2\pi(600) = j\,3769.9\) — they agree, as the construction guarantees. The output is therefore \(y_c(t) = 1200\pi\cos(2\pi 600 t + \pi/2) = -1200\pi\sin(2\pi\,600\,t)\), which is exactly \(dx_c/dt\).
For the impulse response, \(h[n] = (-1)^n/(nT)\) with \(1/T = 4000\):
with \(h[-n] = -h[n]\). The alternating signs and \(1/n\) decay are the signature of the sharp corner in \(H\) at \(\Omega = \pi\); truncating the response to a finite window softens that corner, which is why practical differentiators specify a band over which they are accurate rather than claiming the whole \((-\pi,\pi)\).
Problem. Find the impulse response of the ideal half-sample delay and tabulate \(h[-1]\) through \(h[2]\). Confirm that it does nothing when the input is constant.
Solution. Put \(\Delta = 1/2\) in \(h[n] = \sin(\pi(n-\Delta))/(\pi(n-\Delta))\). Since \(\sin(\pi n - \pi/2) = -\cos(\pi n) = -(-1)^n\) and \(\pi(n-\tfrac12) = \pi(2n-1)/2\),
Evaluating: \(h[-1] = 2(+1)/(\pi(-3)) = -0.2122\); \(h[0] = 2(-1)/(\pi(-1)) = 2/\pi = 0.6366\); \(h[1] = 2/\pi = 0.6366\); \(h[2] = -2/(3\pi) = -0.2122\). The response is symmetric about \(n = \tfrac12\), which is what a delay of half a sample must look like, and it decays only as \(1/n\).
For a constant input the output is \(\sum_n h[n]\), which is \(H(e^{j0}) = e^{-j0\cdot\Delta} = 1\). So a constant passes through unchanged — correct, since delaying a constant does nothing. Numerically the partial sums \(0.6366, 1.2732, 1.0610, 1.1519,\dots\) creep towards 1 slowly, a reminder that this filter converges but not quickly, and that any practical version must be windowed.
Problem. A signal band-limited to 4 kHz is sampled at 20 kHz. (a) By what largest integer factor may the sequence be downsampled with no filtering and no loss? (b) If decimation by 3 is required, what must the digital lowpass do, and what is discarded?
Solution (a). The signal's highest frequency maps to
Lossless downsampling by \(M\) needs \(\Omega_M \lt \pi/M\), i.e. \(0.4\pi \lt \pi/M\), i.e. \(M \lt 2.5\). The largest integer is \(M = 2\), giving a new rate of 10 kHz — still above the 8 kHz Nyquist rate of the signal, as it must be. \(M = 3\) would give 6.67 kHz, below 8 kHz, and would alias.
Solution (b). For \(M = 3\) the filter must cut off at \(\Omega_c = \pi/3 = 0.333\pi\), which in physical terms is \(0.333\pi \times 20000/(2\pi) = 3333\) Hz. Everything between 3333 Hz and 4000 Hz is deliberately thrown away before the downsampler sees it. That is a real loss of signal — but a controlled one, and vastly preferable to the alternative, in which the same band would fold back on top of the content below 3333 Hz and corrupt it irreversibly.
Problem. Design the rate converter that takes 44.1 kHz audio to 48 kHz. Give \(L\), \(M\), the filter cutoff and gain, and the nominal intermediate rate.
Solution. The required ratio is \(48000/44100\). Reduce it: \(\gcd(48000, 44100) = 300\), so
Check: \(44100 \times 160/147 = 300 \times 160 = 48000\) — correct, and \(147 = 3\times 7^2\) shares no factor with \(160 = 2^5 \times 5\), so the fraction is in lowest terms.
Upsample by \(L = 160\), filter, downsample by \(M = 147\). The single merged filter has gain \(L = 160\) and cutoff
The anti-image requirement is the tighter one because \(L \gt M\), which is always the case when the rate is being raised. The nominal intermediate rate is \(160 \times 44100 = 7.056\) MHz, but no arithmetic is performed there: 159 of every 160 expander outputs are zero and 146 of every 147 filter outputs are discarded, so a polyphase implementation evaluates the filter once per output sample, at 48 kHz. The cutoff \(\pi/160\) corresponds to \(7.056\times10^6/320 = 22.05\) kHz, which is the Nyquist frequency of the original 44.1 kHz material — the converter cannot, and should not, invent content above it.
Chapter Summary
C/D takes \(x[n]=x_c(nT)\); D/C interpolates with sincs. Their spectral factors \(1/T\) and \(T\) cancel in the cascade.
\(H_{\text{eff}}(j\omega) = H(e^{j\omega T})\) for \(|\omega| \lt \pi/T\), zero above — provided the input is band-limited.
With aliasing the chain stays linear but stops being time-invariant: input and output frequencies can differ.
\(\Omega = \omega T = 2\pi f/f_s\), with \(\Omega=\pi\) at \(f_s/2\). Same coefficients, different filter at every rate.
\(X_d = \frac1M\sum_{k} X(e^{j(\Omega-2\pi k)/M})\). Safe only if \(\Omega_M \lt \pi/M\); otherwise lowpass first — that is decimation.
\(X_e(e^{j\Omega}) = X(e^{j\Omega L})\), lossless, but with \(L-1\) images to remove by a lowpass of cutoff \(\pi/L\) and gain \(L\).
Interpolate by \(L\), then decimate by \(M\), sharing one filter of cutoff \(\min(\pi/L,\pi/M)\). Never decimate first.
Buys a gentle analogue filter and \(10\log_{10}K\) dB of quantisation-noise rejection, at the price of a digital decimator.
Practice Problems
Problems 1 to 3 exercise the frequency map and the effective-system result; 4 and 5 concern systems that exist only in this framework; 6 to 8 are multirate. In every rate-change problem, state the band limit before you state the answer.
- A digital bandpass filter passes \(0.2\pi \le |\Omega| \le 0.45\pi\). Give its passband in hertz when the chain runs at 10 kHz, and again at 32 kHz. What single change to the hardware would move the passband up by a factor of 3.2 without altering one coefficient?
- A chain with \(f_s = 10\) kHz uses an ideal digital lowpass with \(\Omega_c = 0.4\pi\). Find \(y_c(t)\) for \(x_c(t) = 2\cos(2\pi\,1500\,t) + \cos(2\pi\,4600\,t)\). Treat the two components separately and say for each whether the effective-system result may be used.
- Show that if \(H(e^{j\Omega})\) is real and even then \(H_{\text{eff}}(j\omega)\) is real and even, and hence that the effective system has zero phase. What does zero phase imply about causality, and how is the difficulty dealt with in practice?
- Starting from \(H(e^{j\Omega}) = j\Omega/T\), show that the second-difference filter \(y[n] = (x[n]-2x[n-1]+x[n-2])/T^2\) approximates a double differentiator, and compare its gain with the exact \(-\omega^2\) at \(\Omega = 0.2\pi\) and at \(\Omega = 0.8\pi\).
- Compute \(h[n]\) for a delay of \(\Delta = 1/4\) sample at \(n = 0, 1, 2\) and verify that \(\sum_n h[n] = 1\) is consistent with the response at \(\Omega = 0\).
- A sequence has \(X(e^{j\Omega}) \ne 0\) only for \(|\Omega| \lt 0.6\pi\). It is downsampled by 2 with no prefilter. Sketch the resulting spectrum, identify the aliased region, and state the range of \(\Omega\) in the downsampled sequence that is still uncorrupted.
- Design a converter from 8 kHz to 11.025 kHz: give \(L\), \(M\) in lowest terms, the filter cutoff and gain, and the nominal intermediate rate.
- An ADC is oversampled by \(K = 64\) ahead of a decimation filter. By how many decibels does the in-band quantisation noise fall, and how many extra bits of resolution does that represent? Explain why a \(\Sigma\Delta\) converter does considerably better than this figure.