---
title: ASK, FSK, PSK and QAM
heading: Sending bits by switching a carrier's amplitude, frequency or phase, the constellation diagram of I and Q, how many bits each symbol carries, the distance between symbols that noise must cross to cause an error, and the peak power QAM demands
eyebrow: D4 · Lesson 4 · ASK, FSK, PSK and QAM
xp: 40
---

::: hook
A digital radio sends a stream of symbols, each a short burst of carrier with a chosen amplitude and phase. Plot each possible symbol as a point, with the in-phase part of the carrier along one axis and the quadrature part along the other, and you get the **constellation**: two points for the simplest schemes, 1024 or more for the fastest Wi-Fi. More points carry more bits per symbol, but they sit closer together, and the receiver's noise blurs every point into a cloud. When the clouds overlap, symbols are misread.
:::

::: play
- 16-QAM symbols received through noise at a chosen $E_b/N_0$, the energy per bit over the noise density. Each cloud is one of the 16 symbols, and the gridlines are the decision boundaries.
- At high $E_b/N_0$ the clouds are tight and every symbol lands in its own box; lower it and the clouds spread across the boundaries.
- A phase error rotates the whole constellation, which pushes the outer points over their boundaries first.
:::

```sim plot
view: constellation
scheme: 16qam
slider: EbN0 = 0..20 = 12 dB step 0.5
slider: theta = -20..20 = 0 ° step 1
ebn0: EbN0
phase: theta°
symbols: 800
regions: on
```

::: predict
## QPSK and 16-QAM are both scaled to the same average symbol energy. How does the distance between neighboring 16-QAM symbols compare with QPSK's?

- [ ] The same
- [ ] Half
- [x] About 45% as large
- [ ] A quarter

::: reveal
With average symbol energy 1, QPSK's four points sit at (±1, ±1)/√2, √2 = 1.414 apart. 16-QAM's sixteen points at (±1, ±3) × (±1, ±3)/√10 are 2/√10 = 0.632 apart, 45% as far. Twice the bits per symbol cost more than half the spacing, so 16-QAM needs about 7 dB more signal per symbol for the same error rate.
:::
:::

::: nameit
## I and Q

Any narrowband signal can be written as $I(t)\cos 2\pi f_ct - Q(t)\sin 2\pi f_ct$. A symbol is a pair (I, Q), a point in the plane: its distance from the origin is the amplitude and its angle the phase.

## The schemes

- **ASK** (amplitude shift keying) uses points on one line; **on-off keying** is the simplest, 0 or A.
- **FSK** switches between frequencies. Tones spaced $1/(2T)$ apart for a symbol time T are orthogonal, the narrowest spacing that keeps them separable (MSK and Bluetooth's GFSK use it).
- **PSK** puts M points on a circle: BPSK (2), QPSK (4), 8-PSK. All have constant amplitude. Neighbors are $2\sqrt{E_s}\sin(\pi/M)$ apart.
- **QAM** fills a square grid: 16-QAM, 64-QAM, up to 4096-QAM in Wi-Fi 7. For square M-QAM, neighbors are $\sqrt{6E_s/(M - 1)}$ apart.

Each symbol carries $\log_2M$ bits. Gray coding labels neighboring points with codes differing in one bit, so the commonest error costs only one bit.

## Peak power

QAM's corner points have more energy than the average: $3(\sqrt M - 1)/(\sqrt M + 1)$ times for square M-QAM, 2.55 dB for 16-QAM and 3.68 dB for 64-QAM. The transmitter's amplifier must handle the peaks without distorting, so it runs below its maximum power. PSK and FSK have no such penalty.
:::

::: example
## Compare 8-PSK and 16-QAM at the same symbol energy.

::: solution
1. **8-PSK.** Its neighbors are
   $$2\sin(22.5°) = 0.765$$
   apart, and each point carries 3 bits.
2. **16-QAM.** Its neighbors are 0.632 apart and carry 4 bits.
3. **16-PSK.** For 4 bits on a circle, neighbors would be only
   $$2\sin(11.25°) = 0.390$$
   apart.
4. **Why the grid wins.** Past 8 points, a grid uses the plane far better than a circle.

**Answer:** 8-PSK's points are 0.765 apart with 3 bits each, and 16-QAM's are 0.632 apart with 4 bits, far better than 16-PSK's 0.390.
:::
:::

::: example
## A 64-QAM transmitter's average power is 1 W. What peak power must its amplifier handle?

::: solution
1. **Peak-to-average ratio.**
   $$3 \times 7/9 = 2.33$$
2. **Peak power.** That's 2.33 W, or 3.68 dB above average.
3. **Between symbols.** The filtered waveform between symbols peaks higher still.

**Answer:** the amplifier must handle 2.33 W peaks, 3.68 dB above the average, and more between symbols.
:::
:::

::: example
## A QPSK link sends 2 million symbols per second with roll-off 0.35. What are its bit rate, bandwidth and spectral efficiency?

::: solution
1. **Bit rate.** 2 bits per symbol gives 4 Mb/s.
2. **Bandwidth.**
   $$2 \times 1.35 = 2.7\ \text{MHz}$$
3. **Spectral efficiency.**
   $$4/2.7 = 1.48\ \text{b/s/Hz}$$
4. **Compared with BPSK.** QPSK has the same error rate per bit as BPSK at the same $E_b/N_0$, so it doubles the throughput in the same bandwidth for free.

**Answer:** 4 Mb/s in 2.7 MHz, a spectral efficiency of 1.48 b/s/Hz.
:::
:::

::: check
given: M = 2 | 8 | 64 | 1024
answer: log(M)/log(2)
unit: bits
tolerance: 0.5%

## How many bits does each symbol of an M = {M} constellation carry?

::: right
Right. $\log_2M$ = {answer} bits.
:::

::: misses
- [M] M points need only $\log_2M$ bits to label them.
- [any] Not yet. Bits per symbol.
:::
:::

::: check
given: M = 4 | 8 | 16
answer: 2*sin(pi/M)
tolerance: 0.5%

## For M-PSK with M = {M} and unit symbol energy, how far apart are neighboring points?

::: right
Right. $2\sin(\pi/M)$ = {answer}.
:::

::: misses
- [2*pi/M] That's the arc along the circle; the straight-line distance is the chord.
- [any] Not yet. The chord between points $2\pi/M$ apart on a unit circle.
:::
:::

::: check
given: M = 4 | 16 | 64 | 256
answer: sqrt(6/(M - 1))
tolerance: 0.5%

## For square M-QAM with M = {M} and unit average symbol energy, how far apart are neighboring points?

::: right
Right. $\sqrt{6/(M - 1)}$ = {answer}.
:::

::: misses
- [any] Not yet. Grid spacing 2 scaled to unit average energy.
:::
:::

::: check
given: M = 16 | 64 | 256 | 1024
answer: 10*log(3*(sqrt(M) - 1)/(sqrt(M) + 1))
unit: dB
tolerance: 0.5%

## How far above the average symbol energy is the corner symbol of square M-QAM with M = {M}, in decibels?

::: right
Right. $10\log_{10}[3(\sqrt M - 1)/(\sqrt M + 1)]$ = {answer} dB.
:::

::: misses
- [3*(sqrt(M) - 1)/(sqrt(M) + 1)] Express the ratio in decibels.
- [any] Not yet. Corner energy over average energy.
:::
:::

::: check
kind: parts
given: M = 8 | 16 | 32

## {M} points are placed evenly on a circle of radius 1 (PSK).

::: part
answer: 2*sin(pi/M)
tolerance: 0.5%

### How far apart are neighbors?

::: misses
- [any] $2\sin(\pi/M)$.
:::
:::

::: part
answer: log(M)/log(2)
unit: bits
tolerance: 0.5%

### How many bits does each symbol carry?

::: misses
- [any] $\log_2M$.
:::
:::
:::

::: check
kind: parts
given: k = 2 | 4 | 6; P = 0.1 | 1 | 5

## A square {k}-bit QAM constellation (with $2^{k/2}$ levels on each axis) has average power {P} W.

::: part
answer: 3*(2^(k/2) - 1)/(2^(k/2) + 1)
tolerance: 0.5%

### What is its peak-to-average power ratio?

::: misses
- [any] $3(L - 1)/(L + 1)$ for L levels per axis.
:::
:::

::: part
answer: P*3*(2^(k/2) - 1)/(2^(k/2) + 1)
unit: W
tolerance: 0.5%

### What peak power must the amplifier handle?

::: misses
- [any] Average × PAPR.
:::
:::
:::

::: explain
## Why does packing more points into a constellation need a stronger signal?

::: model
More points let each symbol carry more bits, but with the same average energy they have to crowd closer together. The receiver decides which symbol was sent by finding the nearest point, and noise moves each received symbol randomly around where it should be, so an error happens when the noise pushes it past the halfway line to a neighbor. Halving the distance between neighbors means a noise displacement half as large causes an error, and since the noise's spread is fixed by the receiver, keeping the same error rate needs the signal's amplitude scaled up to restore the spacing. Every two extra bits per QAM symbol, four times as many points, therefore cost roughly 6 dB more signal per symbol.
:::
:::

::: practice

::: check
given: M = 4 | 8 | 16 | 32 | 64
answer: 2*sin(pi/M)
tolerance: 0.5%

## PSK spacing, M = {M}?

::: misses
- [any] $2\sin(\pi/M)$.
:::
:::

::: check
given: M = 4 | 16 | 64 | 256 | 1024 | 4096
answer: sqrt(6/(M - 1))
tolerance: 0.5%

## QAM spacing, M = {M}?

::: misses
- [any] $\sqrt{6/(M - 1)}$.
:::
:::
:::
