?
EE Times-Asia > RF/Microwave
?
?
RF/Microwave?? Frequency domain tutorial: Understanding spectral components (Part I)

Posted: 21 Jan 2009 ?? ? Print Version ?

Keywords:components spectral? frequency discrete? signals discrete ambiguity?

One of the major obstacles engineers encounter while learning 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.

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 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 ADC (Figure 1). Figure 1: Periodic sampling of (digitizing) a continuous signal.

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 400Hz sinusoidal x(t) waveform at a sampling frequency fs = 1kHz shown in Figure 2a. The x(n) discrete-time samples from the ADC are plotted as the dots, and they're separated in time by ts = 1ms. The first three samples of the x(n) sequence are x(0) = 0, x(1) = 0.59, and x(2) = -0.95. Figure 2: Frequency-domain ambiguity shown while digitizing sinusoids whose frequencies are (a) 400Hz; (b) 1,400Hz, dashed curve; and (c) -600Hz dashed curve.

The frequency-domain ambiguity of sampled systems we're demonstrating here is illustrated in Figure 2b, where the x(n) samples would be unchanged if the ADC's analog x(t) input was a 1,400Hz sinusoid. We see another example in Figure 2c, where the continuous x(t) is a -600Hz sinusoid, again resulting in x(n) samples identical with those in Figure 2a. This means that, given the x(n) samples alone, we can't tell if the continuous x(t) sinewave's frequency was 400Hz, 1,400Hz or -600Hz. That uncertainty is what we're calling "frequency-domain ambiguity." (If the notion of negative frequency bothers you, don't worry, we'll justify that concept later. For now, we'll merely define a -600Hz sinewave as one whose phase is shifted by 180° relative to a +600Hz sinewave.)

As you might imagine, there are an infinite number of other frequencies that a sinusoidal x(t) could have and still produce the same x(n) samples in Figure 2. Those other frequencies that we'll call images having frequencies fi(k), can be identified by: 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 400Hz by an integer multiple of fs are indistinguishable from sampled values a 400Hz sinewave. A few of the images of 400Hz, when fs = 1kHz, are listed in Figure 3a. Figure 3: Examples of image frequencies of 400Hz when fs is 1kHz, (a) a few examples (b) one possible frequency-domain depiction.

When the pioneers of DSP encountered and understood this frequency-domain ambiguity, they were faced with the questions of what terminology to use in its description, and just how should discrete spectral diagrams be drawn. One common frequency-domain depiction of this situation is shown in Figure 3b, where we can say, the spectrum of our discrete x(n) sequence is an infinite set of spectral impulses periodically spaced in the frequency domain. (Mathematical proofs justifying Figure 3b are available.)

Please keep three thoughts in mind here. First, the notion that the spectrum of the discrete x(n) sequence appears to comprise an infinite set of spectral impulses does not imply that x(n) has infinite spectral energy. Those multiple impulses in Figure 3b merely indicate that x(n) could be a sampled (discrete-time) version of any one of infinitely many continuous sinewaves having different frequencies. Second, resist the temptation to call those spectral impulses harmonics. The word harmonic has a specific meaning in the analog world—related to spurious tones generated by nonlinear hardware components—that is not implied by Figure 3b. For now, let's call those frequency-domain impulses spectral replications. Third, notice that the spacing between the spectral replications is the sampling rate fs Hz, as indicated by Equation 1.

Now we are ready to make our discrete spectral diagram more complete and consistent with real-world signals by tackling the concepts of quadrature (complex) signals and negative frequency. Actually, we're forced to do this because much of DSP deals with complex numbers, such as the complex-valued (magnitude and phase) spectra of discrete time-domain sequences, the complex-valued frequency responses of digital filters and the complex-valued signals needed to build modern digital communications systems.

This is the first part of a two-part series.

Richard Lyons
Besser Associates

?
?
Webinars Visit Asia Webinars to learn about the latest in technology and get practical design tips.

?
?