Skip to main content

Why do rapid 1 0 1 0 1 0 transitions occur in DM signal?

 

1. Why does 1 0 1 0 occur?

  • x = Original input signal

  • y = Reconstructed signal (staircase approximation)


MATLAB
if x(i) >= y(i-1)
    dm(i) = 1;
    y(i) = y(i-1) + delta;
else
    dm(i) = 0;
    y(i) = y(i-1) - delta;
end

Suppose:

  • Input value = 0.05

  • Previous reconstructed value = 0.04

  • Step size = 0.1

The next reconstructed value becomes 0.14.

Now the input (0.05) is less than 0.14, so the next bit becomes 0.

The reconstructed value becomes 0.04 again.

Now the input is greater than or equal to 0.04, so the next bit becomes 1.

Therefore, the pattern becomes:

1 0 1 0 1 0 1 0

This is called granular noise.

2. How to get longer sequences of 1s and 0s?

You need to reduce the step size.

In your MATLAB code, change:

matlab
delta = 0.1;

to:

matlab
delta = 0.02;

You can also try:

matlab
delta = 0.01;

With a smaller step size, the staircase can follow the gradual changes more smoothly, although too small a step size can cause slope overload.

3. Important: Understand the bit patterns

  • 111111... → Reconstructed signal keeps increasing.

  • 000000... → Reconstructed signal keeps decreasing.

  • 101010... → Reconstructed signal oscillates around the input (granular noise).

4. One more important point

Your expectation of:

111111...111000000...000111111...

is reasonable when the input changes sufficiently fast relative to the step size.

But DM does not necessarily produce long runs of identical bits. It depends on:

  • Input signal frequency

  • Sampling frequency

  • Step size (Δ)

First try delta = 0.02 and observe the modulated and demodulated signals. You should see a change in the bit pattern.


MATLAB Code for Delta Modulation (DM) and Demodulation

clc;

clear;

close all;


% Generate input signal

t = 0:0.01:2;

x = sin(2*pi*2*t);


% Initialize parameters

delta = 0.1;

y = zeros(size(x));

dm = zeros(size(x));


% Delta Modulation

for i = 2:length(x)


    if x(i) >= y(i-1)

        dm(i) = 1;

        y(i) = y(i-1) + delta;

    else

        dm(i) = 0;

        y(i) = y(i-1) - delta;

    end


end


% Delta Demodulation

demod = zeros(size(x));


for i = 2:length(dm)


    if dm(i) == 1

        demod(i) = demod(i-1) + delta;

    else

        demod(i) = demod(i-1) - delta;

    end


end


% Plotting

subplot(3,1,1);

plot(t,x,'b','LineWidth',1.5);

title('Original Signal');

xlabel('Time');

ylabel('Amplitude');

grid on;


subplot(3,1,2);

stairs(t,dm,'r');

title('Delta Modulated Signal');

xlabel('Time');

ylabel('DM Bits');

grid on;


subplot(3,1,3);

plot(t,demod,'g','LineWidth',1.5);

title('Demodulated Signal');

xlabel('Time');

ylabel('Amplitude');

grid on;





Contact Us

Name

Email *

Message *

Popular Posts

UGC NET Electronic Science Previous Year Question Papers with Solutions

Download Papers and Solutions Exam Pattern Preparation Tips FAQs More Home / Engineering & Other Exams / UGC NET 2026 PYQ 📊 Exam Highlights: Electronic Science (88) Feature Details Junior Research Fellowship (JRF) ₹37,000 + HRA per month Eligibility M.Sc/M.Tech in Electronics (55%) Validity of Certificate JRF (3 Years) | Lectureship (Lifetime) 📥 Download UGC NET Electronics PDFs Complete collection of previous year question papers, answer keys and explanations for Subject Code 88. Start Downloading 📂 View All Question Papers June 2026 - Question Paper Download PDF June 202...

Flat vs Frequency Selective Online Simulator

Flat vs Frequency Selective Online Simulator Channel Type Without Fading Flat Fading Multipaths Nakagami m SNR(dB) Run Simulation Input Signal Signal After Fading Constellation Diagram BER vs SNR Explore Advanced Flat vs Frequency-Selective Fading Simulator Want to see these equations in action? Visualize it. Launch Simulator Tool Flat Fading and Frequency-Selective Fading Effects of Multipath Components and the Nakagami-m Parameter 1. Flat Fading Flat fading occurs when the signal bandwidth is smaller than the channel's coherence bandwidth, meaning that all frequency components of the transmitted signal experience approximately the same fading. It is typically associated with narrowband signals, where the multipath delay spread is small relative to the symbol duration. ...

MATLAB Code for Constellation Diagram of QAM configurations such as 4, 8, 16, 32, 64, 128, and 256-QAM

📘 Overview of QAM 🧮 4-QAM MATLAB 🧮 16-QAM MATLAB 🚀 Online Simulator 📂 Other Topics on Constellation Diagrams... ▼ 🧮 MATLAB Code for 4-QAM 🧮 MATLAB Code for 16-QAM 🧮 MATLAB Code for m-ary QAM 🧮 Simulator for m-ary PSK 🧮 Simulator for m-ary QAM 🧮 Overview of Energy per Bit (Eb / N0) 🧮 Simulator for ASK, FSK, and PSK Overview of QAM One of the best-performing modulation techniques is QAM [↗] . Here, we modulate the symbols by varying the carrier signal's amplitude and phase in response to the variation in the message signal (or voltage variation). So, we may say that QAM is a combination of phase and amplitude modulation. Additionally, it performs better than ASK or PSK [↗] . In fact, any constellation for any type of modulatio...

UGC NET Electronic Science June 2026 Question Paper with Answer Key & Detailed Solutions

Home / UGC NET PYQ / June 2026 Solved UGC NET Electronic Science June 2026 Question Paper with Answer Key and Full Explanations 📥 Download Question Paper (PDF) 2025 2024 2023 2022 2021 2020 Explanations 1. Answer: Option (3) Total Students = 900 Urban Students = 7/10*400 + 4/5*500 = 680 680/900 * 100 = 75.56% 2. Answer: Option (1) Urban Students = 7/10*400 + 4/5*500 + 4/7*700 + 1/2 * 600 = 1380 3. Answer: Option (3) Male = 700*4/7 = 400 Female = 700*3/7=300 400-300=100 100/400*100 = 25% 4. Answer: Option (2) 400*3/10*40/100 + 500*1/5*60/100+700*3/7*50/100+600*1/3*30/100 = 318 5. Answer: Option (2) Total Female Students in B,C, and D colleges = 600 Female Post-graduates  = 100*60/100 + 300*50/100 + 200*30/100 = 270 270/600 *100 = 45% 6. Answer: Option (3) 7. Answer: Option (2) 8. Answer: Option (4) 9. Answer: Option (4) 10. Answer: Option (2) 11. Answer: Option (2) 12. Answer...

Online Simulator for ASK, FSK, and PSK Signal Generation

Interactive Digital Signal Processing (DSP) Tutorial and Simulator for ASK, FSK, and BPSK modulation techniques. Try our new Digital Signal Processing Simulator!   •   Interactive ASK, FSK, and BPSK tools updated for 2025. Start Now Digital Modulation Visualizer: ASK, FSK, & BPSK Simulator Learn and visualize binary modulation techniques (ASK, FSK, BPSK) in real-time with adjustable carrier and sampling parameters. Perfect for DSP students and engineers. 📡 ASK Simulator 📶 FSK Simulator 🎚️ BPSK Simulator 📚 More Topics ASK Modulator FSK Modulator BPSK Modulator Demodulation More Topics 1. ASK (Ampli...

Design of CMOS Full Adder

Design of CMOS Full Adder VLSI designers historically focus on speed as a key performance metric. High-performance gains are critical for digital processors, microprocessors, DSPs, and ASICs. Small area and high performance are conflicting constraints. Power consumption in CMOS circuits must be minimized to reduce heat dissipation for dense integration and to save energy in battery-powered devices. Power consumption is proportional to switching activity, capacitive loading, and the square of the supply voltage. The Full Adder is a fundamental building block in processors, ALUs, DSPs, microprocessors, and arithmetic operations like addition, subtraction, multiplication, and division. Improving the performance of a 1-bit Full Adder enhances overall system performance. CMOS logic uses complem...

Constellation Diagrams of ASK, PSK, and FSK (with MATLAB Code + Simulator)

Constellation Diagrams: ASK, FSK, and PSK Comprehensive guide to signal space representation, including interactive simulators and MATLAB implementations. 📘 Overview 🧮 Simulator ⚖️ Theory 📈 Q-function 📚 Resources BASK Modulation Transmits one of two signals: 0 or $\sqrt{E_b}$, representing binary 0 and 1. Simple but sensitive to noise. BFSK Modulation Transmits one of two signals: $\sqrt{E_b}$ on the Y-axis or $\sqrt{E_b}$ on the X-axis. These are orthogonal signals. BPSK Modulation Transmits $+\sqrt{E_b}$ or $-\sqrt{E_b}$ (antipodal signaling). Most efficient binary scheme. ...