Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Assignment -1
We certify that this assignment submission is our own work and not obtained from
any other source.
Table of Contents
Problem 1 4
Parameters 4
Matlab Code 4
Band Pass Signal generation 5
Down Conversion 6
Low Pass Filtering 6
Observations 7
Problem 2 8
Parameters: 8
Matlab Code 8
SRRC pulse Roll Off: 0.35 11
SRRC Pulse in Time domain 11
SRRC Pulse in Frequency domain 11
Observations 13
Problem 3 14
Matlab Code 14
RC Pulse 15
Generated Bits 16
Pulse shaped data 17
Detected Output 17
Eye Diagram 18
Observations 19
Problem 1
Parameters
Sampling Frequency = 1 MHz
Carrier Frequency = 10Hz
Bandwidth of Sinc (Message Signal) = 1Hz
Matlab Code
passbandSignal_up_t = sinc(timeAxis).*cos(2*carrierFrequency*pi*timeAxis);
figure;
plot(timeAxis_usec,passbandSignal_up_t);
xlabel('Time in micro sec');
ylabel('Amplitude');
title('Modulated Signal Up_t')
% Down Converter
downConvertedOutput = 2* passbandSignal_up_t
.*cos(2*carrierFrequency*pi*timeAxis);
figure
plot(timeAxis_usec,downConvertedOutput);
xlabel('Time in micro sec');
ylabel('Amplitude');
title('Downconverted Modulated Signal Up_t');
figure;
plot(timeAxis_usec,filterOutput);
xlabel('Time in micro sec');
ylabel('Amplitude');
title('Moving Average output');
%% Observation
figure;
freqz(lpf_coeffs);
title('Frequency Response of Moving Average Filter');
Parameters:
Symbol Rate: 25K
Matlab Code
clc;
clear all;
close all;
alpha = [.35 0.7 1]; % roll off factor
SymbolRate = 25000;
timePeriodOfSymbol = 1/SymbolRate;
SamplingFrequency = 8*SymbolRate;
NofSamples = ceil(5*timePeriodOfSymbol*SamplingFrequency); %To
find No of samples in 5T duration
timeAxis = [-NofSamples:NofSamples]/SamplingFrequency; %time = -
5T:Ts:5T,i.e 10T duration
symbol_duration = length(timeAxis);
SRRC = zeros(numel(timeAxis),numel(alpha));
%generate srrc pulse with Symbol period T and rol of factor = 'alpha'
for i=timeAxis
if (i == 0)
SRRC(t,iAlphaCnt) = 1-a+ 4*a/ pi;
elseif ((i== (timePeriodOfSymbol/4/a) || i== -
(timePeriodOfSymbol/4/a)))
SRRC(t,iAlphaCnt)=a/sqrt(2)*( (1+2/pi)*sin(pi/4/a) + (1-2/pi)*cos
(pi/4/a) );
else
SRRC(t,iAlphaCnt)= ( (sin( pi*(1-a)*i/timePeriodOfSymbol) +
4*a*i/timePeriodOfSymbol * cos (pi * (1+a)* i/ timePeriodOfSymbol)) /
(pi*i/timePeriodOfSymbol * (1- (4*a*i/timePeriodOfSymbol)^2 )) );
end
t=t+1;
end
end
y = zeros(NFFT,numel(alpha));
spectrum = zeros(NFFT,numel(alpha));
figure;
freq_scale = [-NFFT/2:(NFFT/2-1)]*SamplingFrequency/NFFT;
plot(freq_scale,spectrum(:,1),'g', 'Linewidth',1);
xlabel('Freq in Hz')
ylabel('dB')
% title('Magnitude Response for SRRC pulse of roll-off value 0.35')
grid on;
% figure;
hold on;
plot(freq_scale,spectrum(:,2), 'm','Linewidth',1);
xlabel('Freq in Hz')
ylabel('dB')
% title('Magnitude Response for SRRC pulse of roll-off value 0.7')
grid on;
% figure;
plot(freq_scale,spectrum(:,3), 'b','Linewidth',1);hold off;
xlabel('Freq in Hz')
ylabel('dB')
% title('Magnitude Response for SRRC pulse of roll-off value 1')
legend('alpha=0.35','alpha=0.7','alpha=1');
grid on;
SRRC pulse Roll Off: 0.35
SRRC Pulse in Time domain
Observations
As alpha (Roll-Off factor) value increases the Bandwidth occupancy increases.
Problem 3
Matlab Code
h_srrc=SRRC(:,3);
h_srrc= h_srrc';
rcPulseImpulse = conv(h_srrc,h_srrc);
figure;
plot(pul_shape_seq,'Linewidth',2);
grid on; title('Bit Seq After Pulse Shaping')
xlabel('Samples')
ylabel('Amplitude')
% title('RC pulse for roll-off 0.7')
peak_values = pul_shape_seq(center_idx:symbol_duration:end)
decoded_bits = peak_values(1:20)
figure;
stem(bits,'Linewidth',2); title('Bit Seq')
hold on;
stem(decoded_bits,'r'); legend('Txd Bits','Rxd bits')
% eyediagram(decoded_bits,8);
eyediagram(pul_shape_seq(center_idx:(center_idx+19*symbol_duration)),symbol_d
uration);
title('Eye Diagram with Roll Off 1 of RC Pulse')
grid on;
RC Pulse
Generated Bits
Pulse shaped data
Detected Output
Peak values of Decoded bits:
There is no ISI observed with the Ideal sampling time for the RC pulse with Roll off of 1. As the Roll off is
reduced to 0.7 the jitter is more eye diagram is showing the same.