Professional Documents
Culture Documents
Questions
1. What are the steps in PCM?
2. What is meant by quantization error?
3.What is meant by Nyquist rate?
(b) Perform Delta Modulation
THEORY
1. Delta Modulation (DM): Delta modulation is a simple form of analog-to-digital conversion
that encodes the difference between consecutive samples of an analog signal. The basic idea
behind DM is to transmit the change (delta) in the signal amplitude rather than the absolute
value. It operates based on the assumption that the signal will not change rapidly. In DM, the
analog signal is approximated using a staircase waveform.
The process of delta modulation involves the following steps:
At each sampling interval, the difference between the current sample and the previous
predicted sample is determined.
The difference is quantized into two levels (positive or negative) based on a step size.
The quantized difference (delta) is transmitted, which represents the change in the signal.
The receiver reconstructs the signal by integrating the delta values and adding them to the
previous reconstructed sample.
MATLAB CODES
%delta modulation = 1-bit differential pulse code modulation (DPCM)
predictor = [0 1]; % y(k)=x(k-1)
%partition = [-1:.1:.9];codebook = [-1:.1:1];
step=0.2; %SFs>=2pifA
partition = [0];codebook = [-1*step step]; %DM quantizer
t = [0:pi/20:2*pi];
x = 1.1*sin(2*pi*0.1*t); % Original signal, a sine wave
%t = [0:0.1:2*pi];x = 4*sin(t);
%x=exp(-1/3*t);
%x = sawtooth(3*t); % Original signal
% plots
figure,subplot(2,2,1);plot(t,x);xlabel('time');title('original
signal');
subplot(2,2,2);stairs(t,10*codebook(encodedx+1),'--
');xlabel('time');title('DM output');
subplot(2,2,3);plot(t,x);hold;stairs(t,decodedx);grid;xlabel('time')
;title('received signal');
OUTPUT
Result:
We have simulated a delta modulated wave.
Questions
1. Explain Delta modulation.
2. How is Delta modulation different from Adaptive delta modulation?
3. What are the disadvantages of delta modulation?