CH 07
CH 07
7.1 Problems
Problem 7.1
Degrees kelvin (degrees absolute) are converted to to the Celsius scale by substracting 273
(actually 273.15). Degrees Celsius are converted to degrees Fahrenheit by the familiar
expression
9
degrees F = degrees C + 32
5
Thus
9
degrees F = (kelvin 273) + 32
5
Thus, 3 degrees on the kelvin scale is
9
(3 273) + 32 = 454 degrees F
5
and 290 degrees on the kelvin scale is
9
(290 273) + 32 = 62:6 degrees F
5
Problem 7.2
The signal power at the output of the lowpasss …lter is PT . The noise power is N0 BN ,
where BN is the noise-equivalent bandwidth of the …lter. From (6.116), we know that the
1
2 CHAPTER 7. NOISE EFFECTS IN SIMPLE MODULATION SYSTEMS
W=2n
Bn (n) =
sin ( =2n)
PT sin ( =2n) PT PT
SN R = = = f (n)
N0 BN =2n N0 W N0 W
n f (n) SNR
1 0:6366 0:6366 NP0TW
3 0:9549 0:9549 NP0TW
5 0:9836 0:9836 NP0TW
10 0:9959 0:9959 NP0TW
Note that for large n, sin( =2n)=( =2n) 1, so that the SNR! PT =N0 W as n ! 1. The
plot is shown In Figure 7.1.
Problem 7.3
For DSB, the received signal and noise are given by
At the output of the predetection …lter, the signal and noise powers are given by
1
ST = A2c m2 NT = n2 = N0 BT
2
The predetection SNR is
A2c m2
(SNR)T =
2N0 BT
If the postdetection …lter passes all of the nc (t) component, yD (t) is
The output signal power is A2c m2 and the output noise PSD is shown in Figure 7.2.
7.1. PROBLEMS 3
0.9
0.8
0.7
0.6
f(n)
0.5
0.4
0.3
0.2
0.1
0
1 2 3 4 5 6 7 8 9 10
n
Case I: BD > 12 BT
For this case, all of the noise, nc (t), is passed by the postdetection …lter, and the output
noise power is
Z 1 BT
2
ND = N0 df = 2N0 BT
1
B
2 D
(SNR)D A2 m2 =N0 BT
= c =2
(SNR)T A2c m2 =2N0 BT
(SNR)D A2 m2 =2N0 BD BT
= c =
(SNR)T A2c m2 =2N0 BT BD
4 CHAPTER 7. NOISE EFFECTS IN SIMPLE MODULATION SYSTEMS
()nS
c f
N
0
f
−
12TB 12TB
0
SD = A2c a2 m2n
Problem 7.4
We express n (t) as
1 1
n (t) = nc (t) cos 2 fc t (2 W ) t + + ns (t) sin 2 fc t (2 W ) t +
2 2
7.1. PROBLEMS 5
Sn(),c f S
ns f
N
0
f
−
12W 12W
where we use the plus sign for the U SB and the minus sign for the LSB. The received
signal is
b (t) sin (2 fc t + )]
xr (t) = Ac [m (t) cos (2 fc t + ) m
Multiplying xr (t) + n (t) by 2 cos (2 fc t + ) and lowpass …ltering yields
From this expression, we can show that the postdetection signal and noise powers are given
by
SD = A2c m2 ND = N0 W
ST = Ac m2 NT = N0 W
This gives a detection gain of one. The power spectral densities of nc (t) and ns (t) are
illustrated in Figure 7.3.Problem 7.5
b
m(t) = A sin (2 f1 t + 1) + B sin (2 f2 t + 2)
The …rst and third terms are A2 =2 and B 2 =2, respectively. If 1 and 2 are assumed
independent, the middle term is zero. Thus
A2 B 2
Efm2 (t)g = +
2 2
In exactly the same manner
A2 B 2
b 2 (t)g =
Efm +
2 2
b
and we see that the powers in m(t) and m(t) are equal.
We now compute
b
m(t)m(t) = [A cos (2 f1 t + 1) + B cos (2 f2 t + 2 )]
[A sin (2 f1 t + 1) + B sin (2 f2 t + 2 )]
which is
b
m(t)m(t) = A2 cos (2 f1 t + 1 ) sin (2 f1 t + 1) +
AB cos (2 f1 t + 1 ) sin (2 f2 t + 2) +
AB cos (2 f2 t + 2 ) sin (2 f1 t + 1) +
2
B cos (2 f2 t + 2 ) sin (2 f2 t + 2)
All …ve terms in the preceding equation are sinusoids of di¤ering frequencies. Since the
average value of a sinusoid is zero
b
E fm(t)m(t)g =0
Problem 7.6
Expanding the noise about fc W=4 gives
W W
n (t) = nc (t) cos 2 fc t t+ + ns (t) sin 2 fc t t+
2 2
where we use the plus sign for the U SB and the minus sign for the LSB. The received
signal is
b (t) sin (2 fc t + )]
xr (t) = Ac [m (t) cos (2 fc t + ) m
7.1. PROBLEMS 7
SD = A2c m2 ND = N0 W
ST = Ac m2 NT = N0 W
This gives a detection gain of one. The power spectral densities of nc (t) and ns (t) are
easily plotted.
Problem 7.7
First we determine a general form by evaluating
Z fb
A
m(t) = A ej2 f t df = ej2 fb t
ej2 fa t
fa j2 t
There are three cases to consider.
Case 1 (fa = 0, fb = f2 ): This gives
Z f2
A
m(t) = A ej2 ft
df = ej2 f2 t
1
0 j2 t
which is
A
m(t) = ej2 f2 t=2
e j2 f2 t=2
ej2 f2 t=2
=
j2 t
or
A
sin( f2 t)ej f2 t
m(t) =
t
Since taking the Hilbert transform adds =2 to the phase for f > 0 and substracts =2 to
the phase for f < 0 we have
A
b
m(t) = sin( f2 t)ej[ f2 t+( =2)]
; f >0
t
and
A
b
m(t) = sin( f2 t)ej[ f2 t ( =2)] ; f <0
t
Case 2 (fa = f2 =2, fb = f2 ): This gives
Z f2
A
m(t) = A ej2 f t df = ej2 f2 t
e j f2 t
f2 =2 j2 t
8 CHAPTER 7. NOISE EFFECTS IN SIMPLE MODULATION SYSTEMS
Problem 7.8
The …rst step is to determine the value of M . Since
First we compute
Z 1
1 y 2 =2 2 M
P fX > M g = p e dy = Q = 0:0025
M 2
This gives
M
= 2:807
7.1. PROBLEMS 9
Thus,
M = 2:807
and
m (t)
mn (t) =
2:807
Thus, since m2 = 2
m2 2
m2n = = = 0:178
(2:807 )2 5:614 2
0:178 (0:7)2
Ef f = = 0:0802 = 8:02%
1 + 0:178 (0:7)2
(0:5) (0:6)2
Ef f = = 0:1525 = 15:25%
1 + (0:5) (0:6)2
(SNR)D
= 2Ef f = 0:305 = 5:157 dB
(SNR)T
(SNR)D
= 5:157 dB
PT =N0 W
10 CHAPTER 7. NOISE EFFECTS IN SIMPLE MODULATION SYSTEMS
(0:5) (0:9)2
Ef f = = 0:2883 = 28:83%
1 + (0:5) (0:9)2
(SNR)D
= 2Ef f = 0:5765 = 2:39 dB
(SNR)T
(SNR)D
= 2:39 dB
PT =N0 W
Problem 7.10
The output of the predetection …lter is
which gives
A2c =2N
0:99 = 1 e
Thus,
A2c
= ln (0:01)
2N
which gives
A2c = 9:21 N
7.1. PROBLEMS 11
Problem 7.11
Equation (7.59) is, suppressing t,
2
n2c +n2s = Ef[n2c + n2s ]2 g E 2 fn2c + n2s g
where the last term follows from the independence of nc and ns . Since (See Problem 5.22)
Efn4c g = Efn4s g = 3 4
n
and
Efn2c g = Efn2s g = 2
n
we have
Ef[n2c + n2s ]2 g = 3 4
n +3 4
n +2 2 2
n n =8 4
n
Also
2 2 2 2
E 2 fn2c + n2s g = Efn2c + n2s g = Efn2n + n2n g = 2 n =4 4
n
Thus
2 2
n2c +n2s = E 2 fn2c + n2s g Efn2c + n2s g =8 4
n 4 4
n =4 4
n
Problem 7.12
Let the predetection …lter bandwidth be BT and let the postdetection …lter bandwidth be
BD . The received signal (with noise) at the predetection …lter output is represented
Assuming that the postdetection …lter removes the double frequency terms, yD (t) can be
written
1 1
yD (t) = fAc [1 + amn (t)] + nc (t)g2 + n2s (t)
2 2
Except for a factor of 2, this is (7.53). We now express the preceding expression as
1 1 1
yD (t) = A2c [1 + 2amn (t) + a2 m2n (t)] + Ac [1 + amn (t)] nc (t) + n2c (t) + n2s (t)
2 2 2
Let m(t) = cos(! m t) + cos(2! m t), which clearly has a maximum value of 2. Thus
1 1
mn (t) = cos(! m t) + cos(2! m t)
2 2
and
1 1 1 1 1
m2n (t) = + cos(2! m t) + + cos(4! m t) + cos(! m t) cos(2! m t)
8 8 8 8 2
or
1 1 1 1 1
m2n (t) = + cos(! m t) + cos(2! m t) + cos(3! m t) + cos(4! m t)
4 4 8 4 8
Putting this together gives
1 2 a2
yD (t) = Ac 1 + +
2 4
1 a 1 a
A2c a + cos(! m t) + + cos(2! m t) +
2 8 2 16
1 1
A2c a2 cos(3! m t) + cos(4! m t) +
8 16
Ac nc (t) +
1 1
Ac a cos(! m t) + cos(2! m t) nc (t) +
2 2
1 2 1 2
n (t) + ns (t)
2 c 2
The PSD therefore consists of 6 basic terms as follows:
Term 1: A dc term (f = 0) which is an impulse.
7.1. PROBLEMS 13
Term 2: Impulse functions at frequencies f = fm and f = 2fm . The weights are given
on line 2 of the preceding equation when squared and divided by two. Note that the terms
do not have the same weight due to intermodulation distortion. Thus the demodulated
output is distorted.
Term 3: Impulse functions at frequencies f = 3fm and f = 4fm resulting from
harmonic distortion.
Term 4: The PSD of nc (t) (‡at) about f = 0 and weighted by Ac .
Term 5: The PSD of nc (t) (‡at) translated to frequencies f = fm and f = 2fm and
weighted by Ac a=2.
Term 6: The PSD of n2c (t) (triangular) about f = 0 The PSD of n2s (t) is identical to
the PSD of n2c (t)
Problem 7.13
Since m (t) is a sinusoid, m2n = 12 , and the e¢ ciency is
1 2
2a a2
Ef f = =
1 + 12 a2 2 + a2
Problem 7.14
Letting the message signal signal be a sinusoid in (7.63) so that m2n = 0:5 gives
a2 =2 PT =N0 W
(SNR)D = 2
[1 + a2 =2] 1 + N0 W=PT
Plotting these for a = 0:1, 0.2, 0.5, and 1 veri…es Figure 7.6.
The distortion to noise ratio is
DD A4 a4 m4n
= c
ND ND
where
* +
2
1 1 1 1 1 3
m4n = sin4 (! m t) = + cos(2! m t) = + cos(2! m t) + cos2 (2! m t) =
2 2 4 2 4 8
a2
ND = 4A2c 2
n 1+ + 4
n = 2A2c 2 + a2 N0 W + (N0 W )2
2
1 1 a2 1
PT = A2c (1 + a2 m2n ) = A2c (1 + ) = A2c (2 + a2 )
2 2 2 4
We can therefore write ND as
4PT
ND = 2A2c N0 W + (N0 W )2 = N0 W (8PT + N0 W )
A2c
and
3
DD = a4
8
Putting all of this togethen allows us to write DD =ND in terms of a, PT , N0 , and W . This
gives
DD A4 a4 m4n 3a4 4PT 1
= c =
ND ND 8 2 + a 8PT (N0 W ) + (N0 W )2
2
or
DD 3 a4 PT =N0 W
= 2
ND 2 2 + a 8PT + N0 W
We see that, like for DD =SD , the ratio DD =ND goes to zero as a ! 0.
7.1. PROBLEMS 15
Problem 7.15
Assume sinusoidal modulation since sinusoidal modulation was assumed in the development
of the square-law detector. For a = 1 and mn (t) = cos (2 fm t) so that m2n = 0:5, we have,
for linear envelope detection (since PT =N0 W 1, we use the coherent result),
1
PT a2 m2n PT PT 1 PT
(SNR)D;C = Ef f = = 2 1 =
N0 W 1 + a2 m2n N0 W 1+ 2
N0 W 3 N0 W
Problem 7.16
By de…nition
m(t)
mn (t) =
k m
and
m2 2 1
m
m2n = 2 = 2 2
= 2
(k m ) k m k
so that
2
PT 2 ka PT
(SNR)D = 2Ef f = 2
N0 W 1 + ka N0 W
or
2 PT
(SNR)D = 2
(k=a) + 1 N0 W
The plot is easily generated. We conclude that for k a
a 2 PT
(SNR)D 2
k N0 W
and for k a
PT
(SNR)D 2
N0 W
Problem 7.17
16 CHAPTER 7. NOISE EFFECTS IN SIMPLE MODULATION SYSTEMS
R j2 f RC
H (f ) = 1 =
R + j2 C 1 + j2 f RC
so that
(2 f RC)2
jH(f )j2 =
1 + (2 f RC)2
Thus, The PSD at the output of the ideal lowpass …lter is
( 2
N0 (2 f RC)
2 1+(2 f RC)2 , jf j < W
Sn (f ) =
0, jf j>W
Since
x2 1
=1
1 + x2 1 + x2
we can write Z Z
2 RCW 2 RCW
N0 dx
N= df
2 RC 0 0 1 + x2
or
N0 1
N= 2 RCW tan (2 RCW )
2 RC
which is
N0 tan 1 (2 RCW ) 2 RCW tan 1 (2 RCW )
N = N0 W = N0
2 RC 2 RC
1 A2 (2 fc RC)2
S = A2 jH (fc )j2 =
2 2 1 + (2 fc RC)2
7.1. PROBLEMS 17
S A2 (2 fc RC)2 2 RC
=
N 2N0 1 + (2 fc RC)2 2 RCW tan 1 (2 RCW )
S
Note that as W ! 1; N ! 0.
Problem 7.18
From (7.78) and (7.84), we have
2
2 n
0:05 = + 2
; SSB
m
3 2
2 2 n
0:05 = + 2
; DSB
4 m
Problem 7.19
The mean-square error
"2 (A; ) = E [y (t) Ax (t )]2
can be written
1000
900
800
SSB
700
DSB
600
500
400
SNR
300
200
100
0
0 0.05 0.1 0.15 0.2 0.25 0.3 0.35
In order to minimize "2 we choose = m such that Rxy ( ) is maximized. This follows
since the crosscorrelation term is negative in the expression for "2 . Therefore,
d"2
= 2ARxy ( m) + A2 Px = 0
dA
which yields
Rxy ( m)
Am =
Px
This gives the mean-square error
2 (
Rxy 2 (
m) Rxy m)
"2 (Am ; m ) = Py 2 +
Px Px
7.1. PROBLEMS 19
Ac e jφ ( t )
which is
2 (
Pxy m)
"2 (A m; m) = Py
Px
The output signal power is
2
SD = E [Am x (t m )] = A2m Px
which is
2 (
Rxy 2 (
m) Rxy m)
SD = =
Px Rx (0)
Since ND is the error "2 (Am ; m) we have
2 (
Rxy
SD m)
= 2 (
ND Rx (0) Ry (0) Rxy m)
Note: The gain and delay of a linear system is often de…ned as the magnitude of the
transfer and the slope of the phase characteristic, respectively. The de…nition of gain and
delay suggested in this problem is useful when the magnitude response is not linear over
the frequency range of interest.
Problem 7.20
The phasor diagram for SNR 1 is illustrated in Figure 7.5. The phasor diagram for
SNR 1 is shown in Figure 7.6. We see that the angle (t), which determines the demodu-
lated output, is approximately n (t), whereas for SNR 1 the angle (t) is approximately
(t). For (t) (t) the error in the demodulated output is small.
Problem 7.21
20 CHAPTER 7. NOISE EFFECTS IN SIMPLE MODULATION SYSTEMS
rn (t )sin[ψ (t ) − φ (t )] = rn (t )sin[φe (t )]
rn (t ) cos[ψ (t ) − φ (t )] = rn (t ) cos[φe (t )]
rn (t )e jφn ( t )
R(t )e jψ (t )
Ac e jφ (t )
The single-sided spectrum of a stereophonic FM signal and the noise spectrum is shown in
Figure 7.7. The two-sided noise spectrum is given by
KD2
SnF (f ) = N0 f , 1<f <1
A2C
The predetection noise powers are easily computed. For the L + R channel
Z 15;000 2 2
KD 2 12 KD
Pn;L+R = 2 N 0 f df = 2:25 10 N0
0 A2C A2C
Thus, the noise power on the L R channel is over 40 times the noise power in the L + R
channel. After demodulation, the di¤erence will be a factor of 20 because of 3 dB detection
gain of coherent demodulation. Thus, the main source of noise in a stereophonic system
is the L R channel. Therefore, in high noise environments, monophonic broadcasting is
preferred over stereophonic broadcasting.
Problem 7.22
7.1. PROBLEMS 21
S()nNoise
Pilot
()L f
+ R f ()L f
+ R f
F fSpectrum
()f kHz
0 15 23 53
or
BT BT
20 log 20 log 2 = 0:5
W W
This gives !
BT
W 2
log BT
= 0:025
W
22 CHAPTER 7. NOISE EFFECTS IN SIMPLE MODULATION SYSTEMS
or
2W 0:025
1 = 10 = 0:9441
BT
Finally
2W
=1 0:9441 = 0:0559
BT
which gives a value of
BT 2
= = 35:75
W 0:0559
Problem 7.23
or
3
f3 W 1 W
R=3 tan
W f3 f3
This is shown in Figure ??.
For f3 = 2:1kHz and W = 15kHz, the value of R is
2
2:1 15 1 15
R=3 tan = 0:047
15 2:1 2:1
Expressed in dB this is
R = 10 log10 (0:047) = 13:3 dB
The improvement resulting from the use of preemphasis and deemphasis is therefore 13:3 dB.
Neglecting the tan 1 (W=f3 ) gives an improvement of 21 8:75 = 12:25 dB. The di¤erence
is approximately 1 dB.
Problem 7.24
The received FDM spectrum is shown in Figure 7.8. The k th channel signal is given by
KD2
SnF = N0 f 2 , jf j < BT
A2C
BW 3
Nk = 150k 2 + 2 = 50BW 3 k 2
3
The signal power is proportional to A2k . Thus, the signal-to-noise ratio can be expressed as
2
A2k Ak
(SNR)D = =
k2 k
Problem 7.25
From the plot of the signal spectrum it is clear that
A
k=
W2
Thus the signal power is
Z W
A 2 2
S=2 2
f df = AW
0 W 3
24 CHAPTER 7. NOISE EFFECTS IN SIMPLE MODULATION SYSTEMS
Noise
PSD
f
1 f
2 f
3 f
4 f
5 f
6 f
7
0
Problem 7.26
From the de…nition of the signal we have
x (t) = A cos 2 fc t
dx
= 2 fc A sin 2 fc t
dt
d2 x
= (2 fc )2 A cos 2 fc t
dt2
The signal component of y (t) therefore has power
1
SD = A2 (2 fc )4 = 8A2 4 4
fc
2
The noise power spectral density at y (t) is
N0
Sn (f ) = (2 f )4
2
7.1. PROBLEMS 25
Problem 7.27
Since the signal is integrated twice and then di¤erentiated twice, the output signal is equal
to the input signal. The output signal is
ys (t) = A cos 2 fc t
5 A2
(SNR)D =
32 4 N0 W 5
Problem 7.28
The signal power is
Z W Z W=f3
df dx 1 W
SD = 2A = 2Af3 = 2Af3 tan
0 1 + (f =f3 )2 0 1 + x2 f3
Since
ND = N0 W
the signal-to-noise ratio at y (t) is
2A f3 1 W
(SNR)D = tan
N0 W f3
26 CHAPTER 7. NOISE EFFECTS IN SIMPLE MODULATION SYSTEMS
Problem 7.29
Note that the form of m(t) a¤ects both the numerator and the denominator of (7.139).
The numerator is a¤ected through m2n and the denominator is a¤ected through f . By
de…nition,
N
1 X
mn (t) = Cn cos(2 nf t + n )
M
n=1
where M is the maximum value of m(t). Since the phases n are unknown, the valueP of M
cannot be determined and this is as far as we can go. If n = 0 for all n, then M = Cn .
2
This, however, is a very special case. In general, given the phases n , mn , is computed as
*" N
#2 +
1 X
m2n = 2 Cn cos(2 nf t + n)
M
n=1
Using m(t) and M allows us to write (7.140). Using the preceding result in (7.146), with
replaced by D since the signal is no longer sinusoidal,allows determination of (7.148) as was
done in Example 7.4. This completes the problem. Note that the di¢ culty lies in …nding
the normalization constant M . Finding M for a speci…c signal will, in general, require using
MATLAB or similar tool to plot m(t).
Problem 7.30
The instantaneous frequency deviation in Hz is
f = fd m (t) = x (t)
Therefore,
r
2
j fj = fd m
The preceding expression can be placed in terms of the deviation ratio, D, by letting
fd
D=
W
and
BT = 2 (D + 1) W
Problem 7.31
Using the PLL transfer function (The linear model is assumed valid since the input SNR is
assumed large, which yields small phase errors.) gives
N0
S (f ) = S (f ) jG(f )j2 = jG(f )j2
A2c
where G(f ) is the transfer function relating the phase error (f ) to the input phase (f )
(See (3.221)). The variance of the phase error is
Z Z
N0 1 2N0 1
2
= 2 jG(f )j2 df = 2 jG(f )j2 df
Ac 1 Ac 0
The integral represents the equivalent noise bandwidth BL of the PLL based on the closed-
loop transfer function G(f ). We have obviously assumed BL B, which is typically the
case. Thus
2 2N0 BL N0 BL
= =
A2c S
where S = A2c =2 is the input signal power. The input noise is assumed Gaussian. The
phase error is therefore Gaussian since it is a linear transformation, through the transfer
function G(f ), of the input noise. The preceding expression shows that the phase error
variance is the reciprocal of the signal-to-noise ratio, where the noise power is measured in
the bandwidth of the transfer function G(f ).
Problem 7.32
The peak value of the signal is 12:5 so that the signal power is
1
S= (12:5)2 = 78:125
2
If the A/D converter has a wordlength n, there are 2n quantizing levels. Since these span
the peak-to-peak signal range, the width of each quantization level is
25 n
S= = 25 2
2n
This gives
1 2 1
"2 = S = (25)2 2 2n
= (52:08)2 2n
12 12
This results in the signal-to-noise ratio
S 78:125 2n 3 2n
SN R = = 2 = 2
"2 52:08 2
7.1. PROBLEMS 29
Problem 7.33
PPM was de…ned in Chapter 3. Assume that the pulse position is represented by
(t) = o + 1 mn (t)
where o is the nominal pulse position for m(t) = 0 and 1 establishes the peak o¤set from
the nominal pulse position and is adjusted so that the pulse does not deviate outside of its
assigned slot. We assume a zero-mean signal so that
m(t) = 0
for which = o . The pulse is detected when the received pulse crosses a threshold. When
noise is added to the pulse we can approximate the error in detecting the threshold crossing
as
(t1 ) n(t1 )
=
TR A
where TR is the pulse risetime, t1 is the point at which the pulse would cross the threshold
in the absence of noise, and A represents the pulse amplitude. Thus, in general
2 2
2
TR TR
= n2 = No BT
A A
As we saw in Chapter 2, the relationship between risetime and bandwidth gives TR = 1=2BT ,
where BT is the transmission bandwidth. We let
1 1
0 = 2TR = 2 =
2BT BT
This gives
2
2
1 No
= No BT =
2ABT 4A2 BT
The average transmitted signal power is
o
PT = A2
Ts
where Ts is the sampling frequency or 1=2W assuming Nyquist rate sampling. Using this
in the preceding equation by substituting for A2 gives
2
No o
=
4PT Ts BT
Since 1 mn (t) represents the signal, the received signal power is
2 2
SD = 1 mn
30 CHAPTER 7. NOISE EFFECTS IN SIMPLE MODULATION SYSTEMS
we have
2 m2 4PT Ts BT 1 4PT BT
1 n 2 2 2 2
(SNR)D = = 1 mn = 1 mn
2 No o 2W No o
or
2 2 2BT PT PT
(SNR)D = 1 mn = 2 21 m2n BT2
o No W No W
where we have used o = 1=BT . The peak-to-peak pulse displacement is 2 1 = Ts = 1=2W
so that 1 = 1=4W . Substituting this into the preceding equation yields
2
1 BT PT
(SNR)D = m2n
8 W No W
% File: ce7_1a.m
snrdb = [0 1 2];
snr = 10.^(snrdb./10);
varphas = 0:0.1:1;
hold on
for k=1:3
nerrqpsk = varphas + (1/snr(k));
plot(varphas,nerrqpsk’)
end
hold off
grid, xlabel(’Phase Error Variance’), ylabel(’Normalized MSE (QDSB)’)
% End of script file.
7.2. COMPUTER EXERCISES 31
1.8
1.6
Normalized MSE (QDSB)
1.4
1.2
0.8
0.6
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
Phase Error Variance
Figure 7.9: Normalized mse for QDSB and SSB with the SNR as a parameter.
Executing the program gives the results illustrated in Figure 7.9. We see from the de…ning
equation that the mse is linear in the phase error variance for a given SNR. The SNR simply
provides an o¤set (SNR = 1 (0 dB) curve is on top).
% File: ce7_1b.m
snrdb = [0 1 2];
snr = 10.^(snrdb./10);
varphas = 0:0.1:1;
hold on
for k=1:3
nerrqpsk = 0.75*varphas.*varphas + (1/snr(k));
plot(varphas,nerrqpsk’)
end
hold off
grid, xlabel(’Phase Error Variance’), ylabel(’Normalized MSE (DSB)’)
32 CHAPTER 7. NOISE EFFECTS IN SIMPLE MODULATION SYSTEMS
1.8
1.6
Normalized MSE (DSB)
1.4
1.2
0.8
0.6
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
Phase Error Variance
Figure 7.10: Normalized mse for DSB with the SNR as a parameter.
This yields the result shown in Figure 7.10. The mse is now quadradic in the phase
error variance for a given SNR. The SNR again simply provides an o¤set (SNR = 1 (0 dB)
curve is on top).
% File: ce7_2.m
zdB = 0:50; % predetection SNR in dB
z = 10.^(zdB/10); % predetection SNR
beta = [1 5 10 20]; % modulation index vector
hold on % hold for plots
for j=1:length(beta)
bta = beta(j); % current index
a1 = exp(-(0.5/(bta+1)*z)); % temporary constant
7.2. COMPUTER EXERCISES 33
80
70
20
60
Postdetection SNR in dB
50
5
40
1
30
20
10
-10
0 5 10 15 20 25 30 35 40 45 50
Predetection SNR in dB
Executing the program gives the results shown in Figure 7.11. We see that the threshold
e¤ect is less pronounced. A smaller value of yields a smaller bandwidth and decreased
detection gain.
The MATLAB program which solves this computer exercise is a modi…cation of the program
used in Computer Example 7.2 and follows:
% File: ce7_3.m
zdB = 0:0.1:40; % predetection SNR in dB
z = 10.^(zdB/10); % predetection SNR
beta = [2 4 6 8 10 15 20]; % modulation index vector
hold on % hold for plots
for j=1:length(beta)
a2 = exp(-(0.5/(beta(j)+1)*z));
a1 = q(sqrt((1/(beta(j)+1))*z));
r1 = 1+(4*sqrt(3)*(beta(j)+1)*a2);
r2 = r1+((12/pi)*beta(j)*a2);
semilogy(zdB,r2,’k’)
axis([10 30 0 4])
grid
end
hold off % release
xlabel(’Predetection SNR in dB’)
ylabel(’1+D_2+D_3’)
% End of script file.
This program gives the results shown in Figure 7.12 for = 2, 4, 6, 8 10, 15, and 20. We
see that denominator has a value of two for = 2 at approximately 13 dB. This increases
to approximately 23.5 dB at an index of 20. These values can be taken o¤ Figure 7.12
and plotted if desired. It is clear that the predetection SNR for which the denominator of
(7.148) is equal to 2 increases as the modulation index increases.
% File: ce7_4.m
zdB = 0:50; % predetection SNR in dB
z = 10.^(zdB/10); % predetection SNR
beta = [5 20]; % modulation index vector
hold on % hold for plots
7.2. COMPUTER EXERCISES 35
3.5
2.5
1+D2+D3
4 6
2
2 8 10 15
1.5
20
0.5
0
10 12 14 16 18 20 22 24 26 28 30
Predetection SNR in dB
for j=1:length(beta)
bta = beta(j); % current index
a1 = exp(-(0.5/(bta+1)*z)); % temporary constant
a2 = q(sqrt(z/(bta+1))); % temporary constant
num = (1.5*bta*bta)*z;
den1 = 1+(4*sqrt(3)*(bta+1))*(z.*a2);
den2 = 1+(4*sqrt(3)*(bta+1))*(z.*a2)+(12/pi)*bta*(z.*a1);
result1dB = 10*log10(num./den1); % w/o modulation
result2dB = 10*log10(num./den2); % with modulation
plot(zdB,result1dB,’k’,zdB,result2dB,’k-.’)
end
hold off
legend(’w/o modulation’,’with modulation’,4)
xlabel(’Predetection SNR in dB’)
ylabel(’Postdetection SNR in dB’)
% End of script file.
Executing the program gives the results shown in Figure 7.13. We see, as expected, that
above threshold the results are identical. This results since the above-threshold performance
is only a function of the predetection SNR and the modulation index. Below threshold,
a region in which we typically have little interest, the inclusion of modulation reduces the
postdetection SNR, since the denominator of the postdetection SNR expression is increased.
% File: ce7_5.m
% beginning of preprocessor
clear all % be safe
fdel = 40; fn = 10; zeta = 0.707;
varn = input(’Enter phase noise variance > ’);
npts = 2000; % number of simulation points
fs = 2000; % default sampling frequency
T = 1/fs;
t = (0:(npts-1))/fs; % time vector
nsettle = fix(npts/10); % set nsettle time as 0.1*npts
Kt = 4*pi*zeta*fn; % loop gain
7.2. COMPUTER EXERCISES 37
80
70
60
Postdetection SNR in dB 50
40
30
20
10
w/o modulation
with modulation
0
0 5 10 15 20 25 30 35 40 45 50
Predetection SNR in dB
vco_in_last = vco_in;
vco_out_last = vco_out;
phierror(i)=s1;
fvco(i)=vco_in/(2*pi);
freqerror(i) = fin(i)-fvco(i);
end
% end of simulation loop - beginning of postprocessor
subplot(2,1,1), plot(t,fin,t,fvco), grid
xlabel(’Time - Seconds’)
ylabel(’Frequency - Hertz’)
subplot(2,1,2), plot(phierror/2/pi,freqerror), grid
xlabel(’Phase Error / 2*pi’)
ylabel(’Frequency Error - Hz’)
% end of postprocessor
% End of script file.
The program is executed twice, …rst with a phase noise variance of zero as a reference and
then with a phase noise variance of 0.4. The results are illustrated in Figures 7.14 and
7.15. We see that the acquisition time is increased. The student is warned that with noise
present, the number of cycles slipped, and consequently the acquisition time, is a random
variable. This should be kept in mind when attempting to reproduce these results.
or
xc (t) = [Ac + nc (t)] cos(2 fc t + ) ns (t) sin(2 fc t + )
where
1 ns (t) 1 ns (t) ns (t)
(t) = tan tan =
Ac + nc (t) Ac Ac
7.2. COMPUTER EXERCISES 39
60
Frequency - Hertz
40
20
-20
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
Time - Seconds
60
Frequency Error - Hz
40
20
-20
0 0.5 1 1.5 2 2.5 3 3.5
Phase Error / 2*pi
80
Frequency - Hertz
60
40
20
-20
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
Time - Seconds
60
Frequency Error - Hz
40
20
-20
-40
-1 0 1 2 3 4 5 6
Phase Error / 2*pi
The approximation results since the input SNR is assumed large. We therefore use (t) as
the input to the baseband PLL model. The SNR of the input signal is
A2c =2 A2c
= 2
=
n 2 2n
2 1
2 n
= =
A2c 2
In the following program we set the phase error variance. Note that this does not determine
the SNR. One can set 2n at some value (such as 1) and then adjust Ac to give the required
SNR.
% File: ce7_6.m
% beginning of preprocessor
clear all % be safe
fn = 10; zeta = 0.707;
varn = input(’Enter noise variance > ’);
npts = 50000; % number of simulation points
fs = 2000; % sampling frequency
T = 1/fs;
t = (0:(npts-1))/fs; % time vector
Kt = 4*pi*zeta*fn; % loop gain
a = pi*fn/zeta; % loop filter parameter
filt_in_last = 0; filt_out_last=0;
vco_in_last = 0; vco_out = 0; vco_out_last=0;
% end of preprocessor - beginning of simulation loop
for i=1:npts
phin = sqrt(varn)*randn(1);
s1 = phin - vco_out;
aa(1,i) = s1;
s2 = sin(s1); % sinusoidal phase detector
s3 = Kt*s2;
filt_in = a*s3;
filt_out = filt_out_last + (T/2)*(filt_in + filt_in_last);
filt_in_last = filt_in;
filt_out_last = filt_out;
vco_in = s3 + filt_out;
vco_out = vco_out_last + (T/2)*(vco_in + vco_in_last);
7.2. COMPUTER EXERCISES 41
4500
4000
3500
3000
Number of Samples
2500
2000
1500
1000
500
0
-2 -1.5 -1 -0.5 0 0.5 1 1.5 2
Histogram Bin
vco_in_last = vco_in;
vco_out_last = vco_out;
phierror(i)=s1;
end
% end of simulation loop - beginning of postprocessor
[N_samp,x] = hist(aa,40); % get histogram parameters
bar(x,N_samp,1)
xlabel(’Histogram Bin’), ylabel(’Number of Samples’)
% end of postprocessor
% End of script file.
Executing the program gives the histogram illustrated in Figure 7.16. The histogram sug-
gests that the pdf of the phase error is closely gaussian.
% File: ce7_7.m
n = 8; % wordlength
snrtdB = 0:0.1:30; % predetection snr in dB
snrt = 10.^(snrtdB/10); % predetection snr
Pb1 = q(sqrt(snrt)); % bit error probability for FSK
Pb2 = q(sqrt(2*snrt)); % bit error for BPSK
Pw1 = 1-(1-Pb1).^n; % Pw for FSK
Pw2 = 1-(1-Pb2).^n; % Pw for BPSK
a = 2^(-2*n); % temporary constant
snrd1 = 1./(a+Pw1*(1-a));
snrddB1 = 10*log10(snrd1); % postdetection snr (FSK)
snrd2 = 1./(a+Pw2*(1-a));
snrddB2 = 10*log10(snrd2); % postdetection snr (BPSK)
plot(snrtdB,snrddB1,’k’,snrtdB,snrddB2,’k-.’)
legend(’FSK’,’BPSK’)
xlabel(’Predetection SNR in dB’)
ylabel(’Postdetection SNR in dB’)
% End of script file.
The results are shown in Figure 7.17. We see that above threshold, the postdetection SNR is
independent of the modulation scheme. This, of course, was expected since above threshold
the postdetection SNR is a function only of wordlength. We also note that the use of
BPSK extends the threshold over that of FSK due to the 3-dB improvement in bit error
probability.
50
FSK
45 BPSK
40
35
Postdetection SNR in dB
30
25
20
15
10
0
0 5 10 15 20 25 30
Predetection SNR in dB
The preceding function …le is called by a program that sets up the reference signal and
the measuremenjt signal. The system under study for this example is a channel having a
sinusoidal input. An interfering signal and noise are added in the channel. The paremeters
are established in the following program.
% File: snrmsepost.m
npts = 1024; % data points
n = 1:npts;
A = 20; % signal amplitude
B = 2; % interference amplitude
phii = rand(1); % interference phase
fd = 2; % signal frequency
fi = 3; % interference frequency
theta = 2*pi*n/npts; % phase increment
44 CHAPTER 7. NOISE EFFECTS IN SIMPLE MODULATION SYSTEMS
Prior to executing the program we …rst calculate the SNR at the point of measurement.
Some of the obvious results are as follows:
(20)2
Px = = 200
2
1 A 2 (2)2
Py = + + 0:1 = 50 + 2 + 0:1 = 52:1
2 2 2
1
Gain =
2
512
Delay = = 64
8
These values are easily understood. The reference signal is a sinusoid with a peak
amplitude A = 20, which has a power of 200 Watts. The power at the measurement
point is the sum of a signal of peak amplitude of A=2, an independent interfering sinusoid
with peak amplitude B = 2, and additive noise having variance 0.1. Since the signal
at the measurement point is a sinusoid of amplitude A=2 and the reference signal has a
peak amplitude of amplitude A, the theoretical gain is 0.5. The delay requires a bit more
thought. Since 1024 samples are taken in an FFT block, and the reference signal goes
through 2 periods in 1024 samples, the period of the signal is 512 samples. Since the phase
shift of the signal at the measurement point is =2, which is 1/8 of a period, the theoretical
delay is 512/8 or 64 samples. In addition, since the signal is periodic, a valid delay is
k(512) 64 samples where k is an arbitrary integer.
The theoretical SNR requires a bit of calculation. Since the interference is orthogonal
to the signal (di¤erent frequencies) we consider the interference to be noise. Also, the noise
is independent of the signal. Therefore the noise power is the sum of the interference power
plus the noise power. This gives
(2)2
N= + 0:1 = 2:1
2
7.2. COMPUTER EXERCISES 45
» snrmsepost
» px
px = 200.0000
» py
py = 52.4432
» gain
gain = 0.5016
» delay
delay = 448
» snrdb
snrdb = 13.7322
All of these valuse are very close to the theoretical values previously determined. We should
recall that any calculation involving noise will be a random variable. One source of error
is that a su¢ cient number of samples must be processed to ensure that the variance of
the result must be small. Another source of error, and often the most important source of
error, results in the peak of the crosscorrelation function being missed. This problem can
be reduced by increasing the sampling frequency.
2 1
0.8
1.5
0.6
1
Compressor Characteristic
0.4
Expander Characteristic
0.5
0.2
0 0
-0.2
-0.5
-0.4
-1
-0.6
-1.5
-0.8
-2 -1
-1 -0.5 0 0.5 1 -2 -1 0 1 2
Time Time
L1 = 0 X =8
L2 = =8 X =4
L3 = =4 X 3 =8
L4 = 3 =8 X =2
L5 = =8 X 0
L6 = =4 X =8
L7 = 3 =8 X =4
L8 = =2 X 3 =8
The expander characteristic has a sinusoidal characteristic to restore the original sinusiodal
signal. The compressor and expander characteristics are given in Figure 7.18 and the original
signal, the compressed signal, and the expanded signal are shown in Figure 7.19.
7.2. COMPUTER EXERCISES 47
1
Orig. sig.
-1
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
2
Compressed sig.
-2
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
1
Expanded sig.
-1
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
Time