A10 · Lesson 7 · The spectrum
The same signal, seen as a list of frequencies
A scope shows a signal as voltage against time. A spectrum analyzer shows the same signal as amplitude against frequency: one vertical line per sinusoid it contains. Some questions are hard in one view and obvious in the other. Is this amplifier adding distortion? Will this clock signal interfere with the radio next to it? How much bandwidth does this pulse need? Engineers switch views constantly.
Play
- The signal is a pulse train at 1 kHz: high for a fraction of each period. The top panel is time and the bottom is frequency.
- Make the pulses narrower. What happens to the spacing between the lines? To the shape of their tops?
- Where is the first frequency with no line at all? Compare it with .
Predict
A 1 kHz pulse train has pulses 0.2 ms wide. Where is the first null in its spectrum, the first frequency with nothing in it?
5 kHz, which is one over the pulse width. The lines are always 1 kHz apart, set by the period, but their heights follow an envelope shaped like , which first reaches zero at . Narrower pulses push that null higher: short pulses need wide bandwidth. That's the time-bandwidth tradeoff of lesson 13, seen early.
Name it
Reading a spectrum
Line spectra. A periodic signal with period contains only the frequencies with , so its spectrum is a row of lines spaced apart. The amplitude spectrum plots at each ; the phase spectrum plots . Most of the time engineers look only at the amplitudes.
One-sided and two-sided. The complex form puts at and its conjugate at . A two-sided spectrum is symmetric, with half-height lines on both sides of zero. Instruments show the one-sided version, with only positive frequencies.
The envelope of a pulse train. For pulses of height and width repeating every , the line heights follow
The function is called . It's 1 at zero and first reaches zero at , so the first null is at . The period sets the line spacing; the pulse width sets the envelope.
Decibels on spectra. Harmonics are often tiny compared with the fundamental, so spectra are drawn in dB. A harmonic's level relative to the fundamental is quoted in dBc (dB relative to the carrier): . A square wave's 3rd harmonic is at dBc.
Distortion. A perfect amplifier fed a pure sine puts out a pure sine. A real one adds harmonics. Total harmonic distortion compares them with the fundamental:
Good audio amplifiers manage well under 0.1%.
Worked example
Pulses of 5 V, 0.1 ms wide, repeat every 1 ms. Describe the spectrum.
Show the solution
- The line spacing. The pulses repeat every 1 ms, so there are lines every kHz.
- The DC level.
- The fundamental.
- The missing harmonics. The envelope's first null is at kHz, so the 10th harmonic is missing, as are the 20th and 30th.
Answer lines every 1 kHz, with 0.5 V of DC, a 0.984 V fundamental, and no 10th, 20th or 30th harmonic.
Worked example
An amplifier puts out a 10 V fundamental with a 0.2 V 2nd harmonic and a 0.1 V 3rd. What is its THD, and the 2nd harmonic's level in dBc?
Show the solution
- The THD.
- The 2nd harmonic in dBc.
Answer the THD is 2.24%, and the 2nd harmonic is at dBc.
Worked example
A pulse train has 25% duty. Which harmonics are missing?
Show the solution
- The envelope. The harmonic amplitudes follow with .
- Find its zeros. That's zero whenever is a whole number: Every fourth harmonic vanishes.
- In general. A duty cycle of removes every th harmonic. A 50% square wave, with , loses all the even ones.
Answer every fourth harmonic is missing: the 4th, 8th, 12th and so on.
Check
A periodic signal repeats every 2 ms. How far apart are the lines in its spectrum?
Write units the way you normally would: 1.5 Hz, 1500 mHz and 0.0015 kHz are the same answer.
Check
An amplifier's output has a 2 V fundamental, a 0.02 V 2nd harmonic and a 0.06 V 3rd harmonic. What is its THD?
Check
A pulse train has pulses 0.2 µs wide. Where is the first null in its spectrum envelope?
Write units the way you normally would: 1.5 MHz, 1500 kHz and 0.0015 GHz are the same answer.
Check
How far below the fundamental is a square wave's 5th harmonic, in dBc?
Check
On a two-sided spectrum, a cosine of amplitude 4 V at 1 kHz appears as what?
Check
A pulse train at 1 kHz has duty .
(a)
What is the lowest missing harmonic's frequency?
Write units the way you normally would: 1.5 kHz, 1500 Hz and 0.0015 MHz are the same answer.
Check
An amplifier's output has harmonics of , and .
Step 1
What is its THD?
Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.
Step 2
How far below the fundamental is the 2nd harmonic, in dB?
Explain why
Why does a periodic signal's spectrum contain only lines at multiples of , and nothing in between?
A signal that repeats every T can only be built from sinusoids that also repeat every T, otherwise the sum wouldn't come back to the same shape after one period. A sinusoid repeats every T only if a whole number of its cycles fits into T, which means its frequency is a whole-number multiple of . So those are the only frequencies that can appear.
Practice
Keep practicing
8 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.