Professional Documents
Culture Documents
Domain, Part 1
By Richard Lyons
This series is drawn from the course "DSP Made Simple for
Engineers." For more information, see
http://www.besserassociates.com/outlinesOnly.asp?CTID=27
–π –π/2 0 π/2 π
The problem
One of the major obstacles engineers encounter while learning digital
signal processing (DSP) is understanding how spectral components are
defined and illustrated in the frequency domain. When people begin to
read DSP literature they encounter strange new terminology describing
discrete spectra such as folding frequency, aliasing, orthogonal,
images, Nyquist, spectral replications, and negative frequency. Typical
DSP spectral diagrams initially seem peculiar because they often show
negative frequency spectral components and what appear to be replicated
spectral components.
Making matters worse for the inquisitive engineer, various DSP
authors use different, and sometimes puzzling, notation in labeling
frequency axis in their spectral plots; often the frequency dimension of
hertz is not used at all in discrete spectral diagrams. For example,
many university DSP textbooks actually label the discrete frequency-axis
covering a range from –π to +π! The perplexing frequency-domain
terminology and notation originate from a kind of frequency ambiguity
inherent in discrete (sampled) systems and the fact that in DSP we
sometimes describe all signals as if they were complex-valued (with real
and imaginary parts). Understanding the differences between analog and
discrete spectra is one of the reasons DSP has the reputation of being
difficult to learn. Fortunately several books have been published that
ease the engineer's burden of learning DSP.[1–3]
For our short journey to understanding the mathematics and notation
of discrete spectra we start by discussing the frequency-domain
ambiguity associated with discrete signals, and arrive at our
destination of understanding the subtle aspects, the notation, and the
language of the discrete frequency domain of DSP. However, as we proceed
we'll make briefs stops to review complex signals, negative frequency,
and discrete spectrum analysis using the fast Fourier transform (FFT).
Frequency-domain ambiguity
We begin by reviewing the source of one unpleasant aspect of sampled-
data systems: the frequency-domain ambiguity that exists when we
digitize a continuous (analog) signal x(t) with an analog-to-digital
(A/D) converter as shown in Figure 1.
Continuous x(t) A/D x(n)
Converter Computer
[Coax cable] [Ribbon cable]
Squarewave whose
Clock frequency is fs Hz.
Generator
This process samples the continuous x(t) signal to produce the x(n)
sequence of binary words that are stored in the computer for follow-on
processing. (Variable 'n' is a dimensionless integer that we use as our
independent time-domain index in DSP, just as the letter 't' is used in
continuous-time equations.) The x(n) sequence represents the voltage of
x(t) at periodically spaced instants in time, and so we call the Figure
1 process "periodic sampling." We’ll designate the time period between
samples as ts, measured in seconds, and define it as the reciprocal of
the sampling frequency fs, i.e., ts = 1/fs. In the literature of DSP the
fs sampling frequency is given the dimensions of ‘samples/second’, but
sometimes we indicate its dimension as Hz because fs shows up on the
frequency axis of our spectral diagrams.
Looking at an example, consider the effect of sampling a 400 Hz
sinusoidal x(t) waveform at a sampling frequency fs = 1 kHz shown in
Figure 2(a). The x(n) discrete-time samples from the A/D converter are
plotted as the dots, and they’re separated in time by ts = 1
millisecond. The first three samples of the x(n) sequence are x(0) = 0,
x(1) = 0.59, and x(2) = –0.95.
400 Hz 1400 Hz
1 x(1) 1
0 0
x(0)
–1 –1
0 1 2 3 4 5 Time 0 1 2 3 4 5 Time
(ms) (ms)
ts = 1/fs (a) (b)
-600 Hz
1
–1
0 1 2 3 4 5 Time
(ms)
(c)
where k is an integer, and the 'i' subscript means image. Equation (1)
tells us that, in the world of DSP, sampled values of any continuous
sinewave whose frequency differs from 400 Hz by an integer multiple of
fs are indistinguishable from sampled values a 400 Hz sinewave. A few of
the images of 400 Hz, when fs = 1 kHz, are listed in Figure 3(a).
k f i (k)
Plot of fi(k) frequencies.
... ...
–2 –1600 Hz
–1 –600 Hz
... ...
0 400 Hz
1 1400 Hz
–2 –1 0 1 2 Freq
2 2400 Hz (kHz)
(fs )
... ...
(a) (b)
REFERENCES
[1] S. Smith, The Scientist and Engineer's Guide to Digital Signal
Processing, http://www.dspguide.com/.