Professional Documents
Culture Documents
generator
impuse s(t) H00 H, z(t) AVD
nt)
transmitter channel receiver
21
DHEERAJ CHAUDHARY
2K13/EC/054
ASK signal so oblained after multiplying the incoming binary data and the
sinusoid carrier has a power spectral density(PSD) same as that of the baseband
on-off signal but shifted in frequency domain by t
f
ASK signal has an infinite bandwidth. But for practical purpose, the bandwidth is
often defined as the bandwidth of an ideal bandpass filter centered at frequency
fe whose output contains about 95% of the total average power content of the
ASK signal.
6.2.2 ADVANTAGES OF ASK
ASK is very sensitiveto noise i.e. it has very low noise immunity.
Itis used at very low bit rates upto 100 bits per second.
Probability of error or Bit Error Rate(BER) is also more in ASK.
fpr i=1:1:1
m((i-1)*100+1:i*100) =x (i) &loop to convert inputed
sequence to puisewave
end
ask=[l;
for (i=1:1:1)
if (x(i) ==1)
y((i-1) *100+1:i*100) =cl (1:100)
else
y((i-1) *100+1:i*100) =0
end
end
subplot (3,1,1)
plot (m)
ylabel("Ampiitude') ;
xlabel(' Time' );
axis ( [0 800 -.5 1.5])
22
DHEERAJ CHAUDHARY
2K13/EC/054
title('Message signal)
subplot(3,1,2)
plot (y)
ylabel(' Amplitude ' ) ;
xlabel (' Time');
title('ASK Signal')
ASK Demodulation envelope detection without noiset3%
for i=1:1:1
23
DHEERAJ CHAUDHARY
2K13/EC/054
6.4 OUTPUT & DISCUSSIONS
Message signal
5
100 20 3003 00 00 700
Time
ASK Signal
10 Ii
400 500 700 800
Time
ASK is commonly used over optical fiber with light-emiting diode (LED) and
LASER transmitters.
The ASK technique is also commonly used to transmit digital data over optical
fiber. For LED transmitters, binary 1 is represented by a short pulse of light and
binary 0 by the absence of light. Laser transmitters normally have a fixed "bias"
current that causes the device to emit a low light level. This low level represents
binary 0, while a higher-amplitude light wave represents binary 1.
The simplest and most common form of ASK operates as a switch, using the
presence of a carrier wave to indicate a binary one and its absence to indicate a
24
DHEERAJ CHAUDHARY
2K13/EC/054
EXPERIMENT-7
Frequency Shift Keying (ASK) is a simple form of digital modulation in which the
frequency of carrier sinusoids is modified in a discrete manner depending on the
value of a modulating signal.
I n FSK system, the binary symbol 1 is represented by transmiting a fixed-
amplitude carrier wave of one frequency(carrier signal "A") for a bit duration of T
seconds and the binary symbol 0 is represented by transmitting a fixed-amplitude
carrier wave of another frequencylcarrier signal "B") for a bit duration of T
seconds. If the signal value is 1 then the carier signal "A" is transmitted;
otherwise the carrier signal "B" will be transmitted.
Generally in FSK system, "1" is called the mark frequency and the "0" is called
the space frequency.
FSK can be further classified into various forms like Continuous Phase
FSK(CPFSK), Minimum-shift Keying, Gaussian FSK, Audio FSK{AFSK), etc.
Bnary
t027, cou2efy 3inary
FSK
data
quence encoder na
Inverter
in-27,cogt2/
Chooee 1 if y>0
Choose o ity<0
Threshold 0
Fig 7.1 Block Diagram of FSK System (a)FSK Transmitter (b) FSK Receiver
26
DHEERAJ CHAUDHARY
2K13/EC/054
7.2.2 ADVANTAGES OF FSK
FSK's major drawback is high bandwidth requirement since the maximum data
rate for a channel is a function of bandwidth.
FSK is then extensively used in low speed modemss aving bit rates below 1200
bits/sec.
clc;
close all;
clear all;
fc1=60;
fc2=20;
fp-10
amp=10
t=0:0.001:1;
c1=amp. *sin (2*pi*fc1*t); 8carrier wave of frequency fc1
27
DHEERAJ CHAUDHARY
2K13/EC/054
c2-amp.*sin (2*pi*fc2*t) ; tcarrier wave of frequency fc2
subplot (5,1,1);
plot(t, c1);
xlabel('Time');
ylabel( 'Amplitude');
title Carrier Wave 1')
subplot(5,1,2);
plot (t, c2);
xlabel('Time')
ylabel ( Amplitude');
title(Carrier Wave 2');
m=(amp.*square (2*pi*fp*t) +amp)./2; Bmessage wave
subplot (5,1,3);
plot (t,m);
xlabel('Time')
ylabel ("Amplitude');
title('Message Wave')
axis( [0 1 -10 201);
%FSK MODULATION
for i=0:1000
if m(i+1) ==0
mm(i+1) =c1 (i+1);
else
mm (i+1) =c2 (i+1)
end
end
subplot (5,1,4);
plot (t mm);
xlabel( Time');
ylabel('Amplitude');
title('FSK Modulated wave');
8FSK Demodulation for a noiseless channel
for i=0:1000
if mm(i+1)==c1 (i+1)
r(i+1)=0*amp
else
r(i+1) =1*amp;
end
end
subplot(5,1,5) ;
plot (t, r) ;
axis( [0 1 -10 201)
xlabel( Time');
ylabel( Amplitude');
title ( 'Demodulated signal')
28
DHEERAJ CHAUDHARY
2K13/EC/054
7.5 OUTPUT & DISCUSsIONS
1MANMAAMMAMAMMAMAAMNMANAMAONONNOOWVVUWVWIOWOI
01 02 03 0.4 0.5 06 0.7 0.8 0.9 1
each having
amplitudes but
same
different
TIme frequencies.
Cerler Wave2
Carrier wave 1 has "1
AAAWAMMAAAMM/AWAMW
01 02 03 04 .5 0.8 D.9 1
frequency whereas Carrier
wave 2 has "12" frequency.
Time
Message Wave
T
Message wave is taken as
a square wave.
DHEERAJ CHAUDHARY 29
2K13/EC/054
EXPERIMENT-8
Phase Shift Keying (PSK) is a simple form of digital modulation in which the
phase of carrier sinusoids is modified in a discrete manner depending on the
value of a modulating signal.
PSK uses a finite number of phases each
assigned a unique pattern of binary
digits. Usually, each phase encodes an equal number of bits. Each pattern of bits
forms the symbol that is represented by the
particular phase.
I n PSK system, the binary symbol 1 is represented by transmitting a fixed-
amplitude, fixed-frequency carrier wave of one phase(carrier signal 'A) for abit
duration of T seconds and the binary symbol 0 is represented by transmitting a
fixed-amplitude, fixed-frequency carrier wave of another phase(carrier signal 'B')
for a bit duration of T seconds. If the signal value is 1 then the carrier signal 'A' is
transmitted; otherwise the carrier signal 'B' will be transmitted.
Binary Polarto-zero
nonreturn- Product Binary
data modulator PSK
sequence level encoder signal
s()
-co(2xt)
Corelator
Threshold =0
(6)
Fig 8.1 Block Diagram of PSK (a)Binary PSK Transmitter (b)Coherent Binary PSK Receiver
30
DHEERAJ CHAUDHARY
2K13/EC/O54
8.2.2 ADVANTAGES OF PSK
PSK is less susceptible to errors than ASK, while it
ASK. requires same bandwidth as
More efficient use of
FSK.
bandwidth (higher data rate) are possible, as compared to
8.2.3 DISADVANTAGES OF PSK
More complex detection and
recovery process than ASK and FSK.
clci
close all;
clear all;
fc-40;
fp-10;
amp=10
t 0:0.001:1;
cl-amp. *sin (2*pi*fc*t) ; %carrier wave of
frequency fcl
DHEERAJ CHAUDHARY 31
2K13/EC/054
C2amp.*sin (2*pi*fc*t+pi);*Carrier Wave of frequency f c2
m= (amp. *square (2*pi*fp*t) +amp) ./2; nesSage Wa ve
subplot (5,1,1)
plot (t, cl);
xlabel('Time')
ylabel('Amplitude');
title('Carrier Wavel');
subplot (5,1,2)
plot (t, c2);
xlabel('Time'))
ylabel('Amplitude');
title('Carrier Wave2');
subplot (5,1,3);
plot (t, m);
xlabel('Time');
ylabel('Amplitude');
title('Message Wave')
axis ( [0 1 -10 201)
PSK MODULATION
for i=0:1000
if m(i+1) ==0
mn(i+1) =c2 (i+1);
else
mm(i+1) =c1 (i+1);
end
end
subplot (5,1,4) ;
plot (t, mn);
xlabel('Time') ;
ylabel (Amplitude');
title('PSK Modulated Wave');
&PSK Demodulation for a noiseless channel
for i=0:1000
if mm (i+1) ==cl
(i+1)
else
r(i+1)=1*amp;
r (i+1)=0*amp;
end
end
subplot (5,1,5);
plot (t, r) ;
axis ([0 1 -10 201)
xlabel('Time');
ylabel('Amplitude') ;
title( ' Demodulated Signal')
DHEERAJ CHAUDHARY
2K13/EC/054 32
8.5 OUTPUT & DISCUSSIONS
Camier Wave1
EOWMNMNMIWAWIWWNININMM
0.1 0.2 0.3 0.4
Time
Message Wave
U.D 0.7 0.8 0.9
MMMMWNMMMMMIMMWNNM
0.1 0.2 0.3 U.4
Time
0.5
Demodulated Signal
0.6 0.7 0.8 0.9
corresponding to each bit of
the message signal.
DHEERAJ CHAUDHARY 33
2K13/EC/054
EXPERIMENT-9
Bit sequence 00 01 10 11
Phase shift Zero 90° 180 270
4 PSK
Wave
DHEERAJ CHAUDHARY 34
2K13/EC/054
9.2.2 ADVANTAGES OF QPSSK
DHEERAJ CHAUDHARY
3
2K13/EC/054
l se
u (i) 1
end
Cnd
fori = 1:1:n
bw((i-1) *100+1:i*100)= u(i);
(mod (i, 2) == 0)
bw ( (i-2) *100+1: (i) *100)
end
=u(i):
1t (mod ( i, 2) -
0)
bw o( (i-1) *100+1: (i+1) *100)
end
=
u (i);
end
QPSK Modulation
cost =
cos (2 *pi*t);
sinl sin (2 *pi*t) ;
for i =1:1:n*100
y (i) bw e (i) *sint (i);
x (i) =
bw o(i)
*cost (i);
end
XTY? bit stream splitted into even & Odd
Subplot (3,2, 1); sequences
plot (t, bw);
xlabel ('n--->');
ylabel('Amplitude');
title(' Input Bit Stream');
grid on
axis ([0 n -2 +2])
subplot (3,2, 5) ;
plot (t, bw_o)
xlabel ('n ---->')
ylabel('Amplitude'):
Litle('Odd sequence');
grid on
axis([0n -2 +2])
subplot (3,2,3)
plot (t, bw_e)
xlabel('n ---->');
ylabel('Amplitude')
itle ('Even Sequence');
grid on;
axis([0 n -2 +2]):
subplot (3, 2,4);
plot (t, x);
xlabel('Time') ;
ylabel ('Anpiitude')
title('Odd Sequence BPSK Modulated Wave');
DHEERAJ CHAUDHARY 36
2K13/EC/054
grid on
axis([0n-2 +21)
subplot (3,2,2)
plot (tY)
xlabel Titme ');
ylabel Amplit ude');
title('Even Sequence BPSK Modulated wave');
gridon
axis([0 n -2 +21):
subplot (3,2,6)
plot (t, 7);
xlabel('Time');
ylabel(Amplitude');
i t l e ('OPSK Modulatted Wave');
grid Oni
axis( [0 n -2 +2]);
figuree
PSK Demodu lation
demodd-z. *cost;
for i-1:n
for j ((i-1) *100) +1:1:i*100
if demodd (j)>11
demobit ( (i-1) *100+1 : (i) *100) =1;
break;
end
if demodd (j)<-1
demobit ((i-1) *100+1: (i) *100) =0;
break;
end
end
end
demeven=z.*sint;
for i-1:n
for
j-(i-1) *100) +1:1:i*100
if demeven (j) >1
demebit ( (i-1) *100+1: (i) *100) =l;
breakK
end
if demeven (j) <-1
demebit ( (i-1) *100+1: (i) *100) =0;
break;
end
end
end
subplot (3,2,1):
plot (t, demodd) ;
xlabel ('Time') ;
DHEERAJ CHAUDHARY 37
2K13/EC/054
yIabelAnitnde'):
i t l e (Recovered Odd ignal ');
grid O
axis( 0 n -2 21):
Subplot (3, 2, ?):
plot (tL, demeven);
1abel('Tine');
ylabelAmplitude');
iLle('Recovered Even Siqnal ');
grid on
axis( 0 n -2 +21)
subplot (3, 2,3):
plol (tL, demobit);
xlabel('n-
ylabel ('Amplitude');
i t l e ( ' Demodulated Odd Bit Stream');
grid on;
axis( 10n -0.5 1.5])
subplot (3,2,4))
plot (t, demebit);
xlabel('n----');
ylabel ('Amplitude ')
it.le(' Demodulated Even Bit Stream') ;
gridOn;
axis ([0 n -0.5 1.5]);
for i-1:n
if (mod (i,2) == 0)
demdmsg( (i-1) *100+1: (i) *100) =demebit ( (i-
1)*100+1: (i) *100);
else
demdmsg ( (i-1) *100+1: (i) *100) =demobit ( (i-
1) *100+1: (i) *100) ;
end
end
Subplot (3,2,5.5);
plot (t, demdmsg)
xlabel("n---->');
ylabol (Amplit ude') ;
title('Denodulated Signal (Bit Stream) '):
grid on;
axis([0 n -0.5 1.5]);
38
DHEERAJ CHAUDHARY
2K13/EC/054
9.5 OUTPUT & DIScUSSIONSS
Input message signal is a
Input Bit Stream Even Sequence BPSK Modulated Wave bit stream of 0's and 1's.
39
DHEERAJ CHAUDHARY
2K13/EC/054
9.6 LEARNING OUTCOME
QPSK is used in various cellular wireless standards such as GSM, CDMA, LTE,
802.11 WLAN, 802. 16 fixed and mobile WiMAX, Satellite and CABLE TV
applications.
As difference between any two constellation point is 90 degree maximum, QPSK
has many benefits. It is robust compare to other modulation techniques except
BPSK.
t has double data rate carrying capacity compare to BPSK as two bits are
mapped on each constellation points. In BPSK only 1 bit is mapped to each
constellation point.
DHEFRAJ CHAUDHARY
K13/ C/054 40