Communication Systems · Lab 4 · read before the labAll labsGo to the lab →

The message rides on the carrier. Its shape is the envelope.

Ten minutes of reading. Move the sliders, then the code and the models of the lab will read like plain sentences.

01

Why modulate

Modulation changes a property of a high frequency carrier (its amplitude, frequency or phase) so that it follows a low frequency message. A voice signal of a few kilohertz cannot leave an antenna of a sensible size, and many stations sending their voices at once would all sit on top of each other. Moving each message to its own carrier frequency solves both problems: the antenna is short compared with the wavelength, and every station has its own slot in the spectrum.

Antenna size. An antenna works well when it is about a quarter of a wavelength long. At 3 kHz that is 25 km; at 1 MHz it is 75 m.
02

The AM signal

AM signals(t) = Ac[1 + m cos 2πfmt] cos 2πfctthe envelope follows the message
Spectrumfc, fc − fm, fc + fma carrier and two sidebands
BandwidthB = 2fmtwice the message bandwidth

Multiply out the brackets: Ac cos 2πfct + (mAc/2) cos 2π(fc − fm)t + (mAc/2) cos 2π(fc + fm)t. Three lines: the carrier, and a lower and an upper sideband, each of height m/2 times the carrier. In decibels the sidebands are 20 log10(2/m) below the carrier: 6.02 dB at m = 1 and 12.04 dB at m = 0.5. The block diagram in mathematical form is a summer (1 + m·x) followed by a multiplier with the carrier.

Message faster than the carrier. Set fm above fc. The lower sideband fc − fm becomes negative and folds back to fm − fc; the envelope no longer looks like the message and an envelope detector cannot recover it. The carrier must be much faster than the message.
03

The modulation index

Indexm = Am / Acmessage peak over carrier peak
From the envelopem = (Emax − Emin)/(Emax + Emin)read on the Scope
PowerP = Pc(1 + m²/2)at most one third in the sidebands

With m below 1 the envelope 1 + m cos 2πfmt stays above zero and is an exact copy of the message: a simple diode envelope detector gets the message back. At m = 1 (100 %) the envelope just touches zero. Above 1 the signal is over modulated: the envelope would go negative, the carrier phase flips by 180°, and the envelope detector returns a clipped, distorted message. Over modulation also adds extra lines and widens the spectrum, so the station spills into its neighbours. Move m in the demo above past 1 to see it.

04

DSB-SC and SSB

DSB-SCx(t) cos 2πfctno carrier line, all power in the sidebands
SSB (lower)x cos 2πfct + x̂ sin 2πfctx̂ is the Hilbert transform of x
SSB (upper)x cos 2πfct − x̂ sin 2πfcthalf the bandwidth of DSB

The carrier line of AM carries no information. Leave out the 1 and the product x·c is double sideband suppressed carrier: in Simulink, set the Constant of the AM model to 0. Both sidebands carry the same information, so one of them is enough: single sideband keeps one and halves the bandwidth. The phasing method (the SSB model of this lab) builds it from two products: for a tone, cos a cos b − sin a sin b = cos(a + b), the upper sideband alone.

ammod and ssbmod. In MATLAB, ammod(x,Fc,Fs) returns x·cos 2πFct, which is a DSB-SC signal. ssbmod(x,Fc,Fs) returns the lower sideband; ssbmod(x,Fc,Fs,0,'upper') the upper one.
05

The Spectrum Analyzer

The Spectrum Analyzer block (DSP System Toolbox) estimates the power spectrum of its input and plots it in dBm: decibels relative to 1 mW, into 1 ohm. A sine of amplitude A has a power of A²/2 W, so amplitude 1 reads 10 log10(500) = 26.99 dBm. The RBW (resolution bandwidth, 50 Hz in this lab) sets how close two lines may be and still look separate.

Peak Finder (in the Measurements menu of the analyzer) lists the highest peaks with their frequency and power, so the difference between the carrier and a sideband can be read directly.

Model settings. Every model in this lab runs with a fixed step of 5e-6 s (200 kHz) and a stop time of 0.5 s. The step must be short compared with the period of the highest frequency, and the run long enough for the analyzer to average.
06

In the virtual lab

Scripts (.m)
Open the file→Move the sliders→Run→Read the figure→Add to report
the sliders are the boxed numbers in the code; Copy code gives the code with your values for real MATLAB
Model (.slx)
Open the model→Click a block→Type the parameters→OK→Run→Scope or Spectrum Analyzer
parameters are typed as in Simulink (2*pi*1000); the windows show the last run until you press Run again

In guided mode each step ticks itself when it is really done: the right file open, the right values set, the script or the simulation run, the value read and typed. Free mode leaves you alone with every file. The report keeps each figure with the values that made it.

07

What you should see

FileSettingsResult
am_ssbFc = 10 Hz, a 1 Hz sineDSB: lines at 9 and 11 Hz; SSB: one line at 9 Hz
sine_spectrum.slx1 kHz, amplitude 1one line at 1 kHz, 26.99 dBm
multiply.slxx times x, km = 1output 0 to 1 V; lines at 0 and 2 kHz; with a Bias also 1 kHz
dsbsc.slx1 kHz times 10 kHzlines at 9 and 11 kHz, no line at 10 kHz
am.slxm = 0.5, fc = 5 kHzcarrier at 5 kHz, sidebands at 4 and 6 kHz, 12 dB lower
task1_am, task1_ssbm = 1 and 0.5; SSBsidebands of height 0.5 and 0.25; SSB one line at 4 kHz
task2_ssb.slxphasing, signs +−one line at 6 kHz; with ++ at 4 kHz
task3_twotone, task3_twotone_sl1 and 2 kHz on 10 kHz5 lines: 8, 9, 10, 11 and 12 kHz
08

Check yourself

Q1Why do we modulate a message onto a carrier?

Modulation changes one property of a high frequency carrier (its amplitude, frequency or phase) in step with a slow message. This makes a short antenna possible, lets many users share the spectrum by giving each one its own carrier, and puts the signal in a band that suits the channel.

Q2How does amplitude modulation change the carrier, and what does its spectrum look like?

The amplitude of a fixed frequency carrier follows the message: s(t) = Ac[1 + m·x(t)] cos 2πfc t. The outline of the wave (its envelope) is a copy of the message. The spectrum holds the carrier and two sidebands, so the bandwidth is twice that of the message.

Q3How do an Add block and a Product block make an AM wave?

The Add block forms k + m(t), and the Product block multiplies the result by the carrier c(t). With k = 1, m(t) = m cos 2πfm t and c(t) = cos 2πfc t the output is (1 + m cos 2πfm t) cos 2πfc t. Setting k = 0 leaves only the product, which is DSB-SC.

Q4What happens when the message frequency is higher than the carrier frequency?

In time, the carrier completes less than one cycle for each message cycle, so there is no smooth outline to follow and an envelope detector cannot recover the message. In frequency, the lower sideband fc − fm is negative and folds back to fm − fc, so the sidebands are no longer symmetric about the carrier and may overlap the message band.

Q5What do the waveform and spectrum look like when the carrier is much faster than the message?

In time, the carrier fills the envelope with many cycles and the envelope is a clean copy of the message (for m ≤ 1). In frequency, the carrier line stands at fc with the two sidebands close to it at fc ± fm, far from 0 Hz and from each other. This is the normal operating condition of AM.

Q6Compare the waveforms and the sidebands at m = 0.5 and m = 1.

At m = 0.5 the envelope swings between 0.5 and 1.5 times the carrier amplitude and never reaches zero, and the sidebands are 12 dB below the carrier. At m = 1 the envelope swings from 0 to 2 and touches zero once per message cycle, the sidebands are 6 dB below the carrier, and they hold the largest share of power possible without distortion (one third of the total).

Q7What is over modulation, and why does it spoil detection?

Over modulation means m > 1: the message peak is larger than the carrier, so 1 + m·x goes negative. The carrier phase reverses there and the envelope becomes |1 + m·x|, which is no longer the message. An envelope detector then returns a clipped, distorted message, and the extra harmonics spread the spectrum into neighbouring channels.

I am ready, go to the lab →