Chap7 - Digital Transmission Via Carrier Modulation
Chap7 - Digital Transmission Via Carrier Modulation
7.1 Preview
(7 .2.1)
where Am is the amplitude of the mth waveforms and gy(t) is a pulse whose shape
determines the spectral characteristics of the transmitted signal. The spectrum of the
baseband signals is assumed to be contained in the frequency band Iii � W, where
W is the bandwidth of I Gy(j) 12, as illustrated in Figure 7 .1. Recall that the signal
amplitude takes the discrete values
313
Copyright 2011 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not material1y affect the overall learning experience. Cengage Leaming reserves the right to remove additional content at any time if subsequent rights restrictions require it.
31 4 CHAPT ER 7. DIGITAL T RANSMISSION VIA CARRIER MODULATION
--=------L---=L-�/
-W 0 W
Baseband
signal --
'
---1•� x f----·
Bandpass signal
sm(t) cos 21tfc t
sm(t)
Carrier
cos (27tfc t)
Figure 7.2: Amplitude modulation of a sinusoidal carrier by the baseband PAM signal
To transmit the digital signal waveforms through a bandpass channel, the baseband
signal waveforms Sm(t), m = 1,2,... ,M, are multiplied by a sinusoidal carrier of the
form cos 2rrJct, as shown in Figure 7.2, where Jc is the carrier frequency (Jc > W)
and corresponds to the center frequency in the passband of the channel. Hence, the
transmitted signal waveforms are expressed as
In the special case when the transmitted pulse shape gy(t) is rectangular-that is,
gy(t) = {�·0,
0 �
otherwise
t � T
(7.2.4)
Thus, the spectrum of the baseband signal Sm(t) = AmBr(t) is shifted in frequency by
the carrier frequency Jc. The bandpass signal is a double-sideband suppressed-carrier
(DSB-SC) AM signal, as illustrated in Figure 7.3.
Copyright 2011 Cengage Leaming. AJI Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to eJectronic rights, some third party content may be suppressed from the eBook andlor eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions l'«tuire it.
7.2. CARRIER-AMPLITUDE MODULATION 315
�---J
-t:==----��-1-���=-��
-W 0 W
(a)
A,,/2
�������-- /
O
-Jc - W -fc -fc +
W fc- W fc fc + W
(b)
-5d -3d -d 0 d 3d 5d
We note that impressing the baseband signal Sm(t) onto the amplitude of the carrier
signal cos 2rrJc (t) does not change the basic geometric representation of the digital
PAM signal waveforms. The bandpass PAM signal waveforms may be represented in
general as
Um(t) = Sml./J(t) (7 .2.5)
where the signal waveform l./J(t) is defined as
and
m=l,2, . . . ,M (7.2.7)
denotes the signal points that take the M values on the real line, as shown in Figure 7.4 .
The signal waveform t.jJ(t) is normalized to unit energy; that is,
(7.2.8)
Consequently,
oo 1 oo 1 oo
f _
00
Bf (t) cos2 2rrJct dt = 2
J _
00
Bf (t) dt + 2
J_
00
Bf (t) cos 4rrJct dt
=1 (7 .2.9)
Copyright 2011 Cengage Leaming. AJI Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to eJectronic rights, some third party content may be suppressed from the eBook andlor eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions l'«tuire it.
316 CHAPT ER 7. DIGITAL T RANSMISSION VIA CARRIER MODULATION
But
(7.2.10)
because the bandwidth W of BT(t) is much smaller than the carrier frequency-that
is,Jc » W. In such a case, BT(t) is essentially constant within any one cycle of
cos4rrJct; hence, the integral in (7.2.10) is equal to zero for each cycle of the inte
grand. In view of (7.2.10), it follows that
Therefore, BT(t) must be appropriately scaled so that (7.2 .8) and (7.2.11) are satisfied.
and where nc(t) and n5(t) are the quadrature components of the noise. By cross
correlating the received signal r(t) with 1.fJ (t) given by (7.2.6), as shown in Figure 7.5,
we obtain the output
where n represents the additive noise component at the output of the correlator.
The noise component has a zero mean. Its variance can be expressed as
(7.2.15)
Received --�
signal r(t)
f�()dt Sampler To detector
Signal
pulse Clock
generator
Oscillator
Copyright 2011 Cengage Leaming. AJI Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to eJectronic rights, some third party content may be suppressed from the eBook andlor eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions l'«tuire it.
7.2. CARRIER-AMPLITUDE MODULATION 317
where 'I' (j) is the Fourier transform of lfJ (t) and Sn(j) is the power spectral density
of the additive noise. The Fourier transform of lfJ (t) is
(7.2.16)
and the power spectral density of the bandpass additive noise process is
Sn(j)
{ No
2 '
If - fc I � W
(7.2.17)
0,
=
otherwise
By substituting (7.2.16) and (7.2.17) into (7.2.15) and evaluating the integral, we obtain
a� = No/2.
It is apparent from (7.2.14), which is the input to the amplitude detector, that the
probability of error of the optimum detector for the carrier-modulated PAM signal is
identical to that of baseband PAM. That is,
2(M -
1) Q ( 6(log2 M)Eavb ) (7.2.18)
(M2 - l)No
PM
M
=
Figure 7.6 illustrates these two spectral characteristics. The M ATLAB script for this
computation is given next.
120 -�-
, -
, �-
, -
, �, �-
, ,� �-
, ,�
100 �
150
80 �
100 60 �
40 �
50
20 �
0 o .__...__,__.___,__.___.___.___,__..._____.
-1 -0.5 0 0.5 -50 -40 -30 -20 -10 0 10 20 30 40 50
f f
Copyright 2011 Cengage Leaming. AJI Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to eJectronic rights, some third party content may be suppressed from the eBook andlor eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions l'«tuire it.
318 CHAPT ER 7. DIGITAL T RANSMISSION VIA CARRIER MODULATION
-41111i" ------
% MATLAB script for Illustrated Problem 7.1.
echo on
T=1;
delta_T=T/200; % sampling interval
alpha=0.5; % rollojf factor
fc=40/T; % carrier frequency
A_m=1; % amplitude
t=-5*T +delta_T:delta_T:5*T; % time axis
N=length(t);
for i=1:N,
if (abs(t(i)r=T/(2*alpha)),
g_T(i) = sinc(t(i)/T)*(cos(pi*alpha*t(i)/f)/(1-4*alphaA2*t(W2/fA2));
else
g_T(i) = O; % The value of g_T is 0 at t=Tl(2*alpha)
end; % and at t=-Tl(2*alpha).
echo off ;
end;
echo on;
G_T=abs(fft(g_ T)); % spectrum of g_T
u_m=A_m*g_T.*cos(2*pi*fc*t); % the modulated signal
u_m=abs(fft(u_m)); % spectrum of the modulated signal
% actual frequency scale
f=-0.5/delta_ T:1/(delta_ T*(N-1)):0.5/delta_ T;
% Plotting commands follow.
figure(1);
plot(f,fftshift(G_ T));
axis([-1/T 1/f 0 max(G_T)]);
figure(2);
plot(f,fftshift(U_m));
---llMllJ§il;ful�Nii;t•1:Jl§@I
Illustrative Problem 7 .2 [Demodulation of Bandpass Digital PAM Signal]
Figure 7 .5 illustrates the demodulation of a bandpass digital PAM signal, which
involves cross-correlating the received signal
gy(t) = { ti
0,
·
0:5t:5T
otherwise
Copyright 2011 Cengage Leaming. AJI Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to eJectronic rights, some third party content may be suppressed from the eBook andlor eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions l'«tuire it.
7.2. CARRIER-AMPLITUDE MODULATION 319
where the sampling interval is Ts = T/100 and the carrier frequency Jc = 30/T. The
noise samples nc(kTs) and ns(kTs) are statistically independent, zero-mean Gaussian
with variance cr2• Perform the computation and plot y( nTs) for n= 1, 2, ..., 100 and
2 2 2
cr = 0, cr = 0.0 5, and cr = 0.5.
•H•1llill•1ijt
For convenience we set T = 1. Figure 7 .7 shows the demodulator output over the entire
signal interval. First we note that the double frequency terms average out to zero, as
best observed in the case where cr2 = 0. Secondly, we observe the effect of the additive
noise on the correlator output as cr2 increases.
The MATLAB script for the problem is given below.
----®Ii" ------
% MATLAB script for Illustrative Problem 7.2
Copyright 2011 Cengage Leaming. AJI Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to eJectronic rights, some third party content may be suppressed from the eBook andlor eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions l'«tuire it.
320 CHAPT ER 7. DIGITAL T RANSMISSION VIA CARRIER MODULATION
2
(J = 0
100
50
20 40 60 80 100
n
2
cr = 0.05
100
50
20 40 60 80 100
n
2
(J = 0.5
100
50
20 40 60 80 100
n
Copyright 2011 Cengage Leaming. AJI Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to eJectronic rights, some third party content may be suppressed from the eBook andlor eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions l'«tuire it.
7.3. CARRIER-PHASE MODULATION 321
7 .3 Carrier-Phase Modulation
modulation (M = 2), the two carrier phases are eo = 0 and e1 = TT rad. For M-ary
phase modulation, M = zk, where k is the number of information bits per transmitted
symbol.
The general representation of a set of M carrier-phase-modulated signal waveforms
is
m = 0,1,... , M - 1 (7.3.1)
where BT(t) is the transmitting filter pulse shape, which determines the spectral char
acteristics of the transmitted signal, and A is the signal amplitude. This type of digital
phase modulation is called phase-shift keying (PSK). We note that PSK signals have
equal energy; that is,
(7.3.2)
00
2rrm
=
f _ A2Bf(t) cos2
( 2rr fc t + �
) dt
"" ""
00
1 1 4rrm
= 2
J _
00
A2Bf(t) dt + 2
J _
00
A2Bf(t) cos
( 4rr fc t + �
) dt
A2 "" Bf(t) dt
= -
2 J -
00
(7.3.3)
where E5 denotes the energy per transmitted symbol. The term involving the double
frequency component in (7.3.2) averages out to zero when fc » W, where W is the
bandwidth of BT(t).
W hen BT(t) is a rectangular pulse, it is defined as
In this case, the transmitted signal waveforms in the symbol interval 0 :::: t :::: T may
be expressed as (with A = {Es)
2rrm
( )
{2E;
um(O = \;-r cos 2rr fc t + � , m = 0,1,... , M - 1 (7.3.6)
Note that the transmitted signals given by (7.3.6) have a constant envelope, and the
carrier phase changes abruptly at the beginning of each signal interval. Figure 7 .8
illustrates a four-phase (M = 4) PSK signal waveform.
Copyright 2011 Cengage Leaming. AJI Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to eJectronic rights, some third party content may be suppressed from the eBook andlor eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions l'«tuire it.
322 CHAPT ER 7. DIGITAL T RANSMISSION VIA CARRIER MODULATION
t t t
!\ (\ f\ (\ (\ (:(\ (\ )lo t
0 T 2T 3T 4T
By viewing the angle of the cosine function in (7.3 .6) as the sum of two angles, we
may express the waveforms in (7.3.1) as
Um(t) = ffs BT(t) cos ( 2:m ) cos 2rrfct - ffs BT(t) sin ( 2:m ) sin2rrfct
= Smcl.fJ1(t) + Smsl.fJ2(t) (7.3.7)
where
m 2rr
Smc = ffs COS �
Sms
re: . 2rrm
= v.c:.s Sill � (7 .3 .8)
By appropriately normalizing the pulse shape BT(t), we can normalize the energy of
these two basis functions to unity. Thus, a phase-modulated signal may be viewed as
two quadrature carriers with amplitudes that depend on the transmitted phase in each
signal interval. Hence, digital phase-modulated signals are represented geometrically
as two-dimensional vectors with components Smc and Sms -that is,
Signal point constellations for M = 2, 4, and 8 are illustrated in Figure 7.9. We observe
that binary phase modulation is identical to binary PAM (binary antipodal signals).
The mapping, or assignment, of k information bits into the M = 2k possible phases
may be done in a number of ways. The preferred assignment is to use Gray encoding,
in which adjacent phases differ by one binary digit, as illustrated in Figure 7.9. Conse
quently, only a single bit error occurs in the k-bit sequence with Gray encoding when
noise causes the erroneous selection of an adjacent phase to the transmitted phase.
Copyright 2011 Cengage Leaming. AJI Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to eJectronic rights, some third party content may be suppressed from the eBook andlor eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions l'«tuire it.
7.3. CARRIER-PHASE MODULATION 323
01 00
·-----
010. 000
I
I
I
I
I uo
I
I
•
I
I
-- ---- ----·
11 10 111• •101
----tlMQ1".il;f4iiltJ#IW;t•1=JM§I·•------
Illustrative Problem 7.3 [PSK Waveform] Generate the constant-envelope PSK sig
nal waveforms given by (7.3.6) for M = 8. For convenience, the signal amplitude is
normalized to unity.
Figure 7 .10 illustrates the eight waveforms for the case in which Jc 6/T. The
MATLAB script for this computation is given next.
Copyright 2011 Cengage Leaming. AJI Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to eJectronic rights, some third party content may be suppressed from the eBook andlor eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions l'«tuire it.
324 CHAPT ER 7. DIGITAL T RANSMISSION VIA CARRIER MODULATION
-41111i" ------
% MATLAB script for Illustrative Problem 7.3.
echo on
T=1;
M=B;
Es=T/2;
fc=6/T; % carrier frequency
N=100; % number of samples
delta_ T=T/(N-1);
t=O:delta_ T:T;
u0=sqrt(2*Es/T)*cos(2*pi*fc*t);
ul=sqrt(2*Es/T)*cos(2*pi*fc*t+2*pi/M);
u2=sqrt(2*Es/T)*cos(2*pi*fc*t+4*pi/M);
u3=sqrt(2*Es/T)*cos(2*pi*fc*t+6*pi/M);
u4=sqrt(2*Es/T)*cos(2*pi*fc*t+8*pi/M);
u5=sqrt(2*Es/T)*cos(2*pi*fc*t+1 O*pi/M);
u6=sqrt(2*Es/T)*cos(2*pi*fc*t+12*pi/M);
u7=sqrt(2*Es/T)*cos(2*pi*fc* t+14*pi/M);
% plotting commands follow
subplot(8,1,1);
plot(t,uO);
subplot(8,1,2);
plot(t,ul);
subplot(8,1,3);
plot(t,u2);
subplot(8,1,4);
plot(t,u3);
subplot(8,1,5);
plot(t,u4);
subplot(8,1,6);
plot(t,u5);
subplot(8, 1,7);
plot(t,u6);
subplot(8,1,8);
plot(t,u7);
The received bandpass signal in a signaling interval from an AWGN channel may be
expressed as
where nc (t) and n5 (t) are the two quadrature components of the additive noise.
The received signal may be correlated with l/Ji (t) and 1./12 (t) given by (7.3.9). The
outputs of the two correlators yield the noise-corrupted signal components, which may
Copyright 2011 Cengage Leaming. AJI Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to eJectronic rights, some third party content may be suppressed from the eBook andlor eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions l'«tuire it.
7.3. CARRIER-PHASE MODULATION 325
be expressed as
r =Sm+ n
( v EsCOS
rr 2rrm
=
� +nc (7.3.12)
1 oo
ns = 2 J gy(t)ns(t) dt
_00 (7.3.13)
----tlll4-il;fu1Wj§;t•1:JM§I·•------
Illustrative Problem 7 .4 [Demodulation of PSK Signals]
In this problem, we consider the demodulation of a M = 4 PSK signal waveform
r(t) as given in (7.3.11), where the transmitted signal is given in (7.3.7) and n(t) is
the additive Gaussian noise process. The pulse shape gy(t) is rectangular; that is,
gy(t) =
{.ft 0 :5, t :5, T
0 otherwise
The demodulator employs two quadrature correlators to compute the two inputs to the
detector at the sampling time T.
Copyright 2011 Cengage Leaming. AJI Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to eJectronic rights, some third party content may be suppressed from the eBook andlor eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions l'«tuire it.
326 CHAPT ER 7. DIGITAL T RANSMISSION VIA CARRIER MODULATION
n = 1, 2, ... , 10 0, cr2 = 0, cr2 = 0.0 5, cr2 = 0.5 and each of the phases in a four
phase PSK signal.
For convenience we set T = 1. Figure 7 .11 illustrates the correlator outputs over the
entire signal interval for the four possible transmitted phases. Note that the double fre
quency terms average out to zero, as best observed in the case where cr2 = 0 . Secondly,
2
we observe the effect of the additive noise on the correlator outputs as cr increases.
The MATLAB script for the problem is given below.
----411®1@11 ------
% MATLAB script for Illustrative Problem 7.4
M= 4;
Es= 1; % Energy per symbol
T= 1;
Ts= 100ff;
fc= 30ff;
t= O:T/1
OO:T;
Lt= length(t);
g_T= sqrt(2ff)*ones(1,Lt);
sLl = g_T.*cos(2*pi*fc*t);
sL2= -g_T.*sin(2*pi*fc*t};
for m= 0: 3
% Generation of the transmitted signal:
s_mc= sqrt(Es} * cos(2*pi*m/M);
s_ms= sqrt(Es} * sin(2*pi*m/M);
u_m= s_mc.*sLl + s_ms.*sL2;
var= [ 0 0.05 0.5]; % Noise variance vector
if (m== 2)
figure
end
for k= 1: length(var)
% Generation of the noise components:
n_c= sqrt(var(k}}*randn(1,Lt);
n_s= sqrt(var(k}}*randn(1,Lt);
% The received signal:
r= u_m + n_c.*cos(2*pi*fc*t) - n_s.*sin(2*pi*fc*t);
% The correlator outputs:
y_c= zeros(1,Lt);
y_s= zeros(1,Lt);
for i= 1
:Lt
y_c(i)= sum(r(1 :i));
:i).*sL1 (1
y_s(i)= sum(r(1 :i));
:i).*sL2(1
end
% Plotting the results:
subplot(3,2,2*k-1+mod(m,2))
plot([O :length(y_c)-1],y_c,'
1 • - ')
hold
plot([O :length(y_s)-1],y_s)
1
title([ '\ sigma" 2 = ',num2str(var(k}}]}
Copyright 2011 Cengage Leaming. AJI Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to eJectronic rights, some third party content may be suppressed from the eBook andlor eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions l'«tuire it.
7.3. CARRIER-PHASE MODULATION 327
.!Ao00' ,'.0,0°90'
150 100
80
60
�.. 4C
20
-50 -20
0 10 20 80 40 50 60 70 80 90 100 0 10 20 90 40 50 60 70 80 90 100
.'00,0°180 ,'.0,0°210'
50 50
'
? ?
�,
-50 �· -5C
-100 -100
-150 -150
0 10 20 80 40 50 60 70 80 90 100 0 10 20 90 40 50 80 70 80 90 100
o'.o.os,o.o ,'.o.os,0.90
150 150
100 100
�� 50 ! "SC
-50 -50
0 10 20 80 40 50 60 70 80 90 100 0 10 10 so 40 50 60 70 80 90 100
o'0Q05,0°180' o'00.05,0°270'
50 20
-20
�" -4C
-60
-80
-150 -100
0 10 20 80 40 50 60 70 80 90 100 0 10 10 so 40 50 80 70 80 90 100
,'.05,••0· ,'.o.5,•·90
150 150
100 100
�.. SC
-50 -50
0 10 20 so 40 50 60 70 80 90 100 0 10 10 311 40 50 60 70 80 90 100
o':0.5,0.180 o':OS,0•270
10 20
�.. -4C
-50
-80
-100
10 20 so 40 50 60 70 80 90 100 0 10 10 311 40 50 60 70 80 90 100
Copyright 2011 Cengage Leaming. AJI Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to eJectronic rights, some third party content may be suppressed from the eBook andlor eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions l'«tuire it.
328 CHAPT ER 7. DIGITAL T RANSMISSION VIA CARRIER MODULATION
The optimum detector projects the received signal vector r onto each of the M
possible transmitted signal vectors {Sm} and selects the vector corresponding to the
largest projection. Thus, we obtain the correlation metrics
Because all signals have equal energy, an equivalent detector metric for digital phase
modulation is to compute the phase of the received signal vector r = (r1, rz) as
_1 r2
er= tan - (7.3.16)
r1
and select the signal from the set {Sm} whose phase is closest to er.
The probability of error at the detector for phase modulation in an AWGN channel
may be found in any textbook that treats digital communications. Because binary phase
modulation is identical to binary PAM, the probability of error is
(7.3.17)
where Eb is the energy per bit. Four-phase modulation may be viewed as two bi
nary phase modulation systems on quadrature (orthogonal) carriers. Consequently, the
probability of a bit error is identical to that for binary phase modulation. For M > 4,
there is no simple closed-form expression for the probability of a symbol error. A good
approximation for PM is
PM � 2Q (\j�
No sm
. TT
M
)
� 2Q ()2kEb --
No
.
sm-
TT
M
) (7.3.18)
where k = log2M bits per symbol. Figure 7.12 illustrates the symbol-error probability
as a function of the SNR Eb I No.
The equivalent bit-error probability for M-ary phase modulation is also difficult to
derive due to the dependence of the mapping of k-bit symbols into the corresponding
signal phases. When a Gray code is used in the mapping, two k-bit symbols corre
sponding to adjacent signal phases differ in only a single bit. Because the most proba
ble errors due to noise result in the erroneous selection of an adjacent phase to the true
phase, most k-bit symbol errors contain only a single bit error. Hence, the equivalent
bit-error probability for M-ary phase modulation is well approximated as
(7.3.19)
---ti!!IJ§ji;MiW§lij;t•]:'9¥@·1-----
Illustrative Problem 7 .5 [PSK Simulation] Perform a Monte Carlo simulation of an
M = 4 PSK communication system that models the detector as the one that computes
Copyright 2011 Cengage Leaming. AJI Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to eJectronic rights, some third party content may be suppressed from the eBook andlor eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions l'«tuire it.
7.3. CARRIER-PHASE MODULATION 329
2
1
1 0-
5
....
0
2
� Z
'+-< 10 -
0
5
-�
� 2
t 10 -
3
Q...::s 5
2
4
10-
5
2
S
10-
-4 0 4 8 12 16 20 24
SNR/bit, dB
the correlation metrics given in (7.3 .15). The model for the system to be simulated is
shown in Figure 7.13.
Uniform random
number generator Gaussian RNG
4-PSK
Detector 1---r-...- 2-bit symbol
mapper
Gaussian RNG
Compare
Bit-error Symbol-error
counter counter
Figure 7.13: Block diagram of an M = 4 PSK system for a Monte Carlo simulation
As shown, we simulate the generation of the random vector r given by (7.3.12), which
is the output of the signal correlator and the input to the detector. We begin by
Copyright 2011 Cengage Leaming. AJI Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to eJectronic rights, some third party content may be suppressed from the eBook andlor eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions l'«tuire it.
330 CHAPT ER 7. DIGITAL T RANSMISSION VIA CARRIER MODULATION
generating a sequence of quaternary (2-bit) symbols that are mapped into the corre
sponding four-phase signal points, as shown in Figure 7 .9 for M 4. To accomplish
this task, we use a random number generator that generates a uniform random num
ber in the range (0, 1). This range is subdivided into four equal intervals, (0,0.25),
(0.25,0.5), (0.5,0.75), and (0.75, 1.0), where the subintervals correspond to the pairs
of information bits 00, 01, 11, and 10, respectively. These pairs of bits are used to
select the signal phase vector Sm.
10-4
10-s
10-6 '--�-'--�-'-�-'-�--'-�_,_�__,_�---'�---''---
0 2 3 4 5 6 7 8 9 10
Figure 7.14: Performance of a four-phase PSK system from the Monte Carlo simulation
Copyright 2011 Cengage Leaming. AJI Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to eJectronic rights, some third party content may be suppressed from the eBook andlor eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions l'«tuire it.
7.3. CARRIER-PHASE MODULATION 331
--411ili" -------
% MATLAB script for Illustrative Problem 7.5.
echo on
SNRindB 1=0:2:1O;
SNRindB2=0:0.1:1O;
for i=1:length(SNRindBI),
[pb,ps]=cm_sm32(SNRindBl(i)); % simulated bit and symbol error rates
smld_biLerr_prb(i)=pb;
smld_symboLerr_prb(i)=ps;
echo off ;
end;
echo on;
for i=1:length(SNRindB2),
SNR=exp(SNRindB2(i)*log(10)/1O); % signal-to-noise ratio
theo_err_prb(i)=Qfunct(sqrt(2*SNR)); % theoretical bit-error rate
echo off
end;
echo on ;
% Plotting commands follow
semilogy(SNRindBI,smld_biLerr_prb,' * ' );
hold
semilogy(SNRindBI,smld_symboLerr_prb, 'o' );
semilogy(SNRindB2,theo_err_prb);
--411®1i" -------
function [pb,ps]=cm_sm32(snr_in_dB)
% [pb,ps]=cm...sm32(snr_in_dB)
% CM..SM32 finds the probability of bit error and symbol error for the
% given value of snr _in_dB, signal-to-noise ratio in dB.
N=10000;
E=1; % energy per symbol
snr=10"(snr_in_dB/10); % signal-to-noise ratio
sgma=sqrt(E/snr)/2; % noise variance
% the signal mapping
s00=[1 O];
sOI=[O 1];
sll=[-1 O];
slO=[O -1];
% generation of the data source
for i=1:N,
temp=rand; % a uniform random variable between 0 and 1
if (temp<0.25), % With probability 114, source output is "00."
dsourcel(i)=O;
dsource2(i)=0;
elseif (temp<0.5), % With probability 114, source output is "01."
dsourcel(i)=O;
dsource2(i)=1;
elseif (temp<0.75), % With probability 114, source output is "10."
dsourcel(i)=1;
dsource2(i)=O;
else % With probability 114, source output is "11."
Copyright 2011 Cengage Leaming. AJI Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to eJectronic rights, some third party content may be suppressed from the eBook andlor eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions l'«tuire it.
332 CHAPT ER 7. DIGITAL T RANSMISSION VIA CARRIER MODULATION
dsourcel(i)=1;
dsource2(i)=1;
end;
end;
% detection and the probability of error calculation
numofsymbolerror=O;
numofbiterror=O;
for i=1 :N,
% The received signal at the detector, for the ith symbol, is:
n(1)=gngauss(sgma);
n(2)=gngauss(sgma);
if ((dsourcel(i)==O) & (dsource2(i)==0)),
r=sOO+n;
elseif ((dsourcel(i)==O) & (dsource2(i)==1)),
r=sOl+n;
elseif ((dsourcel(i)==1) & (dsource2(i)==0)),
r=slO+n;
else
r=sll+n;
end;
% The correlation metrics are computed below.
cOO=dot(r,sOO);
cOl=dot(r,sOl);
clO=dot(r,slO);
cll=dot(r,sl1);
% The decision on the ith symbol is made next.
c_max:=max:([cOO cOl clO ell]);
if (cOO==c_max:),
decis1=0; decis2=0;
elseif (cOl==c_max:),
decis1=0; decis2=1;
elseif (clO==c_max:),
decis1=1; decis2=0;
else
decis1=1; decis2=1;
end;
% Increment the error counter, if the decision is not correct.
symbolerror=O;
if (decisi-=dsourcel(i)),
numofbiterror=numofbiterror+1;
symbolerror=1;
end;
if (decisZ-=dsource2(i)),
numofbiterror=numofbiterror+1;
symbolerror=1;
end;
if (symbolerror==1),
numofsymbolerror = numofsymbolerror+1;
end;
end;
ps=numofsymbolerror/N; % since there are totally N symbols
pb=numofbiterror/(2*N); % since 2N bits are transmitted
Copyright 2011 Cengage Leaming. AJI Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to eJectronic rights, some third party content may be suppressed from the eBook andlor eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions l'«tuire it.
7.3. CARRIER-PHASE MODULATION 333
(7 .3.20)
where ek is the phase angle of the transmitted signal at the kth signaling interval,
c/> is the carrier phase, and nk nkc + }nks is the noise. Similarly, the received
signal vector at the output of the demodulator in the preceding signaling interval is the
complex-valued quantity
(7.3.21)
The decision variable for the phase detector is the phase difference between these two
complex numbers. Equivalently, we can project rk onto rk-1 and use the phase of the
Copyright 2011 Cengage Leaming. AJI Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to eJectronic rights, some third party content may be suppressed from the eBook andlor eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions l'«tuire it.
334 CHAPT ER 7. DIGITAL T RANSMISSION VIA CARRIER MODULATION
which, in the absence of noise, yields the phase difference ek - ek-1· Thus, the mean
value of rkr:_1 is independent of the carrier phase. Differentially encoded PSK sig
naling that is demodulated and detected as described above is called differential PSK
(DPSK). The demodulation and detection of DPSK are illustrated in Figure 7.15.
The probability of error for DPSK in an AWGN channel is relatively simple to
derive for binary (M 2) phase modulation. The result is
P2
.!e-Eb!No (7.3.23)
2
The graph of (7.3.23) is shown in Figure 7.16. Also shown in this figure is the probability
10-1
2
10-2
5
.....
5 2
] 10-3
'H
0 5
.£
r.:::= 2
�
..c 10-4
0
tl.. 5
r::...""
2
10-5
5
2
10--{i
0 2 4 6 8 10 12 14
SNR/bit, dB
Copyright 2011 Cengage Leaming. AJI Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to eJectronic rights, some third party content may be suppressed from the eBook andlor eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions l'«tuire it.
7.3. CARRIER-PHASE MODULATION 335
of error for binary PSK. We observe that at error probabilities below io-4, the differ
ence in SNR between binary PSK and binary DPSK is less than 1 dB.
For M > 2, the error probability performance of a DPSK demodulator and detector
is extremely difficult to evaluate exactly. The major difficulty is encountered in the
determination of the probability density function for the phase of the random variable
rkrt_1, given by (7.3.22). However, an approximation to the performance of DPSK is
easily obtained, as we now demonstrate.
W ithout loss of generality, suppose the phase difference ek - ek-1 0. Further
-i
more, the exponential factors e-j(ek -</>l and ejCek-</>l in (7.3.22) can be absorbed into
the Gaussian noise components nk- l and nk without changing their statistical proper
ties. Therefore, rkrL1 in (7.3.22) can be expressed as
(7.3.24)
The complication in determining the probability density function of the phase is the
term nknt_1. However, at SNRs of practical interest, the term nknL 1 is small relative
to the dominant noise term $s (nk + nt_1). If we neglect the term nknt_1 and we
also normalize rkrt_1 by dividing through by .,[E;, the new set of decision metrics
becomes
The variables x and y are uncorrelated Gaussian random variables with identical vari
ances er� No. The phase is
1y
er tan- (7.3.26)
x
At this stage we have a problem that is identical to the one for phase-coherent demod
ulation. The only difference is that the noise variance is now twice as large as in the
case of PSK. Thus we conclude that the performance ofDPSK is 3 dB poorer than that
for PSK. This result is relatively good for M � 4, but it is pessimistic for M 2, in
the sense that the loss in binary DPSK relative to binary PSK is less than 3 dB at large
SNR.
----tlll4-il;tfilrijij;J•):)!§i·•-----
Illustrative Problem 7 .6 [DPSK Encoder] Implement a differential encoder for the
case of M 8 DPSK.
The signal points are the same as those for PSK shown in Figure 7.9. However, for
DPSK these signal points represent the phase change relative to the phase of the previ
ous transmitted signal points.
Copyright 2011 Cengage Leaming. AJI Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to eJectronic rights, some third party content may be suppressed from the eBook andlor eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions l'«tuire it.
336 CHAPT ER 7. DIGITAL T RANSMISSION VIA CARRIER MODULATION
The MATLAB script for implementing the differential encoder is given next.
----tl&li" ------
% MATLAB script for Illustrative Problem 7.6.
mapping=[O 1 3 2 7 6 4 5]; % for Gray mapping
M=B;
E=1;
sequence=[O 1 0 0 1 1 0 0 1 1 1 1 1 0 0 0 O];
[e]=cm_dpske(E,M,mapping,sequence); % e is the differential encoder output.
----tl&li" ------
% MATLAB script for Illustrative Problem 7.7
M = 8;
mapping=[O 1 3 2 7 6 4 5]; % Gray mapping
Es = 1; % Energy per symbol
T = 1;
Ts = 100ff;
fc = 30ff;
t = T/100:T/100:2*T;
Lt = length(t};
g_T = sqrt(2tr)*ones(1,Lt};
si_l = g_T.*cos(2*pi*fc*t);
sL2 = -g_T.*sin(2*pi*fc*t);
var = 0.05; % Noise variance
% Determine the differential phase:
m = 2; % 0 <= m <= 7
theta_d = 2*pi*m/M;
% Assuming the phase of the first txed symbol, i.e., the reference phase is 0:
s_mcl = sqrt(Es) • 1;
s_msl = sqrt(Es} • O;
u_ml = s_mcl*sL1(1:Lt/2) + s_msl*sL2(1:Lt/2);
s_mc2 = sqrt(Es} * cos(theta_d);
s_ms2 = sqrt(Es) * sin(theta_d);
u_m2 = s_mc2*sL1(1:Lt/2) + s_ms2*sL2(1:Lt/2);
% Generation of the noise components:
n_c = sqrt(var}*randn(1,Lt};
Copyright 2011 Cengage Leaming. AJI Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to eJectronic rights, some third party content may be suppressed from the eBook andlor eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions l'«tuire it.
7.3. CARRIER-PHASE MODULATION 337
n_s = sqrt(var)*randn(1,Lt);
% The received signals:
rl = u_ml +n_c(1:Lt/2).*cos(2*pi*fc*t(1:Lt/2)) - n_s(1:Lt/2).*sin(2*pi*fc*t(1:Lt/2));
r2 = u_m2+n_c(Lt/2+ 1:Lt).*cos(2*pi*fc*t(Lt/2+1 :Lt)) - n_s(Lt/2+1:Lt).*sin(2*pi*fc*t(Lt/2+1:Lt));
r = [rl r2];
% Detec tion of the mapped symbol and differential phase:
[detect phase_d] = dd_dpsk(r,M,mapping);
�111u.11;m•�1#1W;t•1:'93®·•------
Illustrative Problem 7 .8 Perform a Monte Carlo simulation of an M 4 DPSK com
munication system. The model for the system to be simulated is shown in Figure 7.17.
M=4
M=4DPSK 2-bit
Delay DPSK 1----.--.
mapper output
detector
Gaussian RNG
Compare
Symbol-error
counter
Figure 7.17: Block diagram of M 4 DPSK system for the Monte Carlo simulation
The uniform random number generator (RNG) is used to generate the pairs of bits
{00, 01, 11, 10}, as described in Illustrative Problem 7.5. Each 2-bit symbol is mapped
into one of the four signal points Sm [cos rrm/2 sin rrm/2], m 0, 1, 2, 3, by
the differential encoder. Two Gaussian RNG are used to generate the noise components
[nc n5 ]. Then the received signal-plus-noise vector is
The differential detector basically computes the phase difference between rk and Yk- I .
Copyright 2011 Cengage Leaming. AJI Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to eJectronic rights, some third party content may be suppressed from the eBook andlor eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions l'«tuire it.
338 CHAPT ER 7. DIGITAL T RANSMISSION VIA CARRIER MODULATION
and ek tan-1(Ykl Xk) is the phase difference. The value of ek is compared with
the possible phase differences {0°, 90°, 180°, 2 70°}, and a decision is made in favor
of the phase that is closest to ek. The detected phase is then mapped into the pair of
information bits. The error counter counts the symbol errors in the detected sequence.
Figure 7.18 illustrates the results of the Monte Carlo simulation for the transmis
sion of N=l0,000 symbols at different values of the SNR parameter Eb/No, where
Eb E5/2 is the bit energy. Also shown in Figure 7.18 is the theoretical value of the
symbol error rate based on the approximation that the term nk n -l is negligible. We k
observe from Figure 7.18 that the approximation results in an upper bound to the error
probability.
Figure 7.18: Performance of four-phase DPSK system from Monte Carlo simulation
(the solid curve is an upper bound based on approximation that neglects the noise term
n n
l k-1)
The MATLAB scripts for this Monte Carlo simulation are given next.
----41113'
111 ' �---���
% MATLAB script for Illustrative Problem 7.8.
echo on
SNRindB1=0:2:12;
Copyright 2011 Cengage Leaming. AJI Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to eJectronic rights, some third party content may be suppressed from the eBook andlor eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions l'«tuire it.
7.3. CARRIER-PHASE MODULATION 339
SNRindB2=0:0.1:12;
for i=1 :length(SNRindBl),
srnld_err_prb(i)=cm_sm34(SNRindB 1 (i)); % simulated error rate
echo off
end;
echo on ;
for i=1 :length(SNRindB2),
SNR=exp(SNRindB2(i)*log(10)/10); % signal-to-noise ratio
theo_err_prb(i)=2*Qfunct(sqrt(SNR)); % theoretical symbol error rate
echo off
end;
echo on ;
% Plotting commands follow
semilogy(SNRindB 1, srnld_ err_prb, ' * ' );
hold
semilogy(SNRindB2,theo_ err_prb);
----®Ii" ------
function [p]=cm_sm34(snr_in_dB)
% [p]=cm....sm34(snr _in....dB)
% CM__sM34 finds the probability of error for the given
% value of snr ...in....dB, signal-to-noise ratio in dB.
N=10000;
E=1; % energy per symbol
snr=10�(snr_in_dB/10); % signal-to-noise ratio
sgma=sqrt(E/(4*snr)); % noise variance
% Generation of the data source follows.
for i=1 :2*N,
temp=rand; % a uniform random variable between 0 and 1
if (temp<0.5),
dsource(i)=O; % With probability 112, source output is " O ."
% else.
else
dsource(i)=1; % With probability 112, source output is "1 "
end;
end;
% Differential encoding of the data source follows
mapping=[O 1 3 2];
M=4;
[difLenc_output] = cm_dpske(E,M,mapping,dsource);
% Received signal is then
for i=1 :N,
[n(1) n(2)]=gngauss(sgma);
r(i,:)=diff_enc_output(i,:)+n;
end;
% detection and the probability of error calculation
numoferr=O;
prev_ theta=O;
for i=1 :N,
theta=angle(r(i,1 )+j*r(i,2));
delta_ theta=mod(theta-prev_ theta,2*pi);
if ((delta_theta<pi/4) I (delta_theta> 7*pi/4)),
Copyright 2011 Cengage Leaming. AJI Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to eJectronic rights, some third party content may be suppressed from the eBook andlor eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions l'«tuire it.
340 CHAPT ER 7. DIGITAL T RANSMISSION VIA CARRIER MODULATION
decis=[O OJ;
elseif (delta_ theta<3*pi/4),
decis=[O 1 ];
elseif (delta_theta<5*pi/4)
decis=[1 1 ];
else
decis=[1 O];
end;
prev_theta=theta;
% Increase the error counter, if the decision is not correct.
((decis(1r=dsource(2*i-1)) I (decis(2f=dsource(2*i))),
if
numoferr=numoferr+1;
end;
end;
p=numoferr/N;
----tl®li" -------
function [enc_comp] = cm_dpske(E,M,mapping,sequence);
% [enc_comp] cm-<ipske(E,M,mapping,sequence)
% CMJ>PSKE differentially encodes a sequence.
% E is the average energy, M is the number of constellation points,
% and mapping is the vector defining how the constellation points are
% allocated. Finally, "sequence" is the uncoded binary data sequence.
k=log2(M};
N=length(sequence);
% If N is not divisible by k, append zeros, so that it is ...
remainder=rem(N,k};
if (remainder-=0),
for i=N+1:N+k-remainder,
sequence(i)=O;
end;
N=N+k-remainder;
end;
theta=O; % Initially, assume that theta=O.
for i=1:k:N,
index=O;
for j=i:i+k-1,
index=2*index+sequenceU);
end;
index=index+ 1 ;
theta=mod(2*pi*mapping(index)/M+theta,2*pi);
enc_comp((i+k-1)/k,1)=sqrt(E}*cos(theta);
enc_comp((i+k-1)/k,2)=sqrt(E}*sin(theta);
end;
Copyright 2011 Cengage Leaming. AJI Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to eJectronic rights, some third party content may be suppressed from the eBook andlor eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions l'«tuire it.
7.4. QUADRATURE AMPLITUDE MODULATION 341
• • • •
• • • •
• • • •
• • • •
Transmitting
Balanced
filter
modulator
gT(t)
Oscillator
Serial-to
Binary Transmitted
parallel
data 90° phase QAM signal
converter
shift
Transmitting
Balanced
filter
modulator
gT(t)
Copyright 2011 Cengage Leaming. AJI Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to eJectronic rights, some third party content may be suppressed from the eBook andlor eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions l'«tuire it.
342 CHAPT ER 7. DIGITAL T RANSMISSION VIA CARRIER MODULATION
+ •
/
M=32
... - --..- ---- - --' •
+
I / ' I
/ M= 16 '
.. • ...
t t
·--·
I
- --
T I
I
I I I M=81 I I
• • T--t- • •
I -r---t
1M=4
I I
I
• '
I
+--� _._ _ __.
I
' •
I I I I I
I I
I I I I
' ' ..__ _ ___ .. __ .. JI '
I ' / I
'
T
I
•
'... - --+-- -- -- -
/
/
•
I
T
I I
M=8 M= 16
L --e---e--•--·--... ---+----l
Figure 7.21: (a) Rectangular and (b), (c) circular QAM signal constellations
It is clear that the geometric signal representation of the signals given by (7 . 4.1)
and (7.4.2) is in terms of two-dimensional signal vectors of the form
Examples of signal space constellations for QAM are shown in Figure 7.21. Note that
M = 4 QAM is identical to M = 4 PSK.
Let us assume that a carrier-phase offset is introduced in the transmission of the signal
through the channel. In addition, the received signal is corrupted by additive Gaussian
noise. Hence, r(t) may be expressed as
The received signal is correlated with the two phase-shifted basis functions
as illustrated in Figure 7.22, and the outputs of the correlators are sampled and passed
to the detector. The PLL shown in Figure 7.22 estimates the carrier-phase offset cp
of the received signal and compensates for this phase offset by phase shifting I/Ji (t)
and l./J 2 (t) as indicated in (7.4.5). The clock shown in Figure 7.22 is assumed to be
Copyright 2011 Cengage Leaming. AJI Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to eJectronic rights, some third party content may be suppressed from the eBook andlor eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions l'«tuire it.
7.4. QUADRATURE AMPLITUDE MODULATION 343
Sampler
Clock
Compute
Output
distance
decision
metrics D(sm)
90 phase
shift
f�()dt Sampler
synchronized to the received signal so that the correlator outputs are sampled at the
proper instant in time. Under these conditions, the outputs from the two correlators are
where
nc = 2
1 f T nc(t)gy(t) dt
0
ns = � J: ns(t)gy(t) dt (7.4.7)
The noise components are zero-mean, uncorrelated Gaussian random variables with
variance No/2.
The optimum detector computes the distance metrics
----t11••�i•;MINjj;t•'=''a®·•------
Illustrative Problem 7 .9 [Demodulation of QAM Signals]
The demodulator for a QAM signal is shown in Figure 7.22. It employs two quadra
ture correlators that cross-correlate the received signal given by (7.4.4) with the phase
quadrature basis functions in (7.4.5). The pulse shape BT(t) is rectangular; that is,
BT(t) � {f Q:5,t:5,T
otherwise
Let us implement the two correlators in discrete time. Thus, the two outputs of the
correlators are
Copyright 2011 Cengage Leaming. AJI Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to eJectronic rights, some third party content may be suppressed from the eBook andlor eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions l'«tuire it.
344 CHAPT ER 7. DIGITAL T RANSMISSION VIA CARRIER MODULATION
where the sampling interval is Ts = T/ 100 and the carrier frequency Jc = 30 / T. The
carrier phase</> may be selected to be uniformly distributed in the interval (0, 2rr), and
the additive noise samples nc (kTs) and ns (kTs) are statistically independent, zero
mean Gaussian with variance a-2• Perform the computation and plot yc (nTs) and
Ys (nTs) for n = 1, 2, ... , 1 0 0, a-2 0, a-2 0.0 5, a-2
= 0.5 for the M
= 8 QAM = =
signal constellation shown in Figure 7.21(b). We may select any one of the eight signal
points for transmission.
The position of the eight signal points are (1, 1), (1, -1), (-1, 1), (-1, -1), (1 +
J3, 0), (-1, -J3, 0), (0, 1 + J3), and (0, -1 - J3). For convenience, we set T 1. =
Figure 7.23 illustrates the correlator outputs over the signal interval when the transmit
ted symbol is (1, -1) . Note that the double frequency terms average out to zero, as
best observed in the case where 0. Furthermore, a-2 = we observe the effect of the
additive noise on the correlator output as a-2 increases.
The MATLAB script for the problem is given below.
M = 8;
Es = 1; % Energy oer symbol
T = 1;
Ts = 100ff;
fc = 30ff;
t = O:T/1 OO:T;
Lt = length(t);
A_mc = 1/sqrt(Es); % Signal Amplitude
A_ms = -1/sqrt(Es); % Signal Amplitude
g_T = sqrt(2/f)*ones(1,Lt);
phi = 2*pi*rand;
sLl = g_T.*cos(2* pi*fc*t + phi);
sL2 = g_ T.*sin(2*pi*fc*t + phi};
var = [ 0 0.05 0.5]; % Noise variance vector
for k = 1 : length(var)
% Generation of the noise components:
n_c = sqrt(var(k}}*randn(1,Lt};
n_s = sqrt(var(k}}*randn(1,Lt};
noise = n_c.*cos(2*pi*fc+t) - n_s.*sin(2*pi*fc+t);
% The received signal
r = A_mc*g_T.*cos(2*pi*fc*t+phi) + A_ms*g_T.*sin(2*pi*fc*t+phi} + noise;
% The correlator outputs:
Copyright 2011 Cengage Leaming. AJI Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to eJectronic rights, some third party content may be suppressed from the eBook andlor eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions l'«tuire it.
7.4. QUADRATURE AMPLITUDE MODULATION 345
y_c = zeros(1,Lt);
y_s = zeros(1,Lt);
for i = 1 :Lt
y_c(i) = sum(r(1 :i).*sL1(1 :i));
y_s(i) = sum(r(1 :i).*sL2(1 :i));
end
% Plotting the results:
subplot(3,1,k)
plot([O 1 :length(y _c)-1],y _c,' • - ')
hold
plot([O 1 :length(y_s)-1],y_s)
title([ ' \ s i grna" 2 = ',num2str(var(k))])
xlabel( ' n ')
axis auto
end
cr2 = 0
100
-100 .__�����-'-��
0 20 40 60 80 100
n
cr2 = 0.05
100
-100 .__���-'--���-'-����-'-��--'
0 20 40 60 80 100
n
(l = 0.5
100
-100 �����
0 20 40 60 80 100
n
Copyright 2011 Cengage Leaming. AJI Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to eJectronic rights, some third party content may be suppressed from the eBook andlor eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions l'«tuire it.
346 CHAPT ER 7. DIGITAL T RANSMISSION VIA CARRIER MODULATION
In this section, we consider the performance of QAM systems that employ rectangular
signal constellations. Rectangular QAM signal constellations have the distinct advan
tage of being easily generated as two PAM signals impressed on phase quadrature
carriers. In addition, they are easily demodulated.
For rectangular signal constellations in which M = 2k, where k is even, the QAM
signal constellation is equivalent to two PAM signals on quadrature carriers, each hav
ing JM= 2k/Z signal points. Because the signals in the phase quadrature components
are perfectly separated by coherent detection, the probability of error for QAM is eas
ily determined from the probability of error for PAM. Specifically, the probability of a
correct decision for the M-ary QAM system is
(7.4.9)
where P -JM is the probability of error of a JM-ary PAM with one-half the average
power in each quadrature signal of the equivalent QAM system. By appropriately
modifying the probability of error for M-ary PAM, we obtain
(7.4.10)
where Eav /No is the average SNR per symbol. Therefore, the probability of a symbol
error for the M-ary QAM is
(7.4.11)
We note that this result is exact for M = 2k when k is even. On the other hand, when
k is odd, there is no equivalent JM-ary PAM system. This is no problem, however,
because it is rather easy to determine the error rate for a rectangular signal set. If we
employ the optimum detector that bases its decisions on the optimum distance metrics
given by (7.4 .8), it is relative!y straightforward to show that the symbol-error probabil
ity is tightly upper bounded as
[ ( ) 2
�
J
3Eav
PM 1 - 1 - 2Q
(M l)No
)
-
3kEavb
(7.4.12)
(M - l)No
for any k � 1, where Eavb I No is the average SNR per bit. The probability of a symbol
error is plotted in Figure 7.24 as a function of the average SNR per bit.
Copyright 2011 Cengage Leaming. AJI Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to eJectronic rights, some third party content may be suppressed from the eBook andlor eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions l'«tuire it.
7.4. QUADRATURE AMPLITUDE MODULATION 347
1
10-
2
2
10-
� 5
0 2
�
I'< 10-
3
�
O'd 5
S
10-
2
6
10- ����
-6 -4 -2 0 2 4 6 8 10 12 14 16 18 20
SNR/bit, dB
UniformRNG GaussianRNG
4-bit symbol
r
c
M= 16-QAM
Detector -�--- 4 -bit symbol
signal selector
GaussianRNG
Compare
Symbol-error
counter
Figure 7.25: Block diagram of an M = 16-QAM system for the Monte Carlo simula
tion
The uniform random number generator (RNG) is used to generate the sequence of infor
mation symbols corresponding to the 16 possible 4-bit combinations of bi, b2, b3, b4.
The information symbols are mapped into the corresponding signal points, as illustrated
Copyright 2011 Cengage Leaming. AJI Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to eJectronic rights, some third party content may be suppressed from the eBook andlor eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions l'«tuire it.
348 CHAPT ER 7. DIGITAL T RANSMISSION VIA CARRIER MODULATION
• • 3 • •
• • 1 • •
-3 -2 -1 2 3
• • • •
-1
-2
•
.-3 • •
Figure 7.26: M = 16-QAM signal constellation for the Monte Carlo simulation
in Figure 7.26 , which have the coordinates [Ame, Ams]. Two Gaussian RNG are used
to generate the noise components [ ne, ns]. The channel-phase shift cf> is set to 0 for
convenience. Consequently, the received signal-plus-noise vector is
r = [Ame + ne Ams + ns ]
The detector computes the distance metrics given by (7.4.8) and decides in favor of
the signal point that is closest to the received vector r. The error counter counts the
symbol errors in the detected sequence. Figure 7.27 illustrates the results of the Monte
Carlo simulation for the transmission of N = 10 ,000 symbols at different values of the
SNR parameter Eb I No, where Eb = Es I 4 is the bit energy. Also shown in Figure 7.27
is the theoretical value of the symbol-error probability given by (7.4.10) and (7.4.11).
10-2
10·3
10·4
10-5
10·6
10·7 '--����--'-���-'--'
0 5 10 15
Figure 7.27: Performance of M = 16-QAM system from the Monte Carlo simulation.
Copyright 2011 Cengage Leaming. AJI Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to eJectronic rights, some third party content may be suppressed from the eBook andlor eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions l'«tuire it.
7.4. QUADRATURE AMPLITUDE MODULATION 349
----tlili" -------
% MATLAB script for Illustrative Problem 7.10.
echo on
SNRindB1=0:2:15;
SNRindB2=0:0.1:15;
M=16;
k=log2(M);
for i=1:length(SNRindBl),
srnld_err_prb(i)=cm_sm41(SNRindB1(i)); % simulated error rate
echo off;
end;
echo on ;
for i=1:length(SNRindB2),
SNR=exp(SNRindB2(i)*log(10)/1O); % signal-to-noise ratio
% theoretical symbol error rate
theo_err_prb(i)=4*Qfunct(sqrt(3*k*SNR/(M-1)));
echo off
end;
echo on ;
% Plotting commands follow.
semilogy(SNRindBl,srnld_err_prb,' * ');
hold
semilogy(SNRindB2,theo_err_prb);
----tlili" ------
function [p]=cm_sm41 (snr_in_dB)
% [p]=cm...sm41(snr_in....d B)
% CM...SM41 finds the probability of error for the given
% value of snr_in....dB, SNR in dB.
N=10000;
d=1; % min. distance between symbols
Eav=10*d"2; % energy per symbol
snr=10"(snr_in_dB/1O); % SNR per bit (given)
sgma=sqrt(Eav/(8* snr)); % noise variance
M=16;
% Generation of the data source follows.
for i=1 :N,
temp=rand; % a uniform R. V. between 0 and 1
dsource(i)=1 +fioor(M*temp); % a number between 1 and 16, uniform
end;
% Mapping to the signal constellation follows.
mapping=[-3*d 3*d;
-d 3*d;
d 3*d;
3*d 3*d;
-3*d d''
-d d;
d ct·'
3*d ct·'
Copyright 2011 Cengage Leaming. AJI Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to eJectronic rights, some third party content may be suppressed from the eBook andlor eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions l'«tuire it.
350 CHAPT ER 7. DIGITAL T RANSMISSION VIA CARRIER MODULATION
-3*d -d;
-d -d;
d -d;
3*d -d;
-3*d -3*d;
-d -3*d;
d -3*d;
3*d -3*d];
for i=1 :N,
qam_sig(i, :)=mapping(dsource(i), :);
end;
% received signal
for i=1 :N,
[n(1) n(2)]=gngauss(sgma);
r(i, :)=qam_sig(i, :)+n;
end;
% detection and error probability calculation
numoferr=O;
for i=1 :N,
% Metric computation follows.
for j=1 :M,
metricsU)=(r(i,1)-mappingU,1W2+(r(i,2)-mappingU,2W2;
end;
[min_metric decis] = min(metrics);
if (decis-=dsource(i)),
numoferr=numoferr+1;
end;
end;
p=numoferr/(N);
7 .5 Carrier-Frequency Modulation
Copyright 2011 Cengage Leaming. AJI Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to eJectronic rights, some third party content may be suppressed from the eBook andlor eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions l'«tuire it.
7.5. CARRIER-FREQUENCY MODULATION 351
uz (t)= \jrm
T; cos2rrfzt, (7.5.1)
where Eb is the signal energy per bit and Tb is the duration of the bit interval.
More generally, M-ary FSK may be used to transmit a block of k =l o g 2M bits per
signal waveform. In this case, the M signal waveforms may be expressed as
Um(t)= \J{2E;
r cos(2rrfct+2rrm/j. f t), m=O,l,... ,M-1, 0 � t� T
(7.5.2)
where Es = kEb is the energy per symbol, T = kTb is the symbol interval, and fj.f is
the frequency separation between successive frequencies-that is, fj.f = fm- fm-1
for all m= 1, 2,... ,M -1, where fm= fc+ mfj.f.
Note that the M FSK waveforms have equal energy, Es. The frequency separation
(j.j determines the degree to which we can discriminate among the M possible trans
mitted signals. As a measure of the similarity (or dissimilarity) between a pair of signal
waveforms, we use the correlation coefficient :Ymn:
1 I
T
Ymn= Um(t)Un(t)dt (7.5.3)
Es Jo
1 I
T 2E
Y mn
=Es Jo
/ cos(2rrfct+ 2rrmfj.jt)cos(2rrfct+ 2rrn(j.jt)dt
1 I
T 1 (
= cos2rr(m- n)fj.jtdt+ cos[4rrfct+2rr(m+ n)fj.jt]dt
T J T J
o o
sin 2rr( m- n)fj.f T
(7.5.4)
2rr( m- n)fj.f T
where the second integral vanishes when fc » 1IT. A plot of Ymnas a function of the
frequency separation fj.f is given in Figure 7.28. We observe that the signal waveforms
are orthogonal when fj.f is a multiple of l/2T. Hence, the minimum frequency sepa
ration between successive frequencies for orthogonality is 1I2T. We also note that the
minimum value of the correlation coefficient is Ymn=-0.217, which occurs at the
frequency separation fj.f=0.715 IT.
Copyright 2011 Cengage Leaming. AJI Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to eJectronic rights, some third party content may be suppressed from the eBook andlor eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions l'«tuire it.
352 CHAPT ER 7. DIGITAL T RANSMISSION VIA CARRIER MODULATION
�-1-��--��fl--�----'._����· �t
0
(7.5.7)
SM-I= (0,0,... ,0,.JE:;") (7.5.8)
where the basis functions are t/Jm (t) = ../2/Tcos2rr(jc + mtl.f)t. The distance
between pairs of signal vectors is d = ,f[E; for all m, n, which is also the minimum
distance among the M signals. Note that these signals are equivalent to the M-ary
baseband orthogonal signals described in Section 5.4.
The demodulation and detection of the M-ary FSK signals are considered next.
Let us assume that the FSK signals are transmitted through an additive white Gaussian
noise channel. Furthermore, we assume that each signal is delayed in the transmis
sion through the channel. Consequently, the filtered received signal at the input to the
demodulator may be expressed as
r(t) = \j{2E;
T
cos(2rrfct + 2rrmtl.f t + c/>m) + n(t) (7.5.9)
where cf>m denotes the phase shift of the mth signal (due to the transmission delay)
and n(t) represents the additive bandpass noise, which may be expressed as
Copyright 2011 Cengage Leaming. AJI Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to eJectronic rights, some third party content may be suppressed from the eBook andlor eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions l'«tuire it.
7.5. CARRIER-FREQUENCY MODULATION 353
f�()dt
f�()dt
Received Output
signal Detector
decision
f�()dt
PLLM cos (21tfct + 2rt(M - 1),1':,.ft �M)
+
l, where {c/:>m} are the carrier-phase estimates. A block diagram illustrating this type
of demodulation is shown in Figure 7 .29. It is interesting to note that when cPm !- cf:>m
form 0, l, ... , M -1 (imperfect phase estimates), the frequency separation required
=
for signal orthogonality at the demodulator is !j.f 1/T, which is twice the minimum =
at the end of the signal interval and are passed to the detector. Thus, if the mth signal
is transmitted, the 2M samples at the detector may be expressed as
[ sin2rr(k-m)!j.fT coscf:>m- cos2rr(k-m)!j.fT- smcf:>m
.
J
rr l
rkc= vr.s +nkc
2rr(k-m)!j.fT 2rr(k-m)!j.fT
[ cos2rr(k-m)fj.fT-1 coscf:>m sin2rr(k-m)!j.fT smcf:>m
.
rks = ./Es 2rr(k m)!j.fT _ 2rr(k m)!j.fT J (7 +
_
+nks
. 5 11)
.
where nkc and nks denote the Gaussian noise components in the sampled outputs.
We observe that when k m, the sampled values to the detector are
=
Copyright 2011 Cengage Leaming. AJI Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to eJectronic rights, some third party content may be suppressed from the eBook andlor eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions l'«tuire it.
354 CHAPT ER 7. DIGITAL T RANSMISSION VIA CARRIER MODULATION
f�()dt rls
Sample at t = T
V2i'f COS 2rt<fc l'.f)t
+
x f�()dt r2c
Sample at t = T
V2ff sin 2rt<fc + l'.f)t
�--�X>----� f�()dt
Sample at t = T
Furthermore, we observe that when k !- m, the signal components in the samples rkc
and rks will vanish, independent of the values of the phase shift cf>k, provided that the
frequency separation between successive frequencies is tlf l/T. In such a case, the =
k !- m (7.5.13)
In the following development we assume that tlj 1/ T, so that the signals are or
thogonal.
It can be shown that the 2M noise samples { nkc} and { nks} are zero-mean, mu
tually uncorrelated Gaussian random variables with equal variance cr2 = No/2. Con
sequently, the joint probability density function for rmc and rms conditioned on cf>m
is
__l_e-[(rmc-JE,coscf>ml2+(rm,-JE,smcf>ml2]1 a2
frm (rme. rms I ,.1..
'1-' m ) 2 (7 5 14)
Zrrcr2
= · ·
Given the 2M observed random variables { rkc, rks} f=-01 , the optimum detector se
lects the signal that corresponds to the maximum of the posterior probabilities- that is,
Copyright 2011 Cengage Leaming. AJI Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to eJectronic rights, some third party content may be suppressed from the eBook andlor eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions l'«tuire it.
7.5. CARRIER-FREQUENCY MODULATION 355
1
where r is the 2M-dimensional vector with elements {rkc,rks}f=-0 . W hen the signals
are equally probable, the optimum detector specified by (7.5.16) computes the signal
envelopes,defined as
m = 0,1,... ,M 1 - (7.5.17)
and selects the signal corresponding to the largest envelope of the set {rm}. In this
case the optimum detector is called an envelope detector.
An equivalent detector is one that computes the squared envelopes
m = 0,1,... ,M 1 - (7.5.18)
and selects the signal corresponding to the largest, { rk} . In this case, the optimum
detector is called a square-law detector.
----tllli-il;@IW§l§;t•1:Jl#@I
Illustrative Problem 7 .11 [FSK Signaling] Consider a binary communication system
that employs the two FSK signal waveforms given as
We sample the received signal r(t) at a rate F5 = 5000/Tb in the bit interval Tb. Thus
r(t) is represented by the 5000 samples {r(n/F5)}. The correla
the received signal
tion demodulator multiplies {r(n IF5)} by the sampled version of u1 (t) =cos2rrf1t,
vi(t) = sin2rrf1t,u2(t) =cos2rrf2t,andv2(t) = sin2rrfzt,as illustrated inFig
ure 7 .30. Thus the correlator outputs are
k=l,2,... ,5000
Copyright 2011 Cengage Leaming. AJI Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to eJectronic rights, some third party content may be suppressed from the eBook andlor eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions l'«tuire it.
356 CHAPT ER 7. DIGITAL T RANSMISSION VIA CARRIER MODULATION
The detector is a square-law detector that computes the two decision variables
r1 = Yfc(5000) + Yfs(5000)
r2 = r}c(5000) + r}s(5000)
and selects the information bit corresponding to the larger decision variable.
A MATLAB program that implements the correlations numerically is given next.
The graphs of the correlator outputs are shown in Figure 7.31, based on the signal
U1 (t) being transmitted.
1500
1000
500
-500
-1000
-1500
-2000 �-�-�-�-
-�-�-�-�-����-
0 500 1000 1500 2000 2500 3000 3500 4000 4500 5000
m
----41&1
1 1" ------
% MATLAB script for Illustrative Problem 7.11.
echo on
Tb=1;
f1=1OOOffb;
f2=fl +1ffb;
phi=pi/4;
N=5000; % number of samples
t=O:Tb/(N-1):Tb;
ul=cos(2*pi*fl *t);
u2=cos(2*pi*f2*t);
Copyright 2011 Cengage Leaming. AJI Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to eJectronic rights, some third party content may be suppressed from the eBook andlor eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions l'«tuire it.
7.5. CARRIER-FREQUENCY MODULATION 357
The derivation of the performance of the optimum envelope detector for the M -ary
FSK signals can be found in most texts on digital communication. The probability of a
symbol error may be expressed as
PM=
M-1
I (-l)n+l
( M -1 ) __l e-nkEb/No(n+l) (7.5.19)
n n + 1
n=l
W hen M = 2, this expression reduces to the probability of error for binary FSK, which
is
(7.5.20)
For M > 2, the bit-error probability may be obtained from the symbol-error probability
by means of the relation
k
2 -1
Pb= PM (7.5.21)
2k - l
The bit-error probability is plotted in Figure 7.32 as a function of the SNR per bit
......
for M = 2, 4, 8, 16, 32. We observe that for any given bit-error probability, the SNR per
bit decreases as M increases. In the limit as M oo, the error probability can be made
arbitrarily small provided that the SNR per bit exceeds -1.6 dB. This is the channel
Copyright 2011 Cengage Leaming. AJI Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to eJectronic rights, some third party content may be suppressed from the eBook andlor eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions l'«tuire it.
358 CHAPT ER 7. DIGITAL T RANSMISSION VIA CARRIER MODULATION
10-1
5
2
10-2
.... 5
�
�
2
iiS 10-3
o:I
""' 5
0
c
� 2
� 10-
4
..0
0
� 5
Q..,:-.,
2
S
10- M==
5 Channel Capacity
: Limit (-1.6 dB)
2 I
10-6
-2 0 2 4 6 8 10 12 14
SNR/Bit, dB
Figure 7.32: Probability of a bit error for noncoherent detection of orthogonal FSK
signals
capacity limit, or Shannon limit, for any digital communication system transmitting
information through an AWGN channel.
The cost of increasing M is the bandwidth required to transmit the signals. Be
cause the frequency separation between adjacent frequencies is !:l.f = l/T for signal
orthogonality, the bandwidth required for the M signals is W MIT. The bit rate is =
R log2M
(7.5.22)
w M
We observe that RI W --+ 0 as M --+ oo.
-tiMQi.ii;tfjiW§liflj;t•]:JM§j®I
Illustrative Problem 7 .12 [Binary FSK Simulation] Perform a Monte Carlo simula
tion of a binary FSK communication system in which the signal waveforms are given
by (7.5.1), where fz = Ji + 1 ITb and the detector is a square-law detector. The block
diagram of the binary FSK system to be simulated is shown in Figure 7 .33.
Since the signals are orthogonal, when U1 (t) is transmitted, the first demodulator out
put is
Copyright 2011 Cengage Leaming. AJI Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to eJectronic rights, some third party content may be suppressed from the eBook andlor eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions l'«tuire it.
7.5. CARRIER-FREQUENCY MODULATION 359
rlc r lc 2
'is r ls
FSK +
Signal Detector Output Bit
r2 c 2
Selector
r2s r 2s
Gaussian Gaussian
RNG RNG
Compare
Bit-Error
Counter
Figure 7 .33: Block diagram of a binary FSK system for the Monte Carlo simulation
r2c = n2c
r2s = n2s
where n1c, n15, n2c, and n2s are mutually statistically independent, zero-mean Gaus
2
sian random variables with variance <J" and cf> represents the channel-phase shift.
In the above expression, the channel-phase shift cf> may be set to zero for conve
nience. The square-law detector computes
and selects the information bit corresponding to the larger of these two decision vari
ables. An error counter measures the error rate by comparing the transmitted sequence
to the output of the detector.
------
The MATLAB programs that implement the Monte Carlo simulation are given next.
Figure 7 .34 illustrates the measured error rate and compares it with the theoretical error
probability given by (7 .5 .20).
ii!
----@I
% MATLAB script for Illustrative Problem 7.12.
echo on
SNRindB 1=0:2:15;
SNRindB2=0:0.1 :15;
Copyright 2011 Cengage Leaming. AJI Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to eJectronic rights, some third party content may be suppressed from the eBook andlor eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions l'«tuire it.
360 CHAPT ER 7. DIGITAL T RANSMISSION VIA CARRIER MODULATION
100
10-1
10-2
10-3
10-4
10-5
10-5
10-7
0 2
Figure 7 .34: Performance of a binary FSK system from the Monte Carlo simulation
----tl®li" ------
function [p]=cm_sm52(snr_in_dB)
% [p]=cm-Ym52(snr_in..dB)
% CM..SM52 Returns the probability of error for the given
% value of snr_in..dB, signal-to-noise ratio in dB.
N=10000;
Eb=1;
d=1;
snr=1OA(snr_in_dB/1O); % signal-to-noise ratio per bit
sgma=sqrt(Eb/(2*snr)); % noise variance
phi=O;
% Generation of the data source follow s.
Copyright 2011 Cengage Leaming. AJI Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to eJectronic rights, some third party content may be suppressed from the eBook andlor eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions l'«tuire it.
7.6. SYNCHRONIZATION IN COMMUNICATION SYSTEMS 361
Copyright 2011 Cengage Leaming. AJI Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to eJectronic rights, some third party content may be suppressed from the eBook andlor eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions l'«tuire it.
362 CHAPT ER 7. DIGITAL T RANSMISSION VIA CARRIER MODULATION
T T cos(4TTfct - 2</>(t))
+ (7 .6.2)
Obviously, this signal has a component at 2fc· The reason that we do not deal directly
with u(t) is that usually the process m(t) is zero-mean, so the power content of u(t)
at fc is zero. Now, if the signal u2(t) is passed through a bandpass filter tuned to
2fc, the output will be a sinusoidal signal with the central frequency 2fc, a phase of
-2</>(t), and an amplitude of A� H (2fc) I 2. Without loss of generality we can assume
that the amplitude is unity; that is, the input to the PLL is
= + (7 .6.4)
Copyright 2011 Cengage Leaming. AJI Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to eJectronic rights, some third party content may be suppressed from the eBook andlor eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions l'«tuire it.
7.6. SYNCHRONIZATION IN COMMUNICATION SYSTEMS 363
sin(4rrfct - 2</>)
v (t)
vco
Note that e(t) has a high- and a low-frequency component. The role of the loop filter
is to remove the high-frequency component and to make sure that (b(t) follows closely
the variations in </>(t). A simple loop filter is a first-order lowpass filter with a transfer
function of
1 + T1s
G(s) = (7.6.5)
1 + T25
where T2 » T1. If we denote the input of the VCO as v (t), then the output of the VCO
will be a sinusoid whose instantaneous frequency deviation from 2fc is proportional to
v (t). But the instantaneous frequency of the VCO output is
1 d �
2f.c + - -</>(t)
rrdt
Therefore,
(7.6.6)
or, equivalently,
2(b(t) = K f 00 V ( T) d T (7.6.7)
where K is some proportionality constant. After removal of the second and fourth
harmonics, the PLL reduces to the one shown in Figure 7.36.
Assuming that (b(t) closely follows changes in </>(t), the difference 2</>(t) - 2(b(t)
is very small, and we can use the approximation
With this approximation the only nonlinear component in Figure 7.36 is replaced by a
linear component, resulting in the linearized PLL model shown in Figure 7.37. Note
that this model is represented in the transform domain, and the integrator is replaced
by its transform domain equivalent, 1 / s.
Copyright 2011 Cengage Leaming. AJI Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to eJectronic rights, some third party content may be suppressed from the eBook andlor eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions l'«tuire it.
364 CHAPT ER 7. DIGITAL T RANSMISSION VIA CARRIER MODULATION
+
2</>(t) - + -
� sin(2<f>(t) - 2<f>(t)) � G(s) -
2</> (t)
vco v(t)
2cP(t) =Kf�00V(T)dT
+
</>(t) + - G(s)
- �
4>(t)
K v(t)
s
The model shown in Figure 7.37 is a linear control system with a forward gain of
G(s) and a feedback gain of K/s; therefore, the transfer function of the system is given
by
ci>(s) KG(s)/s
H(s) = = (7.6.9)
<I>(s) 1 + KG(s)/s
1 + T1S
G(s) = (7.6.10)
1 + T2S
H (s) is given as
(7.6.11)
With H(s) as the transfer function, if the input to the PLL is <I>(s), the error will be
Copyright 2011 Cengage Leaming. AJI Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to eJectronic rights, some third party content may be suppressed from the eBook andlor eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions l'«tuire it.
7.6. SYNCHRONIZATION IN COMMUNICATION SYSTEMS 365
Now let us assume that up to a certain time cp(t) ;::::: 4><t), so Licp(t) ;::::: 0. At this
time some abrupt change causes a jump in cp(t) that can be modeled as a step-that is,
<I>(s)=K1 Is. With this change we have
(1+Tzs)s K1
ii<I>(s)=
2
K+(1 +KT1 )s+Tz5 s
K1 (1 +Tzs)
(7 .6.13)
Now, by using the final value theorem of the Laplace transform, which states that
limj(t)=IimsF(s) (7.6.14)
t-oo s-0
as long as all poles of sF(s) have negative real parts, we conclude that
lim iicp(t)=lims<I>(s)
t-oo s-0
K1 s(l+Tzs)
=lim
s-o K+(1 +KTi)s+Tzs2
=0 (7.6.15)
In other words, a simple first-order loop filter results in a PLL that can track jumps in
the input phase.
The transfer function (7.6.11) can be written in the standard form
(2(wn - w�/K)s+w�
H(s)= (7.6.16)
2
S 2 +2(WnS +Wn
Here,
\j{K
Wn=
Tz
Wn(T1 +l/K)
S=
2
where Wn is the natural frequency and ( is the damping factor.
1 + O.Ols
G(s)=
l+s
and K=1, determine and plot the response of the PLL to an abrupt change of height 1
to the input phase.
Wn=1
( =0.505
Copyright 2011 Cengage Leaming. AJI Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to eJectronic rights, some third party content may be suppressed from the eBook andlor eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions l'«tuire it.
366 CHAPT ER 7. DIGITAL T RANSMISSION VIA CARRIER MODULATION
which results in
H(5) =
052 .1.001515 1 1
+
+
<i>(5) =
53 + 1.00.011525 1 1 +
+ 5 +
In order to determine and plot the time response ¢ (t) to the input u(t), we note that
we have to determine the output of a system with transfer function H (5) to the input
u(t). This can be done most easily by using state-space techniques. We will employ the
MATLAB function tf2ss.m, which returns the state-space model of a system described
by its transfer function. After determining the state-space representation of the system,
we obtain the step response numerically.
The function tf2ss.m takes the numerator and the denominator of the transfer func
tion H (5) and returns A, B, C, and D, its state-space representation, in the form
{: t
x(t) = Ax(t) + Bu(t)
+
Ax(t) Llt
Du(t)
+ Bu(t) 6.t
or, equivalently,
{ 1)
x(i + = x(i)
y(i)= Cx(i)
+ Ax(i) 6.t
+ Du(i)
+ Bu(i) Llt
For this problem it is sufficient to choose u(t) to be a step function and the nu
merator and the denominator vectors of H(5) [0.01 1 to be ] and [l 1.01 l],
respectively. With this choice of numerator and denominator vectors, the state-space
parameters of the system will be
A= [-1.01 1 -01]
B �
[�]
c= [ 0.01 ] l
D=O
Copyright 2011 Cengage Leaming. AJI Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to eJectronic rights, some third party content may be suppressed from the eBook andlor eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions l'«tuire it.
7.6. SYNCHRONIZATION IN COMMUNICATION SYSTEMS 367
Figure 7.38: The response of the PLL to an abrupt change in the input phase in Illus
trative Problem 7.13
As we can see from Figure 7.38, the output of the PLL eventually follows the input;
however, the speed by which it follows the input depends on the loop filter parameters
and K, the VCO proportionality constant.
__.,,... ·-----
% MATLAB script for Illustrative Problem 7.13.
echo on
num=[0.01 1];
den=[1 1.01 1];
[a,b,c,d)=tf2ss(num,den);
dt=0.01;
u=ones(1,2000);
x=zeros(2,2001);
for i=1:2000
x(:,i+1)=x(:,i)+dt.*a*x(:,i)+dt.*b*u(i);
y(i)=c*x(:,i);
echo off;
end
echo on;
t=[O:dt:20];
plot(t(1:2000),y)
Copyright 2011 Cengage Leaming. AJI Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to eJectronic rights, some third party content may be suppressed from the eBook andlor eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions l'«tuire it.
368 CHAPT ER 7. DIGITAL T RANSMISSION VIA CARRIER MODULATION
In Chapter 5 and in this chapter we have seen that a popular implementation of the
optimal receiver makes use of matched filters and samplers at the matched filter out
put. In all these cases we assumed that the receiver has complete knowledge of the
sampling instant and can sample perfectly at this time. Systems that achieve this type
of synchronization between the transmitter and the receiver are called timing recovery,
clock-synchronization, or symbol-synchronization systems.
(7.6.17)
In this case, the optimum sampling time is obviously the midpoint between the early
and late sampling times:
r+ + r
T = ---- (7.6.18)
2
Now let us assume that we are not sampling at the optimal sampling time T, but instead
we are sampling at T1. If we take two extra samples at r+ = T1 + 6 and r- = T1 - 6,
these samples are not symmetric with respect to the optimum sampling time T and,
therefore, will not be equal. A typical autocorrelation function for positive and negative
incoming pulses and the three samples is shown in Figure 7 .39.
Optimum Sample
2214752 2014/07/21 173.244.197.106
Early Sample
Late Sample
t r- T r+ t
T- T r+
Figure 7 .39: The matched filter output and early and late samples
Copyright 2011 Cengage Leaming. AJI Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to eJectronic rights, some third party content may be suppressed from the eBook andlor eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions l'«tuire it.
7.6. SYNCHRONIZATION IN COMMUNICATION SYSTEMS 369
Here
T- = T- 81
y+ = T + 82
where
(7.6.19)
(7.6.20)
Therefore, when ly(T-) I > ly(T+) I, the correct sampling time is before the as
sumed sampling time, and the sampling should be done earlier. Conversely, when
Iy(T-) I Iy(T+) I, the sampling time should be delayed. Obviously, when
<
The early-late gate synchronization system therefore takes three samples at T1,
y- T1- 8, and y+
= T1 + 8 and then compares Iy(T-) I and Iy(T+) I and,
=
depending on their relative values, generates a signal to correct the sampling time.
1
T = (7.6.22)
4800
. cos(4800 x 0.4rrt)
x (t) = smc (4BOOt)
1 - 4 x 0.16 x 48002tZ
. cos l 920rrt
smc(4800t) (7.6.23)
1 - 1. 4746 l07tZ
=
This signal obviously extends from -oo to + oo. The plot of this signal is given in
Figure 7.40.
From Figure 7.40 it is clear that, for all practical purposes, it is sufficient to consider
only the interval It I .::; 0.6 x 10-3, which is roughly [-3T, 3T]. Truncating the raised
cosine pulse to this interval and computing the autocorrelation function result in the
waveform shown in Figure 7.41.
Copyright 2011 Cengage Leaming. AJI Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to eJectronic rights, some third party content may be suppressed from the eBook andlor eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions l'«tuire it.
370 CHAPT ER 7. DIGITAL T RANSMISSION VIA CARRIER MODULATION
0.6
0.4
0.2
-3
-1 --0.8 0.8 1x10
-0.2
--3
-1 x 10
In the MATLAB script given next, the raised-cosine signal and the autocorrelation
function are first computed and plotted. In this particular example the length of the
autocorrelation function is 1201 and the maximum (i.e., the optimum sampling time)
occurs at the 600th component. Two cases are examined: one when the incorrect
Copyright 2011 Cengage Leaming. AJI Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to eJectronic rights, some third party content may be suppressed from the eBook andlor eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions l'«tuire it.
7.6. SYNCHRONIZATION IN COMMUNICATION SYSTEMS 371
sampling time is 700 and one when it is 500. In both cases the early-late gate corrects
the sampling time to the optimum 600.
__.,.... ·-----
% MATLAB script for Illustrative Problem 7.14.
echo on
alpha=0.4;
T=1/4800;
t=[-3*T:1.001*T/100:3*T];
x=sinc(t.tr). *(cos(pi*alpha*t.ff)./(1-4*alpha A2*t. A 2/f A2));
pause % Press any key to see a plot of x(t).
plot(t,x)
y=xcorr(x);
ty=[t-3*T,t(2:length(t))+3*T];
pause % Press any key to see a plot of the autocorrelation of x(t).
plot(ty,y);
d=60; % Early and late advance and delay
ee=0.01; % Precision
e=1; % Step size
n=700; % The incorrect sampling time
while abs(abs(y(n+d))-abs(y(n-d)))>=ee
if abs(y(n+d))-abs(y(n-d))>O
n=n+e;
elseif abs(y(n+d))-abs(y(n-d))<O
n=n-e;
end
echo off
end
echo on ;
pause % Press any key to see the corrected sampling time
n
n=500; % Another incorrect sampling time
while abs(abs(y(n+d))-abs(y(n-d)))>=ee
if abs(y(n+d))-abs(y(n-d))>O
n=n+e;
elseif abs(y(n+d))-abs(y(n-d))<O
n=n-e;
end
echo off
end
echo on ;
pause % Press any key to see the corrected sampling time
n
Copyright 2011 Cengage Leaming. AJI Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to eJectronic rights, some third party content may be suppressed from the eBook andlor eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions l'«tuire it.
372 CHAPT ER 7. DIGITAL T RANSMISSION VIA CARRIER MODULATION
Problems
7 .3 Repeat Problem 7.1 when the transmitter has a square-root duobinary spectral char
acteristic.
7.4 The purpose of this problem is to demonstrate that (7.2.9) and (7.2.10) hold by
evaluating (7.2.9) numerically using MATLAB. The pulse Br(t) may be assumed to
be rectangular-that is,
{1, 0 �t�2
Br(t)
0,
=
otherwise
per second on the signal waveform ljJ(t) given by (7.2.6) and compute the energy of
1fJ (t) by approximating the integral in (7.2 .8) by the summation
1 N-1
, 2
L. l/J (nTs)
1 N-1
,
L. l/J
2 (n)
F5
=
N N
n=O n=O
7.5 The cross-correlation of the received signal r(t) with lfJ (t) as given by (7.2.14)
may be performed numerically using MATLAB. Write a MATLAB program that com
putes the correlator output
n = 0, 1, ... , N - 1
where F5 is the sampling frequency. Evaluate and graph y(n) when r(t) ljJ(t),
where ljJ(t) is the waveform described in Problem 7.4 and F5 20,000 Hz. =
7.6 Evaluate and graph the correlation {y (n)} in Problem 7.5 when the signal Br(t)
is
Br(t)
{� (1 - cos rrt), O�t�2
0,
=
otherwise
Copyright 2011 Cengage Leaming. AJI Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to eJectronic rights, some third party content may be suppressed from the eBook andlor eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions l'«tuire it.
PROBLEMS 373
7.7 In Illustrative Problem 7.3, the eight PSK waveforms had a constant amplitude.
Instead of the rectangular pulse BT (t), suppose that the signal pulse shape is
gy(t)=
{� (1 - cos2rrt/T), 05't5'T
0, otherwise
Write a MATLAB program to compute and graph the M = 8-PSK signal waveforms
for the case in which Jc=6 IT.
7.8 Write a MATLAB program that numerically computes the cross-correlation of the
received signal r(t) for a PSK signal with the two basis functions given by (7.3.9).
That is, compute
where N is the number of samples of r(t), qi1 (t), and qiz (t). Evaluate and plot these
correlation sequences when
{
r(t)=SmcqlI (t) + Smsqlz (t)
2, 0 5, t 5, 2
gy(t)=
0, otherwise
Jc= 1000 Hz, F5 = 10000 samples per second, and the transmitted signal point is as
given.
b.Sm=(-1,0)
C. Sm=(0,1)
7.10 Write a MATLAB program that implements a differential encoder and a differ
ential decoder for a M = 4-DPSK system. Check the operation of the encoder and
decoder by passing a sequence of 2-bit symbols through the cascade of the encoder
and decoder and verify that the output sequence is identical to the input sequence.
Copyright 2011 Cengage Leaming. AJI Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to eJectronic rights, some third party content may be suppressed from the eBook andlor eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions l'«tuire it.
374 CHAPT ER 7. DIGITAL T RANSMISSION VIA CARRIER MODULATION
7.11 Write a MATLAB program that performs a Monte Carlo simulation of a binary
DPSK communication system. In this case, the transmitted signal phases are e 0 =
for N 10000 bits at different values of the SNR parameter Eb! No. It is convenient to
=
normalize Eb to unity. Then, with a-2 No/2, the SNR is Eb/No l/2 a-2 , where a-2
= =
is the variance of the additive noise component. Hence, the SNR can be controlled by
scaling the variance of the additive noise component. Plot and compare the measured
error rate of the binary DPSK with the theoretical error probability given by (7.3 23) . .
7.12Write a MATLAB program that generates and graphs the M 8-QAM signal =
waveforms given by (7.4.2) for the signal constellation shown in Figure P7.12.
(-3, 1) (3, 1)
Figure P7.12
{l, 0 � t � T
BT (t) =
0, otherwise
and the carrier frequency is Jc = 8 IT.
7.13 Repeat Problem 7.12 when the pulse waveform BT (t) is given as
{�(1- cos2rrt/T), 0 � t � T
BT (t) =
0, otherwise
7.14 Repeat Illustrative Problem 7.1 when the carrier frequency Jc = 45/T.
7.15 Repeat Illustrative Problem 7.4 when the carrier frequency Jc = 45 IT.
Copyright 2011 Cengage Leaming. AJI Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to eJectronic rights, some third party content may be suppressed from the eBook andlor eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions l'«tuire it.
PROBLEMS 375
7.18 Repeat the simulation in Problem 7.17 for the M = 8-signal constellation shown
in Figure P7.18. Compare the error probabilities for the two M = 8-QAM signal
constellations and indicate which constellation gives the better performance.
(l + '13, 0)
Figure P7.18
1
f2 =fl+
2Tb
Let !1 = 1000 I Tb. By sampling the two waveforms at the rate F5 = 5000 I Tb , we
obtain 5000 samples in the bit interval 0 t :::;; Tb. Write a MATLAB program
:::;;
that generates the 5000 samples for each of u 1(t) and u2(t) and compute the cross
correlation
and, thus, verify numerically the orthogonality condition for U1(t) and u2(t).
Copyright 2011 Cengage Leaming. AJI Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to eJectronic rights, some third party content may be suppressed from the eBook andlor eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions l'«tuire it.
376 CHAPT ER 7. DIGITAL T RANSMISSION VIA CARRIER MODULATION
7 .20 Use the MATLAB program given in Illustrative Problem 7.11 to compute and
graph the correlator outputs when the received signal is
7 .22 Write a MATLAB program that performs a Monte Carlo simulation of a quater
nary (M = 4) FSK communication system and employs the frequencies
k
fk =Ji+ ' k=0,1,2,3
T
The detector is a square-law detector. Perform the simulation for N = 10,000 (2-bit)
symbols at different values of the SNR parameter Eb I No, and record the number of
symbol errors and bit errors. Plot and compare the measured symbol- and bit-error rates
with the theoretical symbol- and bit-error probabilities given by (7.5.19) and (7.5.21).
7 .23 In Illustrative Problem 7.13 it was assumed that the input phase has an abrupt
jump, and the simulation showed that a first-order loop filter can track such a change.
Now assume that the input changes according to a ramp-that is, starts to increase
linearly. Simulate the performance of a first-order PLL in this case and determine
whether the loop is capable of tracking such a change.
7 .24 Repeat Illustrative Problem 7.13 when the loop filter is given as
1
G(s) = 5 J2
+
Also, determine the closed-loop transfer function H(s) and the corresponding natural
frequency and damping factor of the loop. Is the loop stable?
7 .25 Repeat Illustrative Problem 7.14 with a rectangular pulse shape in the presence of
AWGN for SNR values of 20 , 10, 5, and 2 dB.
Copyright 2011 Cengage Leaming. AJI Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to eJectronic rights, some third party content may be suppressed from the eBook andlor eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions l'«tuire it.