Search

Search papers and lessons

Digital Modulation

Level 2 · 11 min read

Digital modulation sends bits by choosing one of a fixed set of wave shapes for each symbol, and packing more bits into each symbol makes the signal more fragile against noise.

On this page

  • Colour = topic mix
  • Probability
  • Discrete math
  • Calculus
  • Communications
  • Signal processing
  • Linear algebra
  • Sign in to see your progress

TL;DR

A radio or a wire carries a wave, not a stream of zeros and ones. To send bits, the transmitter picks one wave shape from a fixed menu for each short interval, called a symbol, and the receiver works out which shape arrived. Packing more bits into each symbol carries more data per second, but the shapes sit closer together, so noise can push a received shape into a neighbour's place and cause an error.

Where you'll see it: Wi-Fi, mobile networks, cable and satellite television, and the modems that connect over telephone lines.

Intuition

The problem: a wave has knobs

A sine wave is the simplest carrier, the steady wave that is modified to carry information (its frequency is the carrier frequency). It has three knobs: its amplitude (how tall it is), its frequency (how fast it oscillates), and its phase (where in its cycle it starts). Digital modulation keeps the frequency fixed and turns the other knobs according to the bits. Each choice of knob settings is one symbol. Because the receiver knows the menu in advance, it only has to decide which item of the menu it received.

Think of a switchboard with a few lamps. If you agree that a red lamp means 0 and a green lamp means 1, one lamp carries one bit. If you have four colours, one lamp carries two bits. More colours send more data per flash, but two similar shades are harder to tell apart in a dim room. Noise plays the role of the dim room. How bright the signal is compared with the room is the Signal-to-Noise Ratio.

Keying: switching between a few shapes

The names follow the knob that is switched. In amplitude-shift keying (ASK), the amplitude changes. In frequency-shift keying (FSK), the frequency changes. In phase-shift keying (PSK), the phase changes, so the wave is shifted in time by a fixed fraction of its cycle. Phase-shift keying with two phases is called binary PSK, or BPSK.

The constellation: a picture of the menu

Engineers draw the menu as points on a plane. A point at (I,Q)(I, Q) means the wave Icos⁡(ωt)−Qsin⁡(ωt)I\cos(\omega t) - Q\sin(\omega t), where ω\omega is the carrier frequency. The horizontal axis holds the in-phase part (the amount of cosine) and the vertical axis holds the quadrature part (the amount of sine, which is a cosine shifted by a quarter cycle, so the two parts do not interfere). The set of points is called the constellation. Changing the phase or amplitude of the wave moves the point around the plane.

−2−1.5−1−0.500.511.52−2−1012in-phase Iquadrature Q
  • axis
BPSK: two points on the horizontal axis, one for each bit. A bit is decided by which side of the vertical axis the received point lies on.

Two points give one bit per symbol. Four points at the corners of a square give two bits per symbol, the scheme called QPSK. Sixteen points on a grid give four bits per symbol, the scheme called 16-QAM (quadrature amplitude modulation). The grid form of QAM is what makes it dense: every extra bit doubles the number of points that must fit into the same area.

flowchart LR
  B["Bits: 1 0 1 1"] --> S["Group into symbols of 2 bits"]
  S --> M["Map each symbol to a point"]
  M --> W["Build the wave: I cos minus Q sin"]
  W --> C["Channel adds noise"]
  C --> D["Receiver picks the nearest point"]

Why noise is the enemy

Noise is random. Each received point is the transmitted point shifted by a small random offset. If the offset is small, the receiver lands on the right point. If the offset is large enough to cross the boundary halfway to the neighbour, the receiver decides on the wrong point and some bits are wrong. The lesson of the whole field is that the minimum distance between points sets how much noise the scheme can take. Spreading points apart needs more power, and packing more points into a fixed power budget brings them closer together.

The math

The modulated signal

Let s(t)s(t) be the transmitted wave. For a symbol with in-phase value II and quadrature value QQ, the standard form is

s(t)=Icos⁡(2πfct)−Qsin⁡(2πfct),s(t) = I \cos(2\pi f_c t) - Q \sin(2\pi f_c t),

where fcf_c is the carrier frequency in cycles per second and tt is time. Here cos⁡\cos and sin⁡\sin are the usual trigonometric functions (see Trigonometric Functions). The same expression can be written with the imaginary unit as Re{(I+jQ) ej2πfct}\mathrm{Re}\{(I + jQ)\, e^{j 2\pi f_c t}\}, which is the complex-number view from Complex Numbers where jj squares to −1-1. The point I+jQI + jQ is the complex symbol, and multiplying it by a rotating unit vector turns the point around the origin at the carrier rate. The rotating picture is the same idea as a Phasor.

Each symbol lasts a fixed time TsT_s (the receiver samples the wave once per symbol, see Fourier Transform for the frequency view of such signals). A scheme with MM points carries log⁡2M\log_2 M bits per symbol, so its bit rate is log⁡2MTs\dfrac{\log_2 M}{T_s}.

Average energy of a constellation

Let the points be p1,…,pMp_1, \dots, p_M, and assume each point is used equally often. The average symbol energy is

Es=1M∑i=1M∣pi∣2,E_s = \frac{1}{M}\sum_{i=1}^{M} |p_i|^2,

where ∣pi∣|p_i| is the distance of point pip_i from the origin. The energy per bit is Eb=Es/log⁡2ME_b = E_s / \log_2 M. Comparing schemes at equal energy per bit is the fair test, because it is the power the transmitter spends for each bit delivered.

Error from noise

Let the noise add a Gaussian value with mean zero and standard deviation σ\sigma on each axis (see Gaussian (Normal) Distribution and White Noise, the standard model for channel noise). For BPSK, the points are −1-1 and +1+1 on the horizontal axis. A bit is wrong when the noise pushes the received value across zero. For the point at +1+1, that happens when the noise is less than −1-1. The probability is the tail of the normal distribution. Write

Φˉ(x)=P(Z>x),Z∼N(0,1),\bar\Phi(x) = P(Z \gt x), \qquad Z \sim \mathcal{N}(0, 1),

Then the bit error probability for BPSK is

Pb=Φˉ ⁣(1σ).P_b = \bar\Phi\!\left(\frac{1}{\sigma}\right).

The tail function Φˉ\bar\Phi (often called the Q-function in communications, not to be confused with the quadrature axis QQ) has no closed form, so it is read from a table or a library. For example Φˉ(1)≈0.159\bar\Phi(1) \approx 0.159 and Φˉ(2)≈0.023\bar\Phi(2) \approx 0.023.

Worked examples

Example
1. BPSK by hand, one symbol

Use BPSK with map bit 0 to −1-1 and bit 1 to +1+1.

  1. The transmitter sends bit 1, so the symbol is +1+1.
  2. The channel adds noise, and the receiver measures the value 0.30.3. The noise was −0.7-0.7.
  3. Compute the distance to each point. To +1+1 the distance is ∣0.3−1∣=0.7|0.3 - 1| = 0.7. To −1-1 the distance is ∣0.3+1∣=1.3|0.3 + 1| = 1.3.
  4. Choose the nearer point, which is +1+1, so the receiver decides bit 1.
  5. The bit is correct. The decision boundary is zero, and the value 0.30.3 is on the correct side of it.
  6. Interpretation: a noise of −0.7-0.7 was not enough to cross the boundary. A noise of −1.0-1.0 or more would have flipped the bit.
Example
2. QPSK with Gray mapping

QPSK uses four points at (±1,±1)/2(\pm 1, \pm 1)/\sqrt{2}, which lie on a circle of radius 1. Each point carries two bits, and neighbouring points differ in only one bit. This is called Gray mapping.

  1. Assign the points: 00→(+1,+1)/200 \to (+1,+1)/\sqrt{2}, 01→(−1,+1)/201 \to (-1,+1)/\sqrt{2}, 11→(−1,−1)/211 \to (-1,-1)/\sqrt{2}, 10→(+1,−1)/210 \to (+1,-1)/\sqrt{2}.
  2. Send the bits 1 0 1 11\,0\,1\,1. They form two symbols, 1010 and 1111.
  3. The first symbol is 1010, which maps to (+1,−1)/2(+1,-1)/\sqrt{2}. The second is 1111, which maps to (−1,−1)/2(-1,-1)/\sqrt{2}.
  4. Check the energy: each point has ∣p∣2=(1/2)+(1/2)=1|p|^2 = (1/2) + (1/2) = 1, so the energy per symbol is 1 and the energy per bit is 1/21/2.
  5. Interpretation: QPSK moves two bits in the time BPSK moves one, and it does so with the same energy per symbol. Each bit now uses half the energy, so the points must fight more noise per bit.
Example
3. 16-QAM against BPSK at the same spacing

Use the 16-QAM grid with coordinates ±1\pm 1 and ±3\pm 3 on each axis. Neighbouring points are 2 apart.

  1. List the squared coordinates on one axis: 1,1,9,91, 1, 9, 9. Their mean is 55.
  2. Each point has squared distance from the origin equal to the sum over both axes, so the mean symbol energy is 5+5=105 + 5 = 10.
  3. The scheme carries 4 bits per symbol, so the energy per bit is 10/4=2.510 / 4 = 2.5.
  4. BPSK has points at ±1\pm 1, so the neighbours are 2 apart, the same as in 16-QAM. Its energy per bit is 11.
  5. Both schemes keep a minimum distance of 2 between points. 16-QAM therefore needs 2.52.5 times the energy per bit to reach the same spacing, which means the same error rate in the same noise.
  6. Interpretation: 16-QAM sends four bits in the time BPSK sends one, so its data rate is four times higher. The price is more power per bit. A system that is short on power picks a smaller constellation.

These numbers are computed from the grid, not measured.

Tradeoffs and failure modes

SituationWhat goes wrongBetter choice
Weak signal at long range, such as a distant linkDense constellations make errors at low powerBPSK or QPSK, which keep the points far apart
Crowded spectrum and high data demandLow-order schemes send few bits per symbol, wasting bandwidthHigher-order QAM, if the link has high signal-to-noise ratio
Simple radios that must work with cheap hardwarePhase must be recovered exactly, and a phase error corrupts every pointFSK, which needs no phase recovery
Channel with phase driftA rotated constellation makes every symbol wrongDifferential PSK, which encodes the change in phase between symbols
Any link with fadingDeep fades hide whole groups of symbolsCoding across symbols, covered in Linear Block Code

Failure modes in practice are usually noise, phase error and timing error. Noise moves points across boundaries. Phase error rotates the whole constellation. Timing error samples the wave at the wrong instant, which blurs points together. Good receivers estimate all three before deciding.

History

Claude Shannon's 1948 paper set the theory: a noisy channel has a maximum reliable data rate set by its bandwidth and signal-to-noise ratio (see Channel Capacity), and that clever coding can approach it. Early telephone data modems used frequency-shift keying in the 1960s, because it was simple and robust on poor lines. Phase and amplitude schemes became the standard for faster modems in the following decades, and quadrature amplitude modulation became the workhorse of high-speed telephone-line modems and later of cable and wireless systems. The reason it caught on is the same as the reason it is hard: a dense grid moves many bits per symbol, and modern receivers can measure and correct the errors that a dense grid invites.

Recap

A digital signal is a choice from a menu of wave shapes. The menu is drawn as a constellation of points in the plane. Each bit added to a symbol doubles the number of points, which shrinks the spacing and raises the energy needed per bit. Noise moves received points, and the receiver decides by picking the nearest point. Error rates are set by the spacing and the noise, which is why the next topics are Nyquist–Shannon Sampling Theorem for how fast symbols can be sent and Linear Block Code for how to correct the errors that remain.

Check yourself

QuestionRecall: what are the three knobs of a sine wave that a digital scheme can change?Show answer

Amplitude (how tall it is), frequency (how fast it oscillates), and phase (where in its cycle it starts). Amplitude-shift, frequency-shift and phase-shift keying switch one of these knobs according to the bits.

QuestionComputation: a constellation has 8 points, each used equally often, with energy 3 per symbol. How many bits are in each symbol, and what is the energy per bit?Show answer

Eight points carry log⁡28=3\log_2 8 = 3 bits per symbol. The energy per bit is Eb=Es/3=3/3=1E_b = E_s / 3 = 3/3 = 1.

QuestionWhy: why does packing more points into the same power make errors more likely?Show answer

With a fixed power, the points are constrained to a region, so adding points shrinks the distance between neighbours. Noise moves each received point by a random amount. A smaller spacing means a smaller noise value is enough to cross the decision boundary, so the chance of an error rises.

QuestionApplied: a BPSK link has noise standard deviation σ=0.5\sigma = 0.5 per axis. What is the bit error probability, and what does it mean for 1000 bits?Show answer

Use Pb=Φˉ(1/σ)=Φˉ(2)≈0.023P_b = \bar\Phi(1/\sigma) = \bar\Phi(2) \approx 0.023. Over 1000 bits, the expected number of errors is about 1000×0.023≈231000 \times 0.023 \approx 23. This is an average over many bits, not a guarantee for any single message.

Sources