Exp 3
Exp 3
Exp 3
PRE-LAB ASSIGNMENT
1. A matched filter is to be designed to detect the rectangular pulse
³ t − T /2 ´
b
r(t) = rect , with Tb = 1 msec.
Tb
a. Determine the impulse response of the matched filter.
b. Determine the output of the matched filter if r(t) is the input.
c. Repeat parts a and b for a triangular pulse of 10 msec duration.
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:
Sn (f ) = No /2 = 0.5 × 10−4 W/Hz.
If Y (t) is applied to a matched-filter receiver:
a. Determine the rms value of n(t) and the peak signal amplitude at the
output of the matched filter.
b. Determine Eb , the average energy of X(t) in a bit period.
p
c. Determine the probability of bit error Pe = Q( 2Eb /No ).
PROCEDURE
A . Characteristics of Matched Filters
A.1 Generate a rectangular pulse with unit pulse amplitude and 1 msec pulse
duration.
À subplot(311), waveplot(r)
À subplot(312), match(’polar nrz’)
À rm = match(’polar nrz’,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,’triangle’,100);
À clf; subplot(311), waveplot(r)
À subplot(312), match(’triangle’)
À rm = match(’triangle’,r);
À subplot(313), waveplot(rm)
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.
ELE 745 Experiment 3: MATCHED FILTER AND BIT-ERROR RATE (BER) 3
A.6 Generate a polar NRZ waveform that represents the 5-sample binary se-
quence [ 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 sequence in polar NRZ signalling format.
À b10 = binary(10);
À x10 = wave gen(b10,’polar nrz’,1000);
À 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:
À y10 = channel(x10,1,2,4900);
À subplot(212), waveplot(y10)
bd
10 =
B.3 Apply y10 to a matched filter. Display the output waveform 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;
bbk =
1, if sample value < 0;
where bbk is the estimated value of the kth element of the binary sequence
b10. Apply this decision rule on the matched filter output z10:
bd
10 =
C . Matched-Filter Receiver
À b = binary(2000);
À x = wave gen(b,’polar nrz’);
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);
C.2 Apply y to a matched filter. Display the eye diagram of the matched filter
output z.
À z = match(’polar nrz’,y);
À eye diag(z);
From the eye diagram, determine the optimum sampling instants and thresh-
old value v th for the detector to decode the transmitted binary sequence
b. Sampling instants for the matched filter output are measured with re-
spect to the time origin. For example, if the binary data period is Tb and
ELE 745 Experiment 3: MATCHED FILTER AND BIT-ERROR RATE (BER) 5
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.
Table 3.1
C.3 Repeat C.1–C.2 for channel noise power of 1, 1.5, and 2 W without display-
ing 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 determined as:
No σn2
Sn (f ) = = ,
2 2 × system bandwidth
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 thresh-
old value. Decode the binary sequence form z lpf.
Compare the resulting BER with the BER evaluated in step C.2.
D.5 Repeat part D.4 for the channel noise power of 1, 1.5, and 2 W. Record
results in Table 3.2.
ELE 745 Experiment 3: MATCHED FILTER AND BIT-ERROR RATE (BER) 7
Pe
σn2 [W ]
BW = 1.0 kHz BW = 0.5 kHz
0.5
1.0
1.5
2.0
Table 3.2
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?