Aim: Apparatus: Theory:: Experiment No. 1
Aim: Apparatus: Theory:: Experiment No. 1
Aim: Apparatus: Theory:: Experiment No. 1
AIM: Study of Sampling theorem and Reconstruction of signal. Verify Nyquist criteria.
APPARATUS: Model ST 2151 trainer kit, connection wires, DSO, Power supply.
THEORY:
The signals we use in the real world, such as our voice, are called "analog" signals. To process these signals
for digital communication, we need to convert analog signals to "digital" form. While an analog signal is
continuous in both time and amplitude, a digital signal is discrete in both time and amplitude. To convert
continuous time signal to discrete time signal, a process is used called as sampling. The value of the signal
is measured at certain intervals in time. Each measurement is referred to as a sample.
In electronics, a sample and hold circuit is used to interface real world, changing analogue signals to a
subsequent system such as an analog-to-digital converter. The purpose of this circuit is to hold the
analogue value steady for a short time while the converter or other following system performs some
operation that takes a little time. In most circuits, a capacitor is used to store the analogue voltage and
an electronic switch or gate is used to alternately connect and disconnect the capacitor from the
analogue input. The rate at which this switch is operated is the sampling rate of the system.
OBSERVATION:
Input Signal Carrier Frequency Sampled Output Sampled and Hold LPF 2nd order LPF 4th Order
Output
5.02Vpp 1KHz 4.1Vpp 2KHz 4.4Vpp 4.5Vpp 5.12Vpp 4.99Vpp
5.02Vpp 1KHz 4.0 Vpp 40KHz 4.45Vpp 5.08Vpp 4.56Vpp 4.88Vpp
In this experiment we successfully sampled and reconstructed the given input signals and hence
compared it with the original signal also and also observed the output of various stages like sample,
sample and hold and 2nd 4th order LPF.
EXPERIMENT NO. 2
AIM: To study the PAM (Pulse Amplitude Modulation), PWM (Pulse Width Modulation) & PPM (Pulse
Position Modulation) of analog signal.
THEORY: The aim of pulse modulation methods is to transfer a narrowband analog signal, for example
a phone call over a wideband baseband channel or, in some of the schemes, as a bit stream over another
digital transmission system.
OBSERVATIONS:
CONCLUSION:
In this experiment we studied the PAM (Pulse Amplitude Modulation), PWM (Pulse Width Modulation)
& PPM (Pulse Position Modulation) of analog signal using PAM-PWM-PPM Modulation Kit.
EXPERIMENT NO. 3
AIM: To write a MATLAB program to sample the sinusoidal message signal at different sampling rate and
verify the Nyquist criteria. Also reconstruct the sampled signal using low pass filter (Using FDA Tools).
THEORY:
Sampling: Sampling is the process in which a continuous time signal is sampled by measuring its amplitude
at discrete instants.
Sampling Theorem: The Sampling Theorem states that a signal whose spectrum is band-limited to Fm Hz
can be reconstructed exactly (without error) from its samples taken uniformly at a frequency Fs ≥ 2Fm
(Samples per second).
In other words, the minimum sampling frequency is Fs = 2·Fm.
The frequency 2· Fm is called the Nyquist sampling rate.
The corresponding sampling interval Ts = 1/ (Fs) is called Nyquist interval.
MATLAB CODE:
clc
clear all
close all
fm=1
t=1:0.1:10
x=sin(2*pi*fm*t);
subplot(331)
plot(t,x)
title('x(t)')
xlabel('time')
ylabel('amplitude')
%undersampled
fs1=0.5*fm;
t1=0:0.1/fs1:10;
A=sin(2*pi*fm*t1);
subplot(332)
stem(t1,A)
title('undersampled')
xlabel('time')
ylabel('amplitude')
A1=filter(fm,1,A)
subplot(333)
plot(t1,A1)
title('reconstructed undersampled')
xlabel('time')
ylabel('amplitude')
%critically sampled
fs2=fm*2
t2=0:0.1/fs2:10
B=sin(2*pi*fm*t2)
subplot(334)
stem(t2,B)
title('critically sampled')
xlabel('time')
ylabel('amplitude')
B1=filter(fm,1,B)
subplot(335)
plot(t2,B1)
xlabel('time')
ylabel('amplitude')
%oversampled
fs3=fm*6
t3=0:0.1/fs3:10
C=sin(2*pi*fm*t3)
subplot(336)
stem(t3,C)
title('over sampled')
xlabel('time')
ylabel('amplitude')
C1=filter(fm,1,C)
subplot(337)
plot(t3,C1)
title('reconstructed oversampled')
xlabel('time')
ylabel('amplitude')
OUTPUT WAVEFORM:
CONCLUSION:
In this experiment we successfully sampled a given signal according to various frequencies to verify
aliasing criteria, Nyquist rate and over sampled conditions and then reconstructed the signal by
passing it through LPF and comparing it with original input wave and observed that it was not a
perfect sine wave in case of aliasing condition and some information was lost and in the rest cases a
good analogous wave was obtained after reconstruction.
EXPERIMENT NO: 4
AIM: To study Pulse Code Modulation (PCM), its demodulation and its application in Time Division
Multiplexing (TDM).
APPARATUS: TDM Pulse code modulator & transmitter (ST2153), TDM Pulse code Demodulator &
receiver (ST2154), DSO, testing probes, connecting wires
THEORY:
Pulse-code modulation (PCM) is a method used to digitally represent sampled analog signals. Analog voice
data must be translated into a series of binary digits before they can be transmitted. With PCM, the
amplitude of the wave to be transmitted is sampled at regular intervals and translated into a binary
number.
Time Division Multiplexing (TDM) is a type of digital (or rarely analog) multiplexing in which switching
takes place between two or more signals (mostly PCM signals), serially in time. In this the time domain is
divided into several recurrent time slots of fixed length, one for each sub-channel.
PROCEDURE:
ON ST2153:
a) ~2 KHz Signal to CH.I Input.
b) ~4 KHz Signal to CH.II Input.
Between ST2153 & ST2154
ST 2153 ST 2154
Tx. Clock output Rx. Clock input
Tx. TO output Rx. TO input
PCM output PCM data input
3. Set the 7- bit pattern for A/D conversion. Observe that the same set of data should be there for D/A
conversion.
4. Vary DC signal (I) and note that the LED's on the A/D converter block on ST2153 & D / A converter of
ST2154 always carries the same code. If you desire to examine the timing of data flow & control signal in
detail, switch the transmitter & receiver into SLOW mode.
5. Observe the two output waveforms at TDM PCM Receiver's CH.I (TP47) & CH.II (TP50) outputs are
distortion less & also observe the LED's in the error check code detector block are 'OFF'.
6. The errors in the system can be introduced with the help of fault switches given on the tech book.
Reconstructed Signals
CONCLUSION:
In this experiment we successfully observed the Pulse Code Modulation Technique and observed
various stages of the modulation right from converting the analog signal to digital by sampling than
quantizing it and multiplexing two inputs and converting parallel data to serial and then at the
demodulator side same process executed in a reversed order and reconstructing them and compared
them with the original input waves.
EXPERIMENT NO. 5
AIM: To study the Modulation and Demodulation of a signal by Pulse Code Modulation using MATLAB
software.
MATLAB CODE:
clc
clear all
close all
A=10
fm=2
t=0:0.01:1;
x = 10+ A*sin(2*pi*fm*t);
subplot(411)
plot(t,x)
title('Message signal')
xlabel('t')
ylabel('amp')
%sampled signal
fs=2*fm;
t1=0:(0.01/fs):1;
y=A+A*sin(2*pi*fm*t1);
subplot(412)
stem(t1,y)
title('Sampled signal')
xlabel('t')
ylabel('amp')
y1=floor(2*y)
subplot(413)
stem(t1,y1)
title('Quantized signal')
xlabel('t')
ylabel('amp')
y2=dec2bin(y1)
y3=bin2dec(y2) %decoding
CONCLUSION:
In this experiment we studied the modulation and demodulation of a given sinusoidal message signal
using Pulse Code Modulation and also reconstructed the sampled signal
DIGITAL COMMUNICATION
S. V. N. I. T. SURAT 22