You are on page 1of 7

DIGITAL COMMUNICATION SYSTEM

ECE – 4001
Submitted to :- Prof Nandakumar S
L-41+42
-Performed By:- Harshit Pandey(18BEC2036)

AIM :- To plot the wave for amplitude shift keying and then demonstrate
the process of demodulation.

Theory :- Amplitude Shift Keying is a type of Amplitude Modulation which


represents the binary data in the form of variations in the amplitude of a
signal.
Any modulated signal has a high frequency carrier. The binary signal when
ASK modulated, gives a zero value for Low input while it gives the carrier
output for High input.
The ASK modulator block diagram comprises of the carrier signal generator,
the binary sequence from the message signal and the band-limited filter. The
carrier generator, sends a continuous high-frequency carrier. The binary
sequence from the message signal makes the unipolar input to be either High
or Low. The high signal closes the switch, allowing a carrier wave. Hence, the
output will be the carrier signal at high input. When there is low input, the
switch opens, allowing no voltage to appear. Hence, the output will be low.
Algorithm: -
ASK modulation

• Generate carrier signal.


• Start FOR loop
• Generate binary data
• Generate ASK modulation
• Plot message signal
• End FOR loop.
• Plot the binary data

ASK demodulation

• Start FOR loop


• Perform correlation of ASK

Demodulation of binary data


Block Diagram :-

Model Graph:-
MATLAB Code :-
clc;
clear all;
f=5;
a=2;
n=[1 0 1 1 1 0 0 0];
l=length(n);
if n(l)==1
n(l+1)=1
else
n(l+1)=0
end
num=length(n)
anc=0:num-1;
subplot(4,1,1);
stairs(anc,n);
title('MESSAGE ');
xlabel('TIME');
ylabel('AMPLITUDE');
t=0:0.01:l;
y1=a*sin(2*pi*f*t);
subplot(4,1,2);
plot(t,y1);
title('CARRIER SIGNAL');
xlabel('TIME');
ylabel('AMPLITUDE');
for i=1:l
for j=(i-1)*100:i*100
if(n(i)==1)
s(j+1)=y1(j+1);
else
s(j+1)=0;
end
end
end
subplot(4,1,3);
plot(t,s);
title('MODULATED SIGNAL');
xlabel('TIME');
ylabel('AMPLITUDE');
for i=1:l
for j=(i-1)*100:i*100
if(s(j+1)==y1(j+1))
x(j+1)=1;
else
x(j+1)=0;
end
end
end
subplot(4,1,4);
plot(t,x);
title('DEMODULATED SIGNAL');
xlabel('TIME');
ylabel('AMPLITUDE');
OUTPUT GRAPH :-

RESULT AND INFERENCE


Using the above program, we can successfully perform ASK modulation
and demodulation.In ASK binary symbol 1 is represented by transmitting a
fixed amplitude carrier wave and fixed frequency for a bit duration of T
seconds. If the signal value is 1 then the carrier signal will be transmitted;
otherwise, a signal value of 0 will not be transmitted.

You might also like