A107 of 28
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

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 D 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 1/(pulse width).

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?

Name it

Reading a spectrum

Line spectra. A periodic signal with period T contains only the frequencies 0,f0,2f0,3f0,… with f0=1/T, so its spectrum is a row of lines spaced f0 apart. The amplitude spectrum plots An at each nf0; the phase spectrum plots φn. Most of the time engineers look only at the amplitudes.

One-sided and two-sided. The complex form puts cn=An/2 at +nf0 and its conjugate at −nf0. 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 A and width τ repeating every T, the line heights follow

An=2AτT|sin⁡(πnf0τ)πnf0τ|

The function sin⁡(πx)/(πx) is called sinc(x). It's 1 at zero and first reaches zero at x=1, so the first null is at f=1/τ. 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): 20log10⁡(An/A1). A square wave's 3rd harmonic is at 20log10⁡(1/3)=−9.5 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:

THD=A22+A32+A42+⋯A1

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
  1. The line spacing. The pulses repeat every 1 ms, so there are lines every f0=1 kHz.
  2. The DC level. AτT=5V×0.11=0.5V
  3. The fundamental. A1=2AτTsinc(0.1)=1×0.984=0.984V
  4. The missing harmonics. The envelope's first null is at 1/τ=10 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
  1. The THD. THD=0.22+0.1210=2.24%
  2. The 2nd harmonic in dBc. 20log10⁡0.210=−34.0dBc

Answer the THD is 2.24%, and the 2nd harmonic is at −34.0 dBc.

Worked example

A pulse train has 25% duty. Which harmonics are missing?

Show the solution
  1. The envelope. The harmonic amplitudes follow |sin⁡(πnd)πn| with d=0.25.
  2. Find its zeros. That's zero whenever nd is a whole number: n=4,8,12,… Every fourth harmonic vanishes.
  3. In general. A duty cycle of 1/m removes every mth harmonic. A 50% square wave, with m=2, 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 1/4.

(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 V1, V2 and V3.

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°.

Explain why

Why does a periodic signal's spectrum contain only lines at multiples of 1/T, and nothing in between?

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.