Manual 745
Manual 745
Manual 745
1. Assignment 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
2. Assignment 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
3. Assignment 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
4. Assignment 4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
1. Lathi, 6.1-1
Following figure shows Fourier spectra of signals g1 (t) and g2 (t). Determine the Nyquist
interval and the sampling rate for signals g1 (t), g2 (t), g12 (t), g23 (t), and g1 (t)g2 (t).
2. Lathi, 6.1-2
Determine the Nyquist sampling rate and the Nyquist sampling interval for the signals:
(a) sinc(100πt);
(b) sinc2 (100πt);
(c) sinc(100πt) + sinc(50πt);
(d) sinc(100πt) + 3sinc2 (60πt);
(e) sinc(50πt) sinc(100πt).
3. Lathi, 6.1-4
A signal g(t) = sinc2 (5πt) is sampled (using uniformly spaced impulses) at a rate of: (i)
5 Hz; (ii) 10 Hz; (iii) 20 Hz. For each of the three case:
(d) If the sampled signal is passed through an ideal low-pass filter of bandwidth 5 Hz,
sketch the spectrum of the output signal.
4. Lathi, 6.1-8
Prove that a signal cannot be simultaneously time-limited and band-limited. Hint: show
that contrary assumption leads to contradiction. Assume a signal simultaneously time-
limited and band-limited so that G(ω) = 0 for |ω| > 2πB. In this case G(ω) =
G(ω)rect(ω/4πB 0 ) for B 0 > B. This means that g(t) is equal to g(t) ∗ 2B 0 sinc(2πB 0 t).
Show that the latter cannot be time-limited.
5. Lathi, 6.2-2
A compact disc (CD) records audio signal digitally by using PCM. Assume the audio
signal bandwidth to be 15 kHz.
6. Lathi, 6.2-3
A television signal (videl and audio) has a bandwidth of 4.5 MHz. This signal is sampled,
quantized, and binary coded to obtain a PCM signal.
(a) What is the sampling rate if the signal is to be sampled at a rate 20% above the
Nyquist rate.
(b) If the samples are quantized into 1024 levels, determine the number of binary pulses
required to encode each sample.
(c) Determine the binary pulse rate (bits per second) of the binary-coded signal, and
the minimum bandwidth required to transmit this signal.
7. Lathi, 6.2-4
Five telemetry signal, each of bandwidth 1 kHz, are to be transmitted simultaneously
by binary PCM. The maximum tolerable error in sample amplitudes is 0.2% of the peak
signal amplitude. The signals must be sampled at least 20% above the Nyquist rate.
1. Assignment 1 3
Framing and synchronizing requires an additional 0.5% extra bits. Determine the min-
imum possible data rate (bits per second) that must be transmitted, and the minimum
bandwidth required to transmit this signal.
8. Lathi, 6.2-6
A message signal m(t) is transmitted by binary PCM. If the SNR (signal-to-quantization-
noise ratio) is required to be at least 47 dB, determine the minimum value of L required,
assuming that m(t) is sinusoidal. Determine the SNR obtained with this minimum L.
9. Sklar, 1.4
Using time averaging, find the average normalized power in the waveform x(t) = 10 cos 10t+
20 cos 20t.
(a) What is the minimum number of uniform quantization levels needed, and what is
the minimum number of bits per sample needed?
(b) Calculate the system bandwidth (as specified by the main spectral lobe of the signal)
required for the detection of such a PCM signal.
(a) What is the maximum allowable time interval between sample values that will ensure
perfect signal reproduction?
(b) If we want to reproduce 1 hour of this waveform, how many sample values need to
be stored?
(a) How many quantization levels of the analog signal are needed for (S/Nq )peak =
96dB?
(b) How many bits per sample are needed for the number of levels found in part (a)?
(c) What is the data rate in bits/s?
(a) Find the spectrum of the signal s(t) that results from the use of natural sampling;
you may assume that time t = 0 corresponds to the midpoint of a rectangular pulse
in c(t).
(b) Show that the original signal g(t) may be recovered exactly from its naturally sam-
pled version, provided that the conditions embodied in the sampling theorem are
satisfied.
(a) Assuming a sampling rate of 8 kHz, calculate the spacing between successive pulses
of the multiplexed signal.
(b) Repeat your calculation assuming the use of Nyquist rate sampling.
1. Assignment 1 6
1. Lathi 6.1-1: The bandwidth of g1 (t) and g2 (t) are 100 kHz and 150 kHz, respectively.
Therefore,
• the Nyquist sampling rates for g1 (t) is 200 kHz, sampling interval Ts = 1/200k = 5µs
• the Nyquist sampling rates for g2 (t) is 300 kHz, sampling interval Ts = 1/300k =
3.33µs.
• the bandwidth of g12 (t) is 200 kHz, fN yq = 400 kHz, fN yq = 1/400k = 0.25µs.
• the bandwidth of g23 (t) is 450 kHz, fN yq = 900 kHz, fN yq = 1/900k = 1.11µs.
• the bandwidth of g1 (t) · g2 (t) is 250 kHz, fN yq = 500 kHz, fN yq = 1/500k = 2µs.
2. Lathi 6.1-2:
• since µ ¶
ω
sinc(100πt) → 0.01rect
200π
the bandwidth of this signal is 100 π rad/s or 50 Hz. The Nyquist rate is 100 Hz
(samples/sec).
•
µ ¶
2 ω
sinc (100πt) → 0.01∆
400π
the bandwidth of this signal is 200 π rad/s or 100 Hz. The Nyquist rate is 200 Hz
(samples/sec).
•
µ ¶ µ ¶
ω ω
sinc(100πt) + sinc(50πt) → 0.01rect + 0.02rect
200π 100π
the bandwidth of the first term on the right-hand side is 50 Hz and the second term
is 25 Hz. Clearly the bandwidth of the composite signal is the higher of the two,
that is, 100 Hz. The Nyquist rate is 200 Hz (samples/sec).
•
µ ¶ µ ¶
ω ω
sinc(100πt) + 3sinc2 (60πt) → 0.01rect + 0.05∆
200π 240π
the bandwidth of the first term is 50 Hz and that of the second term is 60 Hz. The
bandwidth of the sum is the higher of the two, that is, 60 Hz. The Nyquist sampling
rate is 120 Hz.
1. Assignment 1 7
•
µ ¶ µ ¶
ω ω
sinc(50πt) → 0.02rect sinc(100πt) → 0.01rect
100π 200π
The two signals have BW 25 Hz and 50 Hz respectively. The spectrum of the product
of two signals is 1/(2π) times the convolution of their spectra. From width property
of the convolution, the width of the convoluted signals is the sum of the widths of
the signals convolved. Therefore, the BW of the product is 25+50=75 Hz. The
Nyquist rate is 150 Hz.
3. Lathi 6.1-4: The BW of the signal g(t) is 5 Hz (10π rad/s), since the FT as below:
µ ¶
ω
g(t) = sinc2 (5πt) → G(ω) = 0.2∆
20π
Therefore, the Nyquist rate is 10 Hz, and the Nyquist interval is T = 1/10 = 0.1s.
1
• When fs = 5Hz, the spectrum T
G(ω) repeats every 5 Hz (10π rad/sec). The
successive spectra overlap, and the spectrum G(ω) is not recoverable from Ḡ(ω),
that is, g(t) cannot be recovered from its samples. If the sampled signal is passed
through an ideal lowpass filter of BW 5 Hz, the output spectrum is rect(ω/20π), and
the output signal is 10sinc(20πt), which is not the desired signal sinc2 (5πt).
• When fs = 10Hz, the spectrum Ḡ(ω)consists of back-to-back, nonoverlapping rep-
1
etition of T
G(ω) repeating every 10 Hz. Hence, G(ω) can be recovered from Ḡ(ω)
using an ideal lowpass filter of BW 5 Hz (Fig.1(f)), and the output is 10sinc2 (5πt).
• in the last case of oversampling (fs = 20 Hz), with empty band between successive
cycles. Hence, G(ω) can be recovered from Ḡ(ω) using an ideal lowpass filter or even
a practical lowpass filter. The output is 20sinc2 (5πt).
4. Lathi 6.1-8: assuming a signal g(t) that is simultaneously time-limited and bandlimited.
Let g(ω) = 0 for |ω| > 2πB. Therefore,
µ ¶
ω
g(ω)rect = g(ω) f or B 0 > B.
4πB 0
Therefore, from the time-convolution property
Because g(t) is time-limited, g(t) = 0 for |t| > T . But g(t) is equal to convolution of
g(t) with sinc(2πB 0 t) which is not time-limited. It is impossible to obtain a time-limited
signal from the convolution of a time-limited signal with a non-timelimited signal.
1. Assignment 1 8
5. Lathi 6.2-2:
(a): the bandwidth is 15 kHz. The Nyquist rate is 30 kHz.
(b): 65536 = 216 , so that 16 binary digits are needed to encode each sample.
(c): 30, 000 × 16 = 480, 000 bits/s.
(d): 44, 100 × 16 = 705, 600 bits/s.
6. Lathi 6.2-3:
(a): The Nyquist rate is 2 × 4.5 × 106 = 9 MHz. The actual sampling rate =1.2 × 9 = 10.8
MHz.
(b): 1024 = 1010 , so that 10 bits or binary pulses are needed to encode each sample.
(c): 10.8 × 106 × 10 = 108 × 106 or 108 Mbits/s.
7. Lathi 6.2-4:
If mp is the peak sample amplitude, then
mp
quantization error ≤ 0.2% × mp =
500
Because the maximum quantization error is
q 2mp
= 0.5 ×
2 L
• it follows that L ≥ 500. Since L should be a power of 2, we choose L = 512 = 29 .
This requires 9-bit binary code per sample. The Nyquist rate is 2 × 1000 = 2000 Hz.
20% above this rate is 2×1.2 = 2.4 kHz. Thus, each signal has 2400 samples/second,
and each sample is encoded by 9 bits. Therefore, each signal uses 9 × 2.4 = 21.6
kbits/second.
• Five such signals are multiplexed. Hence, we need a total of 5 × 21.6 = 108
Kbits/second data bits.
• Framing and synchronization requires additional 0.5% bits, that is 108, 000×0.005 =
540 bits, yielding a total of 108,540 bits/second.
• The minimum transmission bandwidth is 108.54/2 = 54.27 kHz.
8. Lathi 6.2-6:
Let mp denote the peak amplitude of the sinusoid signal, signal power is E[m2 (t)] = m2p /2.
Let L denote the number of steps, then the stepsize is q = 2mp /L. The noise power is
σ 2 = q 2 /2 = m2p /(3L2 ). The required SNR is 47 dB=50119, which is
9. Sklar 1.14:
X2 (f ) = k[δ(f − f0 ) + δ(f + f0 )
X1 (f ) ∗ X2 (f ) = X1 (f ) ∗ k[δ(f − f0 ) + δ(f + f0 )
2k
L = d18.26e = 19 levels
(b) Let Tb denote the time duration of a bit. Since the sample rate is 8000 samples/s,
each sample is represented by 5 bits. Therefore, there are 8000 × 5 bits each second and
1
Tb = = 25 µs
8000 × 5
the required bandwidth W is
1
W = = 40 kHz
Tb
11. Sklar 2.9:
(a) The maximum frequency is ωm = 2πfm = 2000 and fm = 2000/(2π) = 318.3 Hz.
Therefore, sampling rate should be
Thus, we need to compute how many levels, L, will yield a (S/Nq )peak = 96 dB. We
therefore write:
4: (a) For each sampling interval, there are 24+1=25 pulses. Therefore, each pulse occupies:
Ts 1
T = = = 5µs
25 8000 × 25
Therefore, the spacing between successive pulses of the multiplexed signal is 5-1=4 µs.
Ts 1
T = = = 6.25µs
25 6400 × 25
Therefore, the spacing between successive pulses of the multiplexed signal is 6.25-1=5.25 µs.
2. ASSIGNMENT 2
1. Lathi, 7.2-1
(a) Find PSDs for polar, on-off, and bipolar signalling, where p(t) is a full-width rect-
angular pulse, that is, p(t) = rect(t/Tb )?
(b) Sketch roughly these PSDs and find their bandwidths. For each case, compare the
bandwidth of the case where p(t) is a half-width rectangular pulse.
2. Lathi, 7.2-2
(a) A random binary data sequence 100110... is transmitted using a Manchester (split-
phase) line code. Sketch the waveform y(t).
(b) Derive Sy (ω), the PSD of a Manchester (split-phase) signal in part (a) assuming 1
and 0 equally likely. Roughly sketch this PSD and find its bandwidth.
3. Lathi, 7.2-3
Derive the PSD for a binary signal using differential code with half-width rectangular
pulses. Determine the PSD Sy (ω).
4. Lathi, 7.3-2
In a certain telemetry system, there are eight analog measurements, each of bandwidth 2
kHz. Samples of these signals are time-division multiplexed, quantized, and binary coded.
The error in sample amplitudes cannot be greater than 1% of the peak amplitude.
5. Lathi, 7.3-4
The Fourier transform P (ω) of the basic pulse p(t) used in a certain binary communication
system is shown below:
2. Assignment 2 13
(a) From the shape of P (ω), explain if this pulse satisfies the Nyquist criterion.
(b) Find p(t) and verify that this pulse does (or does not) satisfy the Nyquist criterion.
(c) If the pulse does satisfy the Nyquist criterion, what is the transmission rate (in bits
per second) and what is the roll-off factor?
6. Lathi, 7.3-5
A pulse p(t) whose spectrum P (ω) is shown below satisfies the Nyquist criterion. If
f1 = 0.8M Hz and f2 = 1.2M Hz, determine the maximum rate at which binary data can
be transmitted by this pulse using the Nyquist criterion. What is the roll-off factor?
7. Lathi, 7.3-6
Binary data at a rate of 1 Mbits/s is to be transmitted using Nyquist criterion pulses
with P (ω) shown in 7.3-5. The frequencies f1 and f2 (in hertz) of this spectrum are
adjustable. The channel available for the transmission of this data has a bandwidth of
700 kHz. Determine f1 and f2 and the roll-off factor.
8. Sklar, 3.8
(a) What is the theoretical minimum system bandwidth needed for a 10-Mbits/s signal
using 16-level PAM without ISI?
(b) How large can the filter roll-off factor be if the allowable system bandwidth is 1.375
MHz?
2. Assignment 2 14
9. Sklar, 3.10
Binary data at 9600 bits/s are transmitted using 8-ary PAM modulation with a system
using a raised cosine roll-off filter characteristic. The system has a frequency response
out to 2.4 kHz.
(a) What is the minimum system bandwidth required for the detection of PAM with no
ISI and with a filter roll-off characteristic of r = 1?
(b) Using the same filter roll-off characteristic, what is the minimum bandwidth required
for the detection of binary (PCM) waveforms if the samples are quantized to eight
levels?
(c) Repeat part (b) using 128 quantization levels.
2. Assignment 2 15
1. A company has three machines B1 , B2 , and B3 for making resistors. It has been observed
that 80% of resistors produced by B1 are qualified. The percentage for machines B2 and
B3 are respectively, 90% and 60%. Each hour, machines B1 , B2 and B3 produce 3000,
4000, and 3000 resistors, respectively. All of the resistors are mixed together at random
in one bin and packed for shipment.
(a) What is the probability that the company ships a resistor that is qualified?
(b) What is the probability that an acceptable resistor comes from machine B3 ?
2. Lathi, 10.1-15
A binary source generates digits 1 and 0 randomly with probabilities P (1) = 0.8 and
P (0) = 0.2.
(a) What is the probability that two 1’s and three 0’s will occur in a five-digit sequence?
(b) What is the probability that at least three 1’s will occur in a five-digit sequence?
3. Lathi, 10.1-16
In a binary communication channel, the receiver detects binary pulses with an error
probability Pe . What is the probability that out of 100 received digits, no more than
three digits are in error?
4. Lathi, 10.2-1
For a certain nonsymmetric channel it is given that
where x is the transmitted digit and y is the received digit. If Px (0) = 0.4, determine
Py (0) and Py (1).
3. Assignment 3 21
5. Lathi, 10.2-5
The PDF of a Gaussian RV X is given by
1 2
fX (x) = √ e−(x−4) /18
3 2π
Determine (a) P (X ≥ 4); (b) P (X ≥ 0); (c) P (X ≥ −2);
6. Lathi, 13.5-2
Binary data is transmitted by using a pulse p(t) for 0 and a pulse 3p(t) for 1. Show that
the optimum receiver for this case is a filter matched to p(t) with a detection threshold
of 2Ep . Determine the error probability Pb of this receiver as a function of Eb /N0 if 0 and
1 are equiprobable.
7. Sklar 1.6
Determine which, if any, of the following functions have the properties of autocorrelation
functions. Justify your determinations. [Note: Fourier transform of R(τ ) must be a
nonnegative function, why?]
1 for − 1 ≤ τ ≤ 1
(a) x(τ ) =
0 otherwise
8. Sklar 1.7
Determine which, if any, of the following functions have the properties of power spectral
density functions. Justify your determination.
9. Sklar, 3.4
Assuming that in a binary digital communication system, the signal component out of
the correlator receiver is ai (T ) = +1 or -1 V with equal probability. If the Gaussian noise
at the correlator output has unit variance, find the probability of a bit error.
3. Assignment 3 22
13. The purpose of a radar system is basically to detect the presence of a target, and to
extract useful information about the target. Suppose that in such a system, hypothesis
H0 is that there is no target present, so that the received signal x(t) = w(t), where w(t)
is white Gaussian noise with power spectral density N0 /2. For hypothesis H1 , a target is
present, and x(t) = w(t) + s(t), where s(t) is an echo produced by the target. Assumed
that s(t) is completely known and the probability of the existence of a target is 0.5.
(d) Evaluate the probability of detection defined as the probability that the receiver
decides a target is present when it is.
14. Two equiprobable messages are transmitted on an AWGN channel with two-sided power
spectral density N0 /2. The signals are of the form
√ √
s1 (t) = Eφ1 (t), s2 (t) = aφ1 (t) + E − a2 φ2 (t)
√ √ R
where − E ≤ a ≤ E and 0T φ1 (t)φ2 (t) dt = 0.
The production figures states that 3000+4000+3000=10,000 resistors per hour are produced.
The fraction from machine B1 is P [B1 ] = 3000/10000 = 0.3. Similarly, P [B2 ] = 0.4 and
P [B3 ] = 0.3. Applying the law of total probability we have
Lathi, 10.1-15: A binary source generates digits 1 and 0 randomly with probabilities P (1) =
0.8 and P (0) = 0.2.
1. What is the probability that two 1’s and three 0’s will occur in a five-digit sequence?
2. What is the probability that at least three 1’s will occur in a five-digit sequence?
5
Solution: (a) Two 1’s and three 0’s in a sequence of 5 digits can occur in = 10 ways.
2
The probability one such sequence is
10 × 0.00512 = 0.0512
5
(b) Three 1’s occur with probability (0.8)3 · (0.2)2 = 0.2048;
3
5
Four 1’s occur with probability (0.8)4 · (0.2)1 = 0.4096;
4
5
Five 1’s occur with probability (0.8)5 · (0.2)0 = 0.3277;
5
Hence, the probability of at least three 1’s occurring is
Lathi, 10.1-16: In a binary communication channel, the receiver detects binary pulses with
an error probability Pe . What is the probability that out of 100 received digits, no more than
three digits are in error?
Solution: Prob(no more than 3 error) = P(no error)+P(1 error) +P(2 error) +P(3 error), which
is
100 100 100
P = (1 − Pe )100 + Pe (1 − Pe )99 + P 2 (1 − Pe )98
e e
97
P 3 (1 − Pe )(3.5)
1 2 3
= (1 − 100Pe ) + 100Pe (1 − 99Pe ) + 4950Pe2 (1 − 98Pe ) + 161700Pe3 (1 − 97Pe )
which is
Py (0) = 0.6 × 0.1 + 0.4[1 − Py|x (1|0)] = 0.06 + 0.32 = 0.38
we can have,
Py (1) = 1 − Py (0) = 0.62
1.
µ ¶ µ ¶
4−µ 4−4
P (x ≥ 4) = Q =Q = Q(0) = 0.5
σ 3
2.
µ ¶ µ ¶
0−µ 0−4
P (x ≥ 0) = Q =Q = Q(−4/3) = 1 − Q(4/3) = 1 − 0.09176 = 0.9083
σ 3
3.
µ ¶ µ ¶
−2 − µ −2 − 4
P (x ≥ −2) = Q =Q = Q(−2) = 1 − Q(2) = 0.9773
σ 3
Lathi, 13.5-2: The conditional probability density functions of the receiver decision RV are
µ ¶
N0
fY (t)|“1” ∼ N 3E, E
2
µ ¶
N0
fY (t)|“0” ∼ N E, E
2
3. Assignment 3 26
Therefore, the optimal decision threshold is 2E. The probability of transmission error is
Ãs !
µ ¶
a2 − a1 3E − E 2E
Pb = Q = Q q =Q
2σ 2 E N0 /2 N0
Sklar, 1.6: Fourier transform of R(τ ) must be a nonnegative function because F [R(τ )] = S(f );
and the power spectral density, S(f ), must be a nonnegative function.
(a) It satisfies x(τ ) = x(−τ ), x(0) ≥ x(τ ), but the Fourier transform of x(τ ) is a positive and
negative going function. Therefore, x(τ ) cannot be a valid autocorrelation function.
(b) Since x(τ ) 6= x(−τ ), therefore, x(τ ) cannot be a valid autocorrelation function.
(c) It satisfies x(τ ) = x(−τ ), but it doesn’t satisfy x(0) ≥ x(τ ). Therefore, not a valid
autocorrelation function.
(d) It satisfies x(τ ) = x(−τ ), x(0) ≥ x(τ ), and Fourier transform of x(τ ) is 2sinc2 f τ , which is
a non-negative function. Therefore, x(τ ) is a valid autocorrelation function.
Sklar, 1.7:
(a) X(f ) = δ(f ) + cos2 2πf . Yes, it can be a PSD function since (i) it is always real; (ii)
PX (f ) ≥ 0; (iii) PX (−f ) = PX (f ).
(b) X(f ) = 10 + δ(f − 10). No, it cannot be a PSD function. It satisfies the first two conditions
(i) it is always real; (ii) PX (f ) ≥ 0; but the third condition (iii) PX (−f ) 6= PX (f ).
(c) X(f ) = exp(−2π|f − 10|). No, it cannot be a PSD function. It satisfies the first two
conditions (i) it is always real; (ii) PX (f ) ≥ 0; but the third condition (iii) PX (−f ) 6= PX (f ).
(d) X(f ) = exp[−2π(f 2 − 10)]. Yes, it can be a PSD function since (i) it is always real; (ii)
PX (f ) ≥ 0; (iii) PX (−f ) = PX (f ).
Pb = Q(x) ≤ 10−3
3. Assignment 3 27
q
2Eb
we need x = N0
≥ 3.09. which implies Eb /N0 ≥ 4.77; while N0 /2 is given as 10−3 , hence,
Eb = T ≥ 4.77 × 2 × 10−3
and therefore,
1
R= ≤ 104.8 bits/s
T
Sklar, 3-7: The optimal decision threshold is 0, therefore,
Sklar, 3-14: Signalling with NRZ pulses represents an example of antipodal signalling. There-
fore, we have s
Ãs !
2Eb 2A2 T
Pb = Q = Q
N0 N0
since Q(3.1) ≈ 10−3 , hence s
2A2 (1/56000)
= 3.1
10−6
we can solve that A2 = 0.268. Thus if there were no signal power loss, the minimum power
needed would be approximately 268 mW. With a 3-dB loss, 536 mW are needed.
Problem 12: (a) the structure of the optimal receiver is a matched filter (diagram refer lecture
notes).
(b) Let T denote the pulse width of s(t). The energy of s(t) is
Z T
E= |s(t)|2 dt
0
N0 E
where σ 2 = 2
.
1. Sklar, 4.7
Find the probability of bit error, PB , for the coherent matched filter detection of the
equally likely binary FSK signals
and
s2 (t) = 0.5 cos 2020πt
where the two-sided AWGN power spectral density is N0 /2 = 0.0001. Assume that the
symbol duration is T = 0.01 s.
2. Sklar, 4.8
Find the optimum (minimum probability of error) threshold γ0 , for detecting the equally
q q
likely signal s1 (t) = 2E/T cos ω0 t and s2 (t) = E/2T cos(ω0 t + π) in AWGN, using a
q
correlator receiver. Assume a reference signal of ψ1 (t) = 2/T cos ω0 t
3. Sklar, 4.9
q
A system using matched filter detection of equally likely BPSK signal, s1 (t)) = 2E/T cos ω0 t
q
and s2 (t)) =2E/T cos(ω0 t + π), operates in AWGN with a received Eb /N0 of 6.8 dB.
√
Assume that E[z(T )] = ± E.
(a) Find the minimum probability of bit error, PB , for this signal set and Eb /N0 .
√
(b) If the decision threshold is γ = 0.1 E, find PB .
4. Sklar, 4.13
Consider a coherent orthogonal MFSK system with M = 8 having the equally likely
waveforms si (t) = A cos 2πfi t, i = 1, · · · , M, 0 ≤ t ≤ T , where T = 0.2 ms. The received
carrier amplitude, A, is 1 mV, and the two-sided AWGN spectral density, N0 /2, is 10−11
W/Hz. Calculate the probability of bit error, PB .
4. Assignment 4 30
5. Sklar, 4.14
A bit error probability of PB = 10−3 is required for a system with a data rate of 100 kbits/s
to be transmitted over an AWGN channel using coherently detected MPSK modulation.
The system bandwidth is 50 kHz. Assume that the system frequency transfer function is
a raised cosine with a roll-off characteristic of r = 1 and that a Gray code is used for the
symbol to bit assignment.
6. 3.1 Determine whether or not s1 (t) and s1 (t) are orthogonal over the interval (−1.5T2 <
t < 1.5T2 ), where s1 (t) = cos(2πf1 t + φ1 ) and f2 = 1/T2 for the following cases
(a) f1 = f2 and φ1 = φ2
(b) f1 = 13 f2 and φ1 = φ2
(c) f1 = 2f2 and φ1 = φ2
(d) f1 = πf2 and φ1 = φ2
(e) f1 = f2 and φ1 = φ2 + π/2
(f) f1 = f2 and φ1 = φ2 + π
7. 3.2
(a) Show that the three functions illustrated in Figure P3.1 are pairwise orthogonal over
the interval (-2,2).
(b) Determine the value of the constant A, that makes the set of functions in part (a)
an orthonormal set.
(c) Express the following waveform, x(t), in terms of the orthonormal set of part (b)
1 for 0 ≤ t ≤ 2
x(t) =
0 otherwise
Determine the constant, A, such that ψ1 (t) and ψ2 (t) are orthogonal over the interval
(−∞, ∞).
4. Assignment 4 31
(b) f1 = 13 f2 and φ1 = φ2
Let φ1 = φ2 = 0,
Z 1.5T2 µ ¶ µ ¶
1 Z 1.5T2 2 1 Z 1.5T2 4
s1 (t) · s2 (t)dt = cos 2π f2 tdt + cos 2π f2 tdt (4.1)
−1.5T2 2 −1.5T2 3 2 −1.5T2 3
sin 2π sin 4π
= + =0 (4.2)
4/3π(1/T2 ) 8/3π(1/T2 )
therefore, orthogonal.
therefore, orthogonal.
not orthogonal.
Z 2 Z −1 Z 0 Z 1 Z 2
ψ1 (t)ψ3 (t)dt = (−A)(−A)dt + (A)(−A)dt + (A)(−A)dt + (−A)(−A)dt
(4.3)
−2 −2 −1 0 1
= A − A2 − A2 + A2 = 0
2
Z 2 Z 0 Z 2
ψ2 (t)ψ3 (t)dt = (−A)(−A)dt + (A)(−A)dt = 2A2 − 2A2 = 0
−2 −2 0
(b): Z 2 Z 0
ψ32 (t)dt = A2 dt = 2A2 + 2A2 = 4A2
−2 −2
2
To be orthonormal, 4A = 1 which implies A = 1/2.
1. Objectives:
2. Prelab Assignment:
3. Given sampling rate fs , write down the expression of the Fourier transform of xs (t), Xs (f )
in terms of X(f ).
4. Let sampling frequency fs = 1Hz. Sketch the sampled signal xs (t) = x(kTs ) and the
Fourier transform of xs (t), Xs (f ).
9. Design a Matlab function to calculate the Fourier transform of a sampled signal xs (t),
P
Xs (f ) = k x(kTs ) exp(−j · 2πf · kTs ). This is necessary in your experiments.
NOTE: In Matlab and this experiment, sinc(t) is defined as sinc(t) = sin(πt)/(πt). Under this
definition: sinc(2W t) → 1/(2W ) rect(f /2W ).
3. Procedure:
5. Experiment 1: Sampling Theory 40
1. Design Matlab programs to illustrate items 4-8 in Prelab. You need to plot all the graphs.
2. Compare your results with your sketches in your Prelab assignment and explain them.
6. EXPERIMENT 2: BINARY SIGNALLING FORMATS
1. Objectives:
In this experiment you will investigate how binary information is serially coded for transmission
at baseband frequencies. In particular, you will study:
• line coding methods which are currently used in data communication applications;
• effects of intersymbol interference (ISI) and channel noise by observing the eye pattern.
2. Prelab Assignment:
1. Given the binary sequence b = {1, 0, 1, 0, 1, 1}, sketch the waveforms representing the
sequence b using the following line codes:
Assume unit pulse amplitude and use binary data rate Rb = 1 kbps.
2. Determine and sketch the power spectral density (PSD) functions corresponding to the
above line codes. Use Rb = 1 kbps. Let f1 > 0 be the location of the first spectral null in
the PSD function. If the transmission bandwidth BT of a line code is determined by f1 ,
determine BT for the line codes in question 1 as a function of Rb .
6. Experiment 2: Binary Signalling Formats 42
3. Procedure:
Binary 1’s and 0’s such as in pulse-code modulation (PCM) systems, may be represented in
various serial bit signalling formats called line codes. In this section you will study signalling
formats and their properties.
A.1 You will use the MATLAB function wave gen to generate waveforms representing a binary
sequence:
Q2.1
For the above set of line codes determine which will generate a waveform with
no dc component regardless of binary sequence represented. Why is the absence of a dc
component of any practical significance for the transmission of waveforms?
6. Experiment 2: Binary Signalling Formats 43
A.3 Power spectral density (PSD) functions of line codes: Generate a 1,000 sample
binary sequence:
À b = binary(1000);
Display the PSD function of each line code used in part A.1:
Let:
such that all f(.) > 0. Record your observations in Table 2.1.
Table (2.1)
Rb = fp1 fn1 fp2 fn2 BT
unipolar NRZ
polar NRZ
unipolar RZ
bipolar NRZ
manchester
A.4 To illustrate the dependence of the PSD function on the underlying binary data rate, use
the manchester line code and vary Rb :
where Rb ∈ {5 kbps, 10 kbps, 20 kbps}. You may replace manchester by any other line
code used in part A.1. Observe the location of spectral peaks and nulls and relate them
to Rb .
Q2.2
For a baseband data communications channel with usable bandwidth of 10 kHz,
what is the maximum binary data rate for each of the line codes examined in part A.1.
6. Experiment 2: Binary Signalling Formats 44
B. Channel Characteristics
NOISE
The MATLAB function that represents the channel response is channel which is called with
the following arguments:
B.1 Create a 10 sample binary sequence b and generate a waveform representing b in polar
NRZ signalling format. Use Rb = 1 kbps.
À b = binary(10);
BT = Hz
B.2 Consider a baseband data transmission channel with unity gain and additive white Gaus-
sian noise (AWGN) where the noise power is 10−2 W and the channel bandwidth is 4.9 kHz.
Transmit waveform x over this channel. Display the channel input and output waveforms:
À subplot(211), waveplot(x);
À subplot(212), waveplot(y);
If the signalling format is polar NRZ at Rb = 1 kbps, estimate the transmitted sequence
from the display of the channel output waveform.
b̂ =
B.3 Effect of channel noise on the transmitted waveform: Gradually increase the
channel noise power while keeping the channel bandwidth at 4.9 kHz and observe changes
in the channel output.
À waveplot(y);
where sigma ∈ {0.1, 0.5, 1, 2, 5}. At what noise power level, does the channel output
waveform becomes indistinguishable from noise?
B.4 You can also observe effects of increasing channel noise power by looking at the PSD of
the channel output waveform.
À b = binary(1000);
À hold on;
À b = binary(10);
À subplot(211), waveplot(x);
6. Experiment 2: Binary Signalling Formats 46
where bw ∈ {3000, 2000, 1000, 500}. Observe the delay in the output waveform due to
filtering characteristics of the channel. Plot the input and output waveforms. Determine
the appropriate sampling instants for the decoding of the waveform for the case bw = 500.
C. Eye Diagram
Effects of channel filtering and noise can be best seen by observing the output waveform in
the form of an “eye diagram”. The eye diagram is generated with multiple sweeps where each
sweep is triggered by a clock signal and the sweep width is slightly larger than the binary data
period Tb = 1/Rb . In this simulation the eye diagram is based on a sweep width of 2Tb .
À b = [1 0 0 1 0 1 1 0];
À clf;
À subplot(221), waveplot(x);
The eye diagram for the waveform x represents what you should expect to see for an
undistorted signal. To observe how the eye diagram is generated and to observe effects
of signal distortion as the signal x is transmitted over a finite bandwidth channel with no
noise component:
À y = channel(x, 1, 0, 4000);
À subplot(222), waveplot(y);
If the second argument to the function eye diag is negative, you have to hit the Return
key for the next trace to be displayed. This will assist you to understand how the eye
diagram is generated.
6. Experiment 2: Binary Signalling Formats 47
C.2 Key parameters to be measured with an eye diagram are shown below.
-3
x 10 EYE DIAGRAM
1.5
E
1
0.5
B
0 slope C
D
-0.5
A
-1
-1.5
t*
0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 2
Time [sec] -3
x 10
E maximum distortion;
t∗ optimum sampling instant measured with respect to the time origin. If the binary data
period is Tb , then the waveform will be sampled at t∗ , t∗ + Tb , t∗ + 2Tb , . . . for signal
detection.
Generate the eye diagram from a polar NRZ waveform at the channel output for values
of noise variance s2 and channel bandwidth bw shown in Table 2.2. Record t∗ , A and B
for each set of s2 and bw.
À clf;
À b = binary(100));
Table 2.2
C.3 Repeat step C.2 for manchester line code and record your results in Table 2.3.
Table 2.3
Q2.4
When you compare the eye diagrams from C.2 and C.3 for s2 = 0.01 and
bw = 1000, for which line code do you observe a “reasonable” eye diagram? Explain the
difference in terms of the respective line code properties.
C.4 Generate eye diagrams as in step C.2 for polar RZ and unipolar RZ and unipolar NRZ
line codes and observe how the line code dictates the shape and the symmetry of the eye
diagram.
7. EXPERIMENT 3: MATCHED FILTER AND BIT ERROR RATE (BER)
1. Objectives:
In this experiment you will investigate the signal detection process by studying elements of a
receiver and of the decoding process. In particular you will:
• use the eye diagram as an investigative tool to set parameters of the detection process.
2. Prelab Assignment:
2. Let Y (t) = X(t) + n(t), represent the waveform at the output of a channel. X(t) is a
polar NRZ waveform with unit pulse amplitude and binary data rate Rb of 1 kbps. n(t)
is a white noise process with PSD function:
(a) Determine the rms value of n(t) and the peak signal amplitude at the output of the
matched filter.
7. Experiment 3: Matched Filter and Bit Error Rate (BER) 50
(a) Determine the peak signal amplitude and rms value of the noise at the filter output;
(b) Determine the probability of bit error Pe , if X(t) were to be detected by a receiver
based on the RC-filter.
3. Procedure:
A.1 Generate a rectangular pulse with unit pulse amplitude and 1 msec pulse duration.
À subplot(311), waveplot(r);
À subplot(313), waveplot(rm);
Q3.1
Determine the time when the filter output reaches its maximum value. How is
this time related to the waveform r?
A.4 Repeat parts A.1–A.3 for a triangular pulse with 10 msec pulse width and unit peak
amplitude.
À r = wave gen(1,0 triangle0 , 100);
À clf; subplot(311), waveplot(r);
À subplot(312), match(0 triangle0 );
7. Experiment 3: Matched Filter and Bit Error Rate (BER) 51
A.5 Repeat parts A.1–A.3 for a manchester pulse with 10 msec pulse width and unit peak
amplitude. Predict the matched filter impulse response and matched filter output. Verify
your predictions using MATLAB functions.
A.6 Generate a polar NRZ waveform that represents the 5-sample binary sequence [ 1 0 0 1
0 ]. The binary data rate Rb is 1 kbps and the pulse amplitude A is 1 V.
B. Signal Detection
B.1 Generate a 10-sample binary sequence and a waveform that represents this binary se-
quence in polar NRZ signalling format.
À b10 = binary(10);
À subplot(211), waveplot(x10);
B.2 Apply x10 to a channel with 4.9 kHz bandwidth and AWGN where the noise power is 2
W. Display the channel output waveform y10:
À subplot(212), waveplot(y10);
d =
b10
B.3 Apply y10 to a matched filter. Display the output waveform z10:
À subplot(212), waveplot(z10);
B.4 Let Tb be the binary data period. Sample the output of the matched filter at k Tb , k =
1, . . . , 10 and apply the following decision rule:
(
0, if sample value > 0;
bck =
1, if sample value < 0;
where bck is the estimated value of the kth element of the binary sequence b10. Apply this
decision rule on the matched filter output z10:
d =
b10
C. Matched-Filter Receiver
C.1 Generate a 2,000-sample binary sequence b and a polar NRZ waveform based on b:
À b = binary(2000);
À x = wave gen(b,0 polar nrz0 );
Apply x to a channel with 4.9 kHz bandwidth and channel noise power of 0.5 W. Let y
be the channel output waveform.
À y = channel(x, 1, 0.5, 4900);
7. Experiment 3: Matched Filter and Bit Error Rate (BER) 53
C.2 Apply y to a matched filter. Display the eye diagram of the matched filter output z.
À z = match(0 polar nrz0 , y);
À eye diag(z);
From the eye diagram, determine the optimum sampling instants and threshold value
v th for the detector to decode the transmitted binary sequence b. Sampling instants for
the matched filter output are measured with respect to the time origin. For example, if
the binary data period is Tb and the sampling instant parameter is set to ti , then the
detector will sample the signal at ti , ti + Tb , ti + 2Tb , . . . etc.
v th = V.
sampling instant = sec.
Use v th and sampling instant in the detector which will operate on the matched filter
output. Record the resulting probability of bit error Pe (BER) in Table 3.1.
À detect(z, v th, sampling instant, b);
Table 3.1
C.3 Repeat C.1–C.2 for channel noise power of 1, 1.5, and 2 W without displaying the eye
diagram of the matched filter output z. Record Pe results in Table 3.1. Remark: In
Experiment 2 you have observed that the optimum sampling instants and the threshold
value are independent of channel noise power. Therefore, you can use the optimum
sampling instants determined in part C.2 to decode the matched filter output for different
channel noise power levels.
C.4 If different sampling instants other than the optimum values are used, the resulting BER
will be larger. You can observe this by decoding the binary sequence using values for the
sampling instant parameter that are 0.9 and 0.5 times the optimal value used in part
C.3.
Q3.5
Evaluate theoretical probability of bit error values for all cases considered above
and record in Table 3.1. Note that the PSD function of a white noise process can be
7. Experiment 3: Matched Filter and Bit Error Rate (BER) 54
determined as:
No σn2
Sn (f ) =
= ,
2 2 × system bandwidth
where the system bandwidth in this experiment is 4.9 kHz.
D.1 Apply a rectangular pulse to a first-order RC-filter of 1 kHz bandwidth. Display the filter
output and measure the peak amplitude Ar :
À r = wave gen(1,0 unipolar nrz0 ); r lpf = rc(1000, r);
À subplot(211); waveplot(r);
À subplot(212); waveplot(r lpf);
Ar = V.
D.2 Generate 2,000 samples from a zero-mean white noise sequence of 0.5 W power. Apply
the noise sequence to the RC-filter. Record the rms value of the output noise power.
À n = gauss(0, 0.5, 2000);
À meansq(rc(1000, n));
σn2 = W.
Q3.6
From the results in parts D.1 and D.2, determine the ratio Ar /σn , where Ar is
the peak signal amplitude measured in D.1 and σn is the rms value of the output noise.
If y in part C.1 is applied to a receiver which uses the above RC-filter, determine the
resulting BER.
D.3 Regenerate y from part C.1. Apply y to the RC-filter. Display the eye diagram of the
output waveform z lpf.
À y = channel(x, 1, 0.5, 4900);
À z lpf = rc(1000, y);
À clf, eye diag(z lpf);
D.4 From the eye diagram, determine the optimum sampling instant and threshold value.
Decode the binary sequence form z lpf.
À detect(z lpf, v th, sampling instant, b);
Compare the resulting BER with the BER evaluated in step C.2.
7. Experiment 3: Matched Filter and Bit Error Rate (BER) 55
D.5 Repeat part D.4 for the channel noise power of 1, 1.5, and 2 W. Record results in Table
3.2.
Table 3.2
Pe
σn2 (W ) BW = 1.0 kHz BW = 0.5 kHz
0.5
1.0
1.5
2.0
D.6 Repeat parts D.3 – D.5 for a first-order RC-filter with 500 Hz bandwidth. Record the
resulting BER values in Table 3.2.
À z lpf = rc(500, y);
À eye diag(z lpf);
À detect(z lpf, v th, sampling instant, b);
Q3.7
Explain why the BER resulting from a low-pass filter of 500 Hz bandwidth is
smaller than the BER resulting from a low-pass filter of 1 kHz bandwidth. Will the BER
be further decreased if a low-pass filter of 100 Hz bandwidth is used?
8. EXPERIMENT 4: DIGITAL MODULATION
1. Objectives:
In this experiment you will apply concepts of baseband digital transmission and analog contin-
uous wave modulation to the study of band-pass digital transmission. You will examine:
2. Prelab Assignment:
1. Consider the binary sequence b = [ 1 0 0 1 0 ]. Let the bit rate Rb be 1 kbps and let the
peak amplitude of all digital modulated waveforms be set to 1 V.
(a) Sketch the ASK waveform representing the binary sequence b using a carrier fre-
quency of 5 kHz.
(b) Sketch the PSK waveform representing the binary sequence b using a carrier fre-
quency of 5 kHz.
(c) Let the mark and space frequencies used by an FSK modulator be set to 3 and 6 kHz,
respectively. Sketch the resulting FSK waveform representing the binary sequence
b.
2. Sketch the power spectral density function for each of the modulated signals in Question
1.
3. If an ASK signal is applied to the input of a coherent detector shown in Fig. 4.1, sketch
the waveforms at the output of each block.
3. Procedure:
8. Experiment 4: Digital Modulation 57
In this experiment, the binary data rate Rb is 1 kbps and peak modulated signal amplitude is
1 V. The bit period Tb = 1/Rb is represented by 100 samples.
A.2 To generate the ASK signal, sa, with a carrier frequency of 8 kHz:
A.3 Display the first 5 bits of xu and sa in the binary sequence b. Compare the two waveforms.
À subplot(211), waveplot(xu, 5);
À subplot(212), waveplot(sa, 5);
Also display and record the respective PSD functions over the frequency interval [ 0, 20
kHz ].
À fr = [0, 20000];
À subplot(211), psd(xu, fr);
À subplot(212), psd(sa, fr);
A.4 To generate the PSK signal sp, with a carrier frequency of 8 kHz:
A.6 Display the PSD functions of xp and sp over the frequency interval [ 0, 20 kHz ]. Record
main characteristics of each PSD function.
À fr = [0, 20000];
À subplot(211), psd(xp, fr);
À subplot(212), psd(sp, fr);
A.7 To generate the continuous phase FSK signal sf, with mark and space frequencies of 4
and 8 kHz, respectively:
Coherent Detection
B.1 A coherent detector for ASK and PSK signals is depicted in Fig. 4.1.
y(t) z(t)
sa (t) MATCHED S/H
FILTER ^
b
LO sin(ωc t)
vTH
bit sync
To demodulate the ASK signal sa, first multiply sa by a locally generated carrier which
has the same frequency and phase as the carrier used in generating sa. Display the
waveform ya at the output of the multiplier for the first five bit periods. Also display and
record the corresponding PSD function over the interval fr.
À ya = mixer(sa, 8000);
À clf, subplot(211), waveplot(ya, 5);
À subplot(212), psd(ya, fr);
B.2 Apply ya to a matched filter and record its output for 0 < t < 5 Tb .
À za = match(0 unipolar nrz0 , ya);
À subplot(212), waveplot(za, 5);
Q4.2
Determine the impulse response of the matched filter. Note that za is similar
to the output of the matched filter for a unipolar NRZ signal. Why?
Table 4.1
Q4.3
Recall that the BER resulting from the detection of a signal in the presence of
noise, is a function of peak signal amplitude at the receiver filter output. Determine from
the results displayed in Table 4.1 which phase error will result in smallest BER.
B.4 Demodulate sa with 60◦ and 120◦ phase errors. Decode the matched filter output to
recover the first five bits of the sequence b. Record each decoded sequence and comment
on the difference.
B.5 To observe the effect of frequency deviation in demodulating an ASK signal, demodulate
sa with a local oscillator set to 7,900 Hz. Display and compare the demodulated signals
ya and ya1.
À ya1 = match(0 unipolar nrz0 , mixer(sa, 7900));
À subplot(211), waveplot(ya, 5);
À subplot(212), waveplot(ya1, 5);
Could the original binary sequence be recovered from ya1? Consider a second case where
the local oscillator frequency is set to 7,985 Hz. Demodulate sa and generate the matched
filter output:
À ya2 = match(0 unipolar nrz0 , mixer(sa, 7985));
À subplot(211), waveplot(ya, 5), subplot(212), waveplot(ya2, 5);
Determine the frequency of the envelope of the matched filter output.
Q4.4
Consider an ASK signal sa (t) with carrier frequency of fc . If sa (t) is demodulated
by multiplying with the output of a local oscillator set to fo , such that fo 6= fc , the
8. Experiment 4: Digital Modulation 61
Coherent Detection
C.2 Apply sa to a channel with unity gain, channel noise σn2 = 1 W, and of sufficient band-
width such that no distortion is introduced to the signal. Display the ASK signal sa and
the channel output y for 0 < t < 5Tb .
À y = channel(sa, 1, 1.5, 49000);
À subplot(211), waveplot(sa, 5);
À subplot(212), waveplot(y, 5);
C.3 Use a coherent detector to demodulate y. Display the eye diagram of the matched filter
output.
À zm = match(0 unipolar nrz0 , mixer(y, 8000));
À clf, eye diag(zm);
From the eye diagram, determine optimum sampling instants and the threshold value.
Apply zm to the decision circuit, and record the resulting probability of bit error.
À detect(zm, vth, sampling instant, b);
Q4.5
Compute the theoretical probability of bit error for the case considered above.
Recall that the PSD function of the channel noise is
No σn2
Sn (f ) = = .
2 2 × system bandwidth
The system bandwidth in this experiment is 50 kHz.