020206
1 Abstract .............................................................................................. 1
2 Theory ................................................................................................ 1
2.1 Signal constellation ....................................................................... 1
2.2 Basic mapping schemes ................................................................ 2
2.2.1 M-ary PSK mapping.................................................................. 3
2.2.2 M-ary ASK mapping ................................................................. 6
2.3 Quadrature modulation................................................................ 7
2.3.1 QASK mapping......................................................................... 8
2.3.1.1 Properties of QASK mapping............................................... 9
2.4 Arbitrary-map QAM.................................................................. 11
3 Block descriptions............................................................................ 12
3.1 Modulator banks......................................................................... 13
3.1.1 Amplitude modulation............................................................. 13
3.1.1.1 MASK modulator............................................................... 13
3.1.1.2 S-QAM modulator ............................................................. 14
3.1.2 Phase modulation .................................................................... 15
3.1.2.1 MPSK modulator ............................................................... 16
3.1.2.2 Arbitrary-map QASK ......................................................... 16
3.2 Sampled read from workspace – multilevel data source .......... 17
3.2.1 Randint() function ................................................................... 17
3.3 Measurement tools...................................................................... 17
3.3.1 Scattered plot .......................................................................... 17
4 The system basics............................................................................. 18
4.1 The system setup parameters ..................................................... 18
4.1.1 Initial commands..................................................................... 19
4.2 The signals flow........................................................................... 20
4.3 Transmission analyses ................................................................ 20
5 Bibliography .................................................................................... 22
M-ary QAM and M-ary PSK modulations
1 Abstract
2 Theory
1
Fig.1. The square constellation map of 16QAM signal;
X{Re=1;Im=j0.33(3)}.
2
In both systems is the modulator output signal in polar form:
Zej(φ +θ),
where φ is the signal angle altered during PSK (Phase Shift Keying)
mapping; θ is constant initial offset, and Z signifies the magnitude altered during
ASK mapping.
In the case of PSK can the modulation process be described as a function of
the angle:
3
The circle radius is independent of the modulation M parameter, since it is
equivalent to the signal magnitude and is constant. Thus, when M increases, the
distance between neighboring points in the signal constellation a (1) decrease
(compare fig.3 and fig.5).
where a is the distance between the two points on the circle of R radius, and
M is the number of points in the constellation used for the mapping.
The signal magnitude and phase that are presented in the constellation maps
are encoded in rectangular coordinates and can be found by performing
conversion to polar notation by equation (3) and (4).
4
Mag = Im 2 ( X ) + Re 2 ( X ) (3)
Im( X )
θ = arctan (4)
Re( X )
Example.1.
Input value m = 0;
X(0) = e(0j +j2π0/2) = e(0) = 1;
m = 1;
X(1) = e(0j +j2π/2) =ejπ = cos(π ) + jsin(π ) = -1
Figure 6 shows several points of the 16PSK constellation map, in both polar
and rectangular notation. In all cases, the magnitude is equal to 1. The same
situation can be observed in fig. 5 where the 64PSK constellation map is
presented.
5
These constellation maps with M being large are not practical for
transmission over noisy channels, because of the small distances between the
points in signal constellation map (compare fig.1 and 3).
Other modulation scheme that alters one of the parameters of the complex
envelope in polar notation, includes the already mentioned MASK.
Fig.6. 16 PSK constellation map. Some points are converted from rectangular to
polar notation, revealing magnitude and phase of the signal.
6
Fig.7. 16 ASK constellation map.
7
The parameters of the resulting signal can be calculated according to the
expressions (3) and (4), after replacing Im(x) with the quadrature Q component
and Re(x) with the in-phase I component.
Setting different constellation maps changes the type of modulation. For
example, in QAM, BPSK, and QPSK, according to IEEE802.11a standard, is the
binary data signal mapped to a Gray-coded constellation.
Gray coding maps an integer number into a set of integers where the binary
representation of a given number only differs by one bit from its neighbors
(Example 2).
Example.2.
Example of Binary to Gray and Gray to Binary Mappings
Binary to Gray Mode Gray to Binary Mode
Input Output Input Output
0 0 (000) 0 (000) 0
1 1 (001) 1 (001) 1
2 3 (011) 2 (010) 3
3 2 (010) 3 (011) 2
4 6 (110) 4 (100) 7
5 7 (111) 5 (101) 6
6 5 (101) 6 (110) 4
7 4 (100) 7 (111) 5
8
Fig.10. 4-QAM and 64-QAM constellation maps.
M = 2 ⇒ a = 2;
M = 4 ⇒ a = 2;
2
M = 2 K > 4 ∩ K ∈ even , int ∩ Mag MAX = 2 ⇒ a = (6)
M −1
M=2
When M = 2, a binary QAM mapping scheme is applied. In other words,
the carrier is multiplied by two opposite values1, depending on the data sequence
to be transmitted (Fig.11). This operation gives the same results as BPSK
modulation, and BPSK can thus be realized using a QASK modulator in the
physical applications.
Mathematical proof of that property can be derived by comparing example
1 with equation 7, where eq.7 depicts the binary QAM mapping process.
jθ
Z = 1 ⇒ e jθ =0 = cos 0° + j sin 0° = 1
Ze = (7).
Z = −1 ⇒ −e jθ =0 = − cos 0° − j sin 0° = −1
where, Z is signal magnitude and θ is initial phase.
The only differences between BPSK and QASK is the inverse signs of the
calculated values in the constellation maps. In PSK m=0 generates 1 and m=1
generates –1, while in binary QASK m=0 generates –1 and m=1 generates 1.
1
In general “1” or “-1”.
9
Fig.11. BPSK and square-map binary QAM constellation.
10
Thus, a conclusion can be drawn, that in the case of M = 4, again, both
modulation schemes produce phase modulated signal. Thus, QPSK according to
Std 802.11a is realized by an QASK modulator.
M>4
If the value of M is larger then 4, both magnitude and phase alters in QAM.
Although phase shifts are not a straightforward effect of phase modulation. They
appear due to summation of sinusoids in the passband model, or corresponding,
I and Q components in the baseband model.
Taking all into account, BPSK, QPSK and M-ary QAM modulation
schemes with Gray-coded mapping specified in Std802.11a, can be performed
using a single QAM modulator.
Additionally, if the quadrature amplitude modulator has an option that
allows for constellation map definition, it is possible to define it in such a way,
that the system acts like a phase modulator, regardless of the value of M.
2
Separate for in-phase and quadrature component.
11
e jx = cos x + j sin x (8)
j ( 2π [0:MM −1] ) m
=
jx
Re(e ) Re e = cos 2π (9)
M
j ( 2π [ 0:MM −1] ) m
Im(e ) = Im e
jx
= sin 2π ( 10 )
M
where m defines modulator input as an integer value.
3 Block descriptions
The blocks outside the marked regions are not important for understanding
the theory, but are important from a simulink point of view, since they are used
for stimuli generation and signal format conversion.
12
Fig.16. The Simulink system introducing basic and quadrature baseband digital
mapping schemes such as PSK, ASK, QASK and QPSK.
13
Fig.17. MASK block setup mask.
M-ary number
The M-ary number parameter sets the mapping constellation of the signals.
The description in brackets defines the QAM modulator input signal, whose
values need to be in the range of [0:M-1]. If a binary data source is used in the
system, the signal needs to be converted by an Integer vector to scalar
converter from the Communication blockset/ Utility functions library.
Alternatively, a properly configured Read from workspace block can be
applied (see section 3.4).
14
Initial phase
Initial phase is applied in the second stage of modulation (fig.10).
Sample time
The sample time parameter was probably supposed to define the modulated
output signal sampling rate, but model designer have forgotten to apply such
functionality into the subsystem. Thus, the sample time parameter does not have
any influence on the modulator operation and can be set, e.g., to zero.
If all the parameters are set correctly (fig.19), the QAM modulator first
maps the input signal according to square constellation definition, and in second
step it mixes in-phase and quadrature components to form a single complex
signal and optionally applies an initial phase offsets (fig.20).
15
3.1.2.1 MPSK modulator
Like in almost all simulink models, the MPSK mod block setup mask
allows the user to specify basic parameters (fig.21). All of these are described in
section 3.1 above.
The baseband MPSK Mod alters the signal phase according to expression
(1), and outputs a baseband envelope of the modulated cosine signal.
16
Sample Time
Like in the QASK modulator case, the sample time does not apply to this
system.
17
Fig.24. Eye-diagram scattered plot setup mask.
Before starting the simulation, you should analyze the system carefully and
try to understand dependencies between particular blocks, parameters, etc.
The following description explains the signals flow and tasks that are
performed in different system stages.
The main mask allows the user to change the number of points in the signal
mapping constellation (Fig.25). Thus, different values of M causes different
mapping schemes to be simulated. Table 1 presents some popular and practical
system specifications.
18
Fig.25. The system setup dialog box.
19
4.2 The signals flow
The complete system consist of two basic sections:
• modulator banks,
• measurement tools.
All modulators are fed by the multilevel data signal generated using the
randint() function and Read from Workspace block.
The modulator banks perform two types of signal modulation:
• AM:
o MASK,
o QAM,
• PM:
o MPSK,
o QPSK.
20
Fig.27. Scattered plots depicting constellation maps of 16-MASK(left top),
16-QAM (left bottom), 16-PSK (right top) and 16-QPSK (right bottom).
This plot shows that PSK modulation actually only alters the signals phase
and that quadrature amplitude modulator generates phase modulated and/or
amplitude modulated signals, depending on the specified number of
constellation point.
Additionally, the system introduces alternative way of performing phase
modulation with the use of a standard QAM modulator and properly set
constellation map. In such case is the modulation called QPSK – Quadrature
Phase Shift Keying.
21
Fig.28. Magnitude and phase components of modulated signals. Characteristics
generated for 16 level mapping.
5 Bibliography
[1] Steven W. Smith. “The Scientist and Engineer's Guide to Digital Signal
22