Mod Pam
Mod Pam
Aim:
To construct Pulse amplitude modulation using MATLAB and LABVIEW
Tool required:
MATLAB and LABVIEW
Theory:
Pulse-amplitude modulation (PAM), is a form of signal modulation where the message
information is encoded in the amplitude of a series of signal pulses. It is an analog pulse
modulation scheme in which the amplitudes of a train of carrier pulses are varied according
to the sample value of the message signal. Demodulation is performed by detecting the
amplitude level of the carrier at every symbol period.
Page No=
Where A is the unmodulated pulse amplitude, is pulse width. The periodic time of the pulse
train is Ts
Page No=
The pulse train acts as a periodic switching signal to the modulator, which when switched
ON allows samples of the modulating signal to pass through to the output. The periodic time
of the pulse train is known as the sampling period. Note that Ts is the period from the
beginning of one sample to the next, not the pulse duration.
The right hand side of this equation shows that the modulated wave consists of the
modulating signal, multiplied by the dc term a 0 and a series of DSBSC - type components
resulting from the harmonics in the pulse waveform.
Page No=
W + = fs W ,
with 0
It follows that
fs 2W
This condition imposed on the sampling frequency states that the sampling frequency
must be at least twice the highest frequency in the modulating signal. If the sampling
condition is not met, parts of the spectra overlap, and once such overlap is allowed to occur
the spectra can no longer be separated by filtering. Because the high frequency components
in the DSBSC spectrum appear in the low frequency part of the spectrum, the effect is
termed aliasing. To avoid aliasing, the modulation signal is first passed through an antialiasing filter, which cuts the signal spectrum off at some value W.
The sampling frequency ' fs = 2W ' is known as the Nyquist Frequency. Because of
its wideband nature, PAM has a very restricted range of application for direct transmission of
signals. It is used, for examples, in instrumentation systems and in analog - to digital
converters used for computer interfacing.
PROGRAM:
clc;
close all;
clear all;
a = input('Enter the amplitude = ');
f = input('Enter the frequency = ');
t = 0:0.02:2; % for a total of 20 samples
x1 = stem(t); %generation of impulse signal
x2 = sin(2*pi*f*t); %generation of sine wave
y = x1.*x2; %modulation step
Page No=
Page No=
PAM IN LABVIEW:
Page No=
VIVA QUESTIONS :
Result:
We have successfully constructed PAM by using MATLAB and LABVIEW
Page No=