MATLAB SIMULATION OF DELTA MODULATION TECHNIQUE
1.1 Objectives
1 To understand the operation theory of Delta modulation
2 To simulate Delta Modulation using Matlab
1.2 Basic Theory
Give a brief explanation about:
1. Analog to Digital Converter
2. Delta Modulation – Demodulation basic principle
1.3 Experiment Apparatus
1. Matlab software
1.4 Procedures
1. Type the following script onto your M-File
1. clc;
2. clear all
3. close all
4. f=27;%freq in kHz
5. fs=100*f; %sampling frequency
6. t=0:1/fs:2/f;
7. A=1; %amplitude in Volt
8. m=A*sin(2*pi*f*t); %information signal
9. plot(t,m,'k-');
10. hold all;
11. d=1/f; %step size
12. %% start delta mod
13. for n=1:length(m)
14. if n==1
15. e(n)=m(n);
16. eq(n)=d*sign(e(n));
17. mq(n)=eq(n);
18. else
19. e(n)=m(n)-mq(n-1);
20. eq(n)=d*sign(e(n));
21. mq(n)=mq(n-1)+eq(n);
22. end
23. end
24. stairs(t,mq,'r-'); %plot staircase approximation of
information signal m
25.
26. %% start binary representation of staircase signal
27. diff=m-mq;
28. comp=zeros(1, size(diff,2));
29. for i=1:numel(diff)
DIGITAL TELECOMMUNICATION LAB MATLAB SIMULATION OF DELTA 1
MODULATION TECHNIQUE
30. if diff(i)>0
31. comp(i)=1;
32. elseif diff(i)<0
33. comp(i)=0;
34. else
35. if i==1
36. comp(i)=0;
37. else
38. comp(i)=comp(i-1);
39. end
40. end
41. end
42. hold on
43. plot(t,comp,'b-') % delta modulated signal
44.
45. grid on
2. Change the frequency f into your presence number
3. Observe the result. You can differentiate the plot into 3 subplots rather than plotting in
the same figure.
1.5 Measurement Results and discussion
1. What is the characteristics of delta modulation technique?
2. Write the Matlab source code that you used to generate the modulated signal, including
explanation of each code line!
1.6 Conclusion
DIGITAL TELECOMMUNICATION LAB MATLAB SIMULATION OF DELTA 2
MODULATION TECHNIQUE