Spectrum Analysis Basics - Trang-1
Spectrum Analysis Basics - Trang-1
• Authored the original edition of the Spectrum Analysis Basics application note and
contributed to subsequent editions
• Helped launch the 8566/68 spectrum analyzers, marking the beginning of
modern spectrum analysis, and the PSA Series spectrum analyzers that set new
performance benchmarks in the industry when they were introduced
• Inspired the creation of Blake Peterson University––required training for all engineering
hires at Keysight
1. Jean Baptiste Joseph Fourier, 1768-1830. A French mathematician and physicist who discovered
that periodic functions can be expanded into a series of sines and cosines.
2. If the time signal occurs only once, then T is infinite, and the frequency representation is a
continuum of sine waves.
Theoretically, to make the transformation from the time domain to the frequency domain,
the signal must be evaluated over all time, that is, over infinity. However, in practice, we
always use a finite time period when making a measurement.
You also can make Fourier transformations from the frequency to the time domain.
This case also theoretically requires the evaluation of all spectral components over
frequencies to infinity. In reality, making measurements in a finite bandwidth that
captures most of the signal energy produces acceptable results. When you perform a
Fourier transformation on frequency domain data, the phase of the individual components
is indeed critical. For example, a square wave transformed to the frequency domain and
back again could turn into a sawtooth wave if you do not preserve phase.
What is a spectrum?
So what is a spectrum in the context of this discussion? A spectrum is a collection
of sine waves that, when combined properly, produce the time-domain signal under
examination. Figure 1-1 shows the waveform of a complex signal. Suppose that we
were hoping to see a sine wave. Although the waveform certainly shows us that the
signal is not a pure sinusoid, it does not give us a definitive indication of the reason why.
Figure 1-2 shows our complex signal in both the time and frequency domains. The
frequency-domain display plots the amplitude versus the frequency of each sine wave
in the spectrum. As shown, the spectrum in this case comprises just two sine waves.
We now know why our original waveform was not a pure sine wave. It contained a
second sine wave, the second harmonic in this case. Does this mean we have no need
to perform time-domain measurements? Not at all. The time domain is better for many
measurements, and some can be made only in the time domain. For example, pure
time-domain measurements include pulse rise and fall times, overshoot and ringing.
of the carrier signal that might interfere with other systems operating at the same
frequencies as the harmonics. Engineers and technicians are also very concerned about
distortion of the message modulated onto a carrier.
Figure 1-2.
Third-order intermodulation (two tones of a complex signal modulating each other) can
be particularly troublesome because the distortion components can fall within the band
of interest, which means they cannot be filtered away.
Figures 1-3 through 1-6 show some of these measurements on an X-Series signal analyzer.
Figure 1-3. Harmonic distortion test of a transmitter Figure 1-4. GSM radio signal and spectral mask
showing limits of unwanted emissions
This application note will give you insight into your particular spectrum or signal analyzer
and help you use this versatile instrument to its maximum potential.
In later chapters, we will look at the capabilities and advantages that digital circuitry
brings to spectrum analysis. Chapter 3 discusses digital architectures used in spectrum
analyzers available today.
Because the mixer is a non-linear device, its output includes not only the two
original signals, but also their harmonics and the sums and differences of the
original frequencies and their harmonics. If any of the mixed signals falls within the
pass band of the intermediate-frequency (IF) filter, it is further processed (amplified
and perhaps compressed on a logarithmic scale). It is essentially rectified by
the envelope detector, filtered through the low-pass filter and displayed. A ramp
generator creates the horizontal movement across the display from left to right. The
ramp also tunes the LO so its frequency change is in proportion to the ramp voltage.
RF input
attenuator Log Envelope
Mixer IF gain IF filter amp detector
Input
signal
Pre-selector, or Video
low-pass filter filter
Local
oscillator
Reference
oscillator
Sweep
generator Display
The output of a spectrum analyzer is an X-Y trace on a display, so let’s see what
information we get from it. The display is mapped on a grid (graticule) with 10 major
horizontal divisions and generally 10 major vertical divisions. The horizontal axis is
linearly calibrated in frequency that increases from left to right. Setting the frequency is
a two-step process. First we adjust the frequency at the centerline of the graticule with
the center frequency control. Then we adjust the frequency range (span) across the full
10 divisions with the frequency span control. These controls are independent, so if we
change the center frequency, we do not alter the frequency span. Alternatively, we can
set the start and stop frequencies instead of setting center frequency and span. In either
case, we can determine the absolute frequency of any signal displayed and the relative
frequency difference between any two signals.
The vertical axis is calibrated in amplitude. You can choose a linear scale calibrated in
volts or a logarithmic scale calibrated in dB. The log scale is used far more often than the
linear scale because it has a much wider usable range. The log scale allows signals as far
apart in amplitude as 70 to 100 dB (voltage ratios of 3200 to 100,000 and power ratios of
10,000,000 to 10,000,000,000) to be displayed simultaneously.
Now, let’s turn our attention back to the spectrum analyzer components diagramed in
Figure 2-1.
RF attenuator
The first part of our analyzer is the RF input attenuator. Its purpose is to ensure the
signal enters the mixer at the optimum level to prevent overload, gain compression and
distortion. Because attenuation is a protective circuit for the analyzer, it is usually set
automatically, based on the reference level. However, manual selection of attenuation is
also available in steps of 10, 5, 2, or even 1 dB. The diagram in Figure 2-3 is an example
of an attenuator circuit with a maximum attenuation of 70 dB in increments of 2 dB.
0 to 70 dB, 2 dB steps
RF input
Amplitude
reference
signal
The blocking capacitor is used to prevent the analyzer from being damaged by a DC
signal or a DC offset of the signal being viewed. Unfortunately, it also attenuates low-
frequency signals and increases the minimum useable start frequency of the analyzer
to 9 kHz, 100 kHz or 10 MHz, depending on the analyzer.
We need to pick an LO frequency and an IF that will create an analyzer with the desired
tuning range. Let’s assume that we want a tuning range from 0 to 3.6 GHz. We then
need to choose the IF. Let’s try a 1-GHz IF. Because this frequency is within our desired
tuning range, we could have an input signal at 1 GHz. The output of a mixer also
includes the original input signals, so an input signal at 1 GHz would give us a constant
output from the mixer at the IF. The 1-GHz signal would thus pass through the system
and give us a constant amplitude response on the display regardless of the tuning of the
LO. The result would be a hole in the frequency range at which we could not properly
examine signals because the amplitude response would be independent of the LO
frequency. Therefore, a 1-GHz IF will not work.
Instead, we choose an IF that is above the highest frequency to which we wish to tune.
In the Keysight X-Series signal analyzers that can tune to 3.6 GHz, the first LO frequency
range is 3.8 to 8.7 GHz, and the IF chosen is about 5.1 GHz.
If we start the LO at the IF (LO minus IF = 0 Hz) and tune it upward from there to
3.6 GHz above the IF, we can cover the tuning range with the LO minus IF mixing
product. Using this information, we can generate a tuning equation:
Then we would apply the numbers for the signal and IF in the tuning equation2:
fsig f f LO f
f LO– f sig f LO + fsig
Freq range of analyzer Freq range of LO
A
f LO f
Figure 2-4. The LO must be tuned to fIF + f sig to produce a response on the display
The ramp generator controls both the horizontal position of the trace on the display and
the LO frequency, so we can now calibrate the horizontal axis of the display in terms of
the input signal frequency.
We are not quite through with the tuning yet. What happens if the frequency of the
input signal is 9.0 GHz? As the LO tunes through its 3.8- to 8.7-GHz range, it reaches
a frequency (3.9 GHz) at which it is the IF away from the 9.0-GHz input signal. At this
frequency we have a mixing product that is equal to the IF, creating a response on the
display. In other words, the tuning equation could just as easily have been:
This equation says that the architecture of Figure 2-1 could also result in a tuning range
from 8.9 to 13.8 GHz, but only if we allow signals in that range to reach the mixer.
2. In the text, we round off some of the frequency values for simplicity, although the exact
values are shown in the figures.
In summary, we can say that for a single-band RF spectrum analyzer, we would choose
an IF above the highest frequency of the tuning range. We would make the LO tunable
from the IF to the IF plus the upper limit of the tuning range and include a low-pass filter
in front of the mixer that cuts off below the IF.
To separate closely spaced signals (see “Resolving signals” later in this chapter), some
spectrum analyzers have IF bandwidths as narrow as 1 kHz; others, 10 Hz; still others,
1 Hz. Such narrow filters are difficult to achieve at a center frequency of 5.1 GHz, so we
must add additional mixing stages, typically two to four stages, to down-convert from
the first to the final IF. Figure 2-5 shows a possible IF chain based on the architecture of
a typical spectrum analyzer.
However,
Simplifying the tuning equation by using just the first IF leads us to the same answers.
Although only passive filters are shown in figure 2-5, the actual implementation includes
amplification in the narrower IF stages.
Sweep
generator
Display
Figure 2-5. Most spectrum analyzers use two to four mixing steps to reach the final IF.
Most RF spectrum analyzers allow an LO frequency as low as, and even below, the
first IF. Because there is finite isolation between the LO and IF ports of the mixer, the
LO appears at the mixer output. When the LO equals the IF, the LO signal itself is
processed by the system and appears as a response on the display, as if it were an
input signal at 0 Hz. This response, the LO feedthrough, can mask very low-frequency
signals, so not all analyzers allow the display range to include 0 Hz.
IF gain
Referring back to Figure 2-1, we see the next component of the block diagram is a
variable gain amplifier. It is used to adjust the vertical position of signals on the display
without affecting the signal level at the input mixer. When the IF gain is changed, the
value of the reference level is changed accordingly to retain the correct indicated value
for the displayed signals. Generally, we do not want the reference level to change when
we change the input attenuator, so the settings of the input attenuator and the IF gain
are coupled together.
A change in input attenuation will automatically change the IF gain to offset the effect
of the change in input attenuation, thereby keeping the signal at a constant position on
the display.
Resolving signals
After the IF gain amplifier, we find the IF section, which consists of the analog or digital
resolution bandwidth (RBW) filters, or both.
Analog filters
Frequency resolution is the ability of a spectrum analyzer to separate two input sinusoids
into distinct responses. Fourier tells us that a sine-wave signal only has energy at one
frequency, so we should not have any resolution problems. Two signals, no matter
how close in frequency, should appear as two lines on the display. But a closer look
at our superheterodyne receiver shows why signal responses have a definite width on
the display.
Two signals must be far enough apart or the traces they make will fall on top of each
other and look like only one response. Fortunately, spectrum analyzers have selectable
resolution (IF) filters, so it is usually possible to select one narrow enough to resolve
closely spaced signals.
Keysight data sheets describe the ability to resolve signals by listing the 3-dB bandwidths
of the available IF filters. This number tells us how close together equal-amplitude
sinusoids can be and still be resolved. In this case, there will be about a 3-dB dip
between the two peaks traced out by these signals. See Figure 2-7. The signals can be
closer together before their traces merge completely, but the 3-dB bandwidth is a good
rule of thumb for resolution of equal-amplitude signals3.
Figure 2-6. As a mixing product sweeps past the IF filter, the filter shape is traced on the display
3. If you experiment with resolution on a spectrum analyzer using the normal (rosenfell) detector
mode (See “Detector types” later in this chapter) use enough video filtering to create a
smooth trace. Otherwise, you will see smearing as the two signals interact. While the smeared
trace certainly indicates the presence of more than one signal, it is difficult to determine the
amplitudes of the individual signals. Spectrum analyzers with positive peak as their default
detector mode may not show the smearing effect. You can observe the smearing by selecting
the sample detector mode.
More often than not, we are dealing with sinusoids that are not equal in amplitude. The
smaller sinusoid can actually be lost under the skirt of the response traced out by the
larger. This effect is illustrated in Figure 2-8. The top trace looks like a single signal, but
in fact represents two signals: one at 300 MHz (0 dBm) and another at 300.005 MHz
(–30 dBm). The lower trace shows the display after the 300-MHz signal is removed.
Another specification is listed for the resolution filters: bandwidth selectivity (or
selectivity or shape factor). Bandwidth selectivity helps determine the resolving power
for unequal sinusoids. For Keysight analyzers, bandwidth selectivity is generally
specified as the ratio of the 60-dB bandwidth to the 3-dB bandwidth, as shown in
Figure 2-9. The analog filters in Keysight analyzers are a four-pole, synchronously tuned
design, with a nearly Gaussian shape4. This type of filter exhibits a bandwidth selectivity
of about 12.7:1.
For example, what resolution bandwidth must we choose to resolve signals that differ by
4 kHz and 30 dB, assuming 12.7:1 bandwidth selectivity?
4. Some older spectrum analyzer models used five-pole filters for the narrowest resolution bandwidths to
provide improved selectivity of about 10:1. Modern designs achieve even better bandwidth selectivity
using digital IF filters.
f0 is given by RBW
2 √ 21/N –1
For our example, N = 4 and ∆f = 4000. Let’s begin by trying the 3-kHz RBW filter.
First, we compute f0:
3000
f0 = = 3448.44
2 √ 2¼ –1
This is not enough to allow us to see the smaller signal. Let’s determine H(∆f) again
using a 1-kHz filter:
1000
f0 = = 1149.48
2 √ 2¼ –1
Thus, the 1-kHz resolution bandwidth filter does resolve the smaller signal, as illustrated
in Figure 2-10.
Digital filters
Some spectrum analyzers use digital techniques to realize their resolution bandwidth
filters. Digital filters can provide important benefits, such as dramatically improved
bandwidth selectivity. The Keysight PSA and X-Series signal analyzers implement all
resolution bandwidths digitally. Other analyzers, such as the Keysight ESA-E Series,
take a hybrid approach, using analog filters for the wider bandwidths and digital filters
for bandwidths of 300 Hz and below. Refer to Chapter 3 for more information on
digital filters.
Residual FM
The instability and residual FM of the LOs in an analyzer, particularly the first LO, often
determine the minimum usable resolution bandwidth. The unstable YIG (yttrium iron
garnet) oscillator used in early analyzers typically had a residual FM of about 1 kHz.
Because this instability was transferred to any mixing product involving the LO, there
was no point in having resolution bandwidths narrower than 1 kHz because it was
impossible to determine the cause of any instability on the display.
However, modern analyzers have dramatically improved residual FM. For example,
residual FM in Keysight high-performance X-Series signal analyzers is nominally
0.25 Hz; in PSA Series analyzers, 1 to 4 Hz; and in ESA Series analyzers, 2 to 8 Hz.
This allows bandwidths as low as 1 Hz in many analyzers, and any instability we see
on a spectrum analyzer today is due to the incoming signal.
All are frequency or phase modulated by random noise to some extent. As previously
noted, any instability in the LO is transferred to any mixing products resulting from the
LO and input signals. So the LO phase noise modulation sidebands appear around any
spectral component on the display that is far enough above the broadband noise floor
of the system (Figure 2-11). The amplitude difference between a displayed spectral
component and the phase noise is a function of the stability of the LO. The more stable
the LO, the lower the phase noise. The amplitude difference is also a function of the
resolution bandwidth. If we reduce the resolution bandwidth by a factor of 10, the level
of the displayed phase noise decreases by 10 dB5.
The shape of the phase noise spectrum is a function of analyzer design, in particular, the
sophistication of the phase-lock loops employed to stabilize the LO. In some analyzers,
the phase noise is a relatively flat pedestal out to the bandwidth of the stabilizing loop.
In others, the phase noise may fall away as a function of frequency offset from the
signal. Phase noise is specified in terms of dBc (dB relative to a carrier) and normalized
to a 1-Hz noise power bandwidth. It is sometimes specified at specific frequency
offsets. At other times, a curve is given to show the phase noise characteristics over a
range of offsets.
5. The effect is the same for the broadband noise floor (or any broadband noise signal).
See Chapter 5, “Sensitivity and Noise.”
Today’s spectrum or signal analyzers, such as Keysight’s X-Series, allow you to select
different LO stabilization modes to optimize the phase noise for different measurement
conditions. For example, high-performance X-Series signal analyzers offer three
different modes:
• Optimize phase noise for frequency offsets < 140 kHz from the carrier. In this mode,
the LO phase noise is optimized for the area close in to the carrier at the expense
of phase noise beyond 140-kHz offset.
• Optimize phase noise for frequency offsets > 160 kHz from the carrier. This mode
optimizes phase noise for offsets above 160 kHz away from the carrier.
• Optimize LO for fast tuning. When this mode is selected, LO behavior compromises
phase noise at all offsets from the carrier below approximately 2 MHz. This mode
minimizes measurement time and allows the maximum measurement throughput
when changing the center frequency or span.
Figure 2-12a. Phase noise performance can be Figure 2-12b. Detail of the 140-kHz carrier offset region
optimized for different measurement conditions
In any case, phase noise becomes the ultimate limitation in an analyzer’s ability to
resolve signals of unequal amplitude. As shown in Figure 2-13, we may have determined
that we can resolve two signals based on the 3-dB bandwidth and selectivity, only to
find that the phase noise covers up the smaller signal.
Resolution comes into play because the IF filters are band-limited circuits that require
finite times to charge and discharge. If the mixing products are swept through them
too quickly, there will be a loss of displayed amplitude, as shown in Figure 2-14. (See
“Envelope detector,” later in this chapter, for another approach to IF response time.) If
we think about how long a mixing product stays in the pass band of the IF filter, that
time is directly proportional to bandwidth and inversely proportional to the sweep in Hz
per unit time, or:
RBW (RBW)(ST)
Time in pass band = = Span
Span/ST
Where
On the other hand, the rise time of a filter is inversely proportional to its bandwidth, and
if we include a constant of proportionality, k, then:
k
Rise time =
RBW
If we make the terms equal and solve for sweep time, we have:
k (RBW)(ST)
=
RBW Span
k (Span)
or ST =
RBW2
For the synchronously-tuned, near-Gaussian filters used in many analog analyzers, the
value of k is in the 2 to 3 range.
Spectrum analyzers automatically couple sweep time to the span and resolution
bandwidth settings. Sweep time is adjusted to maintain a calibrated display. If the need
arises, we can override the automatic setting and set sweep time manually. If you set a
sweep time shorter than the maximum available, the analyzer indicates that the display
is uncalibrated with a “Meas Uncal” message in the upper-right part of the graticule.