Digital Communication Systems Lab
Department of ECE-CREC-Tirupati Page 1
Expt-no:1
TIME DIVISION MULTIPLEXING AND DEMULTIPLEXING
Aim:
1. To study the 4 channel analog multiplexing and demultiplexing
2. To study the effect of sampling frequency on output signal characteristics.
3.To study the effect of input signal amplitude on the output signal characteristics
.
Apparatus required:
1. Time Division Multiplexing and de multiplexing trainer Kit.
2. Dual Trace oscilloscope
Theory:
In PAM, PPM the pulse is present for a short duration and for most of the time
between the two pulses no signal is present. This free space between the pulses
can be occupied by pulses from other channels. This is known as Time Division
Multiplexing. Thus, time division multiplexing makes maximum utilization of the
transmission channel. Each channel to be transmitted is passed through the low
pass filter. The outputs of the low pass filters are connected to the rotating
sampling switch (or) commutator. It takes the sample from each channel per
revolution and rotates at the rate of f s . Thus the sampling frequency becomes fs
the single signal composed due to multiplexing of input channels. These channels
signals are then passed through low pass reconstruction filters. If the highest
signal frequency present in all the channels is f m , then by sampling theorem, the
sampling frequency f s must be such that f s ≥2f m . Therefore, the time space
between successive samples from any one input will be T s =1/f s, and T s ≤ 1/2fm.
Digital Communication Systems Lab
Department of ECE-CREC-Tirupati Page 2
Circuit Diagram:
Fig: 1 Time Division Multiplexing And Demultiplexing Circuit
Procedure:
There are 4 signal sources;
a) AF Signal generator
b) Triangular wave generator
c) Square wave generator and
d) Sine wave generator
1 . Connect these four signals to four inputs of the Multiplexer. Adjust each signal
amplitude to be with in +/-2V (p-p) and frequency non-over lapping within a
frequency band of 300Hz.
2. Connect A, B output of 7476 to A 1 , B l inputs of Multiplexer.
3. Adjust the frequency of IC 8038 (Square wave, triangular wave generator) to
Digital Communication Systems Lab
Department of ECE-CREC-Tirupati Page 3
be around 32 KHz, so that each of the Four channels are sampled at 8 KHz.
4. Adjust the pulse width of 555 timers to be around 10μsecs.
5. Observe the 4 output pin 11 of 7476 on one channel 1and TDM output pin 13
of CD4052 on second channel of oscilloscope. Synchronize scope Internal-CH
1 mode. All the multiplexed channels are observed during the full period of the
clock (1/32 KHz).
6. Connect TDM output to comparator –ve input and saw tooth wave to +ve
Input. Observe the Comparator output. The PAM pulses are now converted in
to PWM pulses.
7. Connect the PWM pulses to TDM input of De multiplexer at pin 3 of second
CD4052. Observe the individual outputs Y0, Y1, Y2, and Y3 at pin 1, 5, 2 & 4
of CD4052 respectively. The PWM pulses corresponding to each channels
are now separated as 4 streams.
8. Take one output and connect it to Low Pass Filter and the Low Pass Filter
output to Amplifier. Observe the output of the amplifier in conjunction with the
corresponding input. Repeat this for all 4 inputs. This is the Demodulated
TDM output. Any slight variation in frequency, amplitude is reflected in the
corresponding output.
Observations:
Digital Communication Systems Lab
Department of ECE-CREC-Tirupati Page 4
Model Waveform:
Multiplexed output
Demultiplexed output
RESULT:
Digital Communication Systems Lab
Department of ECE-CREC-Tirupati Page 5
Expt-no:2
PULSE CODE MODULATION & DEMODULATION
AIM:
To generate a PCM signal using PCM modulator and detect the message signal
using PCM demodulator.
APPARATUS REQUIRED:
1. PCM kit
2. CRO
3. Connecting probes
THEORY:
Pulse code modulation is a process of converting an analog signal into digital. The
voice or any data input is first sampled using a sampler (which is a simple switch)
and then quantized. Quantization is the process of converting a given signal
amplitude to an equivalent binary number with fixed number of bits. This
quantization can be either midtread or mid-raise and it can be uniform or non-
uniform based on the requirements. For example in speech signals, the higher
amplitudes will be less frequent than the low amplitudes. So higher amplitudes
are given less step size than the lower amplitudes and thus quantization is
performed non-uniformly. After quantization the signal is digital and the bits are
passed through a parallel to serial converter and then launched into the channel
serially.
At the demodulator the received bits are first converted into parallel frames and
each frame is de-quantized to an equivalent analog value. This analog value is
thus equivalent to a sampler output. This is the demodulated signal.
In the kit this is implemented differently. The analog signal is passed through a
ADC (Analog to Digital Converter) and then the digital codeword is passed through
a parallel to serial converter block. This is modulated PCM. This is taken by the
Serial to Parallel converter and then through a DAC to get the demodulated
Digital Communication Systems Lab
Department of ECE-CREC-Tirupati Page 6
signal. The clock is given to all these blocks for synchronization. The input signal
can be either DC or AC according to the kit. The waveforms can be observed on a
CRO for DC without problem.AC also can be observed but with poor resolution.
PROCEDURE:
1. Make the connections as per the diagram as shown in the Fig.1.and switch on
the power supply of the trainer kit.
2. Clock generator generates a 20 KHz clock .This can be given as input to the
timing and control circuit and observe the sampling frequency fs= 2 KHz
approximately at the output of timing and control circuit.
3. Apply the signal generator output of 6V(p-p) approximately to the A to D
converter input and note down the binary word from LED’s i.e. LED “ON”
represents ‘1’ & “OFF” represents ‘0’
4. Feed the PCM waveform to the demodulator circuit and observe the waveform
at the output of D/A which is quantized level.
Circuit Diagram:
Digital Communication Systems Lab
Department of ECE-CREC-Tirupati Page 7
Wave forms:
Digital Communication Systems Lab
Department of ECE-CREC-Tirupati Page 8
Calculations:
Result:
Digital Communication Systems Lab
Department of ECE-CREC-Tirupati Page 9
Expt No:3
DIFFERENTIAL PULSE CODE MODULATION
AIM: To Study & understand the operation of the DPCM
EQUIPMENT REQUIRED:
1. DPCM Modulator & Demodulator trainer
2. Storage Oscilloscope
3. Digital Multimeter
4. 2 No’s of co- axial cables (standard accessories with trainer)
5. Patch chords
THEORY:
In this DPCM instead of transmitting a base band signal m(t) we send the
difference signal of Kth sample and (k-1) th sample value. The advantage here is
fewer levels are required to quantize the difference than the required to quantize
m(t) and correspondingly, fewer bits will be needed to encode the levels. If we
know the post behaviour of a signal up to a certain time, it is possible to make
some interference about its future values this is called prediction. The filter
designed to perform the prediction is called a predictor. The difference between
the interest and the predictor o/p is called the prediction error.
Circuit Diagram:
Digital Communication Systems Lab
Department of ECE-CREC-Tirupati Page 10
Procedure:
1. Switch on the experimental kit.
2. Apply the variable DC signal of amplitude 6v(p-p) with frequency of 80Hz
to the input terminals of DPCM modulator.
3. Observe the sampling signal of amplitude 5v (p-p) with frequency 20KHz
on channel 1 of a CRO.
4. Observe the output of DPCM on the second channel.
5. By adjusting the DC voltage potentiometer, observe the DPCM output.
6. During the demodulation connect DPCM output to the input of
demodulator and observe the output of DPCM demodulator.
Waveform:
Result:
Digital Communication Systems Lab
Department of ECE-CREC-Tirupati Page 11
Expt-No:4
DELTA MODULATION & DEMODULATION
AIM: To study the characteristics of Delta Modulation and Demodulation.
EQUIPMENT REQUIRED:
1. DM Modulator & Demodulator trainer
2. Storage Oscilloscope
3. Digital multimeter.
4. 2 No’s co-axial cables (standard accessories with trainer)
THEORY:
Delta modulation is almost similar to differential PCM. In this, only one bit is
transmitted per sample just to indicate whether the present sample is larger or
smaller than the previous one. The encoding, decoding and quantizing process
become extremely simple but this system cannot handle rapidly varying samples.
This increases quantizing noise. It has also not found wide acceptance.
Circuit Diagram:
Digital Communication Systems Lab
Department of ECE-CREC-Tirupati Page 12
Procedure:
1. Switch on the experimental board.
2. Connect the clock signal of frequency of 10KHz,with amplitude of 5v(p-p)
to the delta modulator circuit.
3. Connect the modulating signal of amplitude 5v(p-p) and frequency of of
0.2KHz modulating input of the delta modulator
And observe the same on channel 1 of a Dual Trace oscilloscope.
4. Observe the Delta Modulator output on channel 2.
5. Connect this Delta modulator output to the Demodulator
6. Also connect the clock signal to the demodulator.
7. Observe the Demodulator output with and without RC filter on CRO.
Digital Communication Systems Lab
Department of ECE-CREC-Tirupati Page 13
Model Waveforms:
Result:
Digital Communication Systems Lab
Department of ECE-CREC-Tirupati Page 14
Expt-No:5
FREQUENCY SHIFT KEYING
AIM: To study the characteristics of Frequency Shift keying
EQUIPMENT REQUIRED:
1. Frequency Shift Keying system trainer
2. Dual trace Oscilloscope
3. Digital multimeter
4. Digital frequency counter
THEORY:
Frequency Shift Keying (FSK) is a modulation/ Data transmitting technique in
which carrier frequency is shifted between two distinct fixed frequencies to
represent logic 1 and logic 0. The low carrier frequency represents a digital 0
(space) and higher carrier frequency is a 1 (mark). FSK system has a wide range of
applications in low speed digital data transmission systems. Wave forms are
shown in Figure. FSK Modulating & Demodulating circuitry can be developed in
number of ways, familiar VCO and PLL circuits are used in this trainer.
Procedure:
1. Connect the circuit as shown in fig.1
2. Apply the (binary) Data input of amplitude 20V (p-p) with frequency of 6 KHz
from function generator to pin no.7.
3. Give the power supply of 10v to the appropriate pins.
4. Observe the FSK output at pin no.2.
5. Now note down the mark and space frequencies for different carrier
frequencies.
Digital Communication Systems Lab
Department of ECE-CREC-Tirupati Page 15
6. Calculate the maximum frequency deviation and modulation index.
7. Repeat the steps (5) and (6) for different pulse durations of binary input.
Circuit Diagram:
Fig: Block diagram for Frequency Shift Keying
Procedure:
1 Connect the AC Adaptor to the mains and the other side to the
Experimental Trainer. Switch‘ON’ the power.
2 Connect ‘Data Input’s socket to ground
3 Connect the FSK output to the Ch1 of the Oscilloscope and trigger the
scope from Ch1.
4 Set the ‘ Freq. Adj ’ Potentiometer So that the output is around 30 kHz
approx.
5 Set the Switches for required word pattern. Push the load switch
momentarily and release . This will parallel load the word pattern and then
shifts the pattern that is set Adjust the required frequency of the clock.
6 Connect the Data input to ‘ Ground’, Measure the frequency.
7 Connect the ‘ Data output ‘ to ‘ Data input ‘ .
Digital Communication Systems Lab
Department of ECE-CREC-Tirupati Page 16
8 Observe the Data output on CH1 and FSK output on CH2.
9 Observe that at each negative transition’ ‘ the carrier switches from high to low
and every positive transition ‘ ‘ the frequency switches from low to high.
10 Connect ’FSK output ‘ to ‘ FSK input ’ of the Demodulator.
11 Adjust P3 to regenerate the Data correctly.
12 Compare the Demod output to the Data output which are identical in nature.
13 Change the Data Pattern as mentioned in sl No 6, and Observe the Demod
output again.
Model Waveform:
Digital Communication Systems Lab
Department of ECE-CREC-Tirupati Page 17
Tabulations:
Result:
Digital Communication Systems Lab
Department of ECE-CREC-Tirupati Page 18
Expt-No:6
Differential phase shift keying
AIM: To study the characteristics of differential phase shift keying.
EQUIPMENT REQUIRED:
1. Differential Phase Shift Keying Kits
2. C.R.O
3. Digital multimeter.
4. No’s of coaxial cables (standard accessories with trainer)
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. DPSK DEMODULATOR: Fig shows the DPSK modulator. This
consists of PSK modulator and differential encoder. PSK Modulator: IC CD 4052 is
a 4 channel analog multiplexer and is used as an active component in this circuit.
One of thecontrol 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 i.e.,
encoded data. Un shifted 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 control signal is at high voltage, output of the 4052 is connected to CH1
and un-shifted (or 0 phase) carrier is passed on to output. Similarly when control
signal is at zero voltage output of 4052 is connected to CH2 and carrier shifted by
1800 is passed on to output.
Digital Communication Systems Lab
Department of ECE-CREC-Tirupati Page 19
Differential encoder: This consists of 1 bit delay circuit and an X-NOR Gate. 1 bit
delay circuit is formed by a D-Latch. Data signal i.e., signal to be transmitted is
connected to one of the input of the X-NOR gate and other one being connected
to out of the delay circuit. Output of the X-NOR gate and is connected to control
input of the multiplexer (IC 4052) and as well as to input of the D-Latch. Output
of the X-NOR gate is 1 when both the inputs are same and it is 0 when both the
inputs are different.
Circuit Diagram:
/
Digital Communication Systems Lab
Department of ECE-CREC-Tirupati Page 20
Procedure:
1. Switch on the experimental board.
2. Check the carrier signal and the data generator signals initially.
3. Apply the carrier signal of amplitude 6v (p-p) with frequency of1KHz to the
carrier input, the data input of amplitude 5v (p-p) with frequency of 600Hz
to the data input and bit clock of amplitude 5v (p-p) with and frequency of
1 KHz to the DPSK modulator.
4. Observe the DPSK wave of amplitude 5.6v (p-p) and frequency of 1 KHz
with respect to the input data generated signal of dual trace oscilloscope.
5. Give the output of the DPSK modulator signal to the input of demodulator,
give the bit clock output to the bit clock input to the demodulator and also
give the carrier output to the carrier input of demodulator.
6. Observe the demodulator output with respect to data generator signal.
Digital Communication Systems Lab
Department of ECE-CREC-Tirupati Page 21
Waveform:
Result:
Digital Communication Systems Lab
Department of ECE-CREC-Tirupati Page 22
Software Programs using MATLAB
Digital Communication Systems Lab
Department of ECE-CREC-Tirupati Page 23
EXPT. NO-1
Time Division Multiplexing
AIM:To write a MATLAB program for time division multiplexing and to observe the output
wave forms.
Requirements:PC and MATLAB software
Description:Time-division multiplexing (TDM) is a method of transmitting and receiving
independent signals over a common signal path by means of synchronized switches at
each end of the transmission line so that each signal appears on the line only a fraction of
time in an alternating pattern. The circuit that combines signals at the source
(transmitting) end of a communications link is known as a multiplexer. It accepts the
input from each individual end user, breaks each signal into segments, and assigns the
segments to the composite signal in a rotating, repeating sequence. The composite signal
thus contains data from multiple senders. At the other end of the long-distance cable,
the individual signals are separated out by means of a circuit called a demultiplexer, and
routed to the proper end users. A two-way communications circuit requires a
multiplexer/demultiplexer at each end of the long-distance, high-bandwidth cable.
Program:
clc;
close all;
clear all;
% Signal generation
x=0:.5:4*pi; % siganal taken upto 4pi
sig1=8*sin(x); % generate 1st sinusoidal signal
l=length(sig1);
sig2=8*triang(l); % Generate 2nd traingular Sigal
% Display of Both Signal
subplot(2,2,1);
plot(sig1);
title('Sinusoidal Signal');
ylabel('Amplitude--->');
xlabel('Time--->');
subplot(2,2,2);
plot(sig2);
title('Triangular Signal');
ylabel('Amplitude--->');
xlabel('Time--->');
Digital Communication Systems Lab
Department of ECE-CREC-Tirupati Page 24
% Display of Both Sampled Signal
subplot(2,2,3);
stem(sig1);
title('Sampled Sinusoidal Signal');
ylabel('Amplitude--->');
xlabel('Time--->');
subplot(2,2,4);
stem(sig2);
title('Sampled Triangular Signal');
ylabel('Amplitude--->');
xlabel('Time--->');
l1=length(sig1);
l2=length(sig2);
for i=1:l1
sig(1,i)=sig1(i); % Making Both row vector to a matrix
sig(2,i)=sig2(i);
end
% TDM of both quantize signal
tdmsig=reshape(sig,1,2*l1);
% Display of TDM Signal
figure
stem(tdmsig);
title('TDM Signal');
ylabel('Amplitude--->');
xlabel('Time--->');
% Demultiplexing of TDM Signal
demux=reshape(tdmsig,2,l1);
for i=1:l1
sig3(i)=demux(1,i); % Converting The matrix into row vectors
sig4(i)=demux(2,i);
end
% display of demultiplexed signal
figure
subplot(2,1,1)
plot(sig3);
title('Recovered Sinusoidal Signal');
ylabel('Amplitude--->');
xlabel('Time--->');
subplot(2,1,2)
plot(sig4);
title('Recovered Triangular Signal');
ylabel('Amplitude--->');
xlabel('Time--->');
Result:
Digital Communication Systems Lab
Department of ECE-CREC-Tirupati Page 25
Model wave forms:
0 10 20 30
-10
-5
0
5
10
Sinusoidal Signal
Amplitude--->
Time--->
0 10 20 30
0
2
4
6
8
Triangular Signal
Amplitude--->
Time--->
0 10 20 30
-10
-5
0
5
10
Sampled Sinusoidal Signal
Amplitude--->
Time--->
0 10 20 30
0
2
4
6
8
Sampled Triangular Signal
Amplitude--->
Time--->
0 10 20 30 40 50 60
-8
-6
-4
-2
0
2
4
6
8
TDM Signal
Amplitude--->
Time--->
0 5 10 15 20 25 30
-10
-5
0
5
10
Recovered Sinusoidal Signal
Amplitude--->
Time--->
0 5 10 15 20 25 30
0
2
4
6
8
Recovered Triangular Signal
Amplitude--->
Time--->
Digital Communication Systems Lab
Department of ECE-CREC-Tirupati Page 26
EXPT. NO-2
Pulse Code Modulation
AIM:To write a MATLAB program for Pulse Code Modulation and to observe the output wave
forms.
Requirements:PC and MATLAB software
Description: Pulse code modulation (PCM) is a digital scheme for transmitting analog data.
The signals in PCM are binary; that is, there are only two possible states, represented by
logic 1 (high) and logic 0 (low). This is true no matter how complex the analog waveform
happens to be. Using PCM, it is possible to digitize all forms of analog data, including full-
motion video, voices, music, telemetry, and virtual reality (VR).
To obtain PCM from an analog waveform at the source (transmitter end) of a
communications circuit, the analog signal amplitude is sampled (measured) at regular
time intervals.The sampling rate, or number of samples per second, is several times the
maximum frequency of the analog waveform in cycles per second or hertz. The
instantaneous amplitude of the analog signal at each sampling is rounded off to the
nearest of several specific, predetermined levels. This process is called quantization. The
number of levels is always a power of 2 -- for example, 8, 16, 32, or 64. These numbers
can be represented by three, four, five, or six binary digits (bits) respectively. The output
of a pulse code modulator is thus a series of binary numbers, each represented by some
power of 2 bits.
At the destination (receiver end) of the communications circuit, a pulse code demodulator
converts the binary numbers back into pulses having the same quantum levels as those in
the modulator. These pulses are further processed to restore the original analog
waveform.
Program:
clc;
close all;
clear all;
n=input('Enter n value for n-bit PCM system : ');
n1=input('Enter number of samples in a period : ');
L=2^n;
x=0:2*pi/n1:4*pi; % n1 nuber of samples have tobe selected
s=8*sin(x);
subplot(3,1,1);
plot(s);
Digital Communication Systems Lab
Department of ECE-CREC-Tirupati Page 27
title('Analog Signal');
ylabel('Amplitude--->');
xlabel('Time--->');
subplot(3,1,2);
stem(s);grid on; title('Sampled Signal'); ylabel('Amplitude--->'); xlabel('Time--->');
% Quantization Process
vmax=8;
vmin=-vmax;
del=(vmax-vmin)/L;
part=vmin:del:vmax;
code=vmin-(del/2):del:vmax+(del/2);
[ind,q]=quantiz(s,part,code);
l1=length(ind);
l2=length(q);
for i=1:l1
if(ind(i)~=0) ind(i)=ind(i)-1;
end
i=i+1;
end
for i=1:l2
if(q(i)==vmin-(del/2)) % q(i)=vmin+(del/2);
end
end
subplot(3,1,3);
stem(q);grid on;
title('Quantized Signal');
ylabel('Amplitude--->');
xlabel('Time--->');
% Encoding Process
figure
code=de2bi(ind,'left-msb');
k=1;
for i=1:l1
for j=1:n
coded(k)=code(i,j);
j=j+1;
k=k+1;
end
i=i+1;
end
subplot(2,1,1); grid on;
stairs(coded);
axis([0 100 -2 3]); title('Encoded Signal');
ylabel('Amplitude--->');
xlabel('Time--->');
Digital Communication Systems Lab
Department of ECE-CREC-Tirupati Page 28
% Demodulation Of PCM signal
qunt=reshape(coded,n,length(coded)/n);
index=bi2de(qunt','left-msb');
q=del*index+vmin+(del/2);
subplot(2,1,2); grid on;
plot(q);
title('Demodulated Signal');
ylabel('Amplitude--->');
xlabel('Time--->');
Output:
Enter n value for n-bit PCM system : 8
Enter number of samples in a period : 8
Result:
0 10 20 30 40 50 60 70 80 90 100
-2
-1
0
1
2
3
Encoded Signal
Amplitude--->
Time--->
0 2 4 6 8 10 12 14 16 18
-10
-5
0
5
10
Demodulated Signal
Amplitude--->
Time--->
0 2 4 6 8 10 12 14 16 18
-10
0
10
Analog Signal
Amplitude--->
Time--->
0 2 4 6 8 10 12 14 16 18
-10
0
10
Sampled Signal
Amplitude--->
Time--->
0 2 4 6 8 10 12 14 16 18
-10
0
10
Quantized Signal
Amplitude--->
Time--->
Digital Communication Systems Lab
Department of ECE-CREC-Tirupati Page 29
EXPT. NO-3
Delta modulation
AIM:To write a MATLAB program for Delta Modulation and to observe the output wave forms.
Requirements:PC and MATLAB software
Description: A Delta modulation (DM or Δ-modulation) is an analog-to-digital and digital-to-analog
signal conversion technique used for transmission of voice information where quality is not of
primary importance. DM is the simplest form of differential pulse-code modulation (DPCM)
where the difference between successive samples is encoded into n-bit data streams. In delta
modulation, the transmitted data are reduced to a 1-bit data stream.
Program:
clc;
clear all;
close all;
a=2;
t=0:2*pi/50:2*pi;
x=a*sin(t);
l=length(x);
plot(x,'r');
delta=0.2;
hold on
xn=0;
for i=1:l;
if x(i)>xn(i)
d(i)=1;
xn(i+1)=xn(i)+delta;
else
d(i)=0; xn(i+1)=xn(i)-delta;
end
end
stairs(xn)
hold on
for i=1:d
if d(i)>xn(i)
d(i)=0;
xn(i+1)=xn(i)-delta;
else
Digital Communication Systems Lab
Department of ECE-CREC-Tirupati Page 30
d(i)=1; xn(i+1)=xn(i)+delta;
end
end
plot(xn,'c');
legend('Analog signal','Delta modulation','Demodulation')
title('DELTA MODULATION / DEMODULATION ')
output:
Result:
0 10 20 30 40 50 60
-2
-1.5
-1
-0.5
0
0.5
1
1.5
2
DELTA MODULATION / DEMODULATION
Analog signal
Delta modulation
Demodulation
Digital Communication Systems Lab
Department of ECE-CREC-Tirupati Page 31
EXPT. NO-4
FREQUENCY SHIFT KEYING
AIM:To write a MATLAB program for Frequency Shift Keying and to observe the output wave
forms.
Requirements:PC and MATLAB software
Description:
Frequency-shift keying (FSK) allows digital information to be transmitted by changes or
shifts in the frequency of a carrier signal, most commonly an analog carrier sine wave. There are
two binary states in a signal, zero (0) and one (1), each of which is represented by an analog
wave form. This binary data is converted by a modem into an FSK signal, which can be
transmitted via telephone lines, fiber optics or wireless media. FSK is commonly used for caller
ID and remote metering applications. FSK is also known as frequency modulation (FM).
Program:
clc;
close all;
clear all;
fc1=input('Enter the freq of 1st Sine Wave carrier:');
fc2=input('Enter the freq of 2nd Sine Wave carrier:');
fp=input('Enter the freq of Periodic Binary pulse (Message):');
amp=input('Enter the amplitude (For Both Carrier & Binary Pulse Message):');
amp=amp/2;
t=0:0.001:1;
c1=amp.*sin(2*pi*fc1*t);% For Generating 1st Carrier Sine wave
c2=amp.*sin(2*pi*fc2*t);% For Generating 2nd Carrier Sine wave
subplot(4,1,1); %For Plotting The Carrier wave
plot(t,c1)
xlabel('Time')
ylabel('Amplitude')
title('Carrier 1 Wave')
subplot(4,1,2) %For Plotting The Carrier wave
plot(t,c2)
xlabel('Time')
ylabel('Amplitude')
title('Carrier 2 Wave')
m=amp.*square(2*pi*fp*t)+amp;%For Generating Square wave message
subplot(4,1,3) %For Plotting The Square Binary Pulse (Message)
Digital Communication Systems Lab
Department of ECE-CREC-Tirupati Page 32
plot(t,m)
xlabel('Time')
ylabel('Amplitude')
title('Binary Message Pulses')
for i=0:1000 %here we are generating the modulated wave
if m(i+1)==0
mm(i+1)=c2(i+1);
else
mm(i+1)=c1(i+1);
end
end
subplot(4,1,4) %For Plotting The Modulated wave
plot(t,mm)
xlabel('Time')
ylabel('Amplitude')
title('Modulated Wave')
The following INPUTS GIVEN TO GENERATE FSK MODULATED WAVE:
Enter the freq of 1st Sine Wave carrier:10
Enter the freq of 2nd Sine Wave carrier:30
Enter the freq of Periodic Binary pulse (Message):5
Enter the amplitude (For Both Carrier & Binary Pulse Message):4
Wave Forms:
Result:
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
-2
0
2
Time
Amplitude
Carrier 1 Wave
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
-2
0
2
Time
Amplitude
Carrier 2 Wave
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
0
2
4
Time
Amplitude
Binary Message Pulses
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
-2
0
2
Time
Amplitude
Modulated Wave
Digital Communication Systems Lab
Department of ECE-CREC-Tirupati Page 33
EXPT. NO-5
QPSK Modulation and Demodulation
AIM: To write a MATLAB program for QPSK Modulation and Demodulation and to observe
the output wave forms.
Requirements: PC and MATLAB software
Description:Quadrature phase shift keying (QPSK) modulators are used to change the
amplitude, frequency, and/or phase of a carrier signal in order to transmit information.
QPSK devices modulate input signals by 0°, 90°, 180°, and 270° phase shifts. QPSK
modulators modulators are used in conjunction with demodulators that extract information
from the modulated, transmitted signal. Some QPSK modulators include an integral
dielectric resonator oscillator. Others are suitable for military or wireless applications.
QPSK modulators with root raised cosine (RRC) and Butterworth filters are also
available.
Program:
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));
Digital Communication Systems Lab
Department of ECE-CREC-Tirupati Page 34
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;
Digital Communication Systems Lab
Department of ECE-CREC-Tirupati Page 35
wave forms:
Result:
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5
-2
-1
0
1
2
QPSK signal
t---->
s(t)
1 2 3 4 5 6 7 8
0
0.2
0.4
0.6
0.8
1
binary data bits
n---->
b(n)
3 3.2 3.4 3.6 3.8 4 4.2 4.4
-1.5
-1
-0.5
0
0.5
1
1.5
carrier signal-1
t---->
c1(t)
3 3.2 3.4 3.6 3.8 4 4.2 4.4
-1.5
-1
-0.5
0
0.5
1
1.5
carrier signal-2
t---->
c2(t)
1 2 3 4 5 6 7 8
0
0.2
0.4
0.6
0.8
1
qpsk demodulated bits
n---->
b(n)

More Related Content

PPS
Pulse modulation
PPSX
CPLD xc9500
PPTX
Digital to analog conversion
PPT
PULSE CODE MODULATION (PCM)
PDF
Introduction to pll
PPTX
PPTX
LOW POWER DESIGN VLSI
Pulse modulation
CPLD xc9500
Digital to analog conversion
PULSE CODE MODULATION (PCM)
Introduction to pll
LOW POWER DESIGN VLSI

What's hot (20)

PPTX
Contamination delay
PPTX
Low power in vlsi with upf basics part 1
PDF
System On Chip
PPTX
Lecture 22 Threshold effects in FM.pptx
PDF
Unit III ARM Interface and ARM Programming
PPTX
Fpga architectures and applications
PPT
Verilog Lecture4 2014
PPTX
SOP POS, Minterm and Maxterm
PPT
DAC-digital to analog converter
PDF
Unit II Arm7 Thumb Instruction
PDF
Complex Programmable Logic Devices(CPLD) & Field Programmable Logic Devices (...
PDF
Unit 3 mpmc
PPTX
LPC 2148 ARM MICROCONTROLLER
PPT
Digital Filters Part 1
PDF
Phase-locked Loops - Theory and Design
PPTX
Magnitude comparator
PPTX
8086 microprocessor-architecture
PPTX
Time delay programs and assembler directives 8086
PPTX
Pulse modulation
Contamination delay
Low power in vlsi with upf basics part 1
System On Chip
Lecture 22 Threshold effects in FM.pptx
Unit III ARM Interface and ARM Programming
Fpga architectures and applications
Verilog Lecture4 2014
SOP POS, Minterm and Maxterm
DAC-digital to analog converter
Unit II Arm7 Thumb Instruction
Complex Programmable Logic Devices(CPLD) & Field Programmable Logic Devices (...
Unit 3 mpmc
LPC 2148 ARM MICROCONTROLLER
Digital Filters Part 1
Phase-locked Loops - Theory and Design
Magnitude comparator
8086 microprocessor-architecture
Time delay programs and assembler directives 8086
Pulse modulation
Ad

Similar to Adc lab (20)

PDF
DIGITAL COMMUNICATIONS LABiddooydgdgdgxgkdkkgxgxhxxhhd.pdf
PDF
PC based oscilloscope
PDF
Cs manual 2021
PDF
lecturenote_1681299989Chapter 5- digital transmission.pdf
PPT
Introduction to communication system lecture4
PDF
24071 digitalcommunication
DOCX
Dc lab Manual
PDF
ADC LAB BY PROF. KRISHNANAIK AND SUMAN FROM CDU
PDF
Digital Implementation of Costas Loop with Carrier Recovery
PPT
ADVANCED COMMUNICATION BLOCK DIAGRAM System
PDF
MVR - PULSE ANALOG MODULATION_PAM PWM PPM (1).pdf
PPTX
communication systems for second year ECE
PPTX
DC Unit 1 PPT has useful topics like.pptx
PPTX
DC Unit 1 PPT has useful topics like.pptx
PPTX
Final presentation
PPTX
Data acquisition and conversion
PDF
Signal conversion
PPTX
communication concepts on sampling process
PPTX
Digital circuits in electronics and communication eng
DIGITAL COMMUNICATIONS LABiddooydgdgdgxgkdkkgxgxhxxhhd.pdf
PC based oscilloscope
Cs manual 2021
lecturenote_1681299989Chapter 5- digital transmission.pdf
Introduction to communication system lecture4
24071 digitalcommunication
Dc lab Manual
ADC LAB BY PROF. KRISHNANAIK AND SUMAN FROM CDU
Digital Implementation of Costas Loop with Carrier Recovery
ADVANCED COMMUNICATION BLOCK DIAGRAM System
MVR - PULSE ANALOG MODULATION_PAM PWM PPM (1).pdf
communication systems for second year ECE
DC Unit 1 PPT has useful topics like.pptx
DC Unit 1 PPT has useful topics like.pptx
Final presentation
Data acquisition and conversion
Signal conversion
communication concepts on sampling process
Digital circuits in electronics and communication eng
Ad

More from xyxz (20)

PDF
Optimal reception-of-digital-signals
PDF
Optimal reception-of-digital-signals-2
PDF
Optimal reception-of-digital-signals
PPT
Complex propagation
PPT
Digital class
PPTX
New ways of teaching entrepreneurship
PDF
Bits and bandwidth
PPTX
Io t system management with
PDF
Mpmc unit-string manipulation
PDF
Lp iot-iv-ece- 2019-20
PDF
Jntuh b.tech 3 year ece r16 syllabus
PPTX
Devicemgmt
PDF
29fe586301a42c2d2e7279d658da178ae1e6
PDF
Lecture notes front page sample (1) copy
PDF
Jntua ece 3rd &amp; 4th year (r15) syllabus (1) split-merge-1-4-1-2
PDF
Ilovepdf merged
PDF
Dc lab manual
DOC
Dcs lesson plan 18 19
PDF
04 sequential circuits
PDF
507 block 1_lesson_1
Optimal reception-of-digital-signals
Optimal reception-of-digital-signals-2
Optimal reception-of-digital-signals
Complex propagation
Digital class
New ways of teaching entrepreneurship
Bits and bandwidth
Io t system management with
Mpmc unit-string manipulation
Lp iot-iv-ece- 2019-20
Jntuh b.tech 3 year ece r16 syllabus
Devicemgmt
29fe586301a42c2d2e7279d658da178ae1e6
Lecture notes front page sample (1) copy
Jntua ece 3rd &amp; 4th year (r15) syllabus (1) split-merge-1-4-1-2
Ilovepdf merged
Dc lab manual
Dcs lesson plan 18 19
04 sequential circuits
507 block 1_lesson_1

Recently uploaded (20)

PDF
FORM 1 BIOLOGY MIND MAPS and their schemes
PPTX
Computer Architecture Input Output Memory.pptx
PDF
English Textual Question & Ans (12th Class).pdf
PDF
CRP102_SAGALASSOS_Final_Projects_2025.pdf
PDF
Journal of Dental Science - UDMY (2021).pdf
PDF
BP 505 T. PHARMACEUTICAL JURISPRUDENCE (UNIT 2).pdf
PDF
My India Quiz Book_20210205121199924.pdf
DOCX
Cambridge-Practice-Tests-for-IELTS-12.docx
PDF
BP 505 T. PHARMACEUTICAL JURISPRUDENCE (UNIT 1).pdf
PDF
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
PPTX
Unit 4 Computer Architecture Multicore Processor.pptx
PDF
1.3 FINAL REVISED K-10 PE and Health CG 2023 Grades 4-10 (1).pdf
PDF
Climate and Adaptation MCQs class 7 from chatgpt
PDF
Skin Care and Cosmetic Ingredients Dictionary ( PDFDrive ).pdf
PDF
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
PDF
Empowerment Technology for Senior High School Guide
PDF
IP : I ; Unit I : Preformulation Studies
PPTX
Core Concepts of Personalized Learning and Virtual Learning Environments
PDF
Journal of Dental Science - UDMY (2022).pdf
PDF
Journal of Dental Science - UDMY (2020).pdf
FORM 1 BIOLOGY MIND MAPS and their schemes
Computer Architecture Input Output Memory.pptx
English Textual Question & Ans (12th Class).pdf
CRP102_SAGALASSOS_Final_Projects_2025.pdf
Journal of Dental Science - UDMY (2021).pdf
BP 505 T. PHARMACEUTICAL JURISPRUDENCE (UNIT 2).pdf
My India Quiz Book_20210205121199924.pdf
Cambridge-Practice-Tests-for-IELTS-12.docx
BP 505 T. PHARMACEUTICAL JURISPRUDENCE (UNIT 1).pdf
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
Unit 4 Computer Architecture Multicore Processor.pptx
1.3 FINAL REVISED K-10 PE and Health CG 2023 Grades 4-10 (1).pdf
Climate and Adaptation MCQs class 7 from chatgpt
Skin Care and Cosmetic Ingredients Dictionary ( PDFDrive ).pdf
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
Empowerment Technology for Senior High School Guide
IP : I ; Unit I : Preformulation Studies
Core Concepts of Personalized Learning and Virtual Learning Environments
Journal of Dental Science - UDMY (2022).pdf
Journal of Dental Science - UDMY (2020).pdf

Adc lab

  • 1. Digital Communication Systems Lab Department of ECE-CREC-Tirupati Page 1 Expt-no:1 TIME DIVISION MULTIPLEXING AND DEMULTIPLEXING Aim: 1. To study the 4 channel analog multiplexing and demultiplexing 2. To study the effect of sampling frequency on output signal characteristics. 3.To study the effect of input signal amplitude on the output signal characteristics . Apparatus required: 1. Time Division Multiplexing and de multiplexing trainer Kit. 2. Dual Trace oscilloscope Theory: In PAM, PPM the pulse is present for a short duration and for most of the time between the two pulses no signal is present. This free space between the pulses can be occupied by pulses from other channels. This is known as Time Division Multiplexing. Thus, time division multiplexing makes maximum utilization of the transmission channel. Each channel to be transmitted is passed through the low pass filter. The outputs of the low pass filters are connected to the rotating sampling switch (or) commutator. It takes the sample from each channel per revolution and rotates at the rate of f s . Thus the sampling frequency becomes fs the single signal composed due to multiplexing of input channels. These channels signals are then passed through low pass reconstruction filters. If the highest signal frequency present in all the channels is f m , then by sampling theorem, the sampling frequency f s must be such that f s ≥2f m . Therefore, the time space between successive samples from any one input will be T s =1/f s, and T s ≤ 1/2fm.
  • 2. Digital Communication Systems Lab Department of ECE-CREC-Tirupati Page 2 Circuit Diagram: Fig: 1 Time Division Multiplexing And Demultiplexing Circuit Procedure: There are 4 signal sources; a) AF Signal generator b) Triangular wave generator c) Square wave generator and d) Sine wave generator 1 . Connect these four signals to four inputs of the Multiplexer. Adjust each signal amplitude to be with in +/-2V (p-p) and frequency non-over lapping within a frequency band of 300Hz. 2. Connect A, B output of 7476 to A 1 , B l inputs of Multiplexer. 3. Adjust the frequency of IC 8038 (Square wave, triangular wave generator) to
  • 3. Digital Communication Systems Lab Department of ECE-CREC-Tirupati Page 3 be around 32 KHz, so that each of the Four channels are sampled at 8 KHz. 4. Adjust the pulse width of 555 timers to be around 10μsecs. 5. Observe the 4 output pin 11 of 7476 on one channel 1and TDM output pin 13 of CD4052 on second channel of oscilloscope. Synchronize scope Internal-CH 1 mode. All the multiplexed channels are observed during the full period of the clock (1/32 KHz). 6. Connect TDM output to comparator –ve input and saw tooth wave to +ve Input. Observe the Comparator output. The PAM pulses are now converted in to PWM pulses. 7. Connect the PWM pulses to TDM input of De multiplexer at pin 3 of second CD4052. Observe the individual outputs Y0, Y1, Y2, and Y3 at pin 1, 5, 2 & 4 of CD4052 respectively. The PWM pulses corresponding to each channels are now separated as 4 streams. 8. Take one output and connect it to Low Pass Filter and the Low Pass Filter output to Amplifier. Observe the output of the amplifier in conjunction with the corresponding input. Repeat this for all 4 inputs. This is the Demodulated TDM output. Any slight variation in frequency, amplitude is reflected in the corresponding output. Observations:
  • 4. Digital Communication Systems Lab Department of ECE-CREC-Tirupati Page 4 Model Waveform: Multiplexed output Demultiplexed output RESULT:
  • 5. Digital Communication Systems Lab Department of ECE-CREC-Tirupati Page 5 Expt-no:2 PULSE CODE MODULATION & DEMODULATION AIM: To generate a PCM signal using PCM modulator and detect the message signal using PCM demodulator. APPARATUS REQUIRED: 1. PCM kit 2. CRO 3. Connecting probes THEORY: Pulse code modulation is a process of converting an analog signal into digital. The voice or any data input is first sampled using a sampler (which is a simple switch) and then quantized. Quantization is the process of converting a given signal amplitude to an equivalent binary number with fixed number of bits. This quantization can be either midtread or mid-raise and it can be uniform or non- uniform based on the requirements. For example in speech signals, the higher amplitudes will be less frequent than the low amplitudes. So higher amplitudes are given less step size than the lower amplitudes and thus quantization is performed non-uniformly. After quantization the signal is digital and the bits are passed through a parallel to serial converter and then launched into the channel serially. At the demodulator the received bits are first converted into parallel frames and each frame is de-quantized to an equivalent analog value. This analog value is thus equivalent to a sampler output. This is the demodulated signal. In the kit this is implemented differently. The analog signal is passed through a ADC (Analog to Digital Converter) and then the digital codeword is passed through a parallel to serial converter block. This is modulated PCM. This is taken by the Serial to Parallel converter and then through a DAC to get the demodulated
  • 6. Digital Communication Systems Lab Department of ECE-CREC-Tirupati Page 6 signal. The clock is given to all these blocks for synchronization. The input signal can be either DC or AC according to the kit. The waveforms can be observed on a CRO for DC without problem.AC also can be observed but with poor resolution. PROCEDURE: 1. Make the connections as per the diagram as shown in the Fig.1.and switch on the power supply of the trainer kit. 2. Clock generator generates a 20 KHz clock .This can be given as input to the timing and control circuit and observe the sampling frequency fs= 2 KHz approximately at the output of timing and control circuit. 3. Apply the signal generator output of 6V(p-p) approximately to the A to D converter input and note down the binary word from LED’s i.e. LED “ON” represents ‘1’ & “OFF” represents ‘0’ 4. Feed the PCM waveform to the demodulator circuit and observe the waveform at the output of D/A which is quantized level. Circuit Diagram:
  • 7. Digital Communication Systems Lab Department of ECE-CREC-Tirupati Page 7 Wave forms:
  • 8. Digital Communication Systems Lab Department of ECE-CREC-Tirupati Page 8 Calculations: Result:
  • 9. Digital Communication Systems Lab Department of ECE-CREC-Tirupati Page 9 Expt No:3 DIFFERENTIAL PULSE CODE MODULATION AIM: To Study & understand the operation of the DPCM EQUIPMENT REQUIRED: 1. DPCM Modulator & Demodulator trainer 2. Storage Oscilloscope 3. Digital Multimeter 4. 2 No’s of co- axial cables (standard accessories with trainer) 5. Patch chords THEORY: In this DPCM instead of transmitting a base band signal m(t) we send the difference signal of Kth sample and (k-1) th sample value. The advantage here is fewer levels are required to quantize the difference than the required to quantize m(t) and correspondingly, fewer bits will be needed to encode the levels. If we know the post behaviour of a signal up to a certain time, it is possible to make some interference about its future values this is called prediction. The filter designed to perform the prediction is called a predictor. The difference between the interest and the predictor o/p is called the prediction error. Circuit Diagram:
  • 10. Digital Communication Systems Lab Department of ECE-CREC-Tirupati Page 10 Procedure: 1. Switch on the experimental kit. 2. Apply the variable DC signal of amplitude 6v(p-p) with frequency of 80Hz to the input terminals of DPCM modulator. 3. Observe the sampling signal of amplitude 5v (p-p) with frequency 20KHz on channel 1 of a CRO. 4. Observe the output of DPCM on the second channel. 5. By adjusting the DC voltage potentiometer, observe the DPCM output. 6. During the demodulation connect DPCM output to the input of demodulator and observe the output of DPCM demodulator. Waveform: Result:
  • 11. Digital Communication Systems Lab Department of ECE-CREC-Tirupati Page 11 Expt-No:4 DELTA MODULATION & DEMODULATION AIM: To study the characteristics of Delta Modulation and Demodulation. EQUIPMENT REQUIRED: 1. DM Modulator & Demodulator trainer 2. Storage Oscilloscope 3. Digital multimeter. 4. 2 No’s co-axial cables (standard accessories with trainer) THEORY: Delta modulation is almost similar to differential PCM. In this, only one bit is transmitted per sample just to indicate whether the present sample is larger or smaller than the previous one. The encoding, decoding and quantizing process become extremely simple but this system cannot handle rapidly varying samples. This increases quantizing noise. It has also not found wide acceptance. Circuit Diagram:
  • 12. Digital Communication Systems Lab Department of ECE-CREC-Tirupati Page 12 Procedure: 1. Switch on the experimental board. 2. Connect the clock signal of frequency of 10KHz,with amplitude of 5v(p-p) to the delta modulator circuit. 3. Connect the modulating signal of amplitude 5v(p-p) and frequency of of 0.2KHz modulating input of the delta modulator And observe the same on channel 1 of a Dual Trace oscilloscope. 4. Observe the Delta Modulator output on channel 2. 5. Connect this Delta modulator output to the Demodulator 6. Also connect the clock signal to the demodulator. 7. Observe the Demodulator output with and without RC filter on CRO.
  • 13. Digital Communication Systems Lab Department of ECE-CREC-Tirupati Page 13 Model Waveforms: Result:
  • 14. Digital Communication Systems Lab Department of ECE-CREC-Tirupati Page 14 Expt-No:5 FREQUENCY SHIFT KEYING AIM: To study the characteristics of Frequency Shift keying EQUIPMENT REQUIRED: 1. Frequency Shift Keying system trainer 2. Dual trace Oscilloscope 3. Digital multimeter 4. Digital frequency counter THEORY: Frequency Shift Keying (FSK) is a modulation/ Data transmitting technique in which carrier frequency is shifted between two distinct fixed frequencies to represent logic 1 and logic 0. The low carrier frequency represents a digital 0 (space) and higher carrier frequency is a 1 (mark). FSK system has a wide range of applications in low speed digital data transmission systems. Wave forms are shown in Figure. FSK Modulating & Demodulating circuitry can be developed in number of ways, familiar VCO and PLL circuits are used in this trainer. Procedure: 1. Connect the circuit as shown in fig.1 2. Apply the (binary) Data input of amplitude 20V (p-p) with frequency of 6 KHz from function generator to pin no.7. 3. Give the power supply of 10v to the appropriate pins. 4. Observe the FSK output at pin no.2. 5. Now note down the mark and space frequencies for different carrier frequencies.
  • 15. Digital Communication Systems Lab Department of ECE-CREC-Tirupati Page 15 6. Calculate the maximum frequency deviation and modulation index. 7. Repeat the steps (5) and (6) for different pulse durations of binary input. Circuit Diagram: Fig: Block diagram for Frequency Shift Keying Procedure: 1 Connect the AC Adaptor to the mains and the other side to the Experimental Trainer. Switch‘ON’ the power. 2 Connect ‘Data Input’s socket to ground 3 Connect the FSK output to the Ch1 of the Oscilloscope and trigger the scope from Ch1. 4 Set the ‘ Freq. Adj ’ Potentiometer So that the output is around 30 kHz approx. 5 Set the Switches for required word pattern. Push the load switch momentarily and release . This will parallel load the word pattern and then shifts the pattern that is set Adjust the required frequency of the clock. 6 Connect the Data input to ‘ Ground’, Measure the frequency. 7 Connect the ‘ Data output ‘ to ‘ Data input ‘ .
  • 16. Digital Communication Systems Lab Department of ECE-CREC-Tirupati Page 16 8 Observe the Data output on CH1 and FSK output on CH2. 9 Observe that at each negative transition’ ‘ the carrier switches from high to low and every positive transition ‘ ‘ the frequency switches from low to high. 10 Connect ’FSK output ‘ to ‘ FSK input ’ of the Demodulator. 11 Adjust P3 to regenerate the Data correctly. 12 Compare the Demod output to the Data output which are identical in nature. 13 Change the Data Pattern as mentioned in sl No 6, and Observe the Demod output again. Model Waveform:
  • 17. Digital Communication Systems Lab Department of ECE-CREC-Tirupati Page 17 Tabulations: Result:
  • 18. Digital Communication Systems Lab Department of ECE-CREC-Tirupati Page 18 Expt-No:6 Differential phase shift keying AIM: To study the characteristics of differential phase shift keying. EQUIPMENT REQUIRED: 1. Differential Phase Shift Keying Kits 2. C.R.O 3. Digital multimeter. 4. No’s of coaxial cables (standard accessories with trainer) 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. DPSK DEMODULATOR: Fig shows the DPSK modulator. This consists of PSK modulator and differential encoder. PSK Modulator: IC CD 4052 is a 4 channel analog multiplexer and is used as an active component in this circuit. One of thecontrol 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 i.e., encoded data. Un shifted 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 control signal is at high voltage, output of the 4052 is connected to CH1 and un-shifted (or 0 phase) carrier is passed on to output. Similarly when control signal is at zero voltage output of 4052 is connected to CH2 and carrier shifted by 1800 is passed on to output.
  • 19. Digital Communication Systems Lab Department of ECE-CREC-Tirupati Page 19 Differential encoder: This consists of 1 bit delay circuit and an X-NOR Gate. 1 bit delay circuit is formed by a D-Latch. Data signal i.e., signal to be transmitted is connected to one of the input of the X-NOR gate and other one being connected to out of the delay circuit. Output of the X-NOR gate and is connected to control input of the multiplexer (IC 4052) and as well as to input of the D-Latch. Output of the X-NOR gate is 1 when both the inputs are same and it is 0 when both the inputs are different. Circuit Diagram: /
  • 20. Digital Communication Systems Lab Department of ECE-CREC-Tirupati Page 20 Procedure: 1. Switch on the experimental board. 2. Check the carrier signal and the data generator signals initially. 3. Apply the carrier signal of amplitude 6v (p-p) with frequency of1KHz to the carrier input, the data input of amplitude 5v (p-p) with frequency of 600Hz to the data input and bit clock of amplitude 5v (p-p) with and frequency of 1 KHz to the DPSK modulator. 4. Observe the DPSK wave of amplitude 5.6v (p-p) and frequency of 1 KHz with respect to the input data generated signal of dual trace oscilloscope. 5. Give the output of the DPSK modulator signal to the input of demodulator, give the bit clock output to the bit clock input to the demodulator and also give the carrier output to the carrier input of demodulator. 6. Observe the demodulator output with respect to data generator signal.
  • 21. Digital Communication Systems Lab Department of ECE-CREC-Tirupati Page 21 Waveform: Result:
  • 22. Digital Communication Systems Lab Department of ECE-CREC-Tirupati Page 22 Software Programs using MATLAB
  • 23. Digital Communication Systems Lab Department of ECE-CREC-Tirupati Page 23 EXPT. NO-1 Time Division Multiplexing AIM:To write a MATLAB program for time division multiplexing and to observe the output wave forms. Requirements:PC and MATLAB software Description:Time-division multiplexing (TDM) is a method of transmitting and receiving independent signals over a common signal path by means of synchronized switches at each end of the transmission line so that each signal appears on the line only a fraction of time in an alternating pattern. The circuit that combines signals at the source (transmitting) end of a communications link is known as a multiplexer. It accepts the input from each individual end user, breaks each signal into segments, and assigns the segments to the composite signal in a rotating, repeating sequence. The composite signal thus contains data from multiple senders. At the other end of the long-distance cable, the individual signals are separated out by means of a circuit called a demultiplexer, and routed to the proper end users. A two-way communications circuit requires a multiplexer/demultiplexer at each end of the long-distance, high-bandwidth cable. Program: clc; close all; clear all; % Signal generation x=0:.5:4*pi; % siganal taken upto 4pi sig1=8*sin(x); % generate 1st sinusoidal signal l=length(sig1); sig2=8*triang(l); % Generate 2nd traingular Sigal % Display of Both Signal subplot(2,2,1); plot(sig1); title('Sinusoidal Signal'); ylabel('Amplitude--->'); xlabel('Time--->'); subplot(2,2,2); plot(sig2); title('Triangular Signal'); ylabel('Amplitude--->'); xlabel('Time--->');
  • 24. Digital Communication Systems Lab Department of ECE-CREC-Tirupati Page 24 % Display of Both Sampled Signal subplot(2,2,3); stem(sig1); title('Sampled Sinusoidal Signal'); ylabel('Amplitude--->'); xlabel('Time--->'); subplot(2,2,4); stem(sig2); title('Sampled Triangular Signal'); ylabel('Amplitude--->'); xlabel('Time--->'); l1=length(sig1); l2=length(sig2); for i=1:l1 sig(1,i)=sig1(i); % Making Both row vector to a matrix sig(2,i)=sig2(i); end % TDM of both quantize signal tdmsig=reshape(sig,1,2*l1); % Display of TDM Signal figure stem(tdmsig); title('TDM Signal'); ylabel('Amplitude--->'); xlabel('Time--->'); % Demultiplexing of TDM Signal demux=reshape(tdmsig,2,l1); for i=1:l1 sig3(i)=demux(1,i); % Converting The matrix into row vectors sig4(i)=demux(2,i); end % display of demultiplexed signal figure subplot(2,1,1) plot(sig3); title('Recovered Sinusoidal Signal'); ylabel('Amplitude--->'); xlabel('Time--->'); subplot(2,1,2) plot(sig4); title('Recovered Triangular Signal'); ylabel('Amplitude--->'); xlabel('Time--->'); Result:
  • 25. Digital Communication Systems Lab Department of ECE-CREC-Tirupati Page 25 Model wave forms: 0 10 20 30 -10 -5 0 5 10 Sinusoidal Signal Amplitude---> Time---> 0 10 20 30 0 2 4 6 8 Triangular Signal Amplitude---> Time---> 0 10 20 30 -10 -5 0 5 10 Sampled Sinusoidal Signal Amplitude---> Time---> 0 10 20 30 0 2 4 6 8 Sampled Triangular Signal Amplitude---> Time---> 0 10 20 30 40 50 60 -8 -6 -4 -2 0 2 4 6 8 TDM Signal Amplitude---> Time---> 0 5 10 15 20 25 30 -10 -5 0 5 10 Recovered Sinusoidal Signal Amplitude---> Time---> 0 5 10 15 20 25 30 0 2 4 6 8 Recovered Triangular Signal Amplitude---> Time--->
  • 26. Digital Communication Systems Lab Department of ECE-CREC-Tirupati Page 26 EXPT. NO-2 Pulse Code Modulation AIM:To write a MATLAB program for Pulse Code Modulation and to observe the output wave forms. Requirements:PC and MATLAB software Description: Pulse code modulation (PCM) is a digital scheme for transmitting analog data. The signals in PCM are binary; that is, there are only two possible states, represented by logic 1 (high) and logic 0 (low). This is true no matter how complex the analog waveform happens to be. Using PCM, it is possible to digitize all forms of analog data, including full- motion video, voices, music, telemetry, and virtual reality (VR). To obtain PCM from an analog waveform at the source (transmitter end) of a communications circuit, the analog signal amplitude is sampled (measured) at regular time intervals.The sampling rate, or number of samples per second, is several times the maximum frequency of the analog waveform in cycles per second or hertz. The instantaneous amplitude of the analog signal at each sampling is rounded off to the nearest of several specific, predetermined levels. This process is called quantization. The number of levels is always a power of 2 -- for example, 8, 16, 32, or 64. These numbers can be represented by three, four, five, or six binary digits (bits) respectively. The output of a pulse code modulator is thus a series of binary numbers, each represented by some power of 2 bits. At the destination (receiver end) of the communications circuit, a pulse code demodulator converts the binary numbers back into pulses having the same quantum levels as those in the modulator. These pulses are further processed to restore the original analog waveform. Program: clc; close all; clear all; n=input('Enter n value for n-bit PCM system : '); n1=input('Enter number of samples in a period : '); L=2^n; x=0:2*pi/n1:4*pi; % n1 nuber of samples have tobe selected s=8*sin(x); subplot(3,1,1); plot(s);
  • 27. Digital Communication Systems Lab Department of ECE-CREC-Tirupati Page 27 title('Analog Signal'); ylabel('Amplitude--->'); xlabel('Time--->'); subplot(3,1,2); stem(s);grid on; title('Sampled Signal'); ylabel('Amplitude--->'); xlabel('Time--->'); % Quantization Process vmax=8; vmin=-vmax; del=(vmax-vmin)/L; part=vmin:del:vmax; code=vmin-(del/2):del:vmax+(del/2); [ind,q]=quantiz(s,part,code); l1=length(ind); l2=length(q); for i=1:l1 if(ind(i)~=0) ind(i)=ind(i)-1; end i=i+1; end for i=1:l2 if(q(i)==vmin-(del/2)) % q(i)=vmin+(del/2); end end subplot(3,1,3); stem(q);grid on; title('Quantized Signal'); ylabel('Amplitude--->'); xlabel('Time--->'); % Encoding Process figure code=de2bi(ind,'left-msb'); k=1; for i=1:l1 for j=1:n coded(k)=code(i,j); j=j+1; k=k+1; end i=i+1; end subplot(2,1,1); grid on; stairs(coded); axis([0 100 -2 3]); title('Encoded Signal'); ylabel('Amplitude--->'); xlabel('Time--->');
  • 28. Digital Communication Systems Lab Department of ECE-CREC-Tirupati Page 28 % Demodulation Of PCM signal qunt=reshape(coded,n,length(coded)/n); index=bi2de(qunt','left-msb'); q=del*index+vmin+(del/2); subplot(2,1,2); grid on; plot(q); title('Demodulated Signal'); ylabel('Amplitude--->'); xlabel('Time--->'); Output: Enter n value for n-bit PCM system : 8 Enter number of samples in a period : 8 Result: 0 10 20 30 40 50 60 70 80 90 100 -2 -1 0 1 2 3 Encoded Signal Amplitude---> Time---> 0 2 4 6 8 10 12 14 16 18 -10 -5 0 5 10 Demodulated Signal Amplitude---> Time---> 0 2 4 6 8 10 12 14 16 18 -10 0 10 Analog Signal Amplitude---> Time---> 0 2 4 6 8 10 12 14 16 18 -10 0 10 Sampled Signal Amplitude---> Time---> 0 2 4 6 8 10 12 14 16 18 -10 0 10 Quantized Signal Amplitude---> Time--->
  • 29. Digital Communication Systems Lab Department of ECE-CREC-Tirupati Page 29 EXPT. NO-3 Delta modulation AIM:To write a MATLAB program for Delta Modulation and to observe the output wave forms. Requirements:PC and MATLAB software Description: A Delta modulation (DM or Δ-modulation) is an analog-to-digital and digital-to-analog signal conversion technique used for transmission of voice information where quality is not of primary importance. DM is the simplest form of differential pulse-code modulation (DPCM) where the difference between successive samples is encoded into n-bit data streams. In delta modulation, the transmitted data are reduced to a 1-bit data stream. Program: clc; clear all; close all; a=2; t=0:2*pi/50:2*pi; x=a*sin(t); l=length(x); plot(x,'r'); delta=0.2; hold on xn=0; for i=1:l; if x(i)>xn(i) d(i)=1; xn(i+1)=xn(i)+delta; else d(i)=0; xn(i+1)=xn(i)-delta; end end stairs(xn) hold on for i=1:d if d(i)>xn(i) d(i)=0; xn(i+1)=xn(i)-delta; else
  • 30. Digital Communication Systems Lab Department of ECE-CREC-Tirupati Page 30 d(i)=1; xn(i+1)=xn(i)+delta; end end plot(xn,'c'); legend('Analog signal','Delta modulation','Demodulation') title('DELTA MODULATION / DEMODULATION ') output: Result: 0 10 20 30 40 50 60 -2 -1.5 -1 -0.5 0 0.5 1 1.5 2 DELTA MODULATION / DEMODULATION Analog signal Delta modulation Demodulation
  • 31. Digital Communication Systems Lab Department of ECE-CREC-Tirupati Page 31 EXPT. NO-4 FREQUENCY SHIFT KEYING AIM:To write a MATLAB program for Frequency Shift Keying and to observe the output wave forms. Requirements:PC and MATLAB software Description: Frequency-shift keying (FSK) allows digital information to be transmitted by changes or shifts in the frequency of a carrier signal, most commonly an analog carrier sine wave. There are two binary states in a signal, zero (0) and one (1), each of which is represented by an analog wave form. This binary data is converted by a modem into an FSK signal, which can be transmitted via telephone lines, fiber optics or wireless media. FSK is commonly used for caller ID and remote metering applications. FSK is also known as frequency modulation (FM). Program: clc; close all; clear all; fc1=input('Enter the freq of 1st Sine Wave carrier:'); fc2=input('Enter the freq of 2nd Sine Wave carrier:'); fp=input('Enter the freq of Periodic Binary pulse (Message):'); amp=input('Enter the amplitude (For Both Carrier & Binary Pulse Message):'); amp=amp/2; t=0:0.001:1; c1=amp.*sin(2*pi*fc1*t);% For Generating 1st Carrier Sine wave c2=amp.*sin(2*pi*fc2*t);% For Generating 2nd Carrier Sine wave subplot(4,1,1); %For Plotting The Carrier wave plot(t,c1) xlabel('Time') ylabel('Amplitude') title('Carrier 1 Wave') subplot(4,1,2) %For Plotting The Carrier wave plot(t,c2) xlabel('Time') ylabel('Amplitude') title('Carrier 2 Wave') m=amp.*square(2*pi*fp*t)+amp;%For Generating Square wave message subplot(4,1,3) %For Plotting The Square Binary Pulse (Message)
  • 32. Digital Communication Systems Lab Department of ECE-CREC-Tirupati Page 32 plot(t,m) xlabel('Time') ylabel('Amplitude') title('Binary Message Pulses') for i=0:1000 %here we are generating the modulated wave if m(i+1)==0 mm(i+1)=c2(i+1); else mm(i+1)=c1(i+1); end end subplot(4,1,4) %For Plotting The Modulated wave plot(t,mm) xlabel('Time') ylabel('Amplitude') title('Modulated Wave') The following INPUTS GIVEN TO GENERATE FSK MODULATED WAVE: Enter the freq of 1st Sine Wave carrier:10 Enter the freq of 2nd Sine Wave carrier:30 Enter the freq of Periodic Binary pulse (Message):5 Enter the amplitude (For Both Carrier & Binary Pulse Message):4 Wave Forms: Result: 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 -2 0 2 Time Amplitude Carrier 1 Wave 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 -2 0 2 Time Amplitude Carrier 2 Wave 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 0 2 4 Time Amplitude Binary Message Pulses 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 -2 0 2 Time Amplitude Modulated Wave
  • 33. Digital Communication Systems Lab Department of ECE-CREC-Tirupati Page 33 EXPT. NO-5 QPSK Modulation and Demodulation AIM: To write a MATLAB program for QPSK Modulation and Demodulation and to observe the output wave forms. Requirements: PC and MATLAB software Description:Quadrature phase shift keying (QPSK) modulators are used to change the amplitude, frequency, and/or phase of a carrier signal in order to transmit information. QPSK devices modulate input signals by 0°, 90°, 180°, and 270° phase shifts. QPSK modulators modulators are used in conjunction with demodulators that extract information from the modulated, transmitted signal. Some QPSK modulators include an integral dielectric resonator oscillator. Others are suitable for military or wireless applications. QPSK modulators with root raised cosine (RRC) and Butterworth filters are also available. Program: 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));
  • 34. Digital Communication Systems Lab Department of ECE-CREC-Tirupati Page 34 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;
  • 35. Digital Communication Systems Lab Department of ECE-CREC-Tirupati Page 35 wave forms: Result: 0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 -2 -1 0 1 2 QPSK signal t----> s(t) 1 2 3 4 5 6 7 8 0 0.2 0.4 0.6 0.8 1 binary data bits n----> b(n) 3 3.2 3.4 3.6 3.8 4 4.2 4.4 -1.5 -1 -0.5 0 0.5 1 1.5 carrier signal-1 t----> c1(t) 3 3.2 3.4 3.6 3.8 4 4.2 4.4 -1.5 -1 -0.5 0 0.5 1 1.5 carrier signal-2 t----> c2(t) 1 2 3 4 5 6 7 8 0 0.2 0.4 0.6 0.8 1 qpsk demodulated bits n----> b(n)