EC6512 Communication System Lab Manual
EC6512 Communication System Lab Manual
:
Date:
SAMPLING AND RECONSTRUCTION OF ANALOG SIGNALS
AIM:
To study the signal sampling and reconstruction of analog signals.
APPARATUS REQUIRED:
1. Sampling and Reconstruction Kit
2. Patch Cords
3. Probes
4. DSO
THEORY:
A band limited signal of finite energy has no frequency components higher than ‘W’
hertz is completely described by specified the values of the signal of instants of time separated
by 1/2W seconds, where ‘W’ is the higher frequency content. The zero order hold circuit is used
for practical reconstruction. It simply holds the value x(n) for ‘T’ seconds. Here ‘T’ is the
sampling period; The output of zero order hold is stair case signal. The reconstructed signal is
the succession of sine pulses weighted by x(nTs) these pulses are interpolated with the help of a
LPF. It is also called reconstruction filter or interpolation filter Natural sampling is chopper
sampling because the waveform of the sampled signal appears to be chopped off from the
original signal waveform. The top of the samples remains constant and equal to instantaneous
value of x(t) at start of sampling fs = 1/Ts
PROCEDURE:
1. Connect the main plug in to the main board. Keep the power switch in OFF position.
2. Put the duty cycle selector switch in position 50%
3. Link 25 Hz sine wave output to analog input.
4. Turn on the trainer.
5. Turning on the trainer select 250 Hz sampling rate by default.
6. Display 25Hz sine wave and sampled output on t oscilloscope. This display shows
25Hz sine wave being sampled at 200 Hz there are 10 samples for every cycle of the
sine wave.
FUNCTIONAL BLOCK DIAGRAM:
7. Link the sample output to the fourth order low pass filter display sample output and
output of the filter in the oscilloscope. The display shows the reconstructed original 21
Hz sine wave.
8. We had used sampling frequency greater than twice the maximum input frequency.
9. Remove the line from 25KHz sine wave output to the modulating input.
10. By successive process of frequency selector switch change the sampling frequency 32
KHz, 16KHz, 8 KHz,4 KHz,2 KHz,1 KHz,50 Hz and back to 250 Hz
11. Observe how sample output changes in each cases and how the lower sampling
frequencies introduce distortion in to the filter output waveform. This is due to the fact
that the filter does not attenuate the unwanted next frequency component significantly
use of higher order filter would improve the output waveform.
12. So far we have used sampling frequencies greater than twice the maximum input
frequency. To set the nyquist criteria set sampling rate 4 Hz 50% duty cycle.
13. Remove the link 25 Hz sine wave output to the modulating input.
14. Connect the link from 250 Hz or 500 Hz sine wave output to the modulating input and
link the sampled output to fourth order LPF. Display sample output and output of the
filter on the oscilloscope. The display shows the reconstruction signal 250 Hz or 500Hz
sine wave.
15. Now decrease the sampling rate to 32 KHz and then to 500 Hz. Observe the distorted
fact that we under sampled the input waveform overlooking the nyquist criteria and
thus the output was distorted even though the signal below the cutoff frequency of the
filter. This is also describes the phenomenon of aliasing.
TABULATION:
Modulation signal
Sampled output
Demodulated signal
RESULT:
Thus the signal sampling and reconstruction techniques were performed and graph
plotted.
Exp.No.:
Date:
TIME DIVISION MULTIPLEXING (TDM)
AIM
To Perform the time division multiplexing using PAM Modulation and Demodulation
using the trainer kit.
APPARATUS REQUIRED
1.TDM Trainer.
2.CRO.
3.Patch Chords.
4.CRO probe
It is the process of taking the samples from different information signals, in time domain so
that they can be transmitted over the same channel. The main fact in the TDM technique is that
there are large intervals between the message samples. The samples from the other sources are
placed with in these time intervals. Thus every sample is separated from other in time domain.
Here, each signal is sampled over one sampling interval and transmitted one after the other along a
common channel. But the receiving end has to follow some constraints. i. It must receive and show
the signal as the transmitted.
ii. It must start at the same time as the transmitting end and establish electrical contact with the
same channel of the input channel.
When the two conditions are met then the receiver end is said to be in synchronization with the
transmitter end. If the 1st condition is not met then the samples different sources would get mixed
out the receiver end and if the 2nd condition is not met then the information from source '1' will be
received by same other channel which is not intending to accept the information from that
particular channel.
TABULATION
PROCEDURE
1. Switch ON the power supply to the board.
2. Make initial settings on VCT- 02 as follows.
a) Set all sine wave voltages to 2V,
b) Make the wiring connections as in wiring diagram which is provided at
the end of this experiment.
3. Display the multiplexed signal at test point T14 on channel 1 and 250Hz sinewave at
test point T2 on channel 2 of oscilloscope, note down waveforms.
4. Display the 500Hz sinewave at test point T3 on channel 2 in place of
250Hz, identify sampled version of this sinewave in TDM signal and note
down.
5. Similarly observe 1KHz and 2KHz waveforms at test point T4 and T5
respectively on oscilloscope and note down.
6. Display the TDM waveform (test point T14) on channel 1 and channel
synchronization signal (test point T13) on channel 2 of oscilloscope and note down
waveforms.
7. Display 250Hz sinewave at test point T2 on channel 1 and output sinewave at
test point T16 on channel 2 of oscilloscope and note down waveforms.
8. Similarly, observe input and output 500Hz, 1KHz and 2KHz sine waves on
oscilloscope and note down.
RESULT
Thus the Perform time division multiplexing using PAM Modulation and Demodulation
using the trainer kit and understand the concept using graph.
FUNCTIONAL BLOCK DIAGRAM:
Exp. No.:
Date:
AMPLITUDE MODULATION AND DEMODULATON
AIM:
To perform the amplitude modulation and demodulation using AM Kit.
APPARATUS REQUIRED:
1. Amplitude modulation kit
2. DSO
3. Probes
4. Patch cords
MODULATION THEORY:
Modulation is defined as the process by which some characteristics of a carrier signal is
varied in accordance with a modulating signal. The base band signal is referred to as the modulating
signal and the output of the modulation process is called as the modulation signal.
The carrier frequency fc must be much greater than the highest frequency components fm of
the message signal m(t) i.e. fc >>fm
The modulation index must be less than unity. if the modulation index is greater than
unity, the carrier wave becomes over modulated.
DEMODULATION THEORY:
The process of detection provides a means of recovering the modulating Signal from
modulating signal. Demodulation is the reverse process of modulation. The detector circuit is
employed to separate the carrier wave and eliminate the side bands. Since the envelope of an AM
wave has the same shape as the message, independent of the carrier frequency and phase,
demodulation can be accomplished by extracting envelope.
The depth of modulation at the detector output greater than unity and circuit impedance is
less than circuit load (Rl>Zm) results in clipping of negative peaks of modulating signal. It is called
“negative clipping “.
MODEL GRAPH:
TABULATION:
Message Signal
Carrier Signal
Modulated Signal
Demodulated Signal
PROCEDURE:
A. Amplitude Modulation
2.Switch ON the trainer kit. The neon lamp will glow indicating that the unit is ready
for operation.
3.Observe the waveforms of modulating signal and carrier signal in an Oscilloscope.
4.Using patch cords, connect the modulating signal and the carrier signal to
‘AM MODULATION’.
B. AM Demodulation
2. Using patch cords, connect the ‘AM OUTPUT’ from the AM Modulation to
the sockets marked ‘AM INPUT‘ in the AM Demodulation.
3.Connect the detector output to filter input using patch cords.
RESULT:
Thus the amplitude modulation and demodulation operation has been performed.
FUNCTIONAL BLOCK DIAGRAM:
Exp. No.:
Date:
FREQUENCY MODULATION AND DEMODULATION
AIM:
APPARATUS REQUIRED:
THEORY:
PROCEDURE:
2. Switch ON the trainer kit. The neon lamp will glow indicating that the unit is ready
for operation.
3. Observe the Modulating Signal in an Oscilloscope.
4. Observe the FM Source in the Oscilloscope.
5. Using patch cords, connect the FM Source to sockets marked ‘FM INPUT’ in
FM Detector Circuit.
6.Observe the Frequency Demodulated Output Signal across sockets marked
‘DEMOD OUTPUT’.
MODEL GRAPH:
TABULATION:
Message signal
Carrier signal
Modulated signal
Demodulated signal
RESULT:
Thus the frequency modulation and demodulation has been performed and also the
modulation index was found.
FUNCTIONAL BLOCK DIAGRAM:
Exp. No.:
Date:
AIM:
To perform Pulse code Modulation and demodulation and to plot the waveform for
binary data at different frequencies
APPARATUS REQUIRED:
1. PCM kit
2. DSO
3. Probe
4. Patch cord
THEORY:
PROCEDURE:
DEMODULATION:
1. Using patch cord connect the output from pulse code modulation to the sockets .
2. Observe the PCK demodulated output signal across the sockets marked “DEMOD
OUTPUT”
BLOCK DIAGRAM:
Sources of
Low –
Continuous- Sampler Quantizer Encoder
Time pass filter
message
PCM signal applied to channel input
(a) Transmitter
Disorted PCM Regenarated PCM
signal produced Regenarative Regenarative signal produced
at channel output ------------ at channel output
repeater repeater
Final
Regenaration
Channel Decoder Reconstruction Destination
circuit
output filter
(b) Receiver
TABULATION:
Message signal
Modulated signal
Demodulated signal
RESULT:
Thus the Pulse Code Modulation and Demodulation was performed and output the
verified.
FUNCTIONAL BLOCK DIAGRAM:
Exp. No.:
Date:
DELTA MODULATION AND DEMODULATION
AIM:
APPARATUS REQUIRED:
1. DM kit
2. DSO
3. Probe
4. Patch cord
THEORY:
PROCEDURE:
A. Delta Modulation:
1.Connect the mains cord of the trainer unit to AC 220V, 50 Hz supply.
2.Switch ON the trainer kit. The neon lamp will glow indicating that the unit is ready
for operation.
4.Using patch cords, connect the modulating signal to the sockets marked ‘MOD
SIGNAL’
in the Delta Modulation.
5.Using patch cords, connect the clock signal to the sockets marked ‘CLK’ in the
Signal Reconstructed.
6.Connect the ‘DELTA MOD OUTPUT’ in Delta Modulator to the sockets marked
BLOCK DIAGRAM OF DM MODULATOR AND DEMODULATOR:
Quantizer
e(n) + e(n) e(n)= ±1 To channel
∑
_
g(n)
Accumulator
Encoder
Low Pass
e(n) Accumulator Filter Output
Decoder
TABULATION:
Message signal
Demodulated signal
MODEL GRAPH:
‘DELTA MOD INPUT’ in the Signal Reconstructed.
7.Using patch cords, connect the Delta Reconstructed Output marked (#) from Signal
reconstructed to the Delta Modulator marked (#).
B. Delta Demodulation:
1.Using patch cords, connect the ‘DELTA RECONSTRUCTED OUTPUT’ from the
Signal.
RESULT:
Thus the Delta modulation and demodulation were performed and graph plotted.
MATLAB CODING:
BPSK:
clc;
clear all;
bits=1000000;
data=randint (1,bits)>0.5;
ebno=0:10;
BER=zeros(1,length(ebno));
for i=1:length(ebno)
%---Transmitter---------
%mapping of bits into symbols
symb=2.*data-1;
%----Filter
psf=ones(1,1);
M=length(psf);
% inserting zeros between the bits
% w.r.t number of coefficients of
% PSF to pass the bit stream from the
PSF z=zeros(M-1,bits);
upsamp=[symb;z];
upsamp2=reshape(upsamp,1,(M)*bits);
%Passing the symbols from PSF
tx_symb=conv(upsamp2,psf);
%--------CHANNEL-----------
%Random noise generation and addition to the signal
ebnos=10.^(ebno(i)/10);
n_var=1/sqrt(2.*ebnos);
rx_symb=tx_symb+n_var*randn(1,length(tx_symb));
%xxxxxxxxxxxxxxxxxxxxxxxxxx
%-------RECEIVER-----------
rx_match=conv(rx_symb,psf);
rx=rx_match(M:M:length(rx_match));
rx=rx(1:1:bits);
recv_bits=(sign(rx)+1)./2;
%xxxxxxxxxxxxxxxxxxxxxxxxxxx
%---SIMULATED BIT ERROR RATE----
errors=find(xor(recv_bits,data));
errors=size(errors,2);
BER(i)=errors/bits;
%xxxxxxxxxxxxxxxxxxxxxxxxxxx
end
fs=1;
n_pt=2^9;
tx_spec=fft(tx_symb,n_pt);
f= -fs/2:fs/n_pt:fs/2-fs/n_pt;
figure
plot(f,abs(fftshift(tx_spec)));
title('Signal Spectrum for Signal with Rectangular Pulse
Shaping for BPSK');
xlabel('Frequency [Hz]');
ylabel('x(F)');
figure
semilogy(ebno,BER,'b.-');
hold on
thr=0.5*erfc(sqrt(10.^(ebno/10)));
semilogy(ebno,thr,'rx-');
xlabel('Eb/No (dB)')
ylabel('Bit Error rate')
title('Simulated Vs Theoritical Bit Error Rate for BPSK')
legend('simulation','theory')
grid on;
Exp. No.:
Date:
AIM:
APPARATUS REQUIRED:
1. Personal Computer
2. Matlab software R2014a
PROCEDURE:
I=data(1:2:bits-1);
Q=data(2:2:bits);
I= -2.*I+1;
Q= -2.*Q+1;
symb=I+j.*Q;
%----Filter
psf=ones(1,1);
%----
M=length(psf);
for i=1:length(ebno)
% inserting zeros between the bits
% w.r.t number of coefficients of
% PSF to pass the bit stream from the PSF
z=zeros(M-1,bits/2);
upsamp=[symb;z];
upsamp2=reshape(upsamp,1,(M)*bits/2);
%Passing the symbols from PSF
%tx_symb=conv(real(upsamp2),psf)+j*conv(imag(upsamp2),psf);
tx_symb=conv(upsamp2,psf);
%--------CHANNEL-----------
%Random noise generation and addition to the signal
npsd=10.^(ebno(i)/10);
n_var=1/sqrt(2.*npsd);
rx_symb=tx_symb+(n_var*randn(1,length(tx_symb))
+j*n_var*randn(1,length(tx_symb)) );
%xxxxxxxxxxxxxxxxxxxxxxxxxx
%-------RECEIVER-----------
rx_match=conv(rx_symb,psf);
rx=rx_match(M:M:length(rx_match));
rx=rx(1:1:bits/2);
recv_bits=zeros(1,bits);
%demapping
k=1;
for ii=1:bits/2
recv_bits(k)= -( sign( real( rx(ii))) -1)/2;
recv_bits(k+1)=-( sign( imag( rx(ii)))-1)/2;
k=k+2;
end
%sign( real( rx ) )
%sign( imag( rx ) )
%data
%tx_symb
%rx_symb
%recv_bits
%xxxxxxxxxxxxxxxxxxxxxxxxxxx
%---SIMULATED BIT ERROR RATE----
errors=find(xor(recv_bits,data));
errors=size(errors,2);
BER(i)=errors/bits;
%xxxxxxxxxxxxxxxxxxxxxxxxxxx
end
fs=1;
n_pt=2^9;
tx_spec=fft(tx_symb,n_pt);
f= -fs/2:fs/n_pt:fs/2-fs/n_pt;
figure
plot(f,abs(fftshift(tx_spec)));
title('Signal Spectrum for Signal with Rectangular
Pulse Shaping for QPSK');
xlabel('Frequency [Hz]');
ylabel('x(F)');
figure
semilogy(ebno,BER,'b.-');
hold on
thr=0.5*erfc(sqrt(10.^(ebno/10)));
semilogy(ebno,thr,'rx-');
xlabel('Eb/No (dB)')
ylabel('Bit Error rate')
title('Simulated Vs Theoritical Bit Error Rate for
QPSK')
legend('Simulation','Theory'; grid on;
QAM:
clc
clear all
bits=3000000;
data=randint(1,bits)>0.5;
%---debugging---
%data=[1 1 1]
%xxxxxxxxxx
ebno=0:10;
BER=zeros(1,length(ebno));
thr=BER;
%---Transmitter---------
%Gray mapping of bits into symbols
col=length(data)/3;
I=zeros(1,col);
Q=I;
k=1;
for i=1:3:length(data)
if(data(i:i+2)==[0 0 0])
I(k)=1;
Q(k)=1;
k=k+1;
elseif(data(i:i+2)==[0 0 1])
I(k)=3;
Q(k)=1;
k=k+1;
elseif(data(i:i+2)==[0 1 0])
I(k)=-1;
Q(k)=1;
k=k+1;
elseif(data(i:i+2)==[0 1 1])
I(k)=-3;
Q(k)=1;
k=k+1;
elseif(data(i:i+2)==[1 0 0])
I(k)=1;
Q(k)=-1;
k=k+1;
elseif(data(i:i+2)==[1 0 1])
I(k)=3;
Q(k)=-1;
k=k+1;
elseif(data(i:i+2)==[1 1 0])
I(k)=-1;
Q(k)=-1;
k=k+1;
elseif(data(i:i+2)==[1 1 1])
I(k)=-3;
Q(k)=-1;
k=k+1;
end
end
symb=I+j*Q;
%real(symb)
%imag(symb)
%----Filter
psf=ones(1,1);
Es=sum(psf.^2);
eb=Es/3;
eb=2;
%----
M=length(psf);
for i=1:length(ebno)
% inserting zeros between the bits
% w.r.t number of coefficients of
% PSF to pass the bit stream from the PSF
z=zeros(M-1,bits/3);
upsamp=[symb;z];
upsamp2=reshape(upsamp,1,(M)*bits/3);
%Passing the symbols from PSF
%tx_symb=conv(real(upsamp2),psf)+j*conv(imag(upsamp2),psf);
tx_symb=conv(upsamp2,psf);
%--------CHANNEL-----------
%Random noise generation and addition to the signal
ebno2=10.^(ebno(i)/10);
%no=eb/ebno2;
%n_var=sqrt(no/2);
n_var=sqrt(eb/(2*ebno2));
rx_symb=tx_symb+(n_var*randn(1,length(tx_symb))
+j*n_var*randn(1,length(tx_symb)) );
%xxxxxxxxxxxxxxxxxxxxxxxxxx
%------- RECEIVER-----------
rx_match=conv(rx_symb,psf);
rx=rx_match(M:M:length(rx_match));
rx=rx(1:1:bits/3);
recv_bits=zeros(1,bits);
%demapping
k=1;
for n=1:bits/3
I=real(rx(n));
Q=imag(rx(n));
if (I > 0) && (I < 2) && (Q > 0)
recv_bits(k:k+2)=[00 0];
elseif (I > 0) && (I < 2) && (Q < 0)
recv_bits(k:k+2)=[10 0];
elseif (I > 2) && (Q >0)
recv_bits(k:k+2)=[00 1];
elseif (I > 2) && (Q < 0)
recv_bits(k:k+2)=[10 1];
elseif (I < 0) && (I > -2) && (Q > 0)
recv_bits(k:k+2)=[01 0];
elseif (I < 0) && (I > -2) && (Q < 0)
recv_bits(k:k+2)=[11 0];
elseif (I < -2) && (Q > 0)
recv_bits(k:k+2)=[01 1];
elseif (I < -2) && (Q < 0)
recv_bits(k:k+2)=[11 1];
end
k=k+3;
end
tx_symb;
rx_symb;
data;
recv_bits;
%xxxxxxxxxxxxxxxxxxxxxxxxxxx
%---SIMULATED BIT ERROR RATE----
errors=find(xor(recv_bits,data));
errors=size(errors,2);
BER(i)=errors/bits;
ebno_lin=(10^(ebno(i)/10))
thr(i)=(5/12)*erfc(sqrt(ebno_lin/2));
%xxxxxxxxxxxxxxxxxxxxxxxxxxx
end
fs=1;
n_pt=2^9;
tx_spec=fft(tx_symb,n_pt);
f= -fs/2:fs/n_pt:fs/2-fs/n_pt;
figure
plot(f,abs(fftshift(tx_spec)));
title('Signal Spectrum for Signal with Rectangular
Pulse Shaping for 8QAM');
xlabel('Frequency [Hz]');
ylabel('x(F)');
figure;
semilogy(ebno,BER,'b.-');
hold on
%ebno2=(10.^(ebno/10));
%thr=(5/12).*erfc(sqrt((10.^(ebno/10))./2));
semilogy(ebno,thr,'rx-'); xlabel('Eb/No
(dB)')
ylabel('Bit Error rate')
title('Simulated Vs Theoritical Bit Error Rate for 8-QAM')
legend('Simulation','Theory'); grid on;
– 636 703.
SIGNAL SPECTRUM FOR SIGNAL WITH RECTANGULAR PULSE SHAPING FOR
QPSK:
RESULT:
Thus the Signal Constellation of BPSK, QPSK and QAM were plotted.
Exp. No.:
Date:
AIM:
1. To study the different line coding techniques with the communication trainer kit
.
APPARATUS REQUIRED:
THEORY:
Line coding refers to the process of representing the bit stream (1’s and 0’s) in the form of
voltage or current variations optimally tuned for the specific properties of the physical channel
being used. The selection of a proper line code can help in so many ways: One possibility is to
aid in clock recovery at the receiver.
Some common types of line encoding in common-use nowadays are unipolar, polar,
bipolar, Manchester and Duobinary encoding. These codes are explained here:
In Manchester code each bit of data is signified by at least one transition. Manchester
encoding is therefore considered to be self-clocking, which means that accurate clock recovery
from a data stream is possible. In addition, the DC component of the encoded signal is zero.
Although transitions allow the signal to be self-clocking, it carries significant overhead as there
is a need for essentially twice the bandwidth of a simple NRZ or NRZI encoding
Ø Unipolar most of signal power is centered around origin and there is waste of power
due to DC component that is present.
Ø Polar format most of signal power is centered around origin and they are
simple to implement.
Ø Bipolar format does not have DC component and does not demand more bandwidth,
but power requirement is double than other formats.
Ø Manchester format does not have DC component but provides proper clocking.
PROCEDURE:
1. Connect the PRBS (test point P5) to various line coding formats. Obtain the coded
output as per the requirement.
2. Connect coded signal test point to corresponding decoding test point as inputs.
3. Set the SW1 as per the requirement.
4. Set the potentiometer P1 in minimum position.
5. Switch ON the power supply. Press the switch SW2 once.
6. Display the encoded signal and decoded signal on the cro
FUNCTIONAL BLOCK DIAGRAM:
TABULAR COLUMN:
MODEL GRAPH:
RESULT:
Date:
ASK, FSK AND PSK SIMULATION USING MATLAB
AIM:
1. Personal Computer
2. Matlab software R2014a
PROCEDURE:
MATLAB CODING:
x=[1 0 1 1 0];
nx=size(x,2);
i=1;
while i<nx+1
t = i:0.001:i+1;
if x(i)==1
ask=sin(2*pi*f*t);
fsk=sin(2*pi*f*t);
psk=sin(2*pi*f*t);
else
ask=0;
fsk=sin(2*pi*f2*t);
psk=sin(2*pi*f*t+phi);
end
subplot(3,1,1);
plot(t,ask);
xlabel('time')
ylabel('amplitude')
title('amplitude shift keying')
holdon;
gridon;
axis([1 10 -2 2]);
subplot(3,1,2);
plot(t,fsk);
xlabel('time')
ylabel('amplitude')
title('frequency shift keying')
holdon;
gridon;
axis([1 10 -2 2]);
subplot(3,1,3);
plot(t,psk);
xlabel('time')
ylabel('amplitude')
title('Phase shift keying')
holdon;
gridon;
axis([1 10 -2 2]);
i=i+1;
end
MODEL GRAPH:
RESULT:
The simulation of ASK FSK and PSK has been done using MATLAB and the outputs
were recorded.
Exp. No.:
Date:
ERROR CONTROL CODING
AIM:
To study error linear block code error control coding technique using MATLAB.
APPARATUS REQUIRED:
1. Personal Computer
2. Matlab software R2014a
THEORY:
In coding theory, a linear code is an error-correcting code for which any linear
combination of codewords is also a codeword. Linear codes are traditionally partitioned into
block codes and convolutional codes, although turbo codes can be seen as a hybrid of these two
types. Linear codes allow for more efficient encoding and decoding algorithms than other codes.
Linear codes are used in forward error correction and are applied in methods for transmitting
symbols (e.g., bits) on a communications channel so that, if errors occur in the communication,
some errors can be corrected or detected by the recipient of a message block.
PROCEDURE:
The Order of Linear Block Code for given Generator Matrix is:
The Code Word Length is : 7
The Parity Bit Length is : 4
The Possible Message Bits are :
c0 c1 c2 c3
0 0 0 0
0 0 0 1
0 0 1 0
0 0 1 1
0 1 0 0
0 1 0 1
0 1 1 0
0 1 1 1
1 0 0 0
1 0 0 1
1 0 1 0
1 0 1 1
1 1 0 0
1 1 0 1
1 1 1 0
1 1 1 1
RESULT:
Thus the program for error control coding was done using MATLAB and the output
verified.
Exp. No.:
Date:
COMMUNICATION LINK
AIM:
APPARATUS REQUIRED:
1. Personal Computer
2. Matlab software R2014a
PROCEDURE:
RESULT:
Thus the simulation of the communication link was done using MATLAB and the output
verified.
Exp. No.:
Date:
Equalization – Zero Forcing & LMS algorithms (simulation)
AIM:
To simulate the zero forcing and LMS algorithms equalizer using MATLAB simulation
tool.
APPARATUS REQUIRED:
1. Personal Computer
2. Matlab software R2014a
PROCEDURE:
function Xh = ZF(h,r)
%r --- signal at the receiver
% h--- impulse response of the channel
%Computing inverse impulse response
gD=tf(h,1); %taking impulse response and transforming
%it to S domain
f=1/gD; % taking inverse of a transfer %function
[num,den]=tfdata(f,'v'); % extracting numerator and
%denominator %coefficients
%Zero forcing
Xh=filter(num,den,r); % filtering
OUTPUT:
RESULT:
Thus the simulations of zero forcing and LMS algorithms equalizer has been done using
MATLAB and the output verified.