Main
Main
Contents
1 Week 1 3
1.1 Linear Modulation . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.2 Review of Mathematical Tools . . . . . . . . . . . . . . . . . . . 4
2 Week 2 7
2.1 DSBSC-AM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.2 Demodulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.3 Frequency Translation/Shifting (Mixing) . . . . . . . . . . . . . . 8
3 Week 3 9
3.1 Frequency Division Multiplexing . . . . . . . . . . . . . . . . . . 9
3.2 FDM Demultiplexing . . . . . . . . . . . . . . . . . . . . . . . . . 9
3.3 Quadrature Amplitude Modulation . . . . . . . . . . . . . . . . . 10
3.4 QAM Demodulation . . . . . . . . . . . . . . . . . . . . . . . . . 10
4 Week 4 11
4.1 Noise . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
4.2 White Noise . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
4.3 Bandpass Noise . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
4.4 Demodulation in Noisy Channel . . . . . . . . . . . . . . . . . . . 12
5 Week 5 14
5.1 Phase Modulation . . . . . . . . . . . . . . . . . . . . . . . . . . 14
5.2 Frequency Modulation . . . . . . . . . . . . . . . . . . . . . . . . 15
5.3 Single Tone Modulation . . . . . . . . . . . . . . . . . . . . . . . 15
5.4 Narrow-Band FM . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
5.5 Wide-Band FM . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
6 Week 6 18
6.1 Bandwidth of FM signals . . . . . . . . . . . . . . . . . . . . . . 18
6.2 Generation of FM signals . . . . . . . . . . . . . . . . . . . . . . 19
7 Week 7 20
7.1 Demodulation of FM Signals . . . . . . . . . . . . . . . . . . . . 20
7.2 Summary (What to Memorise?) . . . . . . . . . . . . . . . . . . . 23
1
8 Week 8 25
8.1 Review of Fourier Series and Transforms . . . . . . . . . . . . . . 25
8.2 Linear Pulse Coded Modulation (PCM) . . . . . . . . . . . . . . 26
9 Week 9 28
9.1 Review of Expected Value . . . . . . . . . . . . . . . . . . . . . . 28
9.2 Average Quantisation Error . . . . . . . . . . . . . . . . . . . . . 28
9.3 Nonlinear PCM . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
9.4 Delta Modulation . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
2
Chapter 1
Week 1
3
1.2 Review of Mathematical Tools
Fourier Transform
An operation which gives us the frequency component of a signal. What this
means is given a waveform v(t), we can get the same function v(t) as a function
of frequency by performing Fourier transform on v(t).
Z ∞
F {v(t)} = v(t) exp (−j2πf t)dt
−∞
Fourier Spectrum
Plotting the result of a Fourier transform on a waveform is called the Fourier
Spectrum, a plot of Fourier transform on the positive and negative frequency
axes. An example is the Fourier transform of the cosine signal:
1
F {cos (2πfc t)} = [δ(f − fc ) + δ(f + fc )]
2
Here are the plots of the cosine signal
1/2 1/2
f
−fc 0 fc
Amplitude Spectrum
The Fourier spectrum often has two components – the amplitude and phase
spectrum, since some of its transformations still has a j in its value. In this
course, spectrum refers to amplitude spectrum, unless stated otherwise. An
example, determine the amplitude spectrum expression of
4
Taking the Fourier transform gives us
1 1
F {x(t)} = [δ(f − fc ) + δ(f + fc )] + [δ(f − fc ) + δ(f + fc )]
2j 2
−j 1 j 1
= + δ(f − fc ) + + δ(f + fc )
2 2 2 2
Now we see that the coefficients contain both real and imaginary parts, but
since we are looking for the amplitude spectrum, we are only concerned with
the magnitude (i.e. |F {x(t)}|). Note that the || signs denote the magnitude of
the waveform as opposed to just the absolute value.
The Fourier plot of the resulting Fourier transform is given as below:
1 j 1 j
2 + 2 2 − 2
f
−fc 0 fc
Filtering
A filter is a device that removes certain frequency component(s) of the input
signal. The mathematical expression of filtering is as follows:
Y (f ) = H(f )X(f )
where Y (f ) is the Fourier transform of the output signal, X(f ) is the Fourier
transform of the input signal, and H(f ) is the filter transfer function. Two types
of filter we will often use in this course are the: 1. Lowpass filter, it allows
all frequencies less than some threshold w to pass, and rejects all frequencies
beyond w to pass. An rectangular signal of amplitude 1 can be used as a low
pass filter. 2. Bandpass filter, it will allow frequency components within an
interval w1 ≤ |f | ≤ w2 to pass, rejects everything else.
5
Bandwidth
Defined as the range of positive-value frequency that is occupied by a spec-
trum.
Signal Power
In the time domain, the power of a signal v(t) can be calculated as
Z T0 /2
1
v 2 (t) = |v(t)|2 dt
T0 −T0 /2
6
Chapter 2
Week 2
2.1 DSBSC-AM
Conventional AM signals are transmitted as
x(t) = Ac [1 + ms(t)] cos 2πfc t = Ac cos 2πfc t + mAc s(t) cos 2πfc t
where Ac cos 2πfc t is the carrier term and the mAc s(t) cos 2πfc t are the side-
bands. The transmission of the carrier component in conventional AM howver,
is a waste of power. In Double-Sideband Suppressed Carrier (DSBSC) AM, we
suppress the transmission of the carrier component so that only the sideband
component is transmitted. Recall that amplitude modulation means that the
message signal to be transmitted is encoded as the amplitude of the carrier sig-
nal. This means that the final transmitted signal has an amplitude envelope
that follows the message signal waveform.
2.2 Demodulation
The job of a demodulator is to recover the message signal s(t) from the AM
signal x(t). Demodulation is said to be successful if the demodulator output is
= non-zero constant ×s(t). A demodulator that can do this for a suppressed-
carrier AM is the ”coherent demodulator”. The structure of a coherent demod-
ulator consists of a low pass filter and a local oscillator. An input AM signal
s(t) is multiplied with the signal provided by the local oscillator of the form
A′c cos(2πfc t + ϕ). The multiplied result (known as the internal signal) v(t) is
then passed through the low pass filter to obtain some constant ×s(t). Given
the AM signal:
7
the internal signal v(t) is
s(t)
= [cos(2π(fc − f1 )t) + cos(2π(fc + f1 )t)]
2
If v1 (t) is then passed through a bandpass filter, with a center frequency of
f0 = fc − f1 , and a bandwidth = BW of x(t), then the mixer output v2 (t) is a
DSBSC-AM signal with a new carrier frequency f0 .
1
v2 (t) = [v1 (t)]BPF = s(t) cos(2πf0 t)
2
Since the input signal x(t) had a frequency fc , and mixing output signal v2 (t)
has a frequency f0 = fc − f1 , we can say that the signal has been shifted from
the fc band to the f0 band.
8
Chapter 3
Week 3
f2 − f1 > W1 + W2
f3 − f2 > W3 + W2
for the 3 aforementioned signals, and can be generalised (where fi is the carrier
frequency of xi (t) and Wi is the bandwidth of si (t)).
9
3.3 Quadrature Amplitude Modulation
QAM enables two DSBSC-AM signals to be transmitted on the same transmis-
sion bandwidth by using the same carrier frequency. This works by having a
π/2 phase difference between the carrier signals. Say 2 message signals s1 (t) and
s2 (t) are to be transmitted, then instead of having 2 difference non-overlapping
frequencies like FDM, we can have just one fc to transmit both signals. The 2
signals we’ll call them the in-phase (I) signal
10
Chapter 4
Week 4
4.1 Noise
Noise are random in the time domain, hence we typically deal with the average
or frequency domain properties of the noise. Average power of a noise signal in
the time domain is given as:
Z T /2
1
n2 (t) = lim |n(t)|2 dt
T →∞ T −T /2
T is infinitely large here since a noise signal is not periodic. The average power
of a noise signal in the frequency domain is given as:
Z ∞
n2 (t) = Sn (f )df
−∞
If a signal x(t) with PSD Sx (f ) is filtered by a filter with transfer function H(f ),
the filtered signal y(t) will have PSD Sy (f ) given by:
11
4.2 White Noise
An idealised form of noise typically used for noise analysis. An example of white
noise is the well known Thermal Noise. White noise has a flat PSD over a wide
range of frequencies (a constant). Hence, white noise has infinite power. A
bandpass filter can be used to filter as much white noise power away as possible,
the result is called the ‘bandpass noise’.
where nc (t) is the I-phase noise and ns (t) is the Q-phase noise. Proof is ommit-
ted but the power of nc (t) is equal to the power of ns (t) is equal to the power
of n(t).
12
We write n(t) as eq. 4.2,
n0 (t) = [nc (t) cos2 2πfc t − ns (t) sin 2πfc t cos 2πfc t]LPF
= s(t)2 /ηB
13
Chapter 5
Week 5
Phase Modulation (PM) and Frequency Modulation (FM), the phase and fre-
quency of the carrier signal is varied acording to the message signal while the
amplitude is maintained constant. The advantage is that it has better noise and
interference suppression compared to AM. The disadvantage is that it occupies
a wider transmission bandwidth compared to the AM. Recall the relationship
between angular frequency w and phase θ of a sinusoidal signal:
w(t) = 2πf
14
5.2 Frequency Modulation
In frequency modulation, the instantaneous frequency fi (t) is varied linearly
with the message signal m(t), i.e.
fi (t) = fc + kf m(t)
The FM signal is written as
fF M (t) = Ac cos[2π(fc + kf m(t))t + 0]
Using eq. 5.1,
Z t Z t
ϕi (t) = 2π fi (τ )dτ = 2π fc t + kf m(τ )dτ
−∞ −∞
With a varying phase and a constant carrier frequency, this may look like a PM
signal. But note that the difference in phase in the FM signal is not directly
proportional to message signal m(t), as it is proportional to the integral of m(t).
Phase Modulation
The phase deviation is
∆ϕ(t) = kp m(t) = kp Am cos 2πfm t = βp cos 2πfm t
where βp = kp Am is the peak phase deviation (modulation index for PM).
The PM signal is written as:
fP M (t) = Ac cos[2πfc t + βp cos 2πfm t]
Frequency Modulation
The frequency deviation is
∆f (t) = kf m(t) = kf Am cos 2πfm t = ∆f cos 2πfm t
Where ∆f = kf Am is the peak frequency deviation. We can find the phase
function of the FM wave using the following,
Z t
∆f
∆ϕ(t) = 2π ∆f (τ )dτ = sin 2πfm t = β sin 2πfm t
0 fm
15
k A
where β = ffmm is the peak phase deviation, the modulation index of FM.
The FM signal can be written as
5.4 Narrow-Band FM
Narrow-band FM or PM signal means that β ≤ 0.2, it is the same β in eq. 5.3.
Using the cos(a ± b) trigonometric identity, we can manipulate the eq. 5.3. into
the following
Since β ≤ 0.2, we can approximate β sin wm t ≪ 1, and using small angle ap-
proximation for trigonometric functions we get,
βAc βAc
= Ac cos wc t + cos(wc + wm )t − cos(wc − wm )t (5.6)
2 2
The math above shows that the bandwidth of the NBFM signal is 2fm centered
at fc , same as the AM bandwidth.
5.5 Wide-Band FM
If β is not less than 0.2 rad, we can express the wide band FM spectrum as
∞
X
fF M (t) = Ac Jn (β) cos[(wc + nwm )t] (5.7)
n=−∞
(proof ommitted). The Jn is called the Bessel function where the function takes
in a parameter β and is different for different values of n. Note that the Bessel
function form of fF M (t) is valid for any value of β meaning that it works for
both WBFM and NBFM. It is also useful for plotting the FM spectrum.
16
In the exam a table will be provided to obtain the values of the Bessel function.
Only non-negative n will be provided, hence the following useful properties
Also note that the power of the signal defined in e.q. 5.7 (simplified using e.q.
5.8) can be written as
A2c X 2 A2
PF M = Jn (β) = c
2 n 2
17
Chapter 6
Week 6
1% rule
For a single tone FM/PM, if the FM/PM signal has n′ significant sideband
frequency pairs with |Jn′ (β)| ≥ 0.01, its 1% rule BW is 2n′ fm . Basically means
you only take the ones where |Jn′ (β)| ≥ 0.01.
Carson’s Rule
A very convenient way to approximate the BW without the use of a Bassel
function table is the following formula,
18
6.2 Generation of FM signals
Indirect Method (Armstrong Method)
The message signal m(t) is first used to generate a NBFM signal with β ≤ 0.2 to
minimise distortion. The signal then goes through a frequency multipler to
widen the BW, then using a frequency converter (mixer) to get the carrier
frequency right. Note, the effect of a frequency multiplier is multiplying both
carrier frequency fc and ∆f by n times. The frequency converter (mixer) is the
same mixer explained in the AM portion (see 2.3).
19
Chapter 7
Week 7
Time Differentiator
Rt
Differentiating fF M (t) = Ac cos [wc t + 2πkf 0
m(τ )dτ ], we get
d
f˙F M (t) = fF M (t)
dt
Z t
= −Ac [wc + 2πkf m(t)] sin [wc t + 2πkf m(τ )dτ ]
0
in which its result may look like an ‘FM signal with an AM amplitude’. Its
envelope (amplitude variations) can be extracted by an ’envelope detector’. We
assume that the +ve envelope is extracted. Then a DC blocking can be applied
to remove the DC signal of the envelope, resulting in just 2πAc kf m(t). The
frequency discriminator process is summed up below
d
Modulated FM → → Envelope Detector → DC Block → Demodulated FM
dt
20
Limiter
We have assumed that Ac is constant throughout, but in practice due to channel
noise and signal fading, Ac may be time varying in practice. Then the differ-
d
entiation result will have terms containing dt Ac (t) term and the amplitude will
d
have a Ac (t) term instead of just Ac . Even if the term containing dt Ac (t) is
negligible, the output of the envelope detector will be non-constant, making it
difficule to remove just be using DC Blocking. A limiter can be used before
the frequency discriminator to remove carrier amplitude that varies with time
(i.e., the signal amplitude at the limiter’s output is constant).
The BPF is an ideal bandpass filter with center frequency fc and bandwidth
equal to the FM signal’s bandwidth, removing the out-of-band noise. The LPF
is used to further supress noise, by choosing a LPF BW to the message signal’s
BW.
SNR of FM Demodulation
The input SNR before FM demodulation is
No Calculation
The noise at the FM demodulator output (omitting calculations) is
dρ(t) 1 d
no (t) = = ns (t)
dt Ac dt
21
The PSD of no (t) is
1
Sno (w) = Sn (w)|H(w)|2
A2c s
d
The Fourier Transform of transfer function h(t) = dt is H(w) = jw.
1 1
Sno (w) = Sn (w)|jw|2 = 2 w2 Sns (w)
A2c s Ac
1 2 (2π)2 2
Sno (w) = w η = f η ∀ |f | ≤ BF M /2
A2c A2c
the above shows that if a white noise with a two-sided PSD η/2 is present at
the demodulator input, the output noise PSD will be parabolic. Now since the
BW of the frequency discriminator output is limited by a low pass filter with
bandwidth fm , the power of the output noise is
Z fm
8ηπ 2 fm 2
Z
2
No = no (t) = 2 Sno (f )df = f df
0 A2c 0
8π 2 ηfm3
No = 2
(7.1)
3Ac
For single-tone modulation,
SNR of FM v. AM
For DSBSC-AM with s(t) = Ac cos(wm t) and carrier amplitude Ac ,
A2c
So
=
No AM 4ηBAM
Meaning that,
So 2 So
= 3β
No FM No AM
This means that noise suppression in FM can be achieved over AM by tweaking
the β.
22
Threshold Phenomenon (Capture Effect)
Si
At high input SNR (i.e. N i
> 10dB), FM outperforms AM. However at low
Si
Ni (< 10dB), FM demodulation does not work and FM becomes worse than
AM. This is called the Capture Effect or the Threshold Phenomenon.
Si
Ni = 10dB is called the FM threshold.
FM Signal,
∆f k f Am
fF M (t) = Ac cos[2πfc t + β sin(2πfm t)], β = = (7.8)
fm fm
23
where J(β) is the Bessel function with the following properties:
With the Bessel function, we can get the power of the signal in the form of:
A2c X 2
J (β) (7.10)
2 n n
BW Approximation
For a single-tone message signal m(t),
• Carson’s rule: BW = 2(β + 1)fm = 2(∆f + fm )
• 1% rule: BW includes sidebands with Jn (β) ≥ 0.01
WBFM Modulation
• Frequency multiplier: fc and ∆f both multiplied by n
• Frequency converter (mixer): fc → fc ± fshift , ∆f unchanged
FM Demodulation
• Roles of differentiator, envelope detector, DC block
• When input SNR < threshold value (10dB), capture effect occurs, FM
demodulator fails to work.
24
Chapter 8
Week 8
Convolution operation:
f (t) ∗ δ(t) = f (t)
f (t) ∗ δ(t − t0 ) = f (t − t0 )
25
Integral of delta function:
Z t
δ(τ )dτ = u(t) = unit step function
−∞
Z −∞
δ(τ )dτ = 1
−∞
Sampling Theorem
A continuous-time signal v(t) band limited to B Hz can be reconstructed exactly
if sampled at fs ≥ 2B Hz. Note that band limited is not the same as the
bandwidth of a signal. If a signal is band limited by B Hz, that means the
highest frequency covered by this signal is B Hz. Let the sampling period
Ts = 1/fs and denote the periodic impulse train δTs (t) as:
X
δTs (t) = δ(t − nTs )
n
1 X
= V (f − nfs )
Ts n
Note that the ideal sampling Vs (f ) is a repetition of V (f ) in the frequency
domain with a spacing of fs .
• If fs ≥ 2B we can design a LPF to recover V (f ) from Vs (f )
• The minimum sampling rate of fs = 2B is called the Nyquist rate
26
Quantisation
The idea of quantisation is to map analogue amplitudes of a signal to a fixed
set of values, ’digitalising’ the amplitude in a sense.
• Let a message signal m(t) be sampled at fs = 1/Ts Hz and mp be the peak
amplitude of the message signal.
• The whole amplitude range (−mp , mp ) divided into L uniform intervals
where L is a power of 2 with each step size being ∆v = 2mp /L.
• A sample amplitude value is approximated by mid-point of the interval in
which it falls.
• The quantised samples are encoded into binary bits, the two sources of
errors are quantisation error and bit detection error.
• Quantisation error is normally much larger than bit detection error.
27
Chapter 9
Week 9
mp /L m2p
Z
L
= q2 × dq =
−mp /L 2mp 3L2
28
Here we find q 2 since finding q will just result in 0 as the -ve and +ve values
cancel out. The signal-to-quantisation-noise ratio (SQNR) is given by
m2 (t) m2 (t)
SQNR = = 3L2 ×
Nq m2p
Compression
Compression is achieved by translating an input signal’s amplitudes into its
compressed form by passing it through a compressing function. There are 2
types of standard of compression signals, i.e., µ-law, A-law.
Expandor
The reverse process of compression operation to recover the original value from
the compressed sample. The output SQNR for the µ - law standard is given by
(proof omitted):
3L2 m2p
SQNR = , µ ≫
ln(1 + µ)2 m2 (t)
Comparison of high (µ = 255) and low (µ = 0) values show that higher (nonlin-
ear) mu is better for lower signal power, but lower µ is more suitable of higher
signal power.
= k × 22n , since L = 2n
= k × 22BT /B , since minimum bandwidth BT = nB
= 10 log10 k + 6n (dB)
29
Note that this is only if the signal is sampled using the Nyquist frequency. The
minimum transmission bandwidth BT to transmit a signal of bandwidth B is
nB since:
BT = Rb /2 = nfs /2 = nfN /2 = 2nB/2 = nB
where fN is the Nyquist frequency.
Threshold of coding
Variation in m(t) smaller than the step size is lost in delta modulation, this will
cause quantisation noise. To avoid this, we want to make the step size as small
as possible.
Slope overload
m(t) changes too fast such that m̂(t) cannot follow m(t), this will cause slope
overload noise. But to avoid this, we want to make the step size σ large enough to
capture m(t)’s movement. The optimum σ depends on the sampling frequency
fs and the nature of the signal. During the sampling interval Ts = 1/fs , m̂(t) is
capable of changing height of step size σ, hence the maximum slope that m̂(t)
can follow is σfs . So slope overload can be avoided if
dm(t)
< σfs
dt max
30