Professional Documents
Culture Documents
A9 Exp5
A9 Exp5
A9 Exp5
Group: A9
10-10-2022
a) Objective:
b) Theoretical Background
Block Diagram:
Bandwidth limited channel:
The transmission channel is restricted to a finite bandwidth. All practical channels are
band-limited. Engineers limit the bandwidth of signals to enable multiple signals to share the
same channel with minimal interference.
An example of an impulse response that meets this criterion is the sinc() function:
Both the real and imaginary parts of H(f) need to have this symmetry. We often have limited
control over the impulse response or transfer function of the channel and must apply
filtering at the transmit or receive sides of the channel to fulfill the Nyquist criterion.
Pulse-Shaping Filter:
It should be noted that the Nyquist no-ISI criterion applies to a channel that produces no ISI
for impulses rather than the square pulses that are typically used. Because actual systems do
not transmit impulses, the Nyquist criteria cannot be directly applied to the physical
channel. Instead, suppose the transmitter has a hypothetical filter that transforms impulses
into pulses before sending them across the channel. When calculating the channel ISI, the
response of this (im)pulse-shaping filter must be considered. The Nyquist criterion must be
met by the combination of this impulse-shaping filter and the channel.
Eye-diagram:
Low-Pass FIlter:
c) Pseudocode:
compute the convolution of the channel function and the pam signal
normalise the channel output with respect to maximum magnitude
plot the channel output of the PAM signal in the time domain
plot the absolute value of fft of channel output of the PAM
● Above plots shows the graphical description of the 1-bit pulse which follows the
following property.
Channel output of the Rectangular 1-bit pulse along with its frequency domain
representation:
● Above plots shows the graphical description of the output of the 1-bit pulse after
passing through a band-limited channel. The first subplot shows the time domain.
Since the channel is bandlimited, we know the rectangular pulse will be distorted
when passed through it. The above depicts the same.
● The second subplot shows the frequency domain representation of the channel
output. We can observe that the low ripples in the sinc pulse are attenuated due to
the band-limiting nature of the channel.
Binary input coded as PAM signal using 1-bit pulse along with its frequency response:
● Above plots depicts the time domain and the frequency domain representation of
the following input sequence.
x = [1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 1 1 1 1 1 1 1]
Frequency response of the channel along with its time domain representation:
● Above plots show the frequency response and time domain representation of the
channel.
● To design the channel we first took the ideal sinc function and applied the window
function(Blackman Window) to truncate the pulse and obtain an FIR filter.
● We took the cut-off frequency of the channel as 1/T.
Channel output of the PAM signal along with its frequency response:
● Above plots depict the output of the channel of the PAM signal. We can observe that
the pulse received is distorted when compared with the transmitted pulse.
● We can also observe from the second subplot that the lower ripples are attenuated
when passed through the channel.
Eye-diagram:
e) Conclusion:
● We have designed a transmitted pulse to transmit the input data over a bandlimited
channel and observed the channel output for the transmitting pulse is a distorted
pulse due to the band-limiting nature of the channel.
● We have transmitted the PAM signal through the channel and observed if the cut-off
frequency of the channel(W) is less than 1/T(bit interval) we can observe more ISI. If
the cut-off frequency is greater than 1/T then there is less distortion.
● We can observe from the Eye-diagram that for larger ISI the eye closes reducing the
noise margins.
f) Appendix:
Code:
clc;
close all;
Tb = 0.0001;
fs = 100000;
t = 0:1/fs:Tb-(1/fs);
p_t = zeros(1,10*length(t));
pt0 = zeros(1,length(t));
t1 = 1:1:10*length(t);
for n=1:1:length(t)
p_t(n) = 1;
end
figure(1);
subplot(2,1,1);
plot(t1,p_t);
title('1-bit pulse');
P_f = fft(p_t);
subplot(2,1,2);
plot(fftshift(abs(P_f)));
%PAM generation
x = [1 0 1 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 1 1 1 1 1 1 1];
pam_x = [];
for i=1:1:length(x)
if(x(i)==1)
else
end
end
X_f = fft(pam_x);
figure(2);
subplot(2,1,1);
plot(pam_x);
subplot(2,1,2);
plot(fftshift(abs(X_f)));
fc = 1/Tb;
wc = 2*pi*(fc/fs);
N = 301;
M = N-1;
t1 = M/2;
n = 0:M;
W = 0.42 -0.5*(cos((2*pi*n)./M))+0.08*(cos((4*pi*n)./M));
h = sin(wc*(n-t1))./(pi*(n-t1));
h(t1+1) = wc/pi;
hd = h.*W;
h_f = fft(hd);
d = -1:2/length(h_f):(1-2/length(h_f));
figure(3);
subplot(2,1,1);
plot(d,fftshift(abs(h_f)));
xlabel('Normalized(*pi)--->');
subplot(2,1,2);
plot(hd);
%1-bit response
ypt = conv(p_t,hd);
ypt_f = fft(ypt);
figure(4);
subplot(2,1,1);
plot(ypt);
subplot(2,1,2);
plot(fftshift(abs(ypt_f)));
%input response
yt = conv(pam_x,hd);
ryt = yt./max(yt);
yt_f = fft(yt);
figure(5);
subplot(2,1,1);
plot(ryt);
plot(fftshift(abs(yt_f)));
%eye diagram
figure(6);
plot(pam_x(1:length(t)));
title('Eye diagram');
hold on
plot(ryt(1:length(t)),'b');
for i=1:1:(length(x))-1
plot(pam_x((i*length(t))+1:(i+1)*length(t)),'r');
plot(ryt((i*length(t))+1:(i+1)*length(t)),'b');
end
hold off