Professional Documents
Culture Documents
Practicum Report Digital Telecommunication: Class TT 2E Khusnul Khotimah 1831130043
Practicum Report Digital Telecommunication: Class TT 2E Khusnul Khotimah 1831130043
DIGITAL TELECOMMUNICATION
Class TT 2E
Khusnul Khotimah 1831130043
TABLE OF CONTENTS..............................................................................................i
TABLE OF FIGURES.................................................................................................ii
TABLE OF TABLES..................................................................................................iii
MATLAB SIMULATION OF DELTA MODULATION TECHNIQUE...................1
1.1 Ojective.............................................................................................................1
1.2 Basic Theory.....................................................................................................1
1.2.1 Analog to Digital Converter..............................................................................1
1.2.2 Delta Modulation-Demodulation basic principle..............................................1
1.3 Experiment Apparatus......................................................................................2
1.4 Procedure..........................................................................................................2
1.5 Measurement Result and Discussion................................................................3
1.6 Conclusion........................................................................................................9
1.7 References.......................................................................................................10
i
TABLE OF FIGURES
ii
TABLE OF TABLES
iii
MATLAB SIMULATION OF DELTA MODULATION TECHNIQUE
1.1 Ojective
1. To understand the operation theory of Delta modulation
2. To simulate BPSK Modulation using Multisim
1.2 Basic Theory
1.2.1 Analog to Digital Converter
Analog to Digital Converter (ADC) is an electronic device that
functions to convert analog signals (continuous signals) into digital signals.
ADC devices can be in the form of modules or electronic circuits or an IC
chip. ADC functions to bridge analog signal processing by digital systems.
1
circuit blocks, which are comparison, encoder (D-Flip flop), discrete
integrator which is a staircase generator and clock generator. In order to be
transmitted through the air media output Delta Modulator included FSK
modulator and FM transmitter.
clc;
clear all
close all
f=27 ; %freq in kHz
fs=100*f; %sampling frequency
t=0:1/fs:2/f;
A=1; %amplitude in Volt
m=A*sin (2*pi*f*t); %information signal
hold all;
d=1/f; %step size
%% start delta mod
for n=1:length (m)
if n==1
e(n)=m(n);
eq(n)=d*sign(e(n));
mq(n)=eq(n);
else
e(n)=m(n)-mq(n-1);
eq(n)=d*sign(e(n));
mq(n)=mq(n-1)+eq(n);
end
end
stairs(t,mq,'r-'); %plot staircase aproximation
of information signal m
2
2. %%start binary representation of starcase signal
diff=m-mq;
comp=zeros(1,size(diff,2));
for i=1:numel(diff)
if diff(i)>0
comp (i)=1;
elseif diff(i)<0
comp (i)=0;
else
if i==1
comp(i)=0
else
comp(i)=comp(i-1);
end
end
end
hold on
plot(t,comp,'b-') %delta modulated signal
grid on
3
2. Write the Matlab source code that you used to generate the modulation
signal, including explanation of each code line!
The source code that I used to generate the modulated signal:
clc;
Used to clean the screen
clear all
Used to clean up the previous variable
close all
Used to close all workplace windows
f=11;%freq in kHz
Used to create and determine the variable f value of 11 and
expressed in kHz
fs=100*f; %sampling frequency
Used to create and determine the variable fs valued at 100 * f
t=0:1/fs:2/f;
To declare a value of t,fs,f by describing dots (:)
A=1; %amplitude in Volt
Used to create and express variable A (amplitude) of 1 volt
m=A*sin(2*pi*f*t); %information signal
To declare the value of variable m according to the formula as
information signal
subplot (3,1,1);
Is the number of rows (3), number of columns (1), and subplot
numbers (1)
plot(t,m,'k-');
xlabel ('Time');
4
ylabel ('Amplitude');
hold all;
for n=1:length(m)
if n==1
e(9n)=m(n);
eq(n)=d*sign(e(n));
mq(n)=eq(n);
5
The if command we can insert it in the program, and the if
command will run if a count shows a number that matches the
statement carried by the if command it self.
else
Else is a command that functions as an exception to the if
command, so when a number appears and does not enter the if
statement statement criteria, then the else command will run
e(n)=m(n)-mq(n-1);
To change size on every loop iteration (within a script)
6
eq(n)=d*sign(e(n));
mq(n)=mq(n-1)+eq(n);
end
end
subplot (3,1,2);
Is the number of rows (3), number of columns (1), and subplot
numbers (2)
stairs(t,mq,'r-'); %plot staircase approximation
of information signal m
The function for making graphs on t and mq. Whereas 'r-' shows
if the color of the curve requested is red with a solid line
xlabel ('Time');
ylabel ('Amplitude');
7
Title the plot area with the name 'Integrated Signal'
diff=m-mq;
8
comp=zeros(1, size(diff,2));
for i=1:numel(diff)
if diff(i)>0
comp(i)=1;
elseif diff(i)<0
comp(i)=0;
Else if used to create multiple group commands in one function
else
Else is a command that functions as an exception to the if
command, so when a number appears and does not enter the if
statement statement criteria, then the else command will run
if i==1
comp(i)=0;
if command we can insert it in the program, and the if command
will run if a count shows a number that matches the statement
carried by the if command it self
else
comp(i)=comp(i-1);
9
Else is a command that functions as an exception to the if
command, so when a number appears and does not enter the if
statement statement criteria, then the else command will run
end
10
end
States the conditional statement has ended. So that it can
proceed to the program command afterwards
end
States the conditional statement has ended
hold on
To ‘hold’ the previous image so that it is not erased when a new
image is overwritten
subplot (3,1,3);
Is the number of rows (3), number of columns (1), and subplot
numbers (3)
plot(t,comp,'b-') % delta modulated signal
Intended to draw a curve by pairing the defined points t and
comp. Whereas 'b-' shows if the color of the curve requested is
blue with a solid line
xlabel ('Time');
ylabel ('Amplitude')
Title the plot area with the name 'Delta Modulated Signal'
grid on
11
Table 1. 1 Measurement Result of Delta Modulation
Frequency
No Output Signal
(kHz)
Information Signal
Fi
gure 1. 3 Information Signal
Integrated Signal
1 11
g
ure 1. 4 Integrated Signal
n
al
1.6 Conclusion
Delta modulation is one of several types of digital modulation which is an
analog to digital signal conversion technique used for transmitting voice
information.
Delta modulation is a simple alternative to PCM that only uses 1 bit for the
encoding process, with only 1 bit. There are two conditions that can be coded
12
The higher of frequency, the delta modulated signal will be more tenuous.
Conversely, the smaller of frequency, the modulated delta signal will be
denser.
13
1.7 References
[1] Antosupri, “Analog to Digital Coverter”, November 2017 [Online].
Available: http://blog.unnes.ac.id/antosupri/adc-analog-to-digital-converter/
[Accesed on April 28, 2020]
[2] Budihardja Murtianta, “Delta Modulation” April 2011 [Online]. Available:
http://ojs.jurnaltechne.org/index.php/techne/article/view/50. [Accessed April
29, 2020]
[3] Tutorial Spoint, “Delta Modulation,”. November 2016 [Online]. Available:
https://www.tutorialspoint.com/digital_communication/digital_communicatio
n_delta_modulation_htm. [Accessed April 29, 2020]
[4] Wikipedia, “Delta-Sigma modulation,” March 2020. [Online]. Available:
https://en.wikipedia.org/wiki/Deltasigma_modulation#Analog_to_digital_con
version. [Accessed April 29, 2020]
14