Professional Documents
Culture Documents
DIVISION
MULTIPLEXING
AND
DEMULTIPLEXING
Aim:
To Study Frequency Division Multiplexing and Demultiplexing
Objective:
To generate and plot sine waves of modulating frequency
1Hz,3 Hz and 5 Hz.
To generate sine waves of carrier frequency
1KHz,3KHz,5KHz.
To generate and plot modulated signals of each sine wave.
To plot the transmitted signal.
To plot the output from band pass filter.
To plot the demodulated signals
Apparatus:
1. Frequency division multiplexing/ de-multiplexing experiment
board.
2. CRO
3. Patch chords
4. Mat lab software
Theory:
FREQUENCY DIVISION MULTIPLEX: In analog transmission signals are commonly multiplexed
using frequency-division multiplexing. In which the carrier
bandwidth is divided into sub channels of different frequency
widths, each carrying a signal at the same time in parallel.
Traditional terrestrial microwave and satellite links employ
FDM.
FDM is used in broadcast& cable TV and commercial &
cellular radio.
FDM is an analog techniques that can be applied when the
bandwidth of a link is greater than the combined bandwidths
of the signals to be transmitted.
Low Pass Filter:A low-pass filter is an electronic filter that passes low-frequency
signals but attenuates signals with frequencies higher than
the cutoff frequency. The actual amount of attenuation for each
frequency varies from filter to filter. Low-pass filters provide a
smoother form of a signal, removing the short-term fluctuations,
and leaving the longer-term trend.
Band pass filter:BPF are use when a particular band, or spread, or frequencies
need to be filtered from a wider range of mixed signals. Filter
circuits can be designed to accomplish this task by combining the
properties of low pass and high pass into a singel filter. The result
is called a band pass filter.
Block diagram:
Procedure:
1. Study the circuit configuration on the front panel of the
trainer
2. Connect carrier 1 output to the carrier 1 input of modulator 1
circuit
3. Connect AF signal 1output to the AF signal 1 input of
modulator 1 circuit
Circuit Diagram:
Connection Diagram:
MATLAB CODE:
clc; % clear command window
clear all; % clear workspace
close all; %close all the previous windows
%% Signals to transmit.
fs = 20000;
%this section will generate and
1Hz,3Hz ,5Hz
% Sine Waves.
[x1 t1] = Generate_Sin(1, 1, 0,
[x2 t2] = Generate_Sin(1, 3, 0,
[x3 t3] = Generate_Sin(1, 5, 0,
% Sampling frequency.
plot the sine waves of frequency
1, fs);
1, fs);
1, fs);
numOfSamplesPerSignal = fs + 1;
subplot(3,1,1);
plot(t1, x1, 'r', 'LineWidth', 2);
axis([t1(1) t1(end) min(x1)-0.2 max(x1)+0.2]);
title('Sine Wave, f = 1 Hz', 'Fontsize', 14);
xlabel('Time');
ylabel('Amplitude');
grid on;
subplot(3,1,2);
plot(t2, x2, 'g', 'LineWidth', 2);
axis([t2(1) t2(end) min(x2)-0.2 max(x2)+0.2]);
title('Sine Wave, f = 3 Hz', 'Fontsize', 14);
xlabel('Time');
ylabel('Amplitude');
grid on;
subplot(3,1,3);
plot(t3, x3, 'b', 'LineWidth', 2);
axis([t3(1) t3(end) min(x3)-0.2 max(x3)+0.2]);
title('Sine Wave, f = 5 Hz', 'Fontsize', 14);
xlabel('Time');
ylabel('Amplitude');
grid on;
%% Carrier Signals.
%this section will generate the carrier waves of frequency 1kHz,3
kHz,5 kHz
%% Modulated Signals.
%this section will generate and plot the modulated signals
m1 = x1 .* fc1;
m2 = x2 .* fc2;
m3 = x3 .* fc3;
figure;
subplot(3, 1, 1);
plot(m1, 'r');
axis([0 length(m1) min(m1)-0.2 max(m1)+0.2]);
title('Modulated Signal, m1', 'Fontsize', 14);
xlabel('Time');
ylabel('Amplitude');
grid on;
subplot(3, 1, 2);
plot(m2, 'g');
axis([0 length(m2) min(m2)-0.2 max(m2)+0.2]);
title('Modulated Signal, m2', 'Fontsize', 14);
xlabel('Time');
ylabel('Amplitude');
grid on;
subplot(3, 1, 3);
plot(m3, 'b');
axis([0 length(m3) min(m3)-0.2 max(m3)+0.2]);
title('Modulated Signal, m3', 'Fontsize', 14);
xlabel('Time');
ylabel('Amplitude');
grid on;
figure;
subplot(3, 1, 1);
plot(abs(fft(m1)), 'r');
axis([0 length(m1) 0 1]);
title('Modulated Signal, m1', 'Fontsize', 14);
xlabel('Frequency');
ylabel('Amplitude\newline(Zoomed)');
grid on;
subplot(3, 1, 2);
plot(abs(fft(m2)), 'g');
axis([0 length(m2) 0 1]);
title('Modulated Signal, m2', 'Fontsize', 14);
xlabel('Frequency');
ylabel('Amplitude\newline(Zoomed)');
grid on;
subplot(3, 1, 3);
plot(abs(fft(m3)), 'b');
axis([0 length(m3) 0 1]);
title('Modulated Signal, m3', 'Fontsize', 14);
xlabel('Frequency');
ylabel('Amplitude\newline(Zoomed)');
grid on;
figure;
subplot(3, 1, 1);
spectrogram(m1);
title('Modulated Signal, m1', 'Fontsize', 14);
subplot(3, 1, 2);
spectrogram(m2);
title('Modulated Signal, m2', 'Fontsize', 14);
subplot(3, 1, 3);
spectrogram(m3);
title('Modulated Signal, m3', 'Fontsize', 14);
%% Transmitted Signal.
%this section will plot the transmitted signals
Tx = m1 + m2 + m3;
figure;
subplot(3, 1, 1);
plot(Tx);
axis([0 length(Tx) min(Tx)-1 max(Tx)+1]);
title('Transmitted Signal, Tx', 'Fontsize', 14);
xlabel('Time');
ylabel('Amplitude');
grid on;
subplot(3, 1, 2);
plot(abs(fft(Tx)));
axis([0 length(Tx) 0 1]);
title('Transmitted Signal, Tx', 'Fontsize', 14);
xlabel('Frequency');
ylabel('Amplitude\newline(Zoomed)');
grid on;
subplot(3, 1, 3);
spectrogram(Tx);
title('Transmitted Signal, Tx', 'Fontsize', 14);
%% Received Signal.
Rx = Tx;
% Channel is considered to be noiseless.
demuxed_x2 = abs(hilbert(bpf_filtered_m2));
demuxed_x3 = abs(hilbert(bpf_filtered_m3));
figure;
subplot(3, 1, 1);
plot(demuxed_x1, 'r', 'LineWidth', 2);
axis([0 length(demuxed_x1) min(demuxed_x1)-0.2 max(demuxed_x1)+0.2]);
title('Demuxed Signal, demuxed\_x1 (Envelope Detection).', 'Fontsize',
14);
xlabel('Time');
ylabel('Amplitude');
grid on;
subplot(3, 1, 2);
plot(demuxed_x2, 'g', 'LineWidth', 2);
axis([0 length(demuxed_x2) min(demuxed_x2)-0.2 max(demuxed_x2)+0.2]);
title('Demuxed Signal, demuxed\_x2 (Envelope Detection).', 'Fontsize',
14);
xlabel('Time');
ylabel('Amplitude');
grid on;
subplot(3, 1, 3);
plot(demuxed_x3, 'b', 'LineWidth', 2);
axis([0 length(demuxed_x3) min(demuxed_x3)-0.2 max(demuxed_x3)+0.2]);
title('Demuxed Signal, demuxed\_x3 (Envelope Detection).', 'Fontsize',
14);
xlabel('Time');
ylabel('Amplitude');
grid on;
Amplitude
Amplitude
Amplitude
WAVEFORMS:
Sine Wave, f = 1 Hz
1
0
-1
0.1
0.2
0.3
0.4
0.5
Time
0.6
0.5
Time
0.6
0.5
Time
0.6
0.7
0.8
0.9
0.8
0.9
0.8
0.9
Sine Wave, f = 3 Hz
1
0
-1
0.1
0.2
0.3
0.4
0.7
Sine Wave, f = 5 Hz
1
0
-1
0.1
0.2
0.3
0.4
Fig 1
0.7
Amplitude
Amplitude
Amplitude
Modulated Signal, m1
2
0
-2
0.2
0.4
0.6
0.8
1
Time
1.2
1.4
1.6
1.8
x 10
Modulated Signal, m2
2
4
0
-2
0.2
0.4
0.6
0.8
1
Time
1.2
1.4
1.6
1.8
x 10
Modulated Signal, m3
2
4
0
-2
0.2
0.4
0.6
0.8
1
Time
1.2
Fig 2
1.4
1.6
1.8
2
4
x 10
Amplitude
(Zoomed)
Amplitude
(Zoomed)
Amplitude
(Zoomed)
Modulated Signal, m1
1
0.5
0
0.2
0.4
0.6
0.8
1
1.2
Frequency
1.4
1.6
1.8
x 10
Modulated Signal, m2
2
4
0.5
0
0.2
0.4
0.6
0.8
1
1.2
Frequency
1.4
1.6
1.8
x 10
Modulated Signal, m3
2
4
0.5
0
0.2
0.4
0.6
0.8
1
1.2
Frequency
Fig 3
1.4
1.6
1.8
2
4
x 10
Modulated Signal, m1
Time
2500
2000
1500
1000
500
0
0.1
0.2
0.3
0.4
0.5
0.6
Normalized Frequency ( rad/sample)
0.7
0.8
0.9
0.4
0.5
0.6
Normalized Frequency ( rad/sample)
0.7
0.8
0.9
0.4
0.5
0.6
Normalized Frequency ( rad/sample)
0.7
0.8
0.9
Modulated Signal, m2
Time
2500
2000
1500
1000
500
0
0.1
0.2
0.3
Modulated Signal, m3
Time
2500
2000
1500
1000
500
0
0.1
0.2
0.3
Fig 4
Amplitude
Amplitude
(Zoomed)
4
2
0
-2
-4
Transmitted Signal, Tx
0.2
0.4
0.6
0.8
1
Time
1.2
1.4
1.6
1.8
x 10
Transmitted Signal, Tx
1
0.5
0
0.2
0.4
0.6
0.8
1
1.2
Frequency
1.4
1.6
1.8
2500
2000
1500
1000
500
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
Fig 5
2
4
x 10
Transmitted Signal, Tx
Time
2
4
0.9
Amplitude
Amplitude
Amplitude
2
0
-2
0.2
0.4
0.6
0.8
1
Time
1.2
1.4
1.6
1.8
2
4
x 10
0
-2
0.2
0.4
0.6
0.8
1
Time
1.2
1.4
1.6
1.8
2
4
x 10
0
-2
0.2
0.4
0.6
0.8
1
Time
1.2
Fig 6
1.4
1.6
1.8
2
4
x 10
Amplitude
0.2
0.4
0.6
0.8
1
Time
1.2
1.4
1.6
1.8
2
4
x 10
Amplitude
0.2
0.4
0.6
0.8
1
Time
1.2
1.4
1.6
1.8
2
4
x 10
Amplitude
0.2
0.4
0.6
0.8
1
Time
1.2
Fig 7
1.4
1.6
1.8
2
4
x 10
Amplitude
2
1
0
0.2
0.4
0.6
0.8
1
Time
1.2
1.4
1.6
1.8
2
4
x 10
Amplitude
2
1
0
0.2
0.4
0.6
0.8
1
Time
1.2
1.4
1.6
1.8
2
4
x 10
Amplitude
2
1
0
0.2
0.4
0.6
0.8
1
Time
1.2
1.4
1.6
1.8
2
4
x 10
Fig 8
Advantages of FDM:
1. Here user can be added to the system by simply adding
another pair of transmitter modulator and receiver
domodulators.
2. FDM system support full duplex information flow which is
required by most of application.
3. Noise problem for analog communication has lesser effect.
Disadvantages of FDM:
1. In FDM system, the initial cost is high. This may include the
cable between the two ends and the associated connectors
for the cable.
2. In FDM system, a problem for one user can sometimes affect
others.
3. In FDM system, each user requires a precise carrier
frequency.
Applications:
1. Telegraphy
The earliest communication technology using electrical wires, and
therefore sharing an interest in the economies afforded by
multiplexing, was the electric telegraph. Early experiments
allowed two separate messages to travel in opposite directions
simultaneously, first using an electric battery at both ends, then
at only one end.
2. Telephony
In telephony, a customer's telephone line now typically ends at
the remote concentrator box down the street, where it is
multiplexed along with other telephone lines for
that neighbourhood or other similar area. The multiplexed signal
is then carried to the central switching office on significantly
fewer wires and for much further distances than a customer's line
can practically go. This is likewise also true for digital subscriber
lines (DSL).
3. Digital broadcasting
In digital television and digital radio systems, several variable bitrate data streams are multiplexed together to a fixed bit rate
transport stream by means of statistical multiplexing. This makes
it possible to transfer several video and audio channels
simultaneously over the same frequency channel, together with
various services.
Result:
Fig 1 shows Sine waves at modulating frequencies 1Hz,3Hz
and 5Hz are generated and plotted
Fig 2 shows Modulated signals of frequencies 1KHz,3KHz and
5KHZ are generated and plotted
Fig 3 shows frequency spectrum of modulated signals
Fig 4 shows modulated frequency at normalized frequency
Fig 5 shows plot of transmitted signal
Fig 6 shows band pass filtered signals
Fig 7 and 8 shows demultiplexed signals
Hence ,the frequency multiplexing and demultiplexing have
been generated successfully