You are on page 1of 6

DIGITAL COMMUNICATION SYSTEM

TASK 1: Simulation of Binary Amplitude Shift Keying- Modulation and


Demodulation

NAME: ABHIGYAN BHOWAL

REG NO:18BEC0954

LAB SLOT:L7-L8
AIM:- Simulation of Binary Amplitude Shift Keying- Modulation and
Demodulation

THEORY:- Amplitude Shift Keying (ASK) is the digital modulation technique. In


amplitude shift keying, the amplitude of the carrier signal is varied to create signal
elements. Both frequency and phase remain constant while the amplitude changes. In
ASK, the amplitude of the carrier assumes one of the two amplitudes dependent on
the logic states of the input bit stream. This modulated signal can be expressed as:
Amplitude shift keying (ASK) in the context of digital signal communications is a
modulation process, which imparts to a sinusoid two or more discrete amplitude
levels.

These are related to the number of levels adopted by the digital message. For a binary
message sequence there are two levels, one of which is typically zero. Thus the
modulated waveform consists of bursts of a sinusoid. Figure 1 illustrates a binary
ASK signal (lower), together with the binary sequence which initiated it (upper).
Neither signal has been band limited.

There are sharp discontinuities shown at the transition points. These result in the
signal having an unnecessarily wide bandwidth. Band limiting is generally introduced
before transmission, in which case these discontinuities would be ‘rounded off’. The
band limiting may be applied to the digital message, or the modulated signal itself.
The data rate is often made a sub-multiple of the carrier frequency. This has been
done in the waveform of Fig.
ALGORITHM:- Representation of message signal b=[ 1 0 1 0]
• Representation of Carrier signal x(t)= A sin 2pi f t
• Representation of modulated signal using for and if loop
• Representation of Demodulated signal
• Reconstruction of binary sequence
MODEL GRAPH

MATLAB CODE:-
bs=input('Enter the input bit sequence:');
f=input('Enter the carrier signal frequency(Hz):');
a=input('Enter the carrier signal amplitude:');
c=0;
d=0;
l=length(bs);
%code for generating binary signal
for i=1:l
t1=(c:0.01:c+1);
x=bs(i)*ones(length(t1),1);

subplot(3,1,1);
plot(t1,x);
axis([0 1 -1 2]);
xlabel('time(s)-->');
ylabel('amplitude(v)-->');
title('Message signal 18BEC0954');
hold on;
c=c+1;
end
%code for generating carrier signal
mt=(0:0.01:1);
ms=a*sin(2*pi*f*mt);
subplot(3,1,2);
plot(mt,ms);
xlabel('time(s)-->');
ylabel('amplitude(v)-->');
title('Carrier signalL 18BEC0954');
%code for generating bask signal
for i=1:l
t2=(d:0.01:d+1);
y=bs(i)*a*sin(2*pi*f*t2);
subplot(3,1,3);
plot(t2,y);
xlabel('time(s)-->');
ylabel('amplitude(v)-->');
title('BASK SIGNAL 18BEC0954');
hold on
d=d+1;
end

for i=1:5
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 18BEC0954');

xlabel('time');
ylabel('amplitude');
GRAPHCAL OUTPUT:

MESSAGE

CARRIER

BASK SIGNAL

DEMODULATED SIGNAL
RESULT AND INFERENCE:-

After entering the sequence [1 0 1 1 0] we get the following BASK modulated signal
and the respective demodulated signal which resembles the original input signal.

You might also like