0% found this document useful (0 votes)
222 views7 pages

Delta Modulation: Lab Report # 03 Digital Communication

This lab report describes experiments with delta modulation. The first experiment implements delta modulation on a sine wave signal, quantizing it using step sizes determined by the signal's derivative. The second experiment modulates, transmits, and demodulates a sampled sine wave using delta modulation. Key steps include: 1) Modulating the signal by increasing/decreasing the step size based on the signal's direction of change, 2) Transmitting the modulated signal as a stream of 1s and 0s, 3) Demodulating the received stream by accumulating the step sizes, and 4) Filtering the demodulated signal to reconstruct the original waveform. The experiments demonstrate the basic principles and steps of delta modulation.

Uploaded by

rajasafeel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
222 views7 pages

Delta Modulation: Lab Report # 03 Digital Communication

This lab report describes experiments with delta modulation. The first experiment implements delta modulation on a sine wave signal, quantizing it using step sizes determined by the signal's derivative. The second experiment modulates, transmits, and demodulates a sampled sine wave using delta modulation. Key steps include: 1) Modulating the signal by increasing/decreasing the step size based on the signal's direction of change, 2) Transmitting the modulated signal as a stream of 1s and 0s, 3) Demodulating the received stream by accumulating the step sizes, and 4) Filtering the demodulated signal to reconstruct the original waveform. The experiments demonstrate the basic principles and steps of delta modulation.

Uploaded by

rajasafeel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 7

Lab Report # 03

Digital Communication

Lab Title
Delta modulation

Submitted to:
Mam Esha Ooj

NAME:
Mohammad Amir
ID:
17018
Lab task #01
t=0:0.01:1;
m=sin(2*pi*t)
hold on
plot(m,'r')
xlabel('time')
ylabel('Magnitude')
title('Delta Modulation')
d=2*pi/100
for n=1:100
if(n==1)
e(n)=m(n)-0; %e(n) error or differeance signal and m(n) orignal signal
eq(n)=d*sign(e(n)) % eq(n) is quantized signal
mq(n)=eq(n) %mq(n) is approximated signal
else
e(n)=m(n)-mq(n-1) %difference or error
eq(n)=d*sign(e(n))
mq(n)=eq(n)+mq(n-1)
end
end
stairs(mq,'b')
hold off

Output:

Lab task #02


f=2;
a=1
t=0:0.01:1;
y=a*sin(2*pi*f*t)
figure
plot(t,y)
title('Message Signal')
xlabel('Time')
ylabel('Apmlitude')
figure
stem(t,y)
title('Sampled signal')
xlabel('Time')
ylabel('Apmlitude')
%Modulation
del=0.05
s(1)=0
for i=1:100
if(y(i+1)>y(i))
s(i+1)=s(i)+del
p(i)=1
else
s(i+1)=s(i)-del
p(i)=0
end
end
figure
stairs(t,s)
title('delta Modulated Signal')
xlabel('Time')
ylabel('Apmlitude')
%Plot delta Modulation(i-bit encodes)
t1=0.01:0.01:1
figure
stem(t1,p)
title('delta Modulation(i-bit encodes)')
xlabel('Time')
ylabel('Apmlitude')
%demodulation
r(1)=0
for i=1:100
if(p(i)==1)
r(i+1)=r(i)+del
else
r(i+1)=r(i)-del
end
end
%Filter reconstructed signal
[b,a]=butter(1,0.2,'low')
z=filter(b,a,r)
figure
plot(t,z)
title('Delta de-Modulated Signal')
xlabel('Time')
ylabel('Apmlitude
Output:

You might also like