Spectrum Analysis Basics -trang-2
Spectrum Analysis Basics -trang-2
The digital resolution filters used in Keysight spectrum analyzers have an effect on
sweep time that is different from the effects we’ve just discussed for analog filters. For More information:
swept analysis, the speed of digitally implemented filters, with no further processing, A more detailed
can show a two to four times improvement. discussion about fast
sweep measurements
However, the X-Series signal analyzers with Option FS1 are programmed to correct can be found in Using
for the effect of sweeping too fast for resolution bandwidths between about 3 kHz and Fast-Sweep Techniques
to Accelerate Spur
100 kHz. As a result, sweep times that would otherwise be many seconds may be
Searches – Application
reduced to milliseconds, depending upon the particular settings. See Figure 2-15. The Note, literature number
sweep time without the correction would be 79.8 seconds (2-15a). Installation of Option 5991-3739EN
FS1 would show a sweep time of 1.506 s (2-15b). For the widest resolution bandwidths,
sweep times are already very short. For example, using the formula with k = 2 on a span
of 1 GHz and a RBW of 1 MHz, the sweep time calculates to just 2 msec.
For narrower resolution bandwidths, analyzers such as the Keysight X-Series use fast
Fourier transforms (FFTs) to process the data, also producing shorter sweep times
than the formula predicts. The difference occurs because the signal being analyzed is
processed in frequency blocks, depending upon the particular analyzer. For example, if
the frequency block was 1 kHz, then when we select a 10-Hz resolution bandwidth, the
analyzer is in effect simultaneously processing the data in each 1-kHz block through 100
contiguous 10-Hz filters. If the digital processing were instantaneous, we would expect
sweep time to be reduced by a factor of 100. In practice, the reduction factor is less,
but is still significant. For more information on the advantages of digital processing, refer
to Chapter 3.
Figure 2-15a. Full span sweep speed, RBW of 20 kHz, Figure 2-15b. Full span sweep speed, RBW of 20 kHz, with
without Option FS1 Option FS1
However, there are times when we deliberately choose a resolution bandwidth wide
enough to include two or more spectral components. At other times, we have no
choice. The spectral components are closer in frequency than our narrowest bandwidth.
Assuming only two spectral components within the pass band, we have two sine waves
interacting to create a beat note, and the envelope of the IF signal varies, as shown in
Figure 2-16b, as the phase between the two sine waves varies.
t t
IF signal
Figure 2-16b. Output of the envelope detector follows the peaks of the IF signal
6. The envelope detector should not be confused with the display detectors. See “Detector types” later in this chapter.
7. A signal whose frequency range extends from zero (DC) to some upper frequency determined by the circuit elements.
Historically, spectrum analyzers with analog displays used this signal to drive the vertical deflection plates of the CRT
directly. Hence it was known as the video signal.
The envelope detector is what makes the spectrum analyzer a voltmeter. Let’s duplicate
the situation above and have two equal-amplitude signals in the pass band of the IF at
the same time. A power meter would indicate a power level 3 dB above either signal,
that is, the total power of the two. Assume that the two signals are close enough so
that, with the analyzer tuned half-way between them, there is negligible attenuation due
to the roll-off of the filter 8.
The analyzer display will vary between a value that is twice the voltage of either (6 dB
greater) and zero (minus infinity on the log scale). We must remember that the two
signals are sine waves (vectors) at different frequencies, and so they continually change
in phase with respect to each other. At some time they add exactly in phase; at another,
exactly out of phase.
So the envelope detector follows the changing amplitude values of the peaks of the
signal from the IF chain but not the instantaneous values, resulting in the loss of phase
information. This gives the analyzer its voltmeter characteristics.
Displays
Up until the mid-1970s, spectrum analyzers were purely analog. The displayed trace
presented a continuous indication of the signal envelope, and no information was lost.
However, analog displays had drawbacks. The major problem was in handling the long
sweep times required for narrow resolution bandwidths. In the extreme case, the display
became a spot that moved slowly across the cathode ray tube (CRT), with no real trace
on the display. So a meaningful display was not possible with the longer sweep times.
When digital circuitry became affordable in the mid-1970s, it was quickly put to use
in spectrum analyzers. Once a trace had been digitized and put into memory, it was
permanently available for display. It became an easy matter to update the display at a
flicker-free rate without blooming or fading. The data in memory was updated at the
sweep rate, and since the contents of memory were written to the display at a flicker-
free rate, we could follow the updating as the analyzer swept through its selected
frequency span just as we could with analog systems.
Detector types
With digital displays, we had to decide what value should be displayed for each display
data point. No matter how many data points we use across the display, each point must
represent what has occurred over some frequency range and time interval (although we
usually do not think in terms of time when dealing with a spectrum analyzer).
It is as if the data for each interval is thrown into a bucket and we apply whatever math
is necessary to extract the desired bit of information from our input signal. This datum is
put into memory and written to the display. This process provides great flexibility.
In Figure 2-17, each bucket contains data from a span and timeframe that is determined by
these equations:
The sampling rates are different for various instruments, but greater accuracy is
obtained from decreasing the span or increasing the sweep time because the number
of samples per bucket will increase in either case. Even in analyzers with digital
IFs, sample rates and interpolation behaviors are designed to be the equivalent of
continuous-time processing.
The “bucket” concept is important, as it will help us differentiate the six detector types:
• Sample
• Positive peak (also simply called peak)
• Negative peak
• Normal
• Average
• Quasipeak
One bucket
Positive peak
Sample
Negative peak
Figure 2-18. The trace point saved in memory is based on the detector type algorithm
Let’s return to the question of how to display an analog system as faithfully as possible
using digital techniques. Let’s imagine the situation illustrated in Figure 2-19. We have a
display that contains only noise and a single CW signal.
Figure 2-19. When digitizing an analog signal, what value should be displayed at each point?
Figure 2-20. Sample display mode using Figure 2-21. More points produce a display
10 points to display the signal shown in closer to an analog display
Figure 2-17
While the sample detection mode does a good job of indicating the randomness
of noise, it is not a good mode for analyzing sinusoidal signals. If we were to look
at a 100-MHz comb on a high-performance X-Series signal analyzer, we might
set it to span from 0 to 26.5 GHz. Even with 1,001 display points, each display point
represents a span (bucket) of 26.5 MHz. This is far wider than the maximum 8-MHz
resolution bandwidth.
Figure 2-22a. A 10-MHz span of a 250-kHz comb in the Figure 2-22b. The actual comb over a 10-MHz span
sample display mode using peak (positive) detection
Normal detection
To provide a better visual display of random noise than offered by peak mode and
yet avoid the missed-signal problem of the sample mode, the normal detection mode
(informally known as Rosenfell9 mode) is offered on many spectrum analyzers. Should
the signal both rise and fall, as determined by the positive peak and negative peak
detectors, the algorithm classifies the signal as noise.
In that case, an odd-numbered data point displays the maximum value encountered
during its bucket. And an even-numbered data point displays the minimum value
encountered during its bucket. See Figure 2-25. Normal and sample modes are
compared in Figures 2-23a and 2-23b.10
9. Rosenfell is not a person’s name but rather a description of the algorithm that tests to see if the
signal rose and fell within the bucket represented by a given data point. It is also sometimes
written as “rose’n’fell.”
10. Because of its usefulness in measuring noise, the sample detector is usually used in “noise
marker” applications. Similarly, the measurement of channel power and adjacent-channel power
requires a detector type that gives results unbiased by peak detection. For analyzers without
averaging detectors, sample detection is the best choice.
Figure 2-24. Normal detection displays maximum values in buckets where the
signal only rises or only falls
What happens when the resolution bandwidth is narrow, relative to a bucket? The signal
will both rise and fall during the bucket. If the bucket happens to be an odd-numbered
one, all is well. The maximum value encountered in the bucket is simply plotted as the
next data point. However, if the bucket is even-numbered, then the minimum value in the
bucket is plotted. Depending on the ratio of resolution bandwidth to bucket width, the
minimum value can differ from the true peak value (the one we want displayed) by a little
or a lot. In the extreme, when the bucket is much wider than the resolution bandwidth,
the difference between the maximum and minimum values encountered in the bucket
is the full difference between the peak signal value and the noise. This is true for the
example in Figure 2-25. See bucket 6. The peak value of the previous bucket is always
compared to that of the current bucket. The greater of the two values is displayed if
the bucket number is odd, as depicted in bucket 7. The signal peak actually occurs in
bucket 6 but is not displayed until bucket 7.
This process may cause a maximum value to be displayed one data point too far to
the right, but the offset is usually only a small percentage of the span. Some spectrum
analyzers, such as high-performance X-Series signal analyzers, compensate for this
potential effect by moving the LO start and stop frequencies.
Another type of error occurs when two peaks are displayed when only one actually
exists. Figure 2-26 shows this error. The outline of the two peaks is displayed using
peak detection with a wider RBW.
So peak detection is best for locating CW signals well out of the noise. Sample is best for
looking at noise, and normal is best for viewing signals and noise.
Figure 2-26. Normal detection can show two peaks when only one peak actually exists
While spectrum analyzers typically collect amplitude data many times in each bucket, sample
detection keeps only one of those values and throws away the rest. On the other hand, an
averaging detector uses all the data values collected within the time (and frequency) interval of a
bucket. Once we have digitized the data, and knowing the circumstances under which they were
digitized, we can manipulate the data in a variety of ways to achieve the desired results.
Some spectrum analyzers refer to the averaging detector as an rms detector when it
averages power (based on the root mean square of voltage). Keysight X-Series signal
analyzers have an average detector that can average the power, voltage or log of the
signal by including a separate control to select the averaging type:
Power (rms) averaging computes rms levels, by taking the square root of the average
of the squares of the voltage data measured during the bucket interval. This computed
voltage is squared and divided by the characteristic input impedance of the spectrum
analyzer, normally 50 ohms. Power averaging calculates the true average power, and is
best for measuring the power of complex signals.
Voltage averaging averages the linear voltage data of the envelope signal measured
during the bucket interval. It is often used in EMI testing for measuring narrowband
signals (this topic will be discussed further in the next section). Voltage averaging is also
useful for observing rise and fall behavior of AM or pulse-modulated signals such as
radar and TDMA transmitters.
Log-power (video) averaging averages the logarithmic amplitude values (dB) of the
envelope signal measured during the bucket interval. Log power averaging is best for
observing sinusoidal signals, especially those near noise.11
Thus, using the average detector with the averaging type set to power provides true
average power based upon rms voltage, while the average detector with the averaging
type set to voltage acts as a general-purpose average detector. The average detector
with the averaging type set to log has no other equivalent.
In both swept and FFT cases, the integration captures all the power information available,
rather than just that which is sampled by the sample detector. As a result, the average
detector has a lower variance result for the same measurement time. In swept analysis,
it also allows the convenience of reducing variance simply by extending the sweep time.
Quasipeak detectors (QPD) are also used in EMI testing. QPD is a weighted form of
peak detection. The measured value of the QPD drops as the repetition rate of the
measured signal decreases. Thus, an impulsive signal with a given peak amplitude
and a 10-Hz pulse repetition rate will have a lower quasipeak value than a signal with
the same peak amplitude but having a 1-kHz repetition rate. This signal weighting is
accomplished by circuitry with specific charge, discharge and display time constants
defined by CISPR13.
12. Refer to Chapter 3 for more information on the FFT analyzers. They perform math computations on
many buckets simultaneously, which improves measurement speed.
13. CISPR, the Inter national Special Committee on Radio Interference, was established in 1934 by a
group of international organizations to address radio interference. CISPR is a non-governmental group
composed of National Committees of the International Electrotechnical Commission (IEC), as well as
numerous international organizations. CISPR’s recommended standards generally form the basis for
statutory EMC requirements adopted by governmental regulatory agencies around the world.
Video filtering
Discerning signals close to the noise is not just a problem when performing EMC
tests. Spectrum analyzers display signals plus their own internal noise, as shown in
Figure 2-27. To reduce the effect of noise on the displayed signal amplitude, we often
smooth or average the display, as shown in Figure 2-28. Spectrum analyzers include a
variable video filter for this purpose. The video filter is a low-pass filter that comes after
the envelope detector and determines the bandwidth of the video signal that will later be
digitized to yield amplitude data. The cutoff frequency of the video filter can be reduced
to the point where it becomes smaller than the bandwidth of the selected resolution
bandwidth (IF) filter. When this occurs, the video system can no longer follow the more
rapid variations of the envelope of the signal(s) passing through the IF chain.
Figure 2-27. Spectrum analyzers display signal Figure 2-28. Display of Figure 2-27 after full smoothing
plus noise
14. A fourth method, called a noise marker, is discussed in Chapter 5, “Sensitivity and Noise.”
The effect is most noticeable in measuring noise, particularly when you use a wide-
resolution bandwidth. As we reduce the video bandwidth, the peak-to-peak variations
of the noise are reduced. As Figure 2-29 shows, the degree of reduction (degree of
averaging or smoothing) is a function of the ratio of the video to resolution bandwidths.
At ratios of 0.01 or less, the smoothing is very good. At higher ratios, the smoothing is
not as good. The video filter does not affect any part of the trace that is already smooth
(for example, a sinusoid displayed well out of the noise).
If we set the analyzer to positive peak detection mode, we notice two things: First, if
VBW > RBW, then changing the resolution bandwidth does not make much difference
in the peak-to-peak fluctuations of the noise. Second, if VBW < RBW, changing the
video bandwidth seems to affect the noise level. The fluctuations do not change much
because the analyzer is displaying only the peak values of the noise. However, the
noise level appears to change with video bandwidth because the averaging (smoothing)
changes, thereby changing the peak values of the smoothed noise envelope. See Figure
2-30a. When we select average detection, we see the average noise level remains
constant. See Figure 2-30b.
k(Span)
ST ≈
(RBW)(VBW)
The analyzer sets the sweep time automatically to account for video bandwidth as well
as span and resolution bandwidth.
Figure 2-30a. Positive peak detection mode: reducing video Figure 2-30b. Average detection mode: noise level
bandwidth lowers peak noise but not average noise. remains constant, regardless of VBW-to-RBW ratios
(3:1, 1:10 and 1:100).
Trace averaging
Digital displays offer another choice for smoothing the display: trace averaging. Trace
averaging uses a completely different process from the smoothing performed using the
average detector. In this case, averaging is accomplished over two or more sweeps
on a point-by-point basis. At each display point, the new value is averaged in with the
previously averaged data:
( )
Aavg = n– 1 A prior avg +
n ( 1n ) A n where
Figure 2-31. Trace averaging for 1, 5, 20 and 100 sweeps, top to bottom (trace position
offset for each set of sweeps
In many cases, it does not matter which form of display smoothing we pick. If the signal is
noise or a low-level sinusoid very close to the noise, we get the same results with either
video filtering or trace averaging.
However, there is a distinct difference between the two. Video filtering performs
averaging in real time. That is, we see the full effect of the averaging or smoothing at
each point on the display as the sweep progresses. Each point is averaged only once,
for a time of about 1/VBW on each sweep. Trace averaging, on the other hand, requires
multiple sweeps to achieve the full degree of averaging, and the averaging at each point
takes place over the full time period needed to complete the multiple sweeps.
As a result, we can get significantly different results from the two averaging methods on
certain signals. For example, a signal with a spectrum that changes with time can yield
a different average on each sweep when we use video filtering. However, if we choose
trace averaging over many sweeps, we will get a value much closer to the true average.
See Figures 2-32a and 2-32b.
Time gating
Time-gated spectrum analysis allows you to obtain spectral information about signals
occupying the same part of the frequency spectrum that are separated in the time
domain. Using an external trigger signal to coordinate the separation of these signals,
you can perform the following operations:
• Measure any one of several signals separated in time (For example, you can
separate the spectra of two radios time-sharing a single frequency.)
• Measure the spectrum of a signal in one time slot of a TDMA system
• Exclude the spectrum of interfering signals, such as periodic pulse edge transients
that exist for only a limited time
• Pulsed RF
• Time multiplexed
• Time domain multiple access (TDMA)
• Interleaved or intermittent
• Burst modulated
In some cases, time-gating capability enables you to perform measurements that would
otherwise be very difficult, if not impossible to make.
Unfortunately, a traditional spectrum analyzer cannot do that. It simply shows the Figure 2-33b. Frequency
combined spectrum, as seen in Figure 2-33b. Using the time-gating capability and an spectrum of combined
external trigger signal, you can see the spectrum of just radio #1 (or radio #2 if you signals. Which radio
produces the spurious
wish) and identify it as the source of the spurious signal shown, as in Figure 2-33c. emissions?
Time gating can be achieved using three different methods we will discuss below.
However, there are certain basic concepts of time gating that apply to any implementation.
In particular, you must have, or be able to set, the following four items:
Consider the GSM signal with eight time slots in Figure 2-35. Each burst is 0.577 ms
and the full frame is 4.615 ms. We may be interested in the spectrum of the signal
during a specific time slot. For the purposes of this example, let’s assume we are using
only two of the eight available time slots (time slots 1 and 3), as shown in Figure 2-36.
When we look at this signal in the frequency domain in Figure 2-37, we observe an
unwanted spurious signal present in the spectrum. In order to troubleshoot the problem
and find the source of this interfering signal, we need to determine the time slot in
which it is occurring.
RF signal
Gate signal
Figure 2-34. Level triggering: the spectrum analyzer Figure 2-35. A TDMA format signal (in this case, GSM)
only measures the frequency spectrum when the with 8 time slots, time slot zero is “off”.
gate trigger signal is above a certain level
• Gated FFT
• Gated LO
• Gated video
Figure 2-36. A zero span (time domain) view of Figure 2-37. Frequency domain view of the GSM signal
the GSM signal with only time slots 1 and 3 “on”. with 2 time slots “on” showing an unwanted spurious
signal present in the spectrum.
Figure 2-38. Time gating is used to look at the Figure 2-39. Spectrum of time slot 3 reveals that
spectrum of the GSM time slot 3. the spurious signal is not caused by this burst.
To get the maximum possible frequency resolution, choose the narrowest available
RBW with a capture time that fits within the time period of interest. You may not
always need that much resolution, however, and you could choose a wider RBW
with a corresponding narrower gate length. The minimum usable RBW in gated FFT
applications is always lower than the minimum usable RBW in other gating techniques,
because the IF must fully settle during the burst in other techniques, which takes longer
than 1.83 divided by RBW.
Gated LO
LO gating, sometimes referred to as gated sweep, is another technique for performing
time gating. With this method, we control the voltage ramp produced by the scan
generator to sweep the LO, as shown in Figure 2-40. When the gate is active, the LO
ramps up in frequency like any spectrum analyzer. When the gate is blocked, the voltage
out of the scan generator is frozen, and the LO stops rising in frequency. This technique
can be much faster than gated video because multiple buckets can be measured
during each burst. As an example, let’s use the same GSM signal described earlier in
this chapter.
Display logic
Figure 2-40. In gated LO mode, the LO sweeps only during gate interval
Now that you’ve seen how a classic analog spectrum analyzer works and how to use
some of the important features and capabilities, let’s take a look at how replacing some
analog circuits with digital technology improves spectrum analyzer performance.
RF
input
– ∞ dB
Reset
Gate control
Display logic
Display
Digital filters
You will find a partial implementation of digital IF circuitry in the Keysight ESA-E Series
spectrum analyzers. While the 1-kHz and wider RBWs are implemented with traditional
analog LC and crystal filters, the narrowest bandwidths (1 Hz to 300 Hz) are realized
using digital techniques.
As shown in Figure 3-1, the linear analog signal is mixed down to an 8.5-kHz IF and
passed through a bandpass filter only 1 kHz wide. This IF signal is amplified, then
sampled at an 11.3-kHz rate and digitized.
Log
21.4 MHz
Video ADC µC
Linear
8.5 kHz CF
1 kHz BW
Figure 3-1. Digital implementation of 1-, 3-, 10-, 30-, 100- and 300-Hz resolution filters in
ESA-E Series spectrum analyzers
1. Strictly speaking, once a signal has been digitized, it is no longer at an intermediate frequency, or
IF. At that point, the signal is represented by digital data values. However, we use the term “digital
IF” to describe the digital processing that replaces the analog IF processing found in traditional
spectrum analyzers.
As you will see in a moment, other spectrum and signal analyzers, such as the
Keysight X-Series analyzers, use an all-digital IF, implementing all resolution bandwidth
filters digitally.
A key benefit of the digital processing done in these analyzers is a bandwidth selectivity
of about 4:1. This selectivity is available on the narrowest filters, the ones we would
choose to separate the most closely spaced signals.
In Chapter 2, we did a filter skirt selectivity calculation for two signals spaced 4 kHz
apart, using a 3-kHz analog filter. Let’s repeat that calculation using digital filters. A
good model of the selectivity of digital filters is a near-Gaussian model:
∆f is the frequency offset from the center in Hz, and α is a parameter that controls
selectivity. α = 2 for an ideal Gaussian filter. The swept RBW filters used in Keysight
spectrum analyzers are based on a near-Gaussian model with an α value equal to 2.12,
resulting in a selectivity ratio of 4.1:1.
Entering the values from our example into the equation, we get:
[ ]
4000 2.12
H(4 kHz) = –3.01 dB x = –24.1 dB
3000/2
At an offset of 4 kHz, the 3-kHz digital filter is down –24.1 dB compared to the analog
filter which was only down –14.8 dB. Because of its superior selectivity, the digital filter
can resolve more closely spaced signals.
Let’s begin by taking a look at the block diagram of the all-digital IF in the X-Series
signal analyzer, as shown in Figure 3-2.
In this case, all 160 resolution bandwidths are digitally implemented. However, there is
some analog circuitry prior to the ADC, starting with several stages of down conversion,
followed by a pair of single-pole prefilters (one an LC filter, the other crystal-based).
A prefilter helps prevent succeeding stages from contributing third-order distortion in
the same way a prefilter would in an analog IF. In addition, it enables dynamic range
extension via autoranging. The output of the single-pole prefilter is routed to the
autorange detector and the anti-alias filter.
As with any FFT-based IF architecture, the anti-alias filter is required to prevent aliasing
(the folding of out-of-band signals into the ADC sampled data). This filter has many
poles and thus has substantial group delay.
Custom IC
Processor
Display
FFT Processing
log/lin dB/div Display
Figure 3-2. Block diagram of the all-digital IF in the Keysight X-Series signal analyzers
Figure 3-3 illustrates the sweeping behavior of the X-Series analyzers. The single-pole
prefilter allows the gain to be turned up high when the analyzer is tuned far from the
carrier. As the carrier gets closer, the gain falls and the ADC quantization noise rises.
The noise level will depend on the signal level frequency separation from the carrier,
so it looks like a step-shaped phase noise. However, phase noise is different from this
autoranging noise. Phase noise cannot be avoided in a spectrum analyzer. However,
reducing the prefilter width can reduce autoranging noise at most frequency offsets from
the carrier. Since the prefilter width is approximately 2.5 times the RBW, reducing the
RBW reduces the autoranging noise.
Amplitude
(log)
ADC
clipping threshold
Prefilter gain
Typical
analog IF Digital IF RBW response
response
Noise floor after autoranging
Typical LO phase noise
Frequency or time
Figure 3-3. Autoranging keeps ADC noise close to the carrier and lower than LO noise
or RBW filter response
For swept analysis, the filtered I and Q pairs are converted to magnitude and phase
pairs. For traditional swept analysis, the magnitude signal is video-bandwidth (VBW)
filtered and samples are taken through the display detector circuit. The log/linear display
selection and dB/division scaling occur in the processor, so a trace can be displayed on
any scale without remeasuring.
Filtering the magnitude on a linear voltage scale is desirable for observing pulsed-RF
envelope shapes in zero span. The log-magnitude signal also can be converted to a
power (magnitude squared) signal before filtering, and then it can be converted back.
Filtering the power allows the analyzer to give the same average response to signals
with noise-like characteristics, such as digital communications signals, as to CW signals
with the same rms voltage. An increasingly common measurement need is total power
in a channel or across a frequency range.
In a measurement such as this, the display points might represent the average power
during the time the LO sweeps through that point. The VBW filter can be reconfigured
into an accumulator to perform averaging on either a log, voltage or power scale.
Because of its digitally synthesized LOs and all-digital RBWs, the native frequency
accuracy of the X-Series signal analyzer is very good (0.1% of span). In addition, the
X-Series signal analyzer includes a frequency counter that observes not just zero
crossings, but also the change in phase. Thus, it can resolve frequency to the tens-of-
millihertz level in 0.1 second. With this design, the ability to resolve frequency changes
is not limited by the spectrum analyzer, but rather is determined by the noisiness of the
signal being counted.
Finally, with no analog reference-level-dependent gain stages, there is no “IF gain” error
at all. The sum of all these improvements means that the all-digital IF makes a quantum
improvement in spectrum analyzer accuracy. It also allows you to change analyzer
settings without significantly impacting measurement uncertainty. We will cover this
topic in more detail in the next chapter.