Ac DC Lab Manual
Ac DC Lab Manual
Note:
List of Experiments:
1
(i) Amplitude modulation and demodulation
(ii) Spectrum analysis of AM
2
(i) Frequency modulation and demodulation
(ii) Spectrum analysis of FM
3
DSB-SC Modulator & Detector
4
SSB-SC Modulator & Detector (Phase Shift Method)
5
Frequency Division Multiplexing & De multiplexing
6
Pulse Amplitude Modulation & Demodulation
7
Pulse Width Modulation & Demodulation
8
Pulse Position Modulation & Demodulation
9
PCM Generation and Detection
10
Delta Modulation
11
Frequency Shift Keying: Generation and Detection
12
Binary Phase Shift Keying: Generation and Detection
13
Generation and Detection (i) DPSK (ii) QPSK
EXPERIMENT NO:1
AMPLITUDE MODULATION AND DEMODULATION
AIM: To study the function of Amplitude Modulation & Demodulation (under modulation,
perfect modulation & over modulation) and also to calculate the modulation index, efficiency,
total power
APPARATUS:
1. Amplitude Modulation & De modulation trainer kit.
2. C.R.O (20MHz)
3. Function generator (1MHz).
4. Connecting cords & probes.
5. PC with windows(95/98/XP/NT/2000)
6. Amplitude Modulation & De modulation trainer kit.
BLOCK DIAGRAM:
AM MODULATOR
AM DEMODULATOR
THEORY :
Amplitude modulation (AM) is defined as a process in which the amplitude of the carrier wave
c(t) is varied about a mean value, linearly with the base band signal m(t).
An AM wave may thus be described, in its most general form, as a function of time as follows.
The amplitude of Kam(t) is always less than unity, that is |Kam(t)| <1 for all t. It ensures that the
function 1+Kam(t) is always positive. When the amplitude sensitivity K a of the modulator is large
enough to make |Kam(t)| >1 for any t, the carrier wave becomes over modulated, resulting in
carrier phase reversals. whenever the factor 1+Kam(t) crosses zero.
The absolute maximum value of Kam(t) multiplied by 100 is referred to as the percentage
modulation.
PROCEDURE:
1. Connect the AC Adapter to the mains and the other side to the Experimental Trainer.
2. Observe the carrier and modulating waveforms and note their frequencies.
(Carrier frequency is around 100 KHz and amplitude is variable from 0 -8Vp-p,
5. Connect Carrier I/P to ground and apply a 2V peak to peak AF Signal input to (modulating I/P)
and adjust P1 in anti-clock wise position to get minimum A.C output.
6. Connect modulating I/P to ground and apply a 3V peak to peak carrier signal to carrier I/P and
adjust P2 in clock wise direction to get minimum A.C ouyput..
7. Connect modulating input &carrier input to ground and adjust P3 for zero D.C output.
8. Make modulating i/p 2 Vpp and carrier i/p 3 Vpp peak to peak and adjust potentiometer P4 for
maximum output.
9. Calculate maximum and minimum points on the modulated envelope on a CRO and
calculate the depth of modulation.
10. Observe that by varying the modulating voltage, the depth of modulation varies.
11. During demodulation connect this AM output to the input of the demodulator.
12. By adjusting the RC time constant (i.e., cut off frequency) of the filter circuit we
get minimum distorted output.
13. Observe that this demodulated output is amplified has some phase delay because of
RC components.
MODULATION:
Perfect modulation
Over modulation
DEMODULATION:
RESULT :
Amplitude modulated wave is observed for different modulation indexes.
CONCLUSION:
In amplitude modulation by increasing the message amplitude we observed different modulation
indexes such as under modulation (µ<1), over modulation(µ>1) and exact modulation(µ=1).
VIVA QUESTIONS:
zsingle = abs(zsingle(1:length(zsingle)/2+1));
frqsingle = [0:length(zsingle)-1]*Fs/length(zsingle)/2;
% Plot spectrums of am dsbsc and ssb
figure;
subplot(3,1,1); plot(frqam,zam);
title('Spectrum of am signal');
subplot(3,1,2); plot(frqdouble,zdouble);
title('Spectrum of double-sideband signal');
subplot(3,1,3); plot(frqsingle,zsingle);
title('Spectrum of single-sideband signal');
EXPECTED WAVE FORMS:
EXPERIMENT NO: 2
FREQUENCY MODULATION & DEMODULATION
AIM:
To study the functioning of frequency modulation & demodulation and to calculate the
modulation index.
APPARATUS:
THEORY:
FM is a system in which the amplitude of the modulated carrier is kept constant, while its
frequency and rate of change are varied by the modulating signal.
By the definition of FM, the amount by which the carrier frequency is varied from its
unmodulated value, called the deviation, is made proportional to the instantaneous amplitude of
the modulating voltage. The rate at which this frequency variation changes or takes place is equal
to the modulating frequency.
FM is that form of angle modulation in which the instantaneous frequency f i(t) is varied
linearly with the message signal m(t), as
fi(t) =fC+kf m(t)
The term fc represents the frequency of the unmodulated carrier, and the constant Kf
represents the frequency sensitivity of the modulator expressed in Hertz per volt.
Unlike AM, the spectrum of an FM signal is not related in a simple manner to that of modulating
signal, rather its analysis is much more difficult than that of an AM signal.
PROCEDURE:
1. Switch on the experimental board.
2. Observe the FM modulator output without any modulator input which is the carrier
signal and note down its frequency and amplitude.
3. Connect modulating signal to FM modulator input and observe modulating signal and
FM output on two channels of the CRO simultaneously.
4. Adjust the amplitude of the modulating signal until we get less distorted FM output.
5. Apply the FM output to FM demodulator and adjust the potentiometer in demodulation
until We get demodulated output
OBSERVATIONS: MODULATION
DEMODULATION
EXPECTED WAVEFORM:
EXPERIMENT NO: 3
DSB-SC MODULATION & DETECTION
AIM:
To study and observe the function of Balanced Modulator and Demodulator, observe its
efficiency
APPARATUS:
2. C.R.O (20MHz)
5. PC with windows(95/98/XP/NT/2000)
THEORY:
The carrier of amplitude modulation wave does not convey any information. It is obvious
from the fact that the carrier component remains constant in amplitude and frequency. No matter
what the modulating signal does. It is thus, seen that no information is conveyed by the carrier. If
the carrier is suppressed, only the side bands remains and a saving of two third powers can achieve
at 100% modulation such suppression of carrier doesn’t affect the massage signal in any way. This
idea has resulted in the evolution of suppressed carrier modulation. Thus, the short coming of the
conventional AM in regard of power wastage is overcome by suppressing the carrier from the
modulated wave resulting in double side band suppressed carrier modulation. A balanced is used to
generate DSBSC wave. A DSBSC signal is basically the product of the base band signal and the
carrier wave.
S(t) = m(t) *c(t)
Where m(t) is base band signal
C(t) is carrier signal C(t)
= Ac cost 2Π fct
The modulated wave under goes a phase reversal when ever base band signal m(t) crosses
zero.Spectrum of base band signal
PROCEDURE:
1. Apply DSB-SC signal to DSB-SC signal input of the synchronous detector and RF
generator output to RF input of synchronous detector.
2. Observe the synchronous detector output on CRO and compare it with the original
AF signal.
EXPECTED WAVEFORMS:
OBSERVATIONS:
RESULT:
DSB-SC modulated wave is observed and demodulation is performed by using synchronous
detector
CONCLUSION:
We study and observed the balanced modulator and demodulator, modulation index is (µ>1),
Efficiency is 100%.
VIVA QUASTIONS:
1. What are the two ways of generating DSB_SC.
2. What are the applications of balanced modulator?
3. What are the advantages of suppressing the carrier?
4. What are the advantages of balanced modulator?
5. What are the advantages of Ring modulator?
6. Write the expression for the output voltage of a balanced modulator?
7. Give any two methods to avoid errors in synchrouns demodulator?
8. What is quadrature null effect in synchronous demodulator?
9.What is beats in synchronous detector?
10.Give the block diagram of synchronous detector?
11.Give the working principle of coastas receiver.
MATLAB CODE:
Clc;
Clear all;
Close all;
Vm= 1;
Vc= 1;
fm =2000;
fc= 50000;
m_t =Vm*sin(2*pi*fm*t);
subplot(4,1,1); plot(t,m_t);
c_t = Vc*sin(2*pi*fc*t);
subplot(4,1,2); plot(t,c_t);
subplot(4,1,3);
s_t =m_t.*c_t;
hold on;
plot(t, s_t);
plot(t, m_t,'r:');
plot(t, _m,'r:');
hold off;
r = s_t.*c_t;
[b a] = butter(1,0.01);
mr= filter(b,a,r);
subplot(4,1,4); plot(t,mr);
EXPERIMENT NO : 4
SSB-SC MODULATOR & DETECTOR (PHASE SHIFT METHOD)
AIM:
To generate SSB using phase Shift method and demodulation of SSB signal using Synchronous
detector.
APPARATUS:
1. Amplitude Modulation & De modulation trainer kit.
2. C.R.O (20MHz)
3. Function generator (1MHz).
4. Connecting cords & probes.
5. PC with windows(95/98/XP/NT/2000)
6. SSBSC Modulation & De modulation trainer kit.
BLOCK DIAGRAM:
PROCEDURE:
SSB Modulation
1. Connect the circuit as per the given circuit diagram.
2 .Switch on the kit and measure the output of regulated power supplies positive and negative
voltages.
3.Observe the outputs of RF generators using CRO .Where one output is 00 phase the is 900
phase shifted (or) is a sine wave and shifted w.r.t other (or) is a cosine wave.
4.Adjust the RF output frequency as 100 KHz and amplitude as ≥ 0.2 Vp-p (Potentiometers are
provided to vary the output amplitude & frequency).
5. Observe the two outputs of AF generator using CRO.
6. Select the required frequency (2 kHz, 4 kHz and 6 kHz) form the switch positions for A.F.
7. Adjust the gain of the oscillator by varying the AGC potentiometer and keep the
amplitude of 10Vp-p.
8. Measure and record the above seen signals & their frequencies on CRO.
9. Set the amplitude of the R.F signal to 0. 2Vp-p and A.F signal amplitude to 8Vp-p and
connect AF-00 and RF-900 to inputs of balanced modulator A and observe DSB-SC (A) output on
CRO. Connect AF-900 and RF-00 to inputs of balanced modulator B and observe the DSB-SC
(B) out put on CRO and plot the same on graph.
10. To get SSB lower side band signal connect balanced modulator outputs(DSB-SC) to
subtractor and observe the output wave form on CRO and plot the same on graph.
11. To get SSB upper side band signal, connect the output of balanced modulator outputs to
summer circuit and observe the output waveform on CRO and plot the same on graph.
12. Calculate theoretical frequency of SSB (LSB & USB) and compare it with practical value.
SSB Demodulation
1. Connect SSB signal from the summer or sub-tractor to the SSB signal input of Synchronous
detector and RF signal (0o) to the RF input of the synchronous detector.
2. Observe the detector output on CRO and compare it with the modulating signal.
OBSERVATIONS:
SSB OUTPUT
RESULT:
SSB modulation and demodulation is observed.
VIVA QUATIONS:
1. What are the two ways of generating SSB?
2. What are the advantages of suppressing the sideband?
3. What are the advantages of phase discrimination method?
4. Write the expression for the output voltage of a SSB modulator?
5. What is the bandwidth required for SSB?
6. What is the power required for SSB?
MATLAB CODE:
fs=8000;
fm=20;
fc=50;
Am=1;
Ac=1;
t=[0:0.1*fs]/fs;
subplot(4,1,1);
m1=Am*cos(2*pi*fm*t);
plot(t,m1);
title('Message Signa m1');
m2=Am*sin(2*pi*fm*t);
subplot(4,1,2) plot(t,m2);
title('Message Signa m2');
c1=Ac*cos(2*pi*fc*t);
subplot(4,1,3)
plot(t,c1)
title('Carrier Signal c1');
c2=Ac*sin(2*pi*fc*t);
subplot(4,1,4) plot(t,c2)
plot(t,Susb);
[b a] = butter(1,0.001);
mr= filter(b,a,r);
subplot(4,2,5);
plot(t,mr);
EXPERIMENT NO: 5
FREQUENCY DIVISION MULTIPLEXING & DEMULTIPLEXING
APPARATUS/SOFTWARE REQUIRED:
1. FREQUENCY DIVISION MULTIPLEXING & DEMULTIPLEXING Trainer Kit.
2. C.R.O (20 MHz)
3. Patch chords.
4. PC with windows (95/98/XP/NT/2000)
5. MATLAB Software
BLOCK DIAGRAM:
PROCEDURE:
PROGRAM:
PROGRAM:
%program for frequency division multiplexing and demultiplexing
close all;
clear all;
clc;
Fs = 100; % sampling
freq t = [0:2*Fs+1]'/Fs;
x1 = sin(2*pi*2*t); % signal 1 signal
z1 = fft(x1);
z1=abs(z1);
x2 = sin(2*pi*10*t); % signal 2 signal
z2 = fft(x2);
z2=abs(z2);
figure;
subplot(4,1,1);
plot(x1);
title('signal 1');
xlabel('time');
ylabel('amplitude');
subplot(4,1,2);
plot(x2);
title('signal 2');
xlabel('time');
ylabel('amplitude');
subplot(4,1,3);
plot(z1);
title('Spectrum of signal 1');
xlabel('freqency');
ylabel('magnitude');
subplot(4,1,4);
plot(z2);
title('Spectrum of signal 2');
xlabel('freqency');
ylabel('magnitude');
% freqency multiplexing
z=z1+z2;
figure;
plot(z);
title('frequency multiplexed signals');
figure;
% freqency demultiplexing
f1=[ones(10,1); zeros(182,1);ones(10,1)];%applying filter for signal 1
dz1=z.*f1;
d1 = ifft(dz1);
subplot(2,1,1)
plot(t*100,d1);
f2=[zeros(10,1); ones(182,1);zeros(10,1)];% applying filter for signal 2
dz2=z.*f2;
d2 = ifft(dz2);
title('recovered signal 1');
xlabel('time');
ylabel('amplitude');
subplot(2,1,2)
plot(t*100,d2);
title('recovered signal 2');
xlabel('time');
ylabel('amplitude');
RESULT: Frequency Division Multiplexing and De Multiplexing is observed.
VIVA QUATIONS:
1. How TDM differ from FDM?
2. What type of filter is used at receiver end in FDM system?
3. What are the applications of FDM?
EXPERIMENT NO: 6
AIM:
Pulse modulation is used to transmit analog information. In this system continuous wave
forms are sampled at regular intervals. Information regarding the signal is transmitted only at the
sampling times together with syncing signals.
At the receiving end, the original waveforms may be reconstituted from the information
regarding the samples.
The pulse amplitude modulation is the simplest form of the pulse modulation. PAM is a
pulse modulation system is which the signal is sampled at regular intervals, and each sample is
made proportional to the amplitude of the signal at the instant of sampling. The pulses are then sent
by either wire or cables are used to modulated carrier.
The two types of PAM are i) Double polarity PAM, and ii) the single polarity PAM,
in which a fixed dc level is added to the signal to ensure that the pulses are always positive.
Instantaneous PAM sampling occurs if the pulses used in the modulator are infinitely short.
Natural PAM sampling occurs when finite-width pulses are used in the modulator, but the
tops of the pulses are forced to follow the modulating waveform.
Flat-topped sampling is a system quite often used because of the ease of generating the
modulated wave.
PAM signals are very rarely used for transmission purposes directly. The reason for this lies
in the fact that the modulating information is contained in the amplitude factor of the pulses, which
can be easily distorted during transmission by noise, crosstalk, other forms of distortion. They are
used frequently as an intermediate step in other pulsemodulating methods, especially where time-
division multiplexing is used.
PROCEDURE:
1. The 4016 integrated circuit is a CMOS bilateral switch which is used as a sampling switch. A
positive voltage on pin 13 closes the CMOS transistor switch between pins 1&2. When pin13 is
as zero volts, the switch is open.
2. Switch ON the trainer kit.
3. Connect a 10 KHz sine wave of 5V p-p from an audio generator at the point marked AF i/p.
4. Connect the oscilloscope to pin 2 of 4016 IC, adjust the 1K potentiometer (R 1) to vary the
amplitude of the modulating signal. Also adjust the frequency of the modulating signal to obtain
stable display on the oscilloscope. The waveform obtained is a dual polarity PAM.
5. Vary the amplitude and frequency of the sine wave signal and observe the change in the output
waveform.
6. Connect the modulated output to the input of the demodulator.
7. Connect channel 1 of the dual trace oscilloscope to the demodulator output and channel 2 to the
input sine wave. Compare the two waveforms you will find that they are 180 out of phase.
EXPECTED WAVE FORMS:
RESULT:
Pulse amplitude modulation and demodulation is observed and their respective wave forms
are plotted.
CONCLUSION:
In Pulse Amplitude Modulation we observed that the characteristic parameter (amplitude) of
carrier is varied according to the amplitude of the message signal, the samples are taken at
regular intervals of time. Each sample is a pulse whose amplitude is determined by the amplitude
of the variable at the instant of time at which the samples are taken, a reasonable approximating
of the signal being sampled can be constructed at the receiving end
VIVA QUASTIONS:
1. TDM is possible for sampled signals. What kind of multiplexing can be used in continuous
modulation systems?
2. What is the minimum rate at which a speech signal can be sampled for the purpose of PAM?
3. What is cross talk in the context of time division multiplexing?
4. Which is better, natural sampling or flat topped sampling and why?
5. Why a dc offset has been added to the modulating signal in this board? Was it essential
for the working of the modulator? Explain.
7. Study about the frequency spectrum of PAM signal and derive mathematical expression for it?
8. Explain the modulation circuit operation?
9. Explain the demodulation circuit operation?
MATLAB CODE:
PROGRAM:
clc;
close all;
clear all;
t=0:1/6000:((10/1000)-(1/6000));
xa=sin(2*pi*100*abs(t));
Ts=32;
x=sin(2*pi*600*(Ts*t));
X=fft(xa,abs(x));
subplot(3,1,1);
plot(x,a);
grid
subplot(3,1,2);
stem(X);
grid
Y=ifft(xa,X);
subplot(3,1,3);
plot(Y);
grid
EXPERIMENT NO: 9
PULSE WIDTH MODULATION AND DEMODULATION
AIM:
To generate the pulse width modulated and demodulated waves.
APPARATUS:
1. PWM trainer kit
2. C.R.O(30MHz)
3. Patch Chords.
4. PC with windows(95/98/XP/NT/2000)
5. MATLAB Software with communication toolbox
DEMODULATOR
PROCEDURE:
5. Apply a variable DC voltage of 8 to 12 volts from any external regulated Power supply.
6. Observe the PWM output on CH 2.
7. If we observe the PWM output, it’s width varies according to the Modulating voltage.
8. A variable amplitude modulating signal is given to observe how the
PWM are varying for AC modulating voltages.
9. In this case we have to trigger the CRO with respect to modulating voltage.
EXPECTED WAVE FORMS:
RESULT:
Pulse width modulation and demodulation is observed and their respective wave forms are
plotted.
CONCLUSION:
In Pulse Width Modulation we observed that carrier signal width is varied according to the
amplitude of the message signal, amplitude of the carrier signal is fixed
VIVA QUASTIONS:
1. An audio signal consists of frequencies in the range of 100Hz to 5.5KHz.What is the minimum
frequency at which it should be sampled in order to transmit it through pulse modulation?
2. Draw a TDM signal which is handling three different signals using PWM?
Clc;
Clear all;
fc=1000; fs=10000; f1=200;
t=0:1/fs:((2/f1)-(1/fs));
x1=0.4*cos(2*pi*f1*t)+0.5; %modulation
y1=modulate(x1,fc,fs,'pwm');
subplot(421);
plot(x1);
plot(y1);
plot(x1_recov);
title('time domain reoverd recoverd,sigle tone,f1=200');
EXPERIMENT NO: 8
PULSE POSITION MODULATION AND DEMODULATION
AIM:
To study the generation Pulse Position Modulation (PPM) and Demodulation.
APPARATUS:
1. Pulse Position Modulation (PPM) and demodulation Trainer Kit.
2. C.R.O(30MHz)
3. Patch chords.
4. PC with windows(95/98/XP/NT/2000)
5. MATLAB Software with communication toolbox
THEORY:
Pulse modulation is used to transmit analog information, such as continuous speech or data.
The data is sent at sampling times, with synchronizing pulses. The pulse position modulation is an
analog modulation method, where in we have fixed amplitude of each pulse, but the position of each
pulse is made proportional to the amplitude of the modulating signal at that instant.
PPM is derived from the pulse width modulated signal. To demodulate the PPM signal, it is
fed to an integrating RC circuit (LPF) to obtain the modulating signal.
PROCEDURE:
MODULATOR:
1. Switch On the experimental kit.
2. Observe the clock generator output and modulating signal outputs.
3. Connect the clock generator output to the clock input point of PPM modulator and
observe the same clock on CH1 of dual trace CRO.
4. Trigger the CRO w.r.t CH1.
5. Apply a variable D.C voltage of 8-12V from any external regulated power supply.
6. Observe the PPM output on CH2.
7. By varying the modulating voltage, PPM output changes position, but the width is
maintained constant.
DEMODULATOR:
1. Apply PPM signal to the PPM demodulator and observe the output.
2. The output almost coincides with modulating signal.
RESULT:
Pulse position modulation and demodulation is observed and their respective wave
forms are plotted.
VIVA QUASTIONS:
MATLAB CODE:
ALGORITHM
Choose the sampling frequency fs and modulating frequency f1 such that Nyquist criteria
are satisfied.
Generate the message signal using f1 and fs .
Modulate the message signal using the carrier frequency.
FFT is applied to the modulated signal to get frequency spectrum.
Demodulate the modulated signal using the same carrier frequency.
Plot the graphs for the original message signal, modulated, frequency spectrum
and demodulated signal.
PROGRAM
clc; clear
all; close
all;
fc=100; fs=1000;
f1=80; f2=300 ;
t=0:1/fs:((2/f1)-(1/fs));
x1=0.4*cos(2*pi*f1*t)+0.5;
%x2=0.2*(cos(2*pi*f1*t)+cos(2*pi*f2*t))+0.5 ;
subplot(4,2,1);
plot(x1);
title('original msg signal');
y1=modulate(x1,fc,fs,'ppm');
subplot(4,2,2);
plot(y1)
axis([0 50 -0.2 1.2]);
title('ppm one of f1,fc=1000,f1=80 ');
fx1=abs(fft(y1,1024)) ;
fx1=[fx1(512:1024) fx1(1:513)];
f=[(511*fs/1024):(fs/1024):(512*fs/1024)];
subplot(4,2,3);
plot(fx1);
WAVE FORMS:
EXPERIMENT NO: 9
AMPLITUDE MODULATION AND DEMODULATION
AIM:
To analyze a PCM system and interpret the modulated and demodulated waveforms for a
sampling frequency of 4 KHz.
APPARATUS:
1. PCM modulator trainer
2. PCM Demodulator trainer
3. C.R.O(30MHz)
4. Patch chords.
5. PC with windows(95/98/XP/NT/2000)
6. MATLAB Software with communication toolbox
INTRODUCTION
In Pulse code modulation (PCM) only certain discrete values are allowed for the
modulating signals. The modulating signal is sampled, as in other forms of pulse modulation.
But any sample falling within a specified range of values is assigned a discrete value. Each value
is assigned a pattern of pulses and the signal transmitted by means of this code. The electronic
circuit that produces the coded pulse train from the modulating waveform is termed a coder or
encoder. A suitable decoder must be used at the receiver in order to extract the original
information from the transmitted pulse train.
This PCM system consists of
PCM Modulator
1. Regulated power supply
2. Audio Frequency signal generator
3. Sample & Hold circuit
4. 8 Bit A/D Converter
5. 8 Bit Parallel-Serial Shift register
6. Clock generator/Timing circuit
7. DC source
2.3.2. PCM Demodulator
1. Regulated power supply
2. 8 Bit Serial-Parallel to shift register
3. 8 Bit D/A converter
4. Clock generator
5. Timing circuit
6. Passive low pass filter
7. Audio amplifiers
BLOCK DIAGRAM: PCM MODULATOR & DEMODULATOR
PROCEDURE:
1. Connect the modulator trainer to the mains and switch on the power supply.
2. Observe the output of the AF generator using CRO, it should be a sine wave of 200Hz
frequency with 3Vpp amplitude.
3. Verify the output of the DC source with multimeter/scope, output should vary from 0 to +5V.
4. Observe the output of the clock generator using CRO, they should be 64KHz and 4KHz
frequency of square wave with 5Vpp amplitude.
5. The clock signals are internally connected the circuit so no external connections are required
6. Connect the demodulator trainer to the mains and switch on the power supply.
7. Observe the output of the clock generator using CRO, it should be 64KHz square wave with
5Vpp amplitude.
PCM Operation (with DC input):
Modulation:
8. Set DC source to some value say 4.4V with the help of multimeter and connect it to the A/D
converter input and observe the output LED’s
9. Note down the digital code i.e. output of the A/D converter and compare with the theoretical
value.
𝐴
1𝐿𝑆𝐵 𝑉𝑎𝑙𝑢𝑒
=X(10)=Y(2)
Wher
e 1LSB Value = Vref/2n
Since Vref = 5V and n=8
1LSB Value = 0.01953
Example:
A/D Input Voltage = 4.4V
225.28(10)1
11100001(2)
So digital output is 11100001
10. Keep CRO in dual mode. Connect one channel to 4KHz signal (one which is connected to
the Shift register) and another channel to the PCM output.
11. Observe the PCM output with respect to 4 Khz signal and sketch the
waveforms. Compare them with the given waveforms
Note: From this waveform you can observe the LSB bit enters the output first.
Demodulation
12. Connect PCM signal to the demodulators(S-P shift register) from the PCM
modulator (AET-68M) with the help of coaxial cable.
13. Connect clock signal (64KHz) from the transmitter (AET-68M) to the receiver (AET- 68D)
using co axial cable.
14. Connect transmitter clock to the timing circuit.
15. Observe and note down the S-P shift register output data and compare it with transmitted
data(i.e. output A/D converter at transmitter).You will notice that the output of the S-P shift
register is following the A/D converter output in the modulator.
16. Observe D/A converter output (Demodulated output) using multimeter /scope and compare it
with the original signal and you can observe that there is no loss in information in process of
conversion and transmission.
RESULT:
Thus the Pulse Code modulation and demodulation were performed and graphs were plotted.
VIVA QUESTIONS:
1. What do you mean by quantizing process?
2. What will happen when sampling rate is greater than Nyquist rate ?
3. What will happen when sampling rate is less than Nyquist rate ?
4. Find the A/D Converter output for input DC voltage of 3.6V.
5. Fig shown below shows a PCM wave in which the amplitude levels of +1 volt and -1 volt are
used to represent binary symbols 1 and 0 respectively. The code word used consists of three bits.
Find the sampled version of an analog signal from which this PCM wave is derived.
6. Mention some applications of PCM.
7. What is the function of Sample and Hold circuit?
MATLAB CODE:
%% Pulse Code Modulation (PCM)
P=5; %percentage of errors in transmission
% sampling
t = [0:0.1:1*pi]; % Times at which to sample the sine function
sig = 4*sin(t); % Original signal, a sine wave
%sig=exp(-1/3*t);
% quantization
Vh=max(sig);
Vl=min(sig);
N=3;M=2^N;
S=(Vh-Vl)/M; %design N-bit uniform quantizer with stepsize=S
partition = [Vl+S:S:Vh-S]; % Length M-1, to represent M intervals
codebook = [Vl+S/2:S:Vh-S/2]; % Length M, one entry for each
interval
% binary encoding
codedsig=de2bi(index,'left-msb');
codedsig=codedsig';
txbits=codedsig(:); %serial
transmit
errvec=randsrc(length(txbits),1,[0 1;(1-P/100) P/100]); %error vector
%rxbits=xor(txbits,errvec);
rxbits=rem(txbits+errvec,2); %bits received
rxbits=reshape(rxbits,N,length(sig));
rxbits=rxbits';
index1=bi2de(rxbits,'left-msb'); %decode
reconstructedsig=codebook(index1+1); %re-quantize
%plot(t,sig,'x',t,quantized_sig,'.')
%plot(t,sig,'x-',t,quantized_sig,'.--',t,reconstructedsig,'d-')
%figure,stem(t,sig,'x-');hold;stem(t,quantized_sig,'.--');stem(t,reconstructedsig,'d-');
figure,
subplot(2,2,1);
stem(t,sig);
xlabel('time');
title('original signal');
subplot(2,2,2);
stem(t,quantized_sig);
xlabel('time');
title('quantized signal');
tt=[0:N*length(t)-1];
subplot(2,2,3);
stairs(tt,txbits);
xlabel('time');
title('PCM waveform');
subplot(2,2,4);
stem(t,reconstructedsig);
xlabel('time');
title('received signal');
AIM:
To analyze a Delta modulation system. and interpret the modulated and demodulated waveforms
APPARATUS:
1. PCM Modulator trainer- AET-73M
2. PCM Demodulator trainer-AET-73D
3. C.R.O(30MHz)
4. Patch chords.
5. PC with windows(95/98/XP/NT/2000)
6. MATLAB Software with communication toolbox
DC Source (73M):
A 0 to +5V variable DC voltage is provided on board to use as a modulating signal instead of AF
Signal. is useful to study step by step operation of Delta modulation and Demodulation. This is a
simple circuit consists of potentiometer and fixed power supply.
Buffer/Signal shaping circuit (73M):
A non inverting buffer using IC TL 084 is provided at the input of the DM modulator followed
by a level shifting network. Buffer provides the isolation between DM circuit and the signal
source. Signal Shaping super imposes the 1.5V DC on incoming modulating signal so that the
input of the comparator lies between 0 and +3V maximum.
PROCEDURE:
DM Modulator:
1. Study the theory of operation
2. Connect the trainer (AET-73M) -
3. Observe the output of AF generator using CRO; it should be a Sine wave of 100 Hz frequency
with 3Vpp amplitude.
4. Verify the output of the DC source with multimeter/scope; output should vary 0 to +4V
5. Observe the output of the clock generator using Crotchety should be 4 KHz frequency of
square wave with 5 Up amplitude.
Note: This clock signal is internally connected to the up/down counter so no external connection
is required.
RESULT:
Thus the Delta modulation and demodulation were performed and graphs were
plotted.
VIVA QUESTIONS:
1. Compare DPCM ,PCM& Delta modulation.
2. How to reduce the quantization noise that occurs in DM?
3. A band pass signal has a spectral range that extends from 20 to 82 KHz.Find the acceptable
sampling frequency.
4. Find the fourier series expansion of an Impulse train.
5. Mention the applications of DM.
MATLAB CODE:
t = [0:pi/20:2*pi];
x = 1.1*sin(2*pi*0.1*t); % Original signal, a sine wave
%t = [0:0.1:2*pi];x = 4*sin(t);
%x=exp(-1/3*t);
%x = sawtooth(3*t); % Original signal
% plots
figure,
subplot(3,1,1);
plot(t,x);
xlabel('time');
title('original signal');
subplot(3,1,2);
stairs(t,10*codebook(encodedx+1),'--');
xlabel('time');
title('DM output');
subplot(3,1,3);
plot(t,x);
hold;
stairs(t,decodedx);
grid;
xlabel('time');
title('received signal');
EXPERIMENT NO: 11
FSK- GENERATION AND DETECTION
AIM:
To analyze a FSK modulation system. And interpret the modulated and demodulated waveforms
APPRATUS:
1. FSK Trainer Kit - AET-48
2. Dual Trace oscilloscope
3. Digital Multimeter
4. C.R.O(30MHz)
5. Patch chords.
6. PC with windows(95/98/XP/NT/2000)
7. MATLAB Software with communication toolbox
BLOCK DIAGRAM:
THEORY:
In Frequency shift keying, the carrier frequency is shifted (i.e. from one frequency to another)
corresponding to the digital modulating signal. If the higher frequency is used to represent a data
‘1’ & lower frequency a data ‘0’, the resulting FSK waveform appears.
Thus
Data =1 High Frequency
Data =0 Low Frequency
It is also represented as a sum of two ASK signals. The two carriers have different frequencies &
the digital data is inverted. The demodulation of FSK can be carried out by a PLL. As known,
the PLL tries to ‘lock’ the input frequency. It achieves this by generating corresponding O/P
voltage to be fed to the VCO, if any frequency deviation at its I/P is encountered. Thus the PLL
detector follows the frequency changes and generates proportional O/P voltage. The O/P voltage
from PLL contains the carrier components. Therefore to remove this, the signal is passed through
Low Pass Filter. The resulting wave is too rounded to be used for digital data processing. Also,
the amplitude level may be very low due to channel attenuation.
FSK Modulator
The FSK modulator using IC XR 2206. IC XR 2206 is a VCO based monolithic function
generator capable of producing Sine, Square, Triangle signals with AM and FM facility. In this
trainer XR2206 is used generate FSK signal. Mark (Logic 1) and space (logic 0) frequencies can
be independently adjusted by the choice of timing potentiometers FO & Fl. The output is phase
continuous during transitions. The keying signals i.e. data signal is applied to pin 9.
FSK Demodulator:
FSK demodulator in a combination of PLL (LM565) and comparator (Op-amp). The frequency-
changing signal at the input to the PLL drives the phase detector to result in rapid change in the
error voltage, which is applied to the input of the comparator. At the space frequency, the error
voltage out of the phase detector is below the comparison voltage of the comparator. The
comparator is a non-inverting circuit, so its output level is also low. As the phase detector input
frequency shifts low (to the mark frequency), the error voltage steps to a high level, passing
through the comparison level, causing the comparator output voltage to go high. This error
voltage change will snap the comparator output voltage between its two output levels in manner
that duplicates the data signal input to the XR22OS modulator. The free running frequency of the
PLL (no input signal) is set midway between the mark and space frequencies. A space at 2025
Hz and mark at 2225 Hz will have a free running VCO frequency of 2125 Hz.
5.6 TEST PROCEDURE
1. Connect the trainer kit to the mains and switch on the power supply
2. Check internal RPS voltage (it should be 12V) and logic source voltage for logic one (it
should be 12V)
3. Observe the data signal using oscilloscope. Note down the value. (Amplitude and Time
Period)
4. Connect the output of the logic source to data input of the FSK modulator
5. Set the output frequency of the FSK modulator as 1.2 KHz using control F0 (this represents
logic 0). Then set another frequency as 2.4 KHz using control F1 (this represents logic 1) using
multimeter.
6. Connect the data input of the FSK modulator to the output of the data signal generator.
Observe the signal that comes out of FSK modulator and note down the readings.
7. Connect the FSK modulator output to the input of the FSK demodulator. Observe the
waveform of FSK demodulator output using CRO and note down the readings.
OBSERVATIONS:
VIVA QUATIONS:
1. What is MSK?
2. For the given 8 bit data 10111010 draw the FSK output waveform.
3. Draw the constellation diagram of FSK.
4. What will happen if the same frequency is used for both the carriers?
MATLAB CODE:
clc;
clear all;
close all;
n=100;
x=[ones(1,20) zeros(1,20) ones(1,20) zeros(1,20) ones(1,20)];
subplot(4,1,1);
plot(x);
title('input signal');
xlabel('number of samples');
ylabel('amplitude');
f=1*10^6;
fs=10*10^6;
for i=0:n-1
d(i+1)=sin(2*pi*(f/fs)*i);
end
subplot(4,1,2);
plot(d);
title('carrier signal');
xlabel('number of samples');
ylabel('amplitude');
for i=0:n-1
if(x(i+1)==1)
x(i+1)=sin((2*pi*(f/fs)*i));
else
x(i+1)=sin((2*pi*((4*(f/fs)))*i));
end
end
subplot(4,1,3);
plot(x);
title('FSK Signal');
xlabel('number of samples');
ylabel('amplitude');
for i=0:n-1
if(x(i+1)==sin((2*pi*(f/fs)*i)))
x(i+1)=1;
else
x(i+1)=0;
end
end
subplot(4,1,4);
plot(x);
title('FSK demodulated Signal');
xlabel('number of samples');
ylabel('amplitude');
EXPERIMENT NO: 12
BINARY PHASE SHIFT KEYING GENERATION & DETECTION
AIM:
To analyze a BPSK modulation system. And interpret the modulated and demodulated
waveforms.
APPRATUS:
1. BPSK Trainer Kit - AET-48
2. Dual Trace oscilloscope
3. Digital Multimeter
4. C.R.O(30MHz)
5. Patch chords.
6. PC with windows(95/98/XP/NT/2000)
7. MATLAB Software with communication toolbox
BLOCK DIAGRAM:
INTRODUCTION
Phase shift keying is a modulation/data transmitting technique in which phase of the carrier
signal is shifted between two distinct levels. In a simple PSK(ie binary PSK) unshifted carrier
Vcosω0t is transmitted to indicate a 1 condition, and the carrier shifted by 1800 ie – Vcosω0t is
transmitted to indicate as 0 condition.
PSK Modulator
Figure 6.2shows the PSK modulator. IC CD 4052 is a 4 channel analog multiplexer and is used
as an active component in this circuit. One of the control signals of 4052 is grounded so that
4052 will act as a two channel multiplexer and other control is being connected to the binary
signal ie data to be transmitted. Unshifted carrier signal is connected directly to CH1 and carrier
shifted by 1800 is connected to CH2.phase shift network is a unity gain inverting amplifier using
OP-amp (TL084).
When input data signal is 1 ie control signal is at high voltage, output of the 4052 is connected to
CH1 and unshifted (or 0 phase)carrier is passed on to output. Similarly When data signal is 0 ie
control signal is at zero voltage output of 4052 is connected to CH2 and carrier shifted by 1800 is
passed on to output.
PSK Demodulator:
Demodulation of PSK is achieved by subtracting the received carrier from a derived synchronous
reference carrier of constant phase. Figure shows the simple coherent(synchronous) PSK
modulator. Received PSK signal is converted to square wave using an op-amp(TL084) based
zero crossing detector and connected to EX-OR circuit. The derived reference carrier is
connected to other input of the EX-OR Gate through an op-amp based zero crossing detector. For
the simplicity same carrier is used at receiver as reference carrier (In practical communication
system reference carrier is generated at receiver).We can observe the exact operation of
demodulator with the help of waveforms at various nodes in the circuit. Received PSK signal is
converted to square wave using an op-amp(TL084) based zero crossing detector and connected
to EX-OR circuit. The derived reference carrier is connected to other input of the EX-OR Gate
through an op-amp based zero crossing
detector. For the simplicity same carrier is used at receiver as reference carrier (In practical
communication system reference carrier is generated at receiver).We can observe the exact
operation of demodulator with the help of waveforms at various nodes in the circuit.
THOERY:
10.5 THEORY
Binary Phase Shift Keying
In a coherent binary PSK system, the pair of signal S1(t) and S2 (t) used to represent binary
symbols 1 & 0 are defined by
S1 (t) = √2Eb/τb Cos 2πfct
S2 (t) =√2Eb/Tb (2πfct+π) = - √ 2Eb/Tb Cos 2πfct where 0 ≤ t< Tb and
Eb = Transmitted signed energy for bit
The carrier frequency fc =n/Tb for some fixed integer n.
In BPSK, there is only one basis function of unit
energy. Øb (t) = √2/Tb cos 2fπct 0≤ t< Tb
S1 (t) = √Eb Ø1 (t) 0≤ t ≤Tb
S2 (t) = √Eb Ø1 (t) 0≤ t< Tb
The signal space is 1dimensional (N=1) having two message points (M = 2)
Block Diagram of BPSK Transmitter
The input binary symbols are represented in polar form with symbols 1 & 0 represented by
constant amplitude levels √Eb & -√Eb. This binary wave is multiplied by a sinusoidal carrier in a
product modulator. The result in a BSPK signal.
BSPK Receiver:
The received BPSK signal is applied to a correlator which is also supplied with a locally
generated reference signal Ø1 (t). The correlated o/p is compared with a threshold of zero volts.
If x1> 0, the receiver decides in favour of symbol 1. If x1< 0, it decides in favour of symbol 0
The received BPSK signal is applied to a correlator which is also supplied with a locally
generated reference signal Ø1 (t). The correlated o/p is compared with a threshold of zero volts.
If x1> 0, the receiver decides in favour of symbol 1. If x1< 0, it decides in favour of symbol 0
PROCEDURE:
6.6 PROCEDURE
1. Connect the trainer to mains and switch on the power supply.
2. Measure the output of the regulated power supply ie +5V and -5V with the help of digital
multimeter.
3. Observe the output of the carrier generator using CRO, it should be an 8KHZ sine with 5Vpp
amplitude.
4. Observe the various data signals(1KHZ,2KHZ and 4KHZ0 using CRO
6.6.1 Modulation:
5. Connect carrier signal to carrier input of the PSK modulator.
6. Connect data signal say 4KHZ from data source to data input of the modulator.
7. Keep CRO in dual mode and connect CH1 input of the CRO to data signal and CH2 to the
output of the PSK modulator.
8. Observe the PSK output signal with respect to data signal and plot the waveforms.
6.6.2 Demodulation:
9. Connect the PSK output to the PSK input of the demodulator.
10. Connect carrier to the carrier input of the PSK demodulator.
11. Keep CRO in dual mode and connect CH1 to data signal(at modulator) and CH2 to the
output of the demodulator.
12. Compare the demodulated signal with the original signal. By this we can notice that there is
no loss in modulation and demodulation process
13. Repeat the steps 6 to 12 with different data signals ie 2KHZ and 1KHZ
EXPECTED GRAPHS:
Modulated Output
For 4KHz
For 2KHz
For 1KHz
BPSK DEMODULATION
Amplitude Time period
Demodulated Output
For 4KHz
For 2KHz
For 1KHz
RESULT:
Thus the PSK modulation and demodulation were performed and graphs were plotted.
VIVA QUESTIONS:
1. Compare FSK and PSK.
2. List the Characteristics of TL084 op-amp.
3. Compare TL084 op amp with IC 741 op amp.
4. What do we infer from constellation diagrams of various modulation schemes?
MATLAB CODE:
clc;
clear all;
close all;
n=100;
x=[ones(1,20) zeros(1,20) ones(1,20) zeros(1,20) ones(1,20)];
subplot(4,1,1);
plot(x);
title('input signal');
xlabel('number of samples');
ylabel('amplitude');
f=1*10^6;
fs=10*10^6;
for i=0:n-1
d(i+1)=sin(2*pi*(f/fs)*i);
end
subplot(4,1,2);
plot(d);
title('carrier signal');
xlabel('number of samples');
ylabel('amplitude');
for i=0:n-1
if(x(i+1)==0)
x(i+1)=sin(2*pi*(f/fs)*i);
else
x(i+1)=sin(2*pi*(f/fs)*i+pi);
end
end
subplot(4,1,3);
plot(x);
title('BPSK Signal');
xlabel('number of samples');
ylabel('amplitude');
for i=0:n-1
if(x(i+1)==sin(2*pi*(f/fs)*i))
x(i+1)=0;
else
x(i+1)=1;
end
end
subplot(4,1,4);
plot(x);
title('Demodulated Signal');
xlabel('number of samples');
ylabel('amplitude');
EXPERIMENT NO: 13 DPSK GENERATION & DETECTION
AIM: Study the characteristics of differential phase shift keying
APPRATUS:
1. DPSK Trainer Kit
2. Dual Trace oscilloscope
3. Digital Multimeter
4. C.R.O(30MHz)
5. Patch chords.
6. PC with windows(95/98/XP/NT/2000)
7. MATLAB Software with communication toolbox
BLOCK DIAGRAM:
THEORY:
DPSK: Phase Shift Keying requires a local oscillator at the receiver which is accurately
synchronized in phase with the un-modulated transmitted carrier, and in practice this can be
difficult to achieve. Differential Phase Shift Keying (DPSK) over comes the difficult by
combining two basic operations at the transmitter (1) differential encoding of the input binary
wave and (2) phase shift keying – hence the name differential phase shift keying. In other words
DPSK is a non-coherent version of the PSK.
The differential encoding operation performed by the modulator is explained below Let b (t) be
the binary message to be transmitted. An encoded message stream b(t) is generated from b’(t) by
using a logic circuit The first bit in b(t) is arbitrary which may be chosen as 1 or 0 . The
subsequent bits in b(t) are determined on the basis of the rule that when b’(t) is 1 b(t)does not
change its value. In the first bit stream, the initial bit (arbitrary) is 1 and in the second bit stream,
the initial bit is 0 EX-NOR gate can be used to perform this operation as its output is a 1 when
both the input are same, and a 0 when the inputs are different.
b’(t) 0 1 1 0 0
b(t) 1 0 0 0 1 0
Phase 00 1800 1800 1800 00 1800
B(t) 0 1 1 1 0 1
Phase 180000 00 00 1800 00
Example for Complete DPSK operation (with arbitrary bit as 0):
PROCEDURE: MODULATOR
RESULT:
Thus the DPSK modulation and demodulation were performed and graphs were plotted.
VIVA QUESTIONS:
1. Define DPSK?
MATLAB CODE:
AIM: To study modulation and demodulation of QPSK and sketch the relevant waveforms.
APPRATUS:
1. QPSK Trainer Kit
2. Dual Trace oscilloscope
3. Digital Multimeter
4. C.R.O(30MHz)
5. Patch chords.
6. PC with windows(95/98/XP/NT/2000)
7. MATLAB Software with communication toolbox
The i/p binary sequence b(t) is represented in polar from with symbols 1 & 0 represented as
+√E/2 and -√E/2 .This binary wave is demultiplexed into two separate binary waves consisting
of odd & even numbered I/P bits denoted by b1 (t) & b2 (t)
b1 (t) & b2(t) are used to modulate a pair of quadrature carrier or orthogonal Basis function Ø1
(t) & Ø2 (t). The result is two PSK waves’ .These two binary PSK waves are added to produce
the desired QPSK signal .
PROCEDURE:
Modulation:
5. Observe the input bit pattern at TP-2 by varying bit pattern using respective push button.
6. Observe the data rate at TP-1 by varying data rate using respective push button.
7. Observe the Two- bit encoding i.e. I-Channel (TP-3) and Q-Channel (TP-4).
8. Observe carrier signal i.e. cosine wave (TP-5) and sine wave (TP-6). Frequency of carrier
signal will change with respect to data rate.
9. Observe I-Channel (TP-7) and Q-Channel (TP-8) modulated signal.
10. Observe QPSK modulated signal at TP-9.
Demodulation:
11. Apply the QPSK modulated output to the demodulator input.
12. Observe the multiplied signal of QPSK and carrier signal, cosine at TP-12 and also observe
the multiplied signal of QPSK and carrier signal, sine at TP-13.
13. Observe the integrated output at I-channel (TP-14) and Q-channel (TP-15).
√𝑬/𝟐 −√𝑬/
QPSK signal S1 S2
𝟐
10 π/4
−√𝑬/𝟐 −√𝑬/
𝟐
00 3π/4
−√𝑬/𝟐 +√𝑬/
𝟐
01 5π/4
+√𝑬/𝟐 +√𝑬/
𝟐
11 7π/4
EXPECTED WAVE FORMS:
VIVA QUESTIONS:
% QPSK Modulation
clc;
clear all;
close all;
%GENERATE QUADRATURE CARRIER SIGNAL
Tb=1;t=0:(Tb/100):Tb;fc=1;
c1=sqrt(2/Tb)*cos(2*pi*fc*t);
c2=sqrt(2/Tb)*sin(2*pi*fc*t);
%generate message signal
N=8;m=rand(1,N);
t1=0;t2=Tb
for i=1:2:(N-1)
t=[t1:(Tb/100):t2]
if m(i)>0.5
m(i)=1;
m_s=ones(1,length(t));
else
m(i)=0;
m_s=-1*ones(1,length(t));
end
%odd bits modulated signal
odd_sig(i,:)=c1.*m_s;
if m(i+1)>0.5
m(i+1)=1;
m_s=ones(1,length(t));
else
m(i+1)=0;
m_s=-1*ones(1,length(t));
end
%even bits modulated signal
even_sig(i,:)=c2.*m_s;
%qpsk signal
qpsk=odd_sig+even_sig;
%Plot the QPSK modulated signal
subplot(3,2,4);
plot(t,qpsk(i,:));
title('QPSK signal');
xlabel('t---->');
ylabel('s(t)');
grid on;
hold on;
t1=t1+(Tb+.01);
t2=t2+(Tb+.01);
end
hold off
%Plot the binary data bits and carrier signal
subplot(3,2,1);
stem(m);
title('binary data bits');
xlabel('n---->');
ylabel('b(n)');
grid on;
subplot(3,2,2);
plot(t,c1);
title('carrier signal-1');
xlabel('t---->');
ylabel('c1(t)');
grid on;
subplot(3,2,3);
plot(t,c2);
title('carrier signal-2');
xlabel('t---->');
ylabel('c2(t)');
grid on;
% QPSK Demodulation
t1=0;t2=Tb
for i=1:N-1 t=[t1:
(Tb/100):t2]
%correlator
x1=sum(c1.*qpsk(i,:));
x2=sum(c2.*qpsk(i,:));
%decision device
if (x1>0&&x2>0)
demod(i)=1;
demod(i+1)=1;
elseif (x1>0&&x2<0)
demod(i)=1;
demod(i+1)=0;
elseif (x1<0&&x2<0)
demod(i)=0;
demod(i+1)=0;
elseif (x1<0&&x2>0)
demod(i)=0;
demod(i+1)=1;
end
t1=t1+(Tb+.01); t2=t2+(Tb+.01);
end
subplot(3,2,5);
stem(demod);
title('qpsk demodulated bits');
xlabel('n- - ->');
ylabel('b(n)');
grid on;
EXTRA
EXPERIMENTS
EXPERIMENT NO: 15
DPCM MODULATION & DETECTION
AIM:
To analyze a DPCM system and to interpret the modulated and demodulated waveforms for a
sampling frequency of 8 KHz.
APPRATUS:
1. DPCM Modulation and Demodulation Trainer Kit
2. Dual Trace oscilloscope
3. Digital Multimeter
4. C.R.O(30MHz)
5. Patch chords.
6. PC with windows(95/98/XP/NT/2000)
7. MATLAB Software with communication toolbox
BLOCK DIAGRAM:
THEORY:
Differential PCM is quite similar to ordinary PCM. However, each word in this system indicates
the difference in amplitude, positive or negative, between this sample and the previous sample.
Thus the relative value of each sample is indicated rather than, the absolute value as in normal
PCM. This unique system consists of
I. DPCM Modulator
1. Regulated power supply
2. Audio Frequency signal generator
3. Prediction Filter
4. Sample & Hold circuit
5. A/D Converter
6. Parallel –Serial Shift register
7. Clock generator / Timing circuit
8. DC source
II. DPCM Demodulator
1. Regulated Power Supply
2. Serial-Parallel Shift registers.
3. D/A converter.
4. Clock generator
5. Timing circuit
6. Prediction filter
7. Passive low pass filter
PROCEDURE:
1. Study the theory of operation thoroughly.
2. Connect the trainer (Modulator) to the mains and switch on the power supply.
3. Observe the output of the AF generator using CRO, it should be Sine wave of 400 Hz
frequency with 3V pp amplitude.
4. Verify the output of the DC source with multi-meter/scope; output should vary 0 to +290mV.
5. Observe the output of the Clock generator using CRO, they should be 64 KHz and 8 KHz
frequency of square with 5 Vpp amplitude.
6. Connect the trainer (De Modulator) to the mains and switch on the power supply.
7. Observe the output of the Clock generator using CRO; it should be 64 KHz square wave with
amplitude of 5 pp.
9. Observe the DPCM output with respect to the 8 KHz signal and sketch the waveform.
10. Note: Form this waveform you can observe that the LSB bit enters the output first.
11. Set DC source to some value say 1 V with the help of multi-meter and connect it to the A/D
converter input and observe the output LED’s.
12. Note down the digital code i.e. output of the A/D converter and compare with the theoretical
value Theoretical value can be obtained by:
𝐴
𝐷 𝑖𝑛𝑝𝑢𝑡 𝑣𝑜𝑙𝑡𝑎𝑔𝑒
1 𝐿𝑆𝐵 𝑉𝑎𝑙𝑢𝑒
=X(10) =Y(2)
Demodulation
1. Connect DPCM signal to the demodulator (S-P register) from the DPCM modulator with the
help of coaxial cable (supplied with the trainer).
2. Connect clock signal (64 KHz) from the transmitter to the receiver using coaxial cable.
3. Connect transmitter clock to the timing circuit.
4. Observe and note down the S-P shift register output data and compare it with the transmitted
data (i.e. output A/D converter at transmitter) notice that the output of the S-P shift register is
following the A/D converter output in the modulator.
5. Observe D/A converter output (demodulated output) using multi-meter/scope and compare it
with the original signal and can observe that there is no loss in information in process of
conversion and transmission.
DPCM Operation (with AC input):
Modulation:
6. Connect AC signal of 3VPP amplitude to positive terminal of the summer circuit.
Note: The output of the prediction filter is connected to the negative terminal of the summer
circuit and can observe the waveforms at the test points provided on the board.
7. The output of the summer is internally connected to the sample and hold circuit
8. Keep CRO in dual mode. Connect one channel to the AF signal and another channel to the
Sample and Hold output. Observe and sketch the sample & hold output
9. Connect the Sample and Hold output to the A/D converter and observe the DPCM output
using oscilloscope.
10. Observe DPCM output by varying AF signal voltage.
Demodulation:
11. Connect DPCM signal to the demodulator input (S-P shift register) from the DPCM
modulator with the help of coaxial cable (supplied with trainer).
12. Connect clock signal (64 KHz) from the transmitter to the receiver using coaxial cable.
13. Connect transmitter clock to the timing circuit.
14. Keep CRO in dual mode. Connect one channel to the sample & hold output and another
channel to the D/A converter output.
15. Observe and sketch the D/A output
16. Connect D/A output to the LPF input and observe the output of the LPF.
17. Observe the wave form at the output of the summer circuit.
18. Disconnect clock from transmitter and connect to the local oscillator (i.e., clock generator
output from De Modulator) with remaining setup as it is. Observe D/A output and compare it
with the previous result. This signal is little bit distorted in shape. This is because lack of
synchronization between clock at transmitter and clock at receiver.
EXPECTED WAVEFORMS:
Draw the wave forms for the given DC input, corresponding binary data wave form, and for AC
input draw sample and hold waveform then D/A converter o/p and then reconstructed AC signal
OBSERVATIONS: DPCM with AC input
Amplitude Time period
AC Input
Prediction Filter Output
Sample and Hold Output
Clock -1 output
DPCM Output
Demodulation:
Amplitude Time period
DPCM Input
D/A Converter Output
LPF Output
Demodulation Output
Prediction Filter output
RESULT:
Thus the Differential Pulse code modulation and demodulation were performed.
VIVA QUESTIONS:
1. For data compression says whether ADPCM or DPCM is better. Justify.
2. What is the need for compression? Mention the types of compression.
3. List the communication standards which use DPCM.
4. Based upon the knowledge that you have gained after doing the experiment write
the Functions of sample and hold circuit.
5. Name the circuit used to achieve synchronization between transmitter and receiver.
EXPERIMENT NO: 16
VERIFICATION OF SAMPLING THEOREM
AIM:
1. To study the sampling theorem and its reconstruction.
2. To study the effect of amplitude and frequency variation of modulating signal on the output.
3. To study the effect of variation of sampling frequency on the demodulated output.
APPARATUS:
1. Sampling and reconstruction Trainer Kit.
2. C.R.O(30Mhz)
3. Patch cords.
4. PC with windows(95/98/XP/NT/2000)
5. MATLAB Software with communication toolbox
BLOCK DIAGRAM:
THEORY:
At the receiving end the original waveforms may be reconstituted from the information
regarding the samples.
Sampling theorem statement:
A band limited signal of finite energy which has no frequency components higher than fm Hz is
completely, described by specifying the values of the signal at instants of time separated by +fm
sec.
The sampling theorem states that if the sampling rate in any pulse modulation system
exceeds twice the maximum signal frequency, the original signal can be reconstructed in the
receiver with minimum distortion.
Fs> 2fm is called Nyquist rate Where Fs sampling frequency, Fm modulating signal frequency.
If we reduce the sampling frequency Fs less than 2fm the side bands and the information
signal will overlap and we cannot recover the information signal by low pass filter. This
phenomenon is called fold over distortion or aliasing.
1. Natural sampling.
Sample and hold circuit holds the sampled value until the next sample is taken. Sample
and hold technique is used to maintain reasonable pulse energy. The duty cycle is defined as the
ratio of pulse duration to the pulse repetition period.
PROCEDURE:
1. Switch on the ”power ON” switch.
2. Observe the AF signal generator output, it is a sine wave frequency varying from 2
KHz to 20 KHz and amplitude varying from 0-5 Vp-p.
3. Observe the sampling pulse generator output, it is a square wave of frequency varying
from Date: 2 KHz to 32 KHz and pulse also adjustable.
4. Connect the sampling pulse generator output to the sampling pulse output of the
modulator. Make sure that the frequency adjust pot is in its extreme clock wise
direction.
5. Now adjust the output of the AF signal generator to 1 KHz, 5Vp-p and connect the
same signal to analog input terminals of the modulator. If the pulse width is now made
very narrow the SH signal will seen as if it is instantaneously sampled and held.
RESULT:
Analog signal sampling and reconstruction with different sampling techniques are
observed.
VIVA QUATIONS:
2. What is aliasing?
6. Give the difference between flat top sampling and natural sampling.