LAB4
LAB4
1. Theoretical Background
Quadrature Amplitude Modulation (QAM) conveys two bit streams by changing the
amplitude of two carrier waves that have the same frequency and a 90° shift. The most
common type of QAM modulation is rectangular QAM, were the constellation points are
arranged in a square grid. Depending on the desired number of bits per symbol (4, 5, 6 …),
we have 16QAM, 32QAM, 64 QAM, etc.…
ecelabs.njit.edu/ece489v2/lab5.php 1/6
5/25/23, 9:48 AM ECE 489 - Communications System Laboratory: Lab 5 16 QAM Modulation
As in QPSK, there are two ways (codes) to map the symbols to the constellation points:
Binary code and Gray code. In Gray code, two adjacent symbols differ in one bit, while in
Binary code, two adjacent symbols may differ in 2 bits. Therefore, Gray code is preferable
over Binary code, since if a receiver maps a symbol to one of its adjacent symbols (due to
noise or errors), it will lead to 1 wrong bit instead of 2.
The demodulator maps the received signal (possibly distorted due to noise in the channel)
back to bit streams.
For 16 QAM, the Bit Error Rate (BER) is the same as BPSK.
−−−−
4Eb3
BE R = Q(√ )
4 N0
Since in QAM modulation two carriers are used, the Symbol Error Rate per carrier is given
by:
−−−−
6 Es
Psc = Q(√ )
4 5N0
2
Ps = 1 − (1 − Ps c)
Where N0 /2 is the noise power spectral density, and Q(. ) is the Q function of the
Gaussian distribution.
2. Prelab
1. Draw the constellation diagram for 16 QAM. Which bits does each point represent?
2. What is the difference between Binary code and Gray code? Which one is better?
3. What is the trade-off of using 16 QAM over BPSK?
ecelabs.njit.edu/ece489v2/lab5.php 2/6
5/25/23, 9:48 AM ECE 489 - Communications System Laboratory: Lab 5 16 QAM Modulation
ecelabs.njit.edu/ece489v2/lab5.php 3/6
5/25/23, 9:48 AM ECE 489 - Communications System Laboratory: Lab 5 16 QAM Modulation
The music file that you will use (named Music-1.wav) is located on the Desktop.
The music file length is 62 second, so set the Simulation Time to 62 seconds.
In both Integer to Bit Converter and Bit to Integer Converter blocks, set the Number of bits
per integer to 16 (this is related to the music file and not the modulation scheme).
In both Modulator and Demodulator blocks, use Gray Constellation ordering, set the
Normalization method to Peak Power, and set the Peak Power value to 1 Watt.
In this experiment, you will adjust the value of SNR in the AWGN block and observe the
quality of the music. Choose at least three values of SNR (high, mid, low) and comment
on the quality of the music.
Repeat for different normalization methods in the modulator and demodulator blocks.
ecelabs.njit.edu/ece489v2/lab5.php 4/6
5/25/23, 9:48 AM ECE 489 - Communications System Laboratory: Lab 5 16 QAM Modulation
In this part, you will simulate the effect of these distortions on the transmitted signal and how
to correct them.
Load the file named QAM_param.mat into the workspace by double clicking it.
Open the file named QAM.slx. This file contains a simulated QAM communication
system. The system is shown in Figure 4.
ecelabs.njit.edu/ece489v2/lab5.php 5/6