0% found this document useful (0 votes)
73 views5 pages

LAB Report #5: Title

The document describes a lab experiment on Quadrature Amplitude Modulation (QAM) using TIMS modules. The objectives are to review QAM and implement modulation and demodulation. It describes using two carriers at 100 kHz from the master signals module along with two message signals at 2 kHz and 300-3000 Hz. It provides steps for setting up the modulator and demodulator. Demodulation requires precisely matching the carrier phases to the transmitter. Code is also provided to implement QAM modulation and demodulation in MATLAB and a Simulink model. The conclusion states the objectives of reviewing and implementing QAM modulation and demodulation were achieved using both the TIMS modules and MATLAB/Simulink simulations.

Uploaded by

Afaq Khaliq
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
73 views5 pages

LAB Report #5: Title

The document describes a lab experiment on Quadrature Amplitude Modulation (QAM) using TIMS modules. The objectives are to review QAM and implement modulation and demodulation. It describes using two carriers at 100 kHz from the master signals module along with two message signals at 2 kHz and 300-3000 Hz. It provides steps for setting up the modulator and demodulator. Demodulation requires precisely matching the carrier phases to the transmitter. Code is also provided to implement QAM modulation and demodulation in MATLAB and a Simulink model. The conclusion states the objectives of reviewing and implementing QAM modulation and demodulation were achieved using both the TIMS modules and MATLAB/Simulink simulations.

Uploaded by

Afaq Khaliq
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

M.

AFAQ KHALIQ FA16-BCE-093

LAB Report #5
Title:
To Perform Quadrature Amplitude Modulation and Demodulation
Objectives:

 Review of the Quadrature Amplitude Modulator (QAM) in digital


communications.
 Implementation of QAM generation and demodulation using TIMS modules.

Methodology:
The 100 kHz quadrature carriers come from the MASTER SIGNALS module. Note that
these do not need to be in precise quadrature relationship; errors of a few degrees
make negligible difference to the performance of the system as a whole - transmitter,
channel, and receiver. It is at the demodulator that precision is required - here it is
necessary that the local carriers match exactly the phase difference at the
transmitter. The two independent analog messages come from an audio oscillator
and the master signals module (2 kHz).
Setting up is simple. Choose a frequency in the range say 300 to 3000 Hz for the
audio oscillator (message ‘A’). Confirm there are DSBSC at the output of each
multiplier. Adjust their amplitudes to be equal at the output of the ADDER, by using
the ADDER gain controls (remove the ‘A’ input when adjusting ‘g’, and the ‘B’ input
when adjusting ‘G’). Since the QAM signal will (in later experiments) be the input to
an analog channel, its amplitude should be at about the TIMS ANALOG REFERENCE
LEVEL of 4-volt peak-to peak.

Demodulation
The 100 kHz carrier (sinωt or cosωt) comes from master signals. This is a ‘stolen’
carrier. In commercial practice the carrier information must be derived directly from
M.AFAQ KHALIQ FA16-BCE-093

the received signal. Remember to set the on-board switch SW1 of the phase shifter
to the HI range.
The 3 kHz LPF in the headphone amplifier can be used if the messages are restricted
to this bandwidth. Observe the output from this filter with the oscilloscope on CH2-
A. Since message A is already displayed on CH1-A, an immediate comparison can be
made. Probably both messages will be appearing at the filter output, although of
different amplitudes. Being on different frequencies the display will not be stationary.
Now slowly rotate the coarse control of the phase shifter. The output waveform
should slowly approach the shape of message A (if not, flip the 180 front panel
toggle switch). Note that the phase adjustment is not used to maximize the
amplitude of the wanted message but to minimize the amplitude of the unwanted
message
M.AFAQ KHALIQ FA16-BCE-093

In order to do QAM modulation and demodulation on matlab we wrote the


following code
clc; close all; clear all;

clc, clear,close all


t=-1:0.001:1;
wc1=2*pi*2;
wc2=2*pi*5;
wc=2*pi*100;
m1=sin(wc1.*t);
m2=sin(wc2.*t);
c1=cos(wc.*t);
c2=cos(wc.*t+pi/2);
qam1=m1.*c1+m2.*c2;
dem1=(qam1).*c1;
[b1,a1]=butter(1,0.002);
dem2=(qam1).*c2;
[b2,a2]=butter(1,0.005);
subplot 421
plot(t,m1);
title('Message Signal 1');
subplot 422
plot(t,m2);
title('Message Signal 2');
subplot 423
plot(t,qam1);
title('Modulated Signal');
subplot 424
plot(t,filter(b1,a1,dem1))
title('Demodulated Signal 1');
subplot 425
plot(t,filter(b2,a2,dem2))
title('Demodulated Signal 2');
subplot 426
plot(t,c1)
title('Carrier Signal 1');
subplot 427
plot(t,c2)
title('Carrier Signal 2');
Result
M.AFAQ KHALIQ FA16-BCE-093

And its Simulink model is


M.AFAQ KHALIQ FA16-BCE-093

Result:

Conclusion:
After performing this lab we were able to do frequency modulation and
demodulation of QAM on tims and on matlab and Simulink.

You might also like