Adc Merged Document
Adc Merged Document
ENGINEERING COLLEGE
(An Autonomous Institution)
Mambakkam - Medavakkam Main Road,
Ponmar, Chennai- 600127
Regulation 2022
Register Number:
Year/ Semester:
PRINCE SHRI VENKATESHWARA
PADMAVATHY ENGINEERING
COLLEGE
(An Autonomous Institution)
BONAFIDE CERTIFICATE
Name : ………………………………………………
Register No : ………………………………………………
Semester : ………………………………………………
Branch : ………………………………………………
Certified that this is a Bonafide Record of the work done by the above studentin the
22EC593 Analog And Digital Communication laboratory during the year 2024 - 2025.
Be a prominent institution for technical education and research to meet the global
challenges and demand for societal needs.
MISSION OF THE INSTITUTE
To develop the needed resources and infrastructure, and to establish
a conductive ambience for the teaching- learning process.
To nurture in the students, professional and ethical values, and to instill
in them a spirit of innovation and entrepreneurship.
To encourage in the students a desire for higher learning and research,
to equip them to face the global challenges.
To provide opportunities for students to get the needed additional skills
to make them industry ready.
To interact with industries and other organizations to facilitate transfer
of knowledge and know-how.
12. Life-long learning: Recognize the need for, and have the preparation and
ability to engage in independent and life-long learning in the broadest context of
technological change.
PROGRAM EDUCATIONAL OBJECTIVES (PEOs)
PSO 1 To design and develop systems for real time problems in the areas
related to electronics andcommunication engineering using latest Communication
Systems, Embedded Systems and VLSI.
PSO 2 To develop innovative eco-friendly solutions and products in the field
of electronics and communication engineering using cutting-edge hardware and
software tools along with analytical skills.
INSTRUCTIONS TO STUDENTS
Before entering the lab the student should carry the following
things (MANDATORY)
1. Identity card issued by the college.
2. Class notes
3. Lab observation book
4. Lab Manual
5. Lab Record
Student must sign in and sign out in the register provided when attending the
lab session without fail.
Come to the laboratory in time. Students, who are late more than 15 min., will
not be allowed to attend the lab.
Students need to maintain 100% attendance in lab if not a strict action will
be taken.
All students must follow a Dress Code while in the laboratory
Foods, drinks are NOT allowed.
All bags must be left at the indicated place.
Refer to the lab staff if you need any help in using the lab.
Respect the laboratory and its other users.
Workspace must be kept clean and tidy after experiment is completed.
Read the Manual carefully before coming to the laboratory and be sure about
what you are supposed to do.
Do the experiments as per the instructions given in the manual.
Copy all the programs to observation which are taught in class before attending
the lab session.
Students are not supposed to use floppy disks, pen drives without permission
of lab- in charge.
Lab records need to be submitted on or before the date of submission.
Syllabus
LIST OF EXPERIMENTS:
COURSE OUTCOMES:
CO PO1 PO2 PO3 PO4 PO5 PO6 PO7 PO8 PO9 PO10 PO11 PO12 PSO1 PSO2
/PO
CO1
3 3 1 1 1 - - 1 - 1 - 1 2 2
CO2
3 2 1 1 1 - - 1 - 1 - 1 1 2
CO3 3 2 2 1 1 1 1 2 2
1 - - - -
CO4
3 3 1 1 2 - - 1 - 1 - 1 2 2
CO5
3 2 2 1 2 - - 1 - 1 - 1 2 2
1-Low, 2-Meium, 3-High, ’-‘No correlation
RELEVANCE OF COURSE OUTCOMES , PO AND PSOs
Exp. Relevance of
Title of Experiments Relevance of PO/PSOs
No. Cos
1 AM Modulation and Demodulation CO1 PO1,2,3,4,5,8,10,12, Pso1,2
2 Generation & Detection of DSBSC CO1 PO1,2,3,4,5,8,10,12, Pso1,2
3 Generation & Detection of SSB CO1 PO1,2,3,4,5,8,10,12, Pso1,2
4 Generation & Detection of VSB CO1 PO1,2,3,4,5,8,10,12, Pso1,2
5 FM modulation and Demodulation CO2 PO1,2,3,4,5,8,10,12, Pso1,2
6 Pulse Amplitude Modulation CO2 PO1,2,3,4,5,8,10,12, Pso1,2
7 Pulse Position Modulation CO3 PO1,2,3,4,5,8,10,12, Pso1,2
8 Pulse Width Modulation CO3 PO1,2,3,4,5,8,10,12, Pso1,2
9 Sampling and Reconstruction CO4 PO1,2,3,4,5,8,10,12, Pso1,2
10 Time Division Multiplexing CO4 PO1,2,3,4,5,8,10,12, Pso1,2
11 Pulse Code Modulation and Demodulation CO4 PO1,2,3,4,5,8,10,12, Pso1,2
12. Delta Modulation and Demodulation CO4 PO1,2,3,4,5,8,10,12, Pso1,2
13. Simulation of ASK, FSK, BPSK-Generation and CO4 PO1,2,3,4,5,8,10,12, Pso1,2
Detection
14. Simulation of QPSK Generation and Detection CO4 PO1,2,3,4,5,8,10,12, Pso1,2
15. Simulation of QAM Modulation and Demodulation CO4 PO1,2,3,4,5,8,10,12, Pso1,2
16. Simulation of DPSK Generation and Detection CO4 PO1,2,3,4,5,8,10,12, Pso1,2
17. Simulation of Convolution codes CO5 PO1,2,3,4,5,8,10,12, Pso1,2
18. Simulation of Linear Block codes CO5 PO1,2,3,4,5,8,10,12, Pso1,2
19. Simulation of Cyclic codes CO5 PO1,2,3,4,5,8,10,12, Pso1,2
20. Communication link simulation CO5 PO1,2,3,4,5,8,10,12, Pso1,2
Additional Experiments
21. Generation of QPSK signal using kit CO5 PO1,2,3,4,5,8,10,12, Pso1,2
22. Study of DPSK modulation technique using kit CO5 PO1,2,3,4,5,8,10,12, Pso1,2
Open Based or Design Based Experiments
23. Implementation of Line coding techniques using kit CO3 PO1,2,3,4,5,8,10,12, Pso1,2
Table of Contents
Exp. No. Page
Title of Experiments Marks Signature
Date No.
1 AM Modulation and Demodulation
2 Generation & Detection of DSBSC
3 Generation & Detection of SSB
4 Generation & Detection of VSB
5 FM modulation and Demodulation
6 Pulse Amplitude Modulation
7 Pulse Position Modulation
8 Pulse Width Modulation
9 Sampling and Reconstruction
10 Time Division Multiplexing
11 Pulse Code Modulation and Demodulation
12. Delta Modulation and Demodulation
13. Simulation of ASK, FSK, BPSK-Generation
and Detection
14. Simulation of QPSK Generation and
Detection
Simulation of QAM Modulation and
15.
Demodulation
Simulation of DPSK Generation and
16.
Detection
17. Simulation of Convolution codes
Additional Experiments
21. Generation of QPSK signal using kit
22. Study of DPSK modulation technique
using kit
PSVPEC/ECE/22EC593/ ADC
LAB
EXP NO: DATE: AMPLITUDE MODULATION AND DEMODULATION
AIM:
APPARATUS REQUIRED:
- -
1 AM trainer kit 1
- -
2 Power cable As Required
- -
3 Patch cords As Required
-
4 CRO 20 MHZ 1
THEORY
MODULATIO
The main problem is that a high frequency carrier wave is used to carry the audio
signal and that we need to know how the audio signal should be “added” to the carrier wave. The
solution lies in changing some characteristic of carrier wave in accordance with the signal.
Under such conditions, the audio signal will be contained in the resultant wave. This process is
called modulation. This modulation is of three types namely amplitude modulation, frequency
modulation, phase modulation. Here, we shall be discussing about amplitude modulation only.
DEMODULATION
In demodulation process, the modulated signal is to be passed through an demodulater to
get the original audio signal. The demodulator used may be an envelope detector. The envelope
detector will demodulate the modulator signal and therefore reproduce the original message
signal.
PSVPEC/ECE/22EC593/ ADC
LAB
AM TRANSMITTER (MODULATOR)
PSVPEC/ECE/22EC593/ ADC
LAB
PROCEDURE:
1. A Modulating signal input is given to the amplitude modulator from the on-board
2. Modulating signal input to the amplitude modulator can also be given from an
3. If an external signal source with every low voltage level(below 100 Mv) is used then
this signal can be amplified using the audio amplifier before connecting to the input of the
amplitude modulator.
4. . The amplitude and the time duration of the carrier signal are observed and noted
down from the output of the amplitude modulator by keeping the amplitude knob of
5. Now increase the amplitude of the modulating signal to the required level.
6. The amplitude and time duration of the modulating signal are observed using a CRO
and tabulated.
7. Finally the amplitude modulated output is observed from the output of the amplitude
modulator stage and the amplitude and time duration of the AM wave are noted down.
9. The receiver circuit wiring is also done as shown in the wiring diagram.
10. The carrier frequency knob in the transmitter side is kept at a middle position.
11. The frequency tuning knob in the receiver is tuned slowly from one end to the other till
the point where the demodulated signal is obtained with minimum distortion & noise.
12. Now the amplitude and time duration of the received signal are noted down.
13. From the tabulated values the modulating signal, carrier signal, AM signal, &
PSVPEC/ECE/22EC593/ ADC
LAB
MODEL GRAPH
PSVPEC/ECE/22EC593/ ADC
LAB
GENERATION OF AMPLITUDE MODULATION
& DEMODULATION USING MATLAB
PROGRAM:
clc;
clear all;
close
all;
Ac=input('enter the carrier signal amplitude');
Am= input('enter the message signal amplitude');
fc= input('enter the carrier frequency');
fm=input('enter the message frequency');
m=input('enter modulation index');
t=input('enter the timeperiod');
Ac=input('enter carrier signal amplitude');
Am=input('enter message signal amplitude');
fc=input('enter carrier frequency');
fm=input('enter message frequency');%
fm<fc m=input('enter modulation index');
t=input('enter time period');
t1=linspace(0,t,1000);
y1=sin(2*pi*fm*t1); % message
signal y2=sin(2*pi*fc*t1); % carrier
signal eq=(1+m.*y1).*(Ac.*y2);
subplot(3,1,1);
plot(t1,y1);
xlabel('Time');
ylabel('Amplitude');
title('Message
signal')
subplot(3,1,2);
plot(t1,y2);
xlabel('Time');
ylabel('Amplitude');
title('Carrier
signal');
subplot(3,1,3);
plot(t1,eq);
plot(t1,eq,'r')
;
xlabel('Time');
ylabel('Amplitude');
PSVPEC/ECE/22EC593/ ADC
LAB
title('Modulated
signal');
PSVPEC/ECE/22EC593/ ADC
LAB
VIVA QUESTIONS:
AIM & PROGRAM OUTPUT & VIVA TOTAL PO’S & TIMELY GRAND
PROCEDURE & EXECUTION RESULT VOICE (30) PSO SUBMISSION TOTAL
(5) (10) (10) (5) LEARNT (10) (40)
RESULT:
PSVPEC/ECE/22EC593/ ADC
LAB
OUTPUT:
COMMAND WINDOW:
WAVEFORM:
PSVPEC/ECE/22EC593/ ADC
LAB
EXP.NO:
DATE: GENERATION & DETECTION OF DSBSC SIGNAL
AIM:
SOFTWARE
REQUIRED:
PROCEDURE:
PROGRAM:
clc;
clear all;
close
all;
Ac=input('enter carrier signal amplitude');
Am=input('enter message signal
amplitude'); fc=input('enter carrier
frequency'); fm=input('enter message
frequency'); t=0:0.000001:0.001;
m1=Am*sin(2*pi*fm*t);
subplot(4,1,1);
plot(t,m1);
xlabel('Time');
ylabel('Amplitude');
title('Message signal');
c1=Ac*sin(2*pi*fc*t)
; subplot(4,1,2);
plot(t,c1);
xlabel('Time');
ylabel('Amplitude');
title('Carrier
signal'); s1=m1.*c1;
PSVPEC/ECE/22EC593/ ADC
LAB
subplot(4,1,3);
hold on;
plot(t,s1);
plot(t,m1,'r:')
;
PSVPEC/ECE/22EC593/ ADC
LAB
plot(t,-
m1,'r:'); hold
off;
xlabel('Time')
;
ylabel('Amplitude');
title('DSB-SC
signal'); r=s1.*c1;
[b,a]=butter(1,0.01);
mr=filter(b,a,r);
subplot(4,1,4);
plot(t,mr);
VIVA QUESTIONS
AIM & PROGRAM & OUTPUT & VIVA TOTAL PO’S & TIMELY GRAND
PROCEDURE EXECUTION RESULT VOICE (30) PSO’S SUBMISSION TOTAL
(5) (10) (10) (5) LEARNT (10) (40)
RESULT:
PSVPEC/ECE/22EC593/ ADC
LAB
OUTPUT:
COMMAND WINDOW:
PSVPEC/ECE/22EC593/ ADC
LAB
EXP NO:3
DATE: GENERATION & DETECTION OF SSB
AIM:
SOFTWARE
REQUIRED:
PROCEDURE:
PROGRAM:
clc;
clear all;
close all
fs=8000
;
fm=20
;
fc=50;
Am=1;
Ac=1;
t=[0:0.1*fs]/fs;
subplot(3,2,1);
m1=Am*cos(2*pi*fm*t)
; plot(t,m1);
title('Message Signal');
m2=Am*sin(2*pi*fm*t);
subplot(3,2,2)
c1=Ac*cos(2*pi*fc*t);
plot(t,c1)
title('Carrier Signal');
c2=Ac*sin(2*pi*fc*t)
; subplot(3,2,3)
Susb=0.5*m1 .* c1-0.5*m2 .*
c2; plot(t,Susb);
title('SSB-SC Signal with
USB'); subplot(3,2,4);
Slsb=0.5*m1 .* c1+0.5*m2 .*
PSVPEC/ECE/22EC593/ ADC
LAB
c2; plot(t,Slsb);
title('SSB-SC Signal with
LSB'); r=Susb.*c1;
[b
a]=butter(1,0.00001);
mr=filter(b,a,r);
PSVPEC/ECE/22EC593/ ADC
LAB
subplot(3,2,5);
plot(t,mr);
title('reconstructed
signal');
VIVA QUESTIONS:
AIM & PROGRAM OUTPUT VIVA TOAL PO’S & TIMELY GRAND
PROCEDURE & & VOICE (30) PSO’S SUBMISSION TOTAL
(5) EXECUTION RESULT (5) LEARNED (10) (40)
(10) (10)
RESULT
PSVPEC/ECE/22EC593/ ADC
LAB
OUTPUT:
PSVPEC/ECE/22EC593/ ADC
LAB
EXP NO:4
DATE: GENERATION & DETECTION OF VSB
AIM:
SOFTWARE
REQUIRED:
PROCEDURE:
PROGRAM:
clc;
clear all;
close
all; fm =
10;
fc = 100;
Am = 1;
Ac = 1;
fs = 1000;
t = 0:1/fs:1;
m=
Am*cos(2*pi*fm*t); c =
Ac*cos(2*pi*fc*t);
vsb = (m.*c) + 0.5*Am*Ac*sin(2*pi*(fc-
fm)*t); subplot(3,1,1);
plot(t,m);
xlabel('Time (s)');
ylabel('Amplitude');
title('message
signal');
subplot(3,1,2);
plot(t,c)
xlabel('Time (s)');
ylabel('Amplitude');
title('carrier
PSVPEC/ECE/22EC593/ ADC
LAB
signal');
subplot(3,1,3);
plot(t, vsb);
title('Vestigial Side Band (VSB) Signal');
xlabel ('Time (s)');
ylabel('Amplitude')
PSVPEC/ECE/22EC593/ ADC
LAB
VIVA QUESTIONS:
AIM & PROGRAM & OUTPUT VIVA TOTAL PO’S & TIMELY GRAND
PROCEDURE EXECUTION & VOICE (30) PSO’S SUBMISSION TOTAL
(5) (10) RESULLT (5) LEARNED (10) (40)
(10)
RESULT:
PSVPEC/ECE/22EC593/ ADC
LAB
OUTPUT:
PSVPEC/ECE/22EC593/ ADC
LAB
EXP NO: 05 DATE: FREQUENCY MODULATION AND DEMODULATION
AIM:
APPARATUS REQUIRED:
List of
Sl. No. Type Range Quantity
components
- -
1 FM trainer 1
- -
2 Power As Per Required
- -
3 Patch cords As Per Required
-
4 CRO 20 MHZ 1
THEORY:
In radio transmission, it is necessary to send audio signal (eg. Music, speech etc) from a
broad casting station over great distances to a receiver. The audio signal cannot be sent directly over
the air for appreciable distance. Even if audio signal is converted into electrical signal, the latter
cannot be sent very far without employing large amount of power. The energy of a wave is directly
proportional to its frequency. At audio frequencies, (20Hz to 20KHz), the signal power is quite small
and radiation is not practicable. For it to be practicable, the frequency should be above 20KHz. If
audio signal is to be transmitted properly, some means must be devised which will permit
transmission to occur at high frequencies while it simultaneously allows the carrying of audio signal.
This is achieved by super imposing electrical audio signal on high frequency carrier. The resultant
waves are known as modulated waves or radio waves and the process is called “Modulation”. At the
radio receiver, the audio signal is extracted from the modulated wave by the process called
“Demodulation”.
PSVPEC/ECE/22EC593/ ADC
LAB
MODULATION
The main problem is that a high frequency carrier wave is used to carry the audio signal
and that we need to know how the audio signal should be “added” to the carrier wave. The solution
lies in changing some characteristic of carrier wave in accordance with the signal. Under such
conditions, the audio signal will be contained in the resultant wave. This process is called
modulation. This modulation is of three types namely amplitude modulation, frequency modulation,
phase modulation.
DEMODULATION
In demodulation process, the modulated signal is to be passed through an demodulater to
get the original audio signal. The demodulator used may be an envelope detector. The envelope
detector will demodulate the modulator signal and therefore reproduce the original message signal.
FM MODULATOR
PSVPEC/ECE/22EC593/ ADC
LAB
FM DEMODULATOR
PSVPEC/ECE/22EC593/ ADC
LAB
PROCEDURE
1. Connect the test point T1 and T7 of VCT - 12 using 2mm patch chord.
3. Tune the amplitude control POT of Audio oscillator section to fully anticlock wise
control POT at Frequency modulator section to minimum position (fully anticlockwise direction).
Note down carrier frequency of VCO which is observed using oscilloscope (or) spectrum analyser
6. Slowly turn frequency control POT P1 towards clockwise direction and observe the
VCO‟s frequency which is increasing on spectrum analyser, set POT P1 to maximum position note
7. Set back carrier frequency to 100 MHz using P1 potentiometer. Display the test point
T1 on oscilloscope, increase amplitude control POT in Audio oscillator section and set sinusoidal
amplitude to 1Vpp, turn frequency control POT in Audio oscillator section and set frequency of
Reduce
9. Connect the test point T8 and T9 using 2 mm patch chord to transmit FM signal
10. Make the following settings and connections on (Refer connection diagram) (Fig) Set
PSVPEC/ECE/22EC593/ ADC
LAB
TABULATION:
2 Carrier Input
3 FM Output
4 De mod output
MODEL GRAPH
PSVPEC/ECE/22EC593/ ADC
LAB
GENERATION OF WIDEBAND AND NARROW BAND USING MATLAB
PROGRAM:
clc;
clear all;
close
all;
t = 0:0.001:1;
vm = input('Enter Amplitude (Message) =
'); vc = input('Enter Amplitude (Carrier) =
'); fM = input('Enter Message frequency =
');
fc = input('Enter Carrier frequency = ');
m = input('Enter Modulation Index =
'); msg = vm*sin(2*pi*fM*t);
subplot(2,2,1);
plot(t,msg);
xlabel('Time');
ylabel('Amplitude');
title('Message ');
carrier =
vc*sin(2*pi*fc*t);
subplot(2,2,2);
plot(t,carrier);
xlabel('Time');
ylabel('Amplitude');
title('Carrier Signal');
y=
vc*sin(2*pi*fc*t+m.*cos(2*pi*fM*t));
subplot(2,2,3);
plot(t,y);
xlabel('Time');
ylabel('Amplitude');
title('Wide band frequency modulator');
m1 = input('Enter Modulation Index =
');
y1 =
vc*sin(2*pi*fc*t+m1.*cos(2*pi*fM*t));
subplot(2,2,4);
plot(t,y1);
xlabel('Time');
ylabel('Amplitude');
title('narrow band frequency modulator');
PSVPEC/ECE/22EC593/ADC
VIVA QUESTIONS:
AIM & PROGRAM & OUTPUT VIVA TOTAL PO’S & TIMELY GRAND
PROCEDURE EXECUTION & VOICE (30) PSO’S SUBMISSION TOTAL
(5) (10) RESULLT (5) LEARNED (10) (40)
(10)
RESULT:
PSVPEC/ECE/22EC593/ADC
EXP NO:6
DATE: PULSE AMPLITUDE MODULATION
AIM:
SOFTWARE
REQUIRED:
PROCEDURE:
PROGRAM:
clc;
clear all;
close
all;
Ac=input('enter carrier signal amplitude=');
Am=input('enter message signal
amplitude='); fc=input('enter carrier
frequency='); fm=input('enter message
frequency='); m=input('enter modulation
index=');
t = 0:0.001:1;
m=
Am*sin(2*pi*fm*t);
subplot(3,1,1);
plot(t,m);
xlabel('Time');
ylabel('Amplitude');
title('Message signal');
c=Ac*square(2*pi*fc*t)+Ac;
subplot(3,1,2);
plot(t,c);
xlabel('Time');
ylabel('Amplitude');
title('Carrier
signal'); s=m.*c;
PSVPEC/ECE/22EC593/ADC
subplot(3,1,3);
plot(t,s);
xlabel('Time');
ylabel('Amplitude');
title('PM signal');
PSVPEC/ECE/22EC593/ADC
OUTPUT:
COMMAND WINDOW :
PSVPEC/ECE/22EC593/ADC
VIVA QUESTIONS:
AIM & PROGRAM OUTPUT VIVA TOTAL PO’S & PSO TIMELY GRAND
PROCEDURE & & VOICE (30) LEARNED SUBMISSION TOTAL
(5) EXECUTION RESULT (5) (10) (40)
(10) (10)
RESULT:
PSVPEC/ECE/22EC593/ADC
EXP NO: 7 PULSE POSITION MODULATION
DATE:
AIM:
SOFTWARE REQUIRED:
PROCEDURE:
PROGRAM:
clc;
clear all;
close
all;
fm=input('enter message frequency fm
='); fc=input('enter carrier frequency fc
='); fs=input('enter sampling frequency
fs=');
t = 0:2/fs:(2/fm-1/fs);
m = 0.4*cos(2*pi*fm*t)
+0.5; Y =
modulate(m,fc,fs,'ppm');
subplot(3,1,1);
plot(t,m);
xlabel('Time');
ylabel('Amplitude');
title('Message
signal');
subplot(3,1,2);
plot(Y);
xlabel('Time');
ylabel('Amplitude');
title('PAM signal');
Z=
demod(Y,fc,fs,'ppm');
subplot(3,1,3);
PSVPEC/ECE/22EC593/ADC
plot(Z);
xlabel('Time');
ylabel('Amplitude');
title('demodulated signal');
PSVPEC/ECE/22EC593/ADC
OUTPUT:
COMMAND WINDOW:
PSVPEC/ECE/22EC593/ADC
VIVA QUESTIONS:
AIM & PROGRAM OUTPUT VIVA TOTAL PO’S & PSO TIMELY GRAND
PROCEDURE & & VOICE (30) LEARNED SUBMISSION TOTAL
(5) EXECUTION RESULT (5) (10) (40)
(10) (10)
RESULT:
PSVPEC/ECE/22EC593/ADC
EXP NO:8
DATE: PULSE WIDTH MODULATION
AIM:
SOFTWARE
REQUIRED:
PROCEDURE:
PROGRAM:
clc;
clear all;
close
all;
fs=input('comparator sawtooth
frequency:'); fm=input('message
frequency(sine wave):'); am=input('enter
amplitude of message:'); t=0:0.0001:1;
stooth=2*am.*sawtooth(2*pi*fs*t);
subplot(3,1,1);
plot(t,stooth);
title('comparator wave');
msg=am.*sin(2*pi*fm*t);
subplot(3,1,2);
plot(t,msg);
title('message
signal'); for
i=1:length(stooth)
if(msg(i)>=stooth(i)
) pwm(i)=1;
else
pwm(i)=0
; end
end
subplot(3,1,3)
;
plot(t,pwm,'r');
title('pwm');
axis([0 1 0 1.1])
PSVPEC/ECE/22EC593/ADC
OUTPUT:
COMMAND WINDOW:
comparator sawtooth
frequency:10 message
frequency(sine wave):1 enter
amplitude of message:5
PSVPEC/ECE/22EC593/ADC
VIVA QUESTIONS :
AIM & PROGRAM OUTPUT VIVA TOTAL PO’S & PSO TIMELY GRAND
PROCEDURE & & VOICE (30) LEARNED SUBMISSION TOTAL
(5) EXECUTION RESULT (5) (10) (40)
(10) (10)
RESULT:
PSVPEC/ECE/22EC593/ADC
EXP NO: 09 DATE:
SIGNAL SAMPLING AND RECONSTRUCTION
AIM:
.
APPARATUS REQUIRED:
THEORY OF SAMPLING
In analog communication systems like AM, FM, the instantaneous value of the information
signal is used to change certain parameter of the carrier signal.Pulse modulation systems differ
from these systems in a way that transmit a limited no.of discrete states of a signal at
predetermined time sampling can be defined as measuring the value of an information signal at
predetermined time intervals. The rate at which the signal is sampled is known as the sampling
rate or sampling frequency.
It is the major parameter which decides the quality of the reproduced signal. If the signal is
sampled quite frequently (whose limit is specified by Nyquist Criterian), then it can be
reproduced exactly at the receiver with no distortion.
ALIASING
If the signal is sampled at a rate lower than stated by Nyquist criterion, then there is an overlap
between the information signal and the sidebands of the harmonics. Thus the higher and the lower
frequency components get mixed and causes unwanted signals to appear at the demodulator output.
This phenomenon is turned as Aliasing or Fold over Distortion.To avoid aliasing using anti aliasing
filter or the signal must satisfied the nyquist criterion (Fs ≥ 2 Fm )
The PAM system the message is recovered by a low pass filter. The type of filter used is very
important, as the signal above the cut-off frequency would affect the recovered signal if they are not
attenuated sufficiently.
IMPLEMENTATION OF
SAMPLING CONNECTION
DIAGRAM
NATURAL SAMPLING
PSVPEC/ECE/22EC593/ADC
SAMPLE AND HOLD
PSVPEC/ECE/22EC593/ADC
PROCEDURE
TABULATION:
1 Modulating Input
2 Sampling Input
3 Sampled Output
MODEL GRAPH
PSVPEC/ECE/22EC593/ADC
PROGRAM:
clc;
clear all;
close
all;
f=50;
t=0:1/100/f:1/f;
x=sin(2*pi*f*t)
; subplot(311);
plot(t,x);
title('analog signal
x(t)') xlabel('t');
ylabel('x(t)')
; n=50;
xs=sin(2*pi*(0:n)/n);
subplot(312);
stem((0:n),xs);
title('sampled signal
x[n]') xlabel('n');
ylabel('x[n]');
OUTPUT:
PSVPEC/ECE/22EC593/ADC
VIVA QUESTIONS:
AIM & PROGRAM OUTPUT VIVA TOTAL PO’S & PSO TIMELY GRAND
PROCEDURE & & VOICE (30) LEARNED SUBMISSION TOTAL
(5) EXECUTION RESULT (5) (10) (40)
(10) (10)
RESULT:
PSVPEC/ECE/22EC593/ADC
EXP NO: 10 DATE:TIME DIVISION MULTIPLEXING
AIM:
APPARATUS REQUIRED:
THEORY
MULTIPLEXE
Multiplexing is the process of combining signals from different information sources so that they can
be transmitted to a common channel. This is under taken by a multiplexer. A digital multiplexer is a
combinational circuit that selects data from 2 n input lines (or) group of lines and transmit them
through a single output line (or group of lines). Multiplexing is advantageous in cases where it is
impracticable and uneconomical to provide separate links for the different information sources. The
two most commonly used methods of multiplexing are,
i. Frequency Division Multiplexing
ii. Time Division Multiplexing.
It is the process of taking the samples from different information signals, in time
domain so that they can be transmitted over the same channel. The main fact in the TDM technique
is that there are large intervals between the message samples. The samples from the other sources are
placed with in these time intervals. Thus every sample is separated from other in time domain.
PSVPEC/ECE/22EC593/ADC
Here, each signal is sampled over one sampling interval and transmitted one after the other along a
common channel. But the receiving end has to follow some constraints. i. It must receive and show
the signal as the transmitted.
It must start at the same time as the transmitting end and establish electrical contact with
the same channel of the input channel. When the two conditions are met then the receiver end is said
to be in synchronization with the transmitter end. If the 1st condition is not met then the samples
different sources would get mixed out the receiver end and if the 2nd condition is not met then the
information from source '1' will be received by same other channel which is not intending to accept
the information from that particular channel.
In this mode of operation, the signals from all the channels are taken to the multiplexer and
are combined with the carrier signal produced by oscillator and the counter and then it is finally
multiplexed and sent through the transmission data signal (TXD) to the receiving data(RXD). The
clock signal is sent through CLK channel. The signals at the transmitter side are received at the
receiving side at respective points and the signals are demultiplexed and sent to respective channels
and the output is viewed out there.
PSVPEC/ECE/22EC593/ADC
CIRCUIT DIAGRAM
PROCEDURE
1. Switch ON the power supply to the boa rd.
2. Make initial settings on VCT- 02 as follows.
a) Set all sine wave voltages to 2V,
b) Make the wiring connections as in wiring diagram which is
provided at the end of this experiment.
3. Display the multiplexed signal at test point T14 on channel 1 and 250Hz sine wave
PSVPEC/ECE/22EC593/ADC
at test point T2 on channel 2 of oscilloscope, note down waveforms.
4. Display the 500Hz sine wave at test point T3 on channel 2 in place of
250Hz, identify sampled version of this sine wave in TDM signal and
note down.
5. Similarly observe 1KHz and 2KHz waveforms at test point T4 and T5
respectively on oscilloscope and note down.
6. Display the TDM waveform (test point T14) on channel 1 and channel
synchronization signal (test point T13) on channel 2 of oscilloscope and note down
waveforms.
7. Display 250Hz sine wave at test point T2 on channel 1 and output sine wave
at test point T16 on channel 2 of oscilloscope and note down waveforms.
8. Similarly, observe input and output 500Hz, 1KHz and 2KHz sine waves on
oscilloscope and note down.
TABULATION
MODEL GRAPH
PSVPEC/ECE/22EC593/ADC
PROGRAM:
clc;
clear all;
close
all;
fs=1000
; f1=50;
f2=100;
N=100;
n=0:N-1;
signal1=sin(2*pi*f1*n/fs);
signal2=cos(2*pi*f2*n/fs);
subplot(2,2,1);
plot(signal1);
title('signal 1');
ylabel('amplitude');
xlabel('time');
subplot(2,2,2);
plot(signal2);
title('signal 2');
ylabel('amplitude');
xlabel('time');
subplot(2,2,3);
stem(signal1);
title('sampled signal
1'); ylabel('amplitude');
xlabel('time');
subplot(2,2,4)
;
stem(signal2);
title(' sampled signal
2'); ylabel('amplitude');
xlabel('time');
l1=length(signal1);
l2=length(signal2);
for i=1:l1
signal(1,i)=signal1(i);
signal(2,i)=signal2(i);
end
tdmsignal=reshape(signal,1,2*l1);
figure
stem(tdmsignal);
title(' TDM
signal');
ylabel('amplitude');
xlabel('time');
demux=reshape(tdmsignal,2,l1);
for i=1:l1
signal3(i)=demux(1,i)
;
signal4(i)=demux(2,i)
PSVPEC/ECE/22EC593/ADC
;
end
figur
e
subplot(2,1,1)
;
plot(signal3);
PSVPEC/ECE/22EC593/ADC
title('signal1');
ylabel('amplitude');
xlabel('time');
subplot(2,1,2)
;
plot(signal4);
title('signal2');
ylabel('amplitude'); xlabel('time');
VIVA QUESTIONS:
AIM & PROGRAM OUTPUT VIVA TOTAL PO’S & PSO TIMELY GRAND
PROCEDURE & & VOICE (30) LEARNED SUBMISSION TOTAL
(5) EXECUTION RESULT (5) (10) (40)
(10) (10)
RESULT:
PSVPEC/ECE/22EC593/ADC
OUTPUT:
PSVPEC/ECE/22EC593/ADC
EXP NO: 11 DATE:
PULSE CODE MODULATION AND DEMODULATION
AIM:
APPARATUS REQUIRED:
- -
1 PCM trainer kit 1
- -
2 Power cable As Required
- -
3 Patch cords As Required
-
4 CRO 20 MHZ 1
THEORY
In pulse code modulation, each analog sample converted into eight bit code and they are transmitted
in serial form. The PCM system consists of a sample/hold circuit, analog to digital converter and
parallel to serial converter. The 1KHz on board sinewave signal can be used for studying modulation
and demodulation purpose. External sinewave can also be feed to the modulator section from an
external function generator which will be useful for studyingfrequency response of the system.
PSVPEC/ECE/22EC593/ADC
BLOCK DIAGRAM OF PULSE CODE MODULATION
PSVPEC/ECE/22EC593/ADC
CONNECTION DIAGRAM OF PULSE CODE MODULATICONNECTION DIAGRAM
PSVPEC/ECE/22EC593/ADC
PROCEDURE
Refer to the block diagram and carry out the following connections andswitch settings.
Connect the Power Supply with proper polarity to the kit DCL-08 andswitch it on.
Connect the 1 KHz sine wave signal generated onboard 1 KHz post toPAM IN Post.
TABULATION:
MODEL GRAPH:
PSVPEC/ECE/22EC593/ADC
VIVA QUESTIONS:
AIM & PROGRAM OUTPUT VIVA TOTAL PO’S & TIMELY GRAND
PROCEDURE & & VOICE (30) PSO SUBMISSION TOTAL
(5) EXECUTION RESULT (5) LEARNED (10) (40)
(10) (10)
RESULT:
PSVPEC/ECE/22EC593/ADC
EXP NO: 12 DATE:
DELTA MODULATION AND DEMODULATION
AIM:
APPARATUS REQUIRED:
- -
DM / ADM kit
1 1
- -
2 Power cable As Required
- -
3 Patch cords As Required
-
4 CRO 20 MHZ 1
THEORY
DELTA MODULATOR
The modulator comprises of comparator, quantizer and Integrator. The input base band
sinusoidal signal and its quantized approximated signals (feedback signal from integrator) are
applied to comparator. A comparator as its name suggests simply makes a comparison between
inputs. The comparator gives a TTL signal is then latched into a D-flipflop which is clocked by
selected clock rates. The binary data stream from the flip flop is transmitted to receiver and is
fed to the integrator. The integrator output is then connected to the negative terminal of the
voltage comparator.
DELTA DEMODULATOR
The demodulator comprises of simple, integrator and low pass filter. The receive delta
modulator signal is applied to integrator, its output tries to follow the analog signal. The
integrator output contains sharp edges which is smoothened out by the 4th order low pass filter.
PSVPEC/ECE/22EC593/ADC
DISTORTION
The distortion in delta modulation can be broken into two distinct areas, quantization
noise and idle channel noise (during zero input signal). The two major parameters s which affect
the distortion in delta modulation are the sampling rate f and step size s „)‟. Ideally the step size )
should be small as possible and sampling rate f as large as possible. Practical and economic
considerations limits the minimum step size of s „)‟ and the maximum sampling rate of f . These
limitations give rise to two types of distortions, slope overload noise and granular noise.
IDLE CHANNEL NOISE
Usually delta modulation in an idle state (there is no or zero input signal), generates
series of one‟s and zero‟s consecutively. This generates a square waveform at the output of
accumulator (or) feedback section called step size. The frequency of the step size is equal to that
of sampling clock of the DM system. This unnecessary square waveform doesn‟t affect the
decoder because of frequency of the step size (which will be attenuated due to low pass filter).
Slope overload and Granular noise
The system is said to be slope overload if the error exceeds, where two or more steps are
required to achieve the input level. The slope overload can be reduced by increasing step size
Of the system. The system exhibits granular noise if the error falls by , where two or more steps
are required to achieve the input level. The granular noise can be reduced bydecreasing step size
of the system
DELTA MODULATOR
PSVPEC/ECE/22EC593/ADC
DELTA DEMODULATON
PSVPEC/ECE/22EC593/ADC
PSVPEC/ECE/22EC593/ADC
PROCEDURE
1. Make wiring connection on the kit as shown in figure and connect the test points P1 to
P8 and P21 to P22 using patch chords provided with this training kit.
2. Ensure that all switches in switched faults block in OFF position and
6. Replace channel 1 waveform by modulator output serial data (test point P21 and compare
it with the sample signal on channel 2, every sample has been transmitted with
7. Plot all the noted waveforms such as modulating signal, S/H output and
8. Replace the channel 2 waveform by digital to analog converter (test point P33)
waveform.
9. Observe the recovered sine wave at test point P34, note down waveforms. Plot all
the notedwaveforms such as integrator signal, and recovered sine wave on a linear
graph sheet.
PSVPEC/ECE/22EC593/ADC
TABULATION:
1 Modulating Input
2 Sampled input
4 Demodulated output
MODEL GRAPH:
PSVPEC/ECE/22EC593/ADC
VIVA QUESTIONS:
AIM & PROGRAM OUTPUT VIVA TOTAL PO’S & PSO TIMELY GRAND
PROCEDURE & & VOICE (30) LEARNED SUBMISSION TOTAL
(5) EXECUTION RESULT (5) (10) (40)
(10) (10)
RESULT
PSVPEC/ECE/22EC593/ADC
EXP NO: 13 DATE:
SIMULATION OF ASK, FSK, BPSK GENERATION & DETECTION
AIM:
APPARATUS REQUIRED:
1. System
2. MAT LAB software
THEORY
FSK is one method used to overcome the bandwidth limitation of the telephone system so
that digital data can be sent over the phone lines. The basic idea of FSK is to represent 1sand 0s
by two different frequencies within the telephone bandwidth. The standard frequencies for a full
duplex 300 baud FSK Modulator & Demodulator in the originate modes are 1070 Hz for a 0 (called
a space) and 1270 Hz for a 1 (called a mark). In the answer mode, 2025 Hz is a 0and 2225 Hz is a 1.
The relationship of these FSK frequencies and the telephone bandwidth is illustrated in figure 1.
Signals in both the originate and answer bands can exist at the same timeon the phone line and they
do not interfere with each other because of the frequency separation.
The baud rate is the number of changes of the transmitted data. This can be determined by taking the
reciprocal of the time of the shortest pulse transmitted. A FSK Modulator & Demodulator sends and receives
serial data at a rate of 300 bits or 300 baud. For a 300 baud data stream, maximum frequency occurs when
the data stream has 0's and 1's alternatively and the frequency of this will be 150 Hz. As mentioned earlier
the telephone network has a bandwidth between 300Hz & 3000Hz. So the maximum frequency of 300 baud
data stream falls out of the bandwidth range of the telephone lines. This prevents sending digital data in its
pure form over the phone lines. FSK Modulator & Demodulator is one method used to overcome the
bandwidth limitation of the telephone network for digital data transmission.
As mentioned earlier in FSK, the standard frequency for a space is either 1070Hz or 2025 Hz
depending on the FSK Modulator & Demodulator mode and that of a mark is either 1270 Hz or 2225
Hz. All these frequencies come under the permissible frequency range of the telephone lines. Thus
the bandwidth limitation of the telephone line is overcome by the use of FSK.
PSVPEC/ECE/22EC593/ADC
ALGORITHM:
1. Start.
2. Get the data bits and compute its length.
3. Get the input frequency.
4. Generate the BPSK waveforms with their corresponding carrier frequency.
5. Obtain the output waveform.
6. Stop
% FSK Waveform
clc;
clear all;
close
all;
PSVPEC/ECE/22EC593/ADC
t=0:0.0001:0.15;
m=square(2*pi*10*t)
; c1=sin(2*pi*60*t);
c2=sin(2*pi*120*t);
s1=(m.*c1);
PSVPEC/ECE/22EC593/ADC
for
i=1:1500
if(m(i)==1)
s1(i)=c2(i)
; else
s1(i)=c1(i);
en
d
en
d
figure(2);
subplot(4,1,1);
plot(m);
xlabel('time');
ylabel('amplitude');
title('message
signal');
subplot(4,1,2);
plot(c1);
xlabel('time');
ylabel('amplitude');
title('carrier signal
1'); subplot(4,1,3);
plot(c2);
PSVPEC/ECE/22EC593/ADC
xlabel('time');
ylabel('amplitude');
title('carrier signal
1'); subplot(413);
plot(c2);
xlabel('time');
ylabel('amplitude');
PSVPEC/ECE/22EC593/ADC
title('carrier signal
2'); subplot(414);
plot(s2);
xlabel('time');
ylabel('amplitude');
title('BPSK');
VIVA QUESTIONS:
AIM & PROGRAM OUTPUT VIVA TOTAL PO’S & PSO TIMELY GRAND
PROCEDURE & & VOICE (30) LEARNED SUBMISSION TOTAL
(5) EXECUTION RESULT (5) (10) (40)
(10) (10)
RESULT:
PSVPEC/ECE/22EC593/ADC
OUTPUT
: ASK
FSK OUTPUT:
PSVPEC/ECE/22EC593/ADC
BPSK OUTPUT
Output
PSVPEC/ECE/22EC593/ADC
EXP NO: 14 SIMULATION OF QPSK GENERATION & DETECTION
DATE:
AIM:
APPARATUS REQUIRED:
- -
System
1 1
- -
2 MAT LAB Software
THEOR
Y QPSK
Quaternary phase shift keying (QPSK), or quadrature PSK as it is sometimes called, is another
form of angle-modulated, constant-amplitude digital modulation. QPSK is an M-ary encoding
technique where M = 4 (hence, the name “quaternary,” meaning “4" ). With DPSK four output phases
are possible for a single carrier frequency. Because there are four different output phases, there must be
four different input conditions. Because the digital input to a QPSK modulator is a binary (base 2)
signal, to produce four different input conditions, it takes more thana single input bit. With two bits,
there are four possible conditions: 00, 01, 10 and therefore, with QPSK, the binary input data are
combined into groups of two bits called dibits.
ALGORITHM:
1. Start.
2. Get the data bits and compute its length.
3. Get the input frequency.
4. Generate the BPSK waveforms with their corresponding carrier frequency.
5. Obtain the output waveform.
6. Stop
PSVPEC/ECE/22EC593/ADC
PROGRAM:
QPSK:
% Sampling rate of sine wave
fs = 100;
% Time for one bitt = 0: 1/fs : 1;
% This time variable is just forplot time =;
QPSK_signal = ;[Digital_signal];
[carrier_signal];
for ii = 1: 2: length(bit_stream)jj = ii + 1;
%Code for generation of Original Digital Signal Digital_signal
= [Digital_signal
(bit_stream(ii)==0)*zeros(1,length(t))+(bit_stream(jj)==1)*ones(1,length(t)
)];
end
time = [time
t]; t = t + 1;
end
PSVPEC/ECE/22EC593/ADC
% Plot the carrier
Signal
subplot(3,1,2);
plot(time,carrier_signal,'g','LineWidth',2) ;
xlabel('Time (bit period)'); ylabel('Amplitude');
title('carrier Signal'); axis([0 time(end) -1.5-1.5]);
grid on;
% Plot the QPSK Signal
subplot(3,1,3); plot(time)
QPSK_signal,'LineWidth',2)
; xlabel('Time (bit period)');
ylabel('Amplitude');
title('QPSK Signal with two Phase Shifts');
axis([0 8 -1.5 1.5]);
grid on;
mod(filter([1 -1],1,ipDHat_coh),2);
PSVPEC/ECE/22EC593/ADC
nErr_dbpsk_coh(ii) = size(find([ip - ipHat_coh]),2); % counting the number of errors 10
end
erfc(sqrt(10.^(Eb_N0_dB/10))).*(1.5*erfc(sqrt(10.^(Eb_N0_dB/));
on semilogy(Eb_N0_dB,simBer_dbpsk_coh,'mx-');
xlabel('Eb/No, dB')
ylabel('Bit Error Rate')
title('Bit error probability curve for coherent demodulation of DBPSK')
VIVA QUESTIONS:
AIM & PROGRAM OUTPUT VIVA TOTAL PO’S & PSO TIMELY GRAND
PROCEDURE &EXECUTION &RESULT VOICE (30) LEARNED SUBMISSION TOTAL
(5) (10) (10) (5) (10) (40)
RESULT:
PSVPEC/ECE/22EC593/ADC
QPSK:
PSVPEC/ECE/22EC593/ADC
EXP NO: 15 SIMULATION OF QAM MODULATION & DEMODULATION
DATE:
AIM:
APPARATUS REQUIRED:
- -
System
1 1
- -
2 MAT LAB Software
THEOR
Y QAM
Each dibit code generates one of the four possible output phases. Therefore, for each two -
bit dibit clocked into the modulator, a single output change occurs. Therefore, the rate ofchange at
the output (baud rate ) is onehalf of the input bit rate.
A block diagram of QPSK modulator is shown in above Figure. Two bits (a dibit) are
clocked into the bit splitter. After both bits have been serially inputted, they are simultaneously
parallel outputted. One bit is directed to the I channel and the other to the Q channel. The 1- bit
modulates a carrier that is in phase with the reference oscillator (hence, the name “I” for “in phase”
channel), and the Q bit modulates a carrier that is 90° out of phase or in quadrature with the
reference carrier (hence, the name “Q” for “quadrature” channel).
ALGORITHM:
1. Start.
2. Get the data bits and compute its length.
3. Get the input frequency.
4. Generate the BPSK waveforms with their corresponding carrier frequency.
5. Obtain the output waveform.
6. Stop
PSVPEC/ECE/22EC593/ADC
PROGRAM:
clc; clear all;close
all; M=16;
k=log2(M);n=3*1e5
; nsamp=8;
X=randint(n,1);
xsym = bi2de(reshape(X,k,length(X)/k).','left-msb');
Y_qam=modulate(modem.qammod(M),xsym);
Y_qpsk=modulate(modem.pskmod(M),xsym);
Ytx_qam = Y_qam;
Ytx_qpsk =
Y_qpsk; EbNo=30;
SNR=EbNo+10*log10(k)-10*log10(nsamp);
Ynoisy_qam = awgn(Ytx_qam,SNR,'measured');
Ynoisy_qpsk =
awgn(Ytx_qpsk,SNR,'measured'); Yrx_qam =
Ynoisy_qam;
Yrx_qpsk = Ynoisy_qpsk;
h1=scatterplot(Yrx_qam(1:nsamp*5e3),nsamp,0,'r.')
; hold on;
scatterplot(Yrx_qam(1:5e3),1,0, 'k*',h1);
title('constellation diagram 16 QAM');
legend('Received signal' ,'signal
constellation'); axis([-5 5 -5 5]);
hold off;
h2=scatterplot(Yrx
qpsk(1:nsamp*5e3),nsamp,0,'r.'); hold on;
scatterplot(Yrx qpsk(1:5e3),1,0,'k*',h2);
title('constellation diagram 16 PSK');
legend('Received signal' ,'signal
constellation'); axis([-5 5 -5 5]);
hold off
PSVPEC/ECE/22EC593/ADC
VIVA QUESTIONS:
AIM & PROGRAM OUTPUT VIVA TOTAL PO’S & PSO TIMELY GRAND
PROCEDURE &EXECUTION &RESULT VOICE (30) LEARNED SUBMISSION TOTAL
(5) (10) (10) (5) (10) (40)
RESULT:
PSVPEC/ECE/22EC593/ADC
OUTPUT
: QAM:
PSVPEC/ECE/22EC593/ADC
EXP NO: 16 SIMULATION OF DPSK GENERATION AND DETECTION
DATE:
AIM:
APPARATUS REQUIRED:
- -
System
1 1
- -
2 MAT LAB Software
ALGORITHM:
1. Start.
2. Get the data bits and compute its length.
3. Get the input frequency.
4. Generate the BPSK waveforms with their corresponding carrier frequency.
5. Obtain the output waveform.
6. Stop
PROGRAM:
%% Parameters
N = 10; % Number of bits in input signal
data = randi([0, 1], 1, N); % Random binary data
sequence Tb = 1; % Bit duration
fs = 100; % Sampling frequency
t = 0:1/fs:Tb-1/fs; % Time vector for one bit
%% DPSK Modulation
dpsk_signal = []; % Initialize modulated signal
ref_phase = 0; % Reference phase (initial)
modulated_bits = []; % Store modulated bit
phases
PSVPEC/ECE/22E593/ADC
for i = 1:N
% Determine phase change based on data bit (0 -> no change, 1 -> pi phase
shift) if data(i) == 1
ref_phase = ref_phase + pi; % 180 degree phase
shift end
modulated_bits = [modulated_bits, ref_phase]; % Store phase for analysis
%% DPSK
Demodulation
received_bits = [];
prev_phase = 0; % Previous bit's phase
for i = 1:N
% Extract the received bit
signal start_idx = (i-
1)*length(t) + 1; end_idx =
i*length(t);
bit_signal = noisy_signal(start_idx:end_idx);
%% Display Results
disp('Original Data:');
disp(data);
disp('Received
Data:');
PSVPEC/ECE/22E593/ADC
disp(received_bits);
%% Plotting
figure;
subplot(3,1,1)
;
PSVPEC/ECE/22E593/ADC
stairs([data, data(end)], 'LineWidth', 2); % Plot original
data ylim([-0.5 1.5]); title('Original Binary Data'); grid on;
subplot(3,1,2);
plot(dpsk_signal, 'LineWidth', 1.5); % Plot DPSK modulated signal
title('DPSK Modulated Signal'); grid on;
subplot(3,1,3);
plot(noisy_signal, 'LineWidth', 1.5); % Plot noisy received signal
title('Noisy Received Signal'); grid on;
VIVA QUESTIONS:
AIM & PROGRAM OUTPUT VIVA TOTAL PO’S & PSO TIMELY GRAND
PROCEDURE & EXECUTION & RESULT VOICE (30) LEARNED SUBMISSION TOTAL
(5) (10) (10) (5) (10) (40)
RESULT:
PSVPEC/ECE/22E593/ADC
OUTPUT : DPSK
PSVPEC/ECE/22E593/ADC
EXP NO: 17 SIMULATION OF CONVOLUTIONAL CODES
DATE:
AIM:
APPARATUS REQUIRED:
- -
System
1 1
- -
2 MAT LAB Software
THEORY
Convolutional codes are often described as continuous. However, it may also be said that convolutional
codes have arbitrary block length, rather than being continuous, since most real- world convolutional
encoding is performed on blocks of data. Convolutionally encoded block codes typically employ
termination. The arbitrary block length of convolutional codes can also be contrasted to classic block codes,
which generally have fixed block lengths that are determined by algebraic properties. The ability to perform
economical maximum likelihood soft decision decoding is one of the major benefits of convolutional codes.
This is in contrast to classic block codes, which are generally represented by a time-variant trellis and
therefore are typically hard-decision decoded. Convolutional codes are often characterized by the base code
rate and the depth (or memory) of the encoder .
ALGORITHM:
1. Start.
2. Get the data bits and compute its length.
3. Get the input frequency.
4. Generate the BPSK waveforms with their corresponding carrier frequency.
5. Obtain the output waveform.
6. Stop
PSVPEC/ECE/22E593/ADC
PROGRAM:
Clc;
sequence‘); l=input(‘enter
impulse response’);
disp(t);
C=convenc (m,
%decoding
Opmode=’trunc’;
detype=’hard’ ;
for n = 1:length(EbNoVec)
[numErrsSoft,numErrsHard,numBits] =
< 1e7
PSVPEC/ECE/22E593/ADC
% Generate binary data and convert to
1],numSymPerFrame*k,1);
PSVPEC/ECE/22E593/ADC
% Convolutionally encode the data dataEnc = convenc(dataIn,trellis);
% QAM modulate
txSig = qammod(dataEnc,M,'InputType','bit','UnitAveragePower',true);
rxSig = awgn(txSig,snrdB,'measured');
rxDataHard = qamdemod(rxSig,M,'OutputType','bit','UnitAveragePower',true);
'UnitAveragePower',true,'NoiseVariance',noiseVar);
vitdec(rxDataSoft,trellis,tbl,'cont','unquant');
% Calculate the number of bit errors in the frame. Adjust for the
= biterr(dataIn(1:end-tbl),dataHard(tbl+1:end)); numErrsInFrameSoft =
biterr(dataIn(1:end-tbl),dataSoft(tbl+1:end));
numBits = numBits +
semilogy(EbNoVec,[berEstSoft berEstHard],'-*')
hold on semilogy(EbNoVec,berawgn(EbNoVec,'qam',M))
legend('Soft','Hard','Uncoded','location','best')
PSVPEC/ECE/22E593/ADC
grid xlabel('Eb/No (dB)') , ylabel('Bit Error Rate')
PSVPEC/ECE/22E593/ADC
VIVA QUESTIONS:
AIM & PROGRAM OUTPUT VIVA TOTAL PO’S & PSO TIMELY GRAND
PROCEDURE &EXECUTION &RESULT VOICE (30) LEARNED SUBMISSION TOTAL
(5) (10) (10) (5) (10) (40)
RESULT:
PSVPEC/ECE/22E593/ADC
OUTPUT:
Enter the input sequence [1 0 1 1 0]
5 Enter impulse 7
Num states:4
nextStates: [4x2
double] outputs:[4x2
double]
1101001010
Enter received code
[1 1 0 1 0 0 1 0 1 0]
10110
PSVPEC/ECE/22E593/ADC
EXP NO: 18 SIMULATION OF LINEAR BLOCK CODES
DATE:
AIM:
APPARATUS REQUIRED:
- -
System
1 1
- -
2 MAT LAB Software
THEORY
Its one of the error control coding. Linear codes means that sum of any two code vector gives
another code vector. Also it is a systematic code. Block codes in which the message bits are
transmitted in unaltered form are called systematic code.
Consider an (n, k) linear block code in which „k‟ is a message bit, „n‟ is block length and b=n-k
is a parity check bit.
Structure of code word
Message Vector m= [mo, m1, m2................mk-1]
=m x P Where,
P00 P10…....................Pn-k-1, 0
P01
Define the k by n generator matrix G= {P: Ik}
PSVPEC/ECE/22E593/ADC
Define the (n-1) by k sub matrix H= [ Ik : P^T]
ALGORITHM:
1. Start.
2. Get the data bits and compute its length.
3. Get the input frequency.
4. Generate the BPSK waveforms with their corresponding carrier frequency.
5. Obtain the output waveform.
6. Stop
PROGRAM:
j=k:- 1:1
if rem((i-1),2^(-j+k+1))>=2^(-j+k)
u(i,j)=1; else
u(i,j)=0
end
G=[1 0 0 0 1 1 1;
0 1 0 0 1 1 0;
0 0 1 0 1 0 1;
0 0 0 1 0 1 1]
c=rem(u*G,2);
disp(c);
w_min=min(sum((c(2:2^k,:))')); disp(w_min);
PSVPEC/ECE/22E593/ADC
OUTPUT:
G=[1 0 0 0 1 1 1;
0 1 0 0 1 1 0;
0 0 1 0 1 0 1;
0 0 0 1 0 1 1];
C=rem(U*G,2);
disp(C);
0 0 0 0 0 0 0
0 0 0 1 0 1 1
0 0 1 0 1 0 1
0 0 1 1 1 1 0
0 1 0 0 1 1 0
0 1 0 1 1 0 1
0 1 1 0 0 1 1
0 1 1 1 0 0 0
1 0 0 0 1 1 1
1 0 0 1 1 0 0
1 0 1 0 0 1 0
1 0 1 1 0 0 1
1 1 0 0 0 0 1
1 1 0 1 0 1 0
1 1 1 0 1 0 0
1 1 1 1 1 1 1
PSVPEC/ECE/22E593/ADC
VIVA QUESTIONS:
AIM & PROGRAM OUTPUT VIVA TOTAL PO’S & PSO TIMELY GRAND
PROCEDURE &EXECUTION &RESULT VOICE (30) LEARNED SUBMISSION TOTAL
(5) (10) (10) (5) (10) (40)
RESULT:
PSVPEC/ECE/22E593/ADC
EXP NO: 19 SIMULATION OF CYCLIC CODES
DATE:
AIM:
APPARATUS REQUIRED:
- -
System
1 1
- -
2 MAT LAB Software
THEORY
Error control coding is the processor of adding redundant list to the information bits, So on to
simulate two level objectives at the receiver. Error detection and correction. A block code is linear if
any linear combination of its code words a code is cyclic, if any cyclic shift of a code and is also a
code word.
They are usually denoted by (n, k) in which the first position of k bits is always identical to the
message sequence to the transmitted. The block length is denoted by n.
ALGORITHM:
CYCLIC CODES
Initialize the message bits (k) and block length (m) Select
PSVPEC/ECE/22E593/ADC
PROGRAM:
%ENCODING
clc;
m=randint(2,k,[0,1]); disp(m);
pol=cyclpoly(n,k,'min'); disp(pol);
code=encode(m,n,k,'CYCLIC/FMT',pol); disp(code);
r=rem(plus(code,e),2); disp(r);
disp(cc);
disp('DECODED MESSAGE');
disp(newmsg);
PSVPEC/ECE/22E593/ADC
syndrome=rem(recd * parmat',2);
syndrome1=bi2de(syndrome,'left-msb');
errorvect=trt(1+syndrome1,:);
disp('errorvect');
disp(errorvect); correctedcode=rem(errorvect+recd,2);
disp('correctedcode'); disp(correctedcode);
r=correctedcode;
m1(1)=r(5);m1(2)=r(6);m1(3)=r(7);m1(4)=r(1);m1(5)=r(2);
m1(6)=r(3);m1(7)=r(4);
m=decode(m1,n,k,'cyclic',g); disp('messageword'); disp(m);
correctedcode
1 1 1 1 1 1 1
messageword
1 1 1 1
PSVPEC/ECE/22E593/ADC
OUTPUT:
MESSAGE
0 1 1 0
0 0 0 1
POLYNOMIAL
1 0 1
CODE VECTOR
0 0 1 0 1 1 0
0 1 1 0 0 0 1
ERROR
0 0 0 1 0 0 0
0 0 0 0 1 0 0
RECEIVED MATRIX
0 0 1 1 1 1 0
0 1 1 0 1 0 1
0 0 1 0 1 1 0
0 1 1 0 0 0 1
DECODED MESSAGE
0 1 1 0
0 0 0 1
PSVPEC/ECE/22E593/ADC
VIVA QUESTIONS:
AIM & PROGRAM OUTPUT VIVA TOTAL PO’S & PSO TIMELY GRAND
PROCEDURE &EXECUTION &RESULT VOICE (30) LEARNED SUBMISSION TOTAL
(5) (10) (10) (5) (10) (40)
RESULT
PSVPEC/ECE/22E593/ADC
EXP NO: SIMULATION OF LINEAR BLOCK CODES
DATE:
AIM:
APPARATUS REQUIRED:
1. System
2. MATLAB Software
THEORY:
continuous test and verification of embedded systems. Simulink provides a graphical editor,
customizable block libraries, and solvers for modelling and simulating dynamic systems. It is
integrated with MATLAB,enabling you to incorporate MATLAB algorithms into models and
PSVPEC/ECE/22E593/ADC
PROGRAM:
clc; clear all;
close all;
A=5;
fa=50;T=1/fa;
t=0: T/1000:2*T;
ya=3*sin (2*pi*fa*t);
figure (1);
subplot(3,1,1); plot(t,
ya); title('modulating
signal'); xlabel('time
(sec)');
ylabel('amp
(v)'); A=5;
fc=2000;
yc=A*sin
(2*pi*fc*t); figure
(1); subplot(3,1,2);
plot(t, yc);
title('carrier
signal'); xlabel('time
(sec)');
subplot(3,1,3);
plot(t, ym);
PSVPEC/ECE/22E593/ADC
title('modulating
signal'); xlabel('time
(sec)');
ylabel('amp (v)');
PSVPEC/ECE/22E593/ADC
ym=tA+ya).*sin
subplot (4,1,1);
signal'); xlabel('time
(sec)');
ylabel('amp (v)');
A=5; fc=2000;
yo=A*
sin(2*pi*f*t); figure
(2);
subplot (4,1,2)
plot(t,yc); title('carrier
signal'); xlabel('time
(sec)');
m=ym. *sin
subplot(4,1,3);
plot(t, ymm);
ylabel('amp (v)');
wc=200/50000;
[a b]=butter (2,wc,
PSVPEC/ECE/22E593/ADC
ymm) ; figure (2);
subplot (4,1, 4);
plot(t, 2*sig-5);
PSVPEC/ECE/22E593/ADC
title ('am demodulated signal');
OUTPUT:
PSVPEC/ECE/22E593/ADC
VIVA QUESTIONS:
AIM & PROGRAM OUTPUT VIVA TOTAL PO’S & PSO TIMELY GRAND
PROCEDURE &EXECUTION &RESULT VOICE (30) LEARNED SUBMISSION TOTAL
(5) (10) (10) (5) (10) (40)
RESULT:
PSVPEC/ECE/22EC593 ADC
EXP NO: 21 GENERATION OF QPSK SIGNAL USING KIT
DATE:
AIM:
APPARATUS REQUIRED:
3. Digital Millimeter
4. Patch chords.
THEORY:
The Quadrature Phase Shift Keying , QPSK is a variation of BPSK, and it is also a Double Side Band
Suppressed Carrier DSBSCDSBSC modulation scheme, which sends two bits of digital information
at a time, called as bigits.Instead of the conversion of digital bits into a series of digital stream, it
converts them into bit pairs. This decreases the data bit rate to half, which allows space for the other
users.
PSVPEC/ECE/22EC593 ADC
CONNECTION DIAGRAM:
PSVPEC/ECE/22EC593 ADC
PROCEDURE:
3. Select the bit pattern using push button i.e. 8 bit or 16 bit or 32 bit or 64 bit. Observe bit pattern
on TP-2.
4. Select data rate using push button i.e. 2 KHz or 4 KHz or 8 KHz 16 KHz.
Modulation:
5. Observe the input bit pattern at TP-2 by varying bit pattern using respective pushbutton.
6. Observe the data rate at TP-1 by varying data rate using respective pushbutton.
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
12. Observe the multiplied signal of QPSK and carrier signal, cosine at TP-12 and also observe
PSVPEC/ECE/22EC593 ADC
TABULATION:
MODEL GRAPH:
PSVPEC/ECE/22EC593 ADC
VIVA QUESTIONS:
AIM & PROGRAM OUTPUT VIVA TOTAL PO’S & PSO TIMELY GRAND
PROCEDURE &EXECUTION &RESULT VOICE (30) LEARNED SUBMISSION TOTAL
(5) (10) (10) (5) (10) (40)
RESULT:
PSVPEC/ECE/22EC593 ADC
EXP NO: 22 STUDY OF DPSK MODULATION TECHNIQUE USING KIT
DATE:
AIM:
APPARATUS REQUIRED:
3. Digital Millimeter
4. C.R.O(30MHz)
5. Patch chords.
THEORY:
Differential phase shift keying (DPSK) is a common form of phase modulation that conveys data by
changing the phase of the carrier wave. As mentioned for BPSK and QPSK there is an ambiguity of
phase if the constellation is rotated by some effect in the communications channel through which the
signal passes. This problem can be overcome by using the data to change rather than set the phase.
For example, in differentially encoded BPSK a binary "1" may be transmitted by adding 180° to the
current phase and a binary "0" by adding 0° to the current phase. Another variant of DPSK is
Symmetric Differential Phase Shift keying, SDPSK, where encoding would be +90° for a "1" and
−90° for a "0".
In differentially encoded QPSK (DQPSK), the phase-shifts are 0°, 90°, 180°, −90°
corresponding to data "00", "01", "11", "10". This kind of encoding may be demodulated in the same
way as for non-differential PSK but the phase ambiguities can be ignored. Thus, each received
symbol is demodulated to one of the points in the constellation and a comparator then computes the
difference in phase between this received signal and the preceding one. The difference encodes the
data as described above. Symmetric differential quadrature phase shift keying (SDQPSK) is like
DQPSK, but encoding is symmetric, using phase shift values of −135°, −45°, +45° and +135°.
PSVPEC/ECE/22EC593 ADC
CONNECTION DIAGRAM:
PSVPEC/ECE/22EC593 ADC
PROCEDURE:
4. Connect CH1 input of the CRO to data signal and CH2 input to the encoded data.
5. Observe the encoded data with respect to data input. The encoded data will be sequence.
01100010110100001111
8. Now connect CH2 input of the CRO to the DPSK output and CH1 input to the encoded data
and observe the input and output waveforms and plot the same.
PSVPEC/ECE/22EC593 ADC
TABULATION
1 Modulating Input
2 Encoded data
3 DPSK signal
4 Demodulated signal
MODEL GRAPH:
PSVPEC/ECE/22EC593 ADC
VIVA QUESTIONS:
AIM & PROGRAM OUTPUT VIVA TOTAL PO’S & PSO TIMELY GRAND
PROCEDURE &EXECUTION &RESULT VOICE (30) LEARNED SUBMISSION TOTAL
(5) (10) (10) (5) (10) (40)
RESULT:
PSVPEC/ECE/22EC593 ADC
EXP NO: 23 DATE: IMPLEMENTATION OF LINE CODING TECHNIQUES USING KIT
AIM:
APPARATUS REQUIRED:
- -
Line coding kit
1 1
- -
2 Power cable As Required
- -
3 Patch cords As Required
-
4 CRO 20 MHZ 1
THEORY
Unipolar RZ
In this line code, a binary „ 1' is represented by a non-zero voltage level during a portion of the
bit duration, usually for half of the bit period, and a zero voltage level for rest ofthe bit duration.
A binary „0' is represented by a zero voltage level during the entire bit duration.
The main advantage of unipolar RZ are case of generation requires single power supply and
which allows simple timing recovery. A number of disadvantages exists for thisline code. It has a
non-zero DC component and non-zero DC content, which can load to DCwander. A long string
of „0's will back pulse transition and could load to loss of synchronization. There is no error
detection capability. The bandwidth requirement is also higher than non-return to zero signal.
PSVPEC/ECE/22EC593 ADC
Polar RZ
In this scheme, a binary „1' is represented by alternating positive voltage levels, which return to
zero for a portion of the bit duration, generally half the bit period. A binary,0's is represented by a
negative voltage levels and return to zero for half bit duration.
This code has no DC component and zero DC content, completely avoiding +ve DC wander
problem. Timing recovery is rather easy by squaring, or full-wave rectifying. It requires low
bandwidth. The obvious disadvantage is that the error rate performance is worst. A long string of
0's or 1's could not appear and so improves in synchronization, and two power supplies are
required for this code.
Polar NRZ
In this line code, a binary 1 is represented by a positive voltage +v and a binary 0 is represented
by a negative voltage -v over the full bit period. This code is also referred to as NRZ(L), since a
bit is represented by maintaining a level during its entire period. This code can also be
represented by assigning negative voltage for logic 1 and positive voltage for logic0.
The advantage of polar NRZ includes a low-bandwidth requirements, very good errorprobability,
and great reduced DC because the waveform has a zero DC component. A majordisadvantage of
this code that there is no error detection capability and that a long string of 1's or 0's could result
in loss of synchronization and power supplies are required to generate this code.
PSVPEC/ECE/22EC593 ADC
Bipolar NRZ:
In this scheme, a binary „1' is represented by positive and negative voltage levels in
alternating mark level in full bit period. A binary „0' is represented by a zero voltage levels
during entire bit duration. This code also called as alternate mark inversion (AMI) since 1's are
represented by alternating positive and negative pulses.
This code has no DC component and zero DC content, completely avoiding the DC wander
problem. Because of the alternative polarity pulses for binary 1's, this code has error detection
and hence correction also possible. A long string of 0's could result in loss of synchronization,
and two power supplies are required for this code.
Bipolar RZ
In this scheme, a binary „1' is represented by alternating positive and negative voltage a
levels for a half bit period duration and maintaining zero for other of period. A binary „0' is
represented by a zero voltage levels during entire bit duration. This code also called as AMI. This
code has no DC component and zero DC Conant, completely avoiding the DC wander problem.
Because of alternative polarity pulses for binary 1's, this code has error detection and hence
correction also possible. A long string of 0's could result in loss of synchronization, and two
process supplier and required for this code.
Manchester Coding
In this scheme, a binary 1 is represented by a pulse that has positive voltage during the
first-half of the bit duration and negative voltage during second-half of the bit duration. A binary
„0' is represented by a pulse that has negative voltage during first-half of the bit duration and
positive voltage during second-half of the bit duration.
The advantage of this code includes a zero DC content and so avoiding DC-wandering
problems. The code having alternation positive and negative pulses and so timing recovery is
simple and it has good error rate performance. The main disadvantage of this scheme is larger
bandwidth. It has no error detection possibility.
PSVPEC/ECE/22EC593 ADC
CONNECTION DIAGRAM:
PROCEDURE:
1. Make wiring connection on the VCL 03 kit and simply connect the test points P1 to P8
and P21 to P22 using patch chords provided with this training kit.
2. Ensure that all switches in switched faults block in OFF position and
PSVPEC/ECE/22EC593 ADC
3. Keep the input data in terms of 0 & 1
5. Displays the input square output waveform on channel 2 of oscilloscope and note downthe
6. Replace channel 1 waveform by modulator output serial data (test point P21 and compare it
with the sample signal on channel 2, every sample has been transmitted with corresponding
7. Plot all the noted waveforms such as bipolar, polar , Manchester, signal, S/H output and
8. Replace the channel 2 waveform by digital to analog converter (test point P33)
waveform which is the recovered sampled analog signal, note down the waveform.
Observe the recovered sinewave at test point P34, note down waveforms. Plot all the
notedwaveforms such as DAC signal, and recovered sine wave on a linear graph sheet
TABULATION
2 Unipolar RZ
3 Polar RZ
4 Polar NRZ
5 Bipolar NRZ
6 Bipolar RZ
7 Manhester Coding
PSVPEC/ECE/22EC593 ADC
MODEL GRAPH
PSVPEC/ECE/22EC593 ADC
VIVA QUESTIONS:
AIM & PROGRAM OUTPUT VIVA TOTAL PO’S & PSO TIMELY GRAND
PROCEDURE &EXECUTION &RESULT VOICE (30) LEARNED SUBMISSION TOTAL
(5) (10) (10) (5) (10) (40)
RESULT:
PSVPEC/ECE/22EC593 ADC