Spectrum Analyzer and Spectrum Analysis: Shimshon Levy October 2012
Spectrum Analyzer and Spectrum Analysis: Shimshon Levy October 2012
Spectrum Analyzer and Spectrum Analysis: Shimshon Levy October 2012
Shimshon Levy
October 2012
CONTENTS
1.1 Objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.2 Necessary Background: . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.3 Prelab Exercise . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.3.1 Problem 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.3.2 Problem-2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.3.3 Problem-3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.3.4 Problem-4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.4 References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.5 Background Theory -Frequency and Time Domain . . . . . . . . . . . 6
1.6 Spectrum Analyzer Block Diagram and Theory of Operation . . . . . 6
1.7 Input Section . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1.7.1 LPF or Preselector (Tunable BPF) . . . . . . . . . . . . . . . 8
1.8 Mixer and Local oscillator. . . . . . . . . . . . . . . . . . . . . . . . . 8
1.9 IF (Intermediate Frequency) Filter and Selectivity . . . . . . . . . . . 8
1.10 Envelope detector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
1.11 Video Filter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
1.12 Sensitivity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2 Experiment Procedure 12
2.1 Required Equipment . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.2 Reading Amplitude and Frequency . . . . . . . . . . . . . . . . . . . 12
2.2.1 Setting the Reference Level and Center Frequency. . . . . . . 13
2.2.2 Setting the Frequency Span. . . . . . . . . . . . . . . . . . . . 13
2.2.3 Using Marker to Read Frequency and Amplitude. . . . . . . . 13
2.3 Resolving Two Signals of Equal Amplitude . . . . . . . . . . . . . . . 13
2.3.1 Simulation of Resolving Two Signals of Equal Amplitude . . . 13
2.3.2 Measurement of Resolving Two Signals of Equal Amplitude . 14
2.3.3 Notice! . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
2.4 Shape Factor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
2.4.1 Simulation of Shape Factor- Butterworth Band Pass Filter. . . 15
2.4.2 Measurement the Shape Factor of IF BPF . . . . . . . . . . . 16
CONTENTS 2
2.5 Measuring Signals using Logarithmic and Linear mode, Absolute and
Relative Quantities. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
2.5.1 Simulation of a Squarewave in Frequency Domain . . . . . . . 17
2.5.2 Squarerave Measurement . . . . . . . . . . . . . . . . . . . . . 18
2.6 Measuring Frequency Response of LPF . . . . . . . . . . . . . . . . . 19
2.6.1 Simulation of LPF . . . . . . . . . . . . . . . . . . . . . . . . 19
2.6.2 Measurement of LPF . . . . . . . . . . . . . . . . . . . . . . . 20
2.6.3 Setting the spectrum analyzer . . . . . . . . . . . . . . . . . . 20
2.7 Measuring Signal To Noise Ratio of Low-Level Signal. . . . . . . . . . 21
2.8 Measuring a Signal Very Close to the Noise Floor . . . . . . . . . . . 21
2.9 Final Report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Chapter 1
1.1 Objectives
Upon completion of the experiment the student will:
Amplitude(V)
Rise time
Fall time
time(sec)
-1
Fig. 1 Time domain of 100kHz, amplitude 1 volt, rise time 20nsec. squarewave
A ’rule of thumb’is to consider the fastest transition time of the signal, the rise
time
0:5
BW = within 20% accuracy (1.1)
Tr
0:65
BW = within 10% accuracy (1.2)
Tr
0:95
BW = within 3% accuracy (1.3)
Tr
1.3.2 Problem-2
Fourier transform of a squarewave- Using Matlab, draw a graph of repetitive
100kHz squarewave (10 periods) in time domain. Use FFT command to draw a
frequency domain graph(magnitude only), use FFT shift command, and
further adaptation to show a graph, similar to an analytic graph.
1. (a) Use the graph to indicate the amplitude (v) and frequency of the …rst,
third, …fth, and seventh harmonics.
References 5
1.3.3 Problem-3
Block diagram of a Spectrum Analyzer-Draw a block diagram of a spectrum
analyzer, and explain brie‡y each of the following blocks (Attenuator,ampli…er,LPF,
IF …lter, envelope detector, video …lter, display, LO, Ramp generator).
1.3.4 Problem-4
Shape factor of a Gaussian …lter-The voltage of a gaussian shape …lter is given
by !
1 (f f0 )2
V (f ) = p exp (1.4)
2 2 2
where f0 is the center frequency of the …lter, and is the standard deviation. In
probability theory is the standard deviation (About 68% of values drawn from
a normal distribution are within one standard deviation, ). Electrical engineering
consider the envelope of the curve.
Assume that the the center frequency is 10MHz, and the -3dB bandwidth of the …lter
is 1MHz.
1. (a) Use Eq. (4) to …nd the standart deviation of the …lter (-3dB is related to
the power V 2 (f ) ).
(b) Use Eq. (4) to …nd the -60dB bandwidth of the …lter, and the shape factor
of the …lter
60dB Bandwidth
Shape factor
3dB Bandwidth
0.6
-3dB
0.5
Amplitude(V)
0.4
0.3
0.2 a
0.1
0.0
5 6 7 8 9 10 11 12 13 14 15
Frequencv(MHz)
Figure problem 4
1.4 References
1. ROBERT A. WITTE "Spectrum and Network Measurements" . New Jersy ,
Prentice Hall,1991
Background Theory -Frequency and Time Domain 6
1
sin[ 2π (2n − 1) f 0 ]
Amplitude(v)
2n − 1
time
1
sin(2π 7 f 0 )
71
sin(2π 5 f 0 )
5 +
1
sin(2π 3 f 0 )
3
1sin(2π 1 f 0 )
Amplitude(v)
frequency
Figure 2 shows a squarewave signal in both time and frequency domains. The
frequency domain display plots the amplitude versus the frequency of each sine wave
in the spectrum, while the time domain shows, true amplitude versus time. Does this
mean we have no need to perform both domain measurements? Not at all. Some
measurement can be made only in the time domain. For example, pulse rise and fall
times, overshoot, and ringing, while other measurements like harmonics content, can
be made only in frequency domain.
mixes with a signal from the local oscillator (LO). 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 di¤erences of the original frequencies and their harmonics. If any
of the mixed signals falls within the passband of the intermediate-frequency
(IF) …lter, it is further processed. It is essentially recti…ed by the envelope detector,
digitized, and displayed. A ramp generator creates the horizontal movement across
the display from left to right. The ramp also tunes the LO so that its frequency
change is in proportion to the ramp voltage.
IF Envelope Video
LPF
Attenuator Mixer Filter Detector Filter
Amp
BPF
Pre-
selector
Input section
LO VCO
Ramp
CRT
References Generator
Display
oscillator
time
Large Attenuator
signal As required Amp. 0dB
Amplitude(v)
time
If the signal level is too large, the analyzer circuits will saturate the mixer and distort
the signal, causing distortion products to appear along with the desired signal. If the
Mixer and Local oscillator. 8
signal level is too small, the signal may be masked by noise present in the analyzer.
Either problem tends to reduce the dynamic range of the measurement.
1.7.1 LPF or Preselector (Tunable BPF)
The low-pass …lter blocks high frequency signals from reaching the mixer. This stage
prevents out-of-band signals from mixing with the local oscillator and creating un-
wanted responses at the IF
Attenuator
Desired signal 0dB Amp. as LPF
Amplitude(v)
required
time
+
Amplitude(v)
time
Tunable BPF
High frequency Interfere signal
Ramp
1sin[2π 1( f 0 − f Lo )]
References
Generator
oscillator
also called a Resolution Bandwidth (RB, RBW) of the analyzer, and can be changed
via the front panel of the analyzer. By giving you a broad range of variable resolu-
tion bandwidth settings, the instrument can be optimized for the sweep and signal
conditions, letting you trade-o¤ frequency selectivity (the ability to resolve signals),
signal-to-noise ratio (SNR), and measurement speed.
IF
Bandwidth
Display
-5
Frequency
Positive peak
detector
tector modes that dramatically e¤ect how the signal is displayed. Ordinary spectrum
analyzer use peak-detection technic. Video Filter
The video …lter is a low-pass …lter that is located after the envelope detector
and before the ADC. This …lter determines the bandwidth of the video ampli…er, and
is used to average or smooth the trace seen on the screen as shown in …gure . The
spectrum analyzer displays signal-plus-noise so that the closer a signal is to the noise
level, the more the noise makes the signal more di¢ cult to read. By changing the
video bandwidth setting, we can decrease the peak-to-peak variations of noise. This
type of display smoothing can be used to help …nd signals that otherwise might be
obscured in the noise
The VBW, however, does not e¤ect the frequency resolution of the analyzer
(as does the resolution bandwidth …lter), and therefore changing the video …lter does
not improve sensitivity. It does, however, improve discernibly and repeatability of
low signal-to-noise ratio measurements.
1.12 Sensitivity
One of the primary uses of a spectrum analyzer is to search out and measure low-level
signals. The sensitivity of any receiver is an ability to detects small signals. A perfect
receiver would add no additional noise to the natural amount of thermal noise present
in all electronic systems, represented by
N = kT B
where N is the noise power, k is Boltzman’s constant, T is a temperature in
Kelvin degree, and B is the bandwidth of the system in Hz. In practice, all receivers,
including spectrum analyzers, add some amount of internally generated noise.
20dB 10dB
Attemuatiom Attemuatiom
Span
Spectrum Analyzer Agilent-N9320
Spectrum Analyzer
Reference
Level
power
CAL OUT RF IN
Probe
Frequency
Center Frequency
2. Turn on the spectrum analyzer by pressing on ON switch, Wait for the power-
up process to complete.
3. Activate the calibration signal by pressing on Preset System button, Align-
ment, Align, CAL OUT on. The calibration signal will be appeared on the
screen.
Resolving Two Signals of Equal Amplitude 13
4. Increase BWpass of the …lter to 300kHz and explain why one signals are now
visible.
5. Explain if you change the order of the …lter, you improve the ability of spec-
trum analyzer to resolve two signal of equal amplitude, prove your answer by
simulation.
+
CAL OUT RF IN
Probe
20.000,000 kHz
Freq Amp Offset
2. Set one function generator to frequency 10 MHz amplitude -20dBm. Set the
second function generator to frequency 10.1 MHz amplitude -20dBm.
3. On the spectrum analyzer press Preset System. Set the center frequency
to 10 MHz, the span to 3 MHz, and the resolution bandwidth to 300 kHz by
pressing, Frequency 10 MHz, SPAN 3 MHz, Then BW Avg to 300 kHz.
A single peak is visible.
4. Since the resolution bandwidth must be less than or equal to the frequency
separation of the two signals, a resolution bandwidth of 100 kHz must be used.
Change the resolution bandwidth to 100 kHz by pressing BW/Avg 100 kHz.
Two signals are now visible as indicated Figure 15 Save the data on mag-
netic media (CSV format). Use the knob or step keys to further reduce the
resolution bandwidth and span to better resolve the signals Save the data on
magnetic media.
Shape Factor 15
dip
Amplitude (Linear)
0.95 0.96 0.97 0.98 0.99 1 1.01 1.02 1.03 1.04 1.05
Frequency (x107Hz)
2.3.3 Notice!
As the resolution bandwidth is decreased, resolution of the individual signals is im-
proved and the sweep time is increased.
5. Set the SPAN 1 MHz Then BW/Avg to 100 kHz.
6. Change the vertical scale to 3dB/division by pressing AMPLITUDE,
SCALE/DIV 3 dB, set the trace near the top of the graticule by pressing AM-
PLITUDE, Ref Level , -20 dBm
7. Verify that the two signal have the same amplitude (change amplitude if
necessary) Measure the depth of the ’dip’between the two signals, by using PEAK
SEARCH and MARKER, Delta On Save the data on magnetic media.
S-PARAM ETERS
S_Param
SP1
Start= 9 . 0 M H z
Stop= 1 1 M H z
Step= 1 0 . 0 kH z
BPF_Butterworth
BPF1
Fcenter= 1 0 M H z
P_1 Tone BWpass= 1 0 0 . 0 kH z Term
PO RT1 Apass= 3 . 0 1 0 3 dB Term2
N um= 1 BWstop= N um= 2
Z= 5 0 O hm Astop= Z= 5 0 O hm
P= polar( dbmtow( 0 ) , 0 ) StopType= open
Freq= 1 GH z M axRej=
N= 3
I L= 0 dB
Q u= 1 E3 0 8
Z1 = 5 0 O hm
Z2 = 5 0 O hm
Temp=
-10 Y(Hz)
-20
Amplitude(dB)
-50
X(Hz)
-60
-70
-80
0.95 1 1.05
Frequency (Hz) x 10
7
4. Use the MARKER Delta function to measure the -60 dB bandwidth of the
IF …lter, using the data calculate the shape factor (-60dB/-3dB bandwidth) of
the 100 kHz BW …lter. Save the data on magnetic media (CSV format).
Tran HarmonicBalance
Tran1 HB1
StopTime= 2.0 usec Freq[ 1] = 1.0 M Hz
M axTimeStep= 50 nsec O rder[ 1] = 10
Vout
Term
Vf_Pulse Term2
SRC1 N um= 2
Vpeak= 2 V Z= 50 O hm
Vdc= -1 V
Freq= 1 M Hz
Width= 0.5 usec
Rise= 1 nsec
Fall= 1 nsec
Delay= 0 nsec
Weight= no
Harmonics= 16
(a) Fill Table-1, and explain why the even harmonics disappear in linear mode
Absolute Measurement
Harmonics Frequency(MHz) Amplitude(dBm) Amplitude(mv)
First
Second
Third
Table -1
(b) Explain why the time domain squarewave graphs of the two simulator are
not identical?
CAL OUT RF IN
Probe
Figure 19 Setup for measuring signals, logarithmic and linear mode, and Minimum
and Maximum hold measurement
2. Set the Function Generator to Square wave Frequency 1 MHz Amp 1 Vpp.
3. Set the Spectrum Analyzer to center frequency 1 MHz and Span to 10 MHz
. By pressing FREQUENCY 1 MHz, then SPAN 10MHz.
4. Use the Marker function to identify the frequency and amplitude of the …rst …ve
harmonics, by pressing .PEAK SEARCH, Start with …rst harmonics, +1MHz
and …ll Table-2.
Measuring Frequency Response of LPF 19
Absolute Measurement
Harmonics Frequency(MHz) Amplitude(dBm) Amplitude(mv)
First
Second
Third
Fourth
Fifth
Table -2
5. Measure the relative Amplitude and Frequency di¤erence between the odd har-
monics, and …ll the relevant columns of Table -3. Compare the result to simu-
lation. Save the data on magnetic media
Relative Measurement
Harmonics Frequency Amplitude Amplitude Matlab Simulation
(No) di¤erence (MHz) di¤erence(dB) di¤erence(%) Result
First-Third
Third-Fifth
Table -3
AC
AC Vout
AC1 LPF_Butterworth
Start= 1 0 0 . 0 kHz LPF1
Term
Stop= 2 0 . 0 M Hz P_1 Tone Fpass= 1 . 9 M Hz
Term2
Step= 1 0 . 0 kHz PO RT1 Apass= 3 . 0 1 0 3 dB
N um= 2
N um= 1 Fstop= 1 . 2 GHz Z= 5 0 O hm
Z= 5 0 O hm Astop= 2 0 dB
P= polar( dbmtow( 0 ) , 0 ) StopType= open
Freq= 1 GHz M axRej=
N= 3
I L= 0 dB
Q u= 1 E3 0 8
Z1 = 5 0 O hm
Z2 = 5 0 O hm
Temp=
2. Draw a graph of the …lter response, use marker delta function, to …nd the
stopband slope of the …lter, dB/octave and dB/decade.
3. Explain if you increase the order of the …lter to N=5,the stopband slope of the
…lter, dB/octave, decrease or increase? proove your answer by simulation.
2. Set the function generator to sweeper by setting, sweep mode, start frequency
100Hz and stop frequency 10MHz. Press Sweep, Start 100Hz, Stop 10MHZ.
2. Press VIEW/TRACE then MAX HOLD . now you see the maximum of
the measured signal (see Fig.-17).
Maximum
Hold trace
Amp.
CAL RF IN
RF Iout
LF out
Probe
2. Draw a graph of the 1 MHz IF …lter, use the record data of the …lter, …nd
the Shape factor of the IF …lter. compare the calculated and measured Shape
factor.
3. Using the Measurement result of "Measuring Signal Very Close to the Noise
Floor", paragraph …nd the noise …gure of the spectrum analyzer