Updated SSB
Updated SSB
Updated SSB
3.1 OBJECTIVE
To write and simulate a MATLAB program for SSB-SC modulation using Hilbert
transform in time domain and using FFT represent the result in frequency domain and hence
reconstruct the modulating signal using butterworth filter.
Commonly used graphical functions are plot, figure, subplot, title, and mathematical
functions are sin and cos only. The mathematical functions sin and cos are self-explanatory.
The graphical function figure will create a new window and then subsequent graphical
commands can be applied. The plot function usually takes two vectors and plot data points
according to given vector data. Subplot function is used when two or more plots are drawn
on the same figure. As title function suggests it helps to write title of the graph in the figure.
For further details type help plot or help subplot in the command prompt and learn the
syntax.
3.3 THEORY
Amplitude modulation produces an output signal that has twice the bandwidth of the
original baseband signal. Single-sideband modulation avoids this bandwidth doubling, and
the power wasted on a carrier, at the cost of increased device complexity and more difficult
tuning at the receiver. It uses transmitter power and bandwidth more efficiently. Single
sideband modulation provides effective communications as well as it is used for some
analogue television signals.
3.4 ALGORITHM
Initialize:
carrier frequency ,message signal ,sampling frequency , N point DFT samples ,time
samples ,message signal amplitude and carrier signal amplitude.
5. Take Fourier transform LSB or USB to get the desired frequency spectrum for modulated
signal.
6. For the demodulation, multiply LSB with carrier (cosine) and apply butterworth filter to
get demodulated signal or multiply USB with carrier (sine ) and apply butterworth filter to
get demodulated signal.
3.5 PROGRAM
N = 1024;
fs = 2048;
ts = 1/fs;
t=(0:N-1)/fs;
fc = 600;
fm1 = 200;
Em1 = 1;
m = Em1*cos(2*pi*fm1*t);
mh = Em1*cos((2*pi*fm1*t)-pi/2);
freq = fs * (0 : N/2) / N;
close all;
figure(2)
subplot(221);
plot(10*t(1:200),sbu(1:200),'r');
title('Time Domain Representation === USB');
subplot(222)
plot(10*t(1:200),sbl(1:200),'b');
subplot(223);
plot(freq,SBU(1:N/2+1))
xlabel('Frequency(Hz)');
ylabel('Spectral Magnitude');
legend('USB');
subplot(224)
plot(freq,SBL(1:N/2+1));
legend('LSB');
figure(4)
plot(freq,SBU(1:N/2+1),freq,SBL(1:N/2+1));
xlabel('Frequency(Hz)');
ylabel('Spectral Magnitude');
legend('USB','LSB');
DEMODULATION
md=sbu.*cos(2*pi*fc*t);
[b,a]=butter(2,0.1);
mf=filter(b,a,md);
figure(3)
plot(t,mf)
title('Demodulated Signal');
figure(1);
plot(t,m);
1. Define SSB-SC.
2. MATLABlogo will appear and after few moments Command Prompt will appear.
3. Go to the File Menu and select a New M-file. (File NewM-file) or in the left hand
corner a blank white paper icon will be there. Click it once.
5. Now start typing your program. After completing, save the M-file with appropriate name.
To execute the program Press F5 or go to Debug Menu and select Run.
6. After execution output will appear in the Command window .If there is an error then
with an alarm, type of error will appear in red color.
7. Rectify the error if any and go to Debug Menu and select Run.
2 Draw the spectrum of SSB-SC AM signal in which the modulating signal Emcosmt
modulates a carrier signal Eccosct.
4. Calculate the percentage power saving when a carrier and one of the sidebands are
suppressed in AM wave modulated to the depth of a. 100% and b. 50%.
10.9 MODEL GRAPH
Fig. 10.3
Time
domain
representation of USB
Fig. 10.4 Time domain representation of LSB
Fig.
Fig. 10.7
Demodulated Signal
3.9 LAB RESULT
Thus the SSB-SC modulation and demodulation was simulated with AWGN noise and
varying SNR.