---
title: Spread spectrum and multiple access
heading: Direct-sequence and frequency-hopping spread spectrum, processing gain and jamming margin, CDMA capacity, RAKE receivers, and the FDMA, TDMA, CDMA and OFDMA ways of sharing a channel
eyebrow: S8 · Lesson 47 · Spread spectrum and multiple access
xp: 50
---

::: hook
Spread spectrum deliberately wastes bandwidth: each bit is multiplied by a fast pseudo-random code, smearing it over a band hundreds of times wider than it needs. The receiver multiplies by the same code and the bit collapses back into a narrow band, while anything that doesn't match, a jammer, another user, a reflected copy arriving late, stays spread and mostly filtered away. That trick hides military signals in the noise, lets GPS satellites share one frequency, and let CDMA phones share a cell by code rather than by frequency or time. This lesson sizes the trick with processing gain and compares the ways many users can share one channel.
:::

::: play
- The number of simultaneous users one CDMA cell supports against the Eb/N0 each needs, $N \approx 1 + \frac{G_p}{(E_b/N_0)\,\nu\,(1 + f)}$, for processing gain $G_p$, voice activity ν and other-cell interference f.
- With IS-95's 21 dB of processing gain and 7 dB required, about 27 users fit with continuous transmission; voice activity (ν = 0.4) and neighbor cells (f = 0.55) bring it to about 42.
- Each decibel saved in required Eb/N0, by better coding or power control, adds users directly: CDMA capacity is interference limited.
:::
:::

```sim plot
view: graph
x: E = 3..12 dB
y: N = 0..120
slider: G = 15..30 = 21.07 dB
slider: v = 0.3..1 = 0.4
slider: f = 0..1 = 0.55
plot: 1 + 10^(G/10)/(10^(E/10)*v*(1 + f)) | samples: 400 | label: users per cell
plot: 1 + 10^(G/10)/10^(E/10) | samples: 400 | dashed | color: ch3 | label: continuous transmission, one cell
```

::: predict
## GPS sends 50 b/s of navigation data on a 1.023 Mchip/s code. How much processing gain does that give?

- [ ] 13 dB
- [ ] 23 dB
- [x] 43 dB
- [ ] 63 dB

::: reveal
$10\log(1.023 \times 10^6/50)$ = 43.1 dB. The satellite signal arrives at around −130 dBm, far below the thermal noise in its 2 MHz bandwidth (about −111 dBm), yet after despreading the 50 b/s data stands comfortably above the noise. That gain is also what lets all the satellites share one frequency.
:::
:::

::: nameit
## Direct-sequence spread spectrum

Each data bit (duration $T_b$) is multiplied by a ±1 pseudo-noise code at chip rate $R_c = 1/T_c$, widening the bandwidth by the **processing gain**

$$G_p = \frac{R_c}{R_b}$$

Despreading restores the signal, while a narrowband jammer or interference of power J is spread over $R_c$ and contributes only $J/G_p$ in the data bandwidth. The **jamming margin** is $G_p - (E_b/N_0)_\text{req} - L_\text{sys}$ in dB: how much stronger than the signal the jammer can be.

## Frequency hopping

The carrier jumps among $N = W/B$ channels of width B in a pseudo-random sequence; processing gain $10\log N$. A jammer on one channel hits only a fraction of the hops, which coding repairs.

## CDMA

Users share the band with different codes. Each user's signal is interference to the others, reduced by $G_p$, so with N equal-power users (perfect power control)

$$\frac{E_b}{N_0} \approx \frac{G_p}{(N - 1)\nu(1 + f)}, \qquad N \approx 1 + \frac{G_p}{(E_b/N_0)\nu(1 + f)}$$

**Power control** is essential: a nearby user transmitting at full power would drown distant ones (the **near–far problem**).

## RAKE receivers

Multipath copies separated by more than a chip time ($c/R_c$ in path length, 293 m at 1.023 Mcps) are resolvable: a RAKE receiver despreads each with its own delay and combines them, turning multipath into diversity (lesson 44).

## Sharing a channel

**FDMA** divides frequency, **TDMA** divides time (GSM: 8 slots per 200 kHz carrier), **CDMA** divides codes, and **OFDMA** (LTE, 5G, Wi-Fi 6) gives users different OFDM subcarriers and symbols.
:::

::: example
## IS-95 CDMA spreads 9.6 kb/s voice to 1.2288 Mchip/s and needs about 7 dB Eb/N0. How many users fit in a cell?

::: solution
1. **Processing gain.**
   $$\begin{aligned} G_p &= \frac{1.2288 \times 10^6}{9600} \\ &= 128 \\ &= 21.1\ \text{dB} \end{aligned}$$
2. **One isolated cell.** With continuous transmission:
   $$1 + \frac{128}{5.0} = 26.6$$
3. **Voice activity and other cells.** With 40% voice activity and other-cell interference adding 55%:
   $$1 + \frac{128}{5.0 \times 0.4 \times 1.55} = 42$$
4. **Sensitivity.** Every 1 dB less required Eb/N0 adds about a quarter more users.

**Answer:** 26.6 users with continuous transmission in one isolated cell, and 42 with 40% voice activity and 55% other-cell interference.
:::
:::

::: example
## A spread-spectrum link has 30 dB of processing gain, needs 10 dB Eb/N0 and has 2 dB of implementation loss. How strong a jammer can it tolerate?

::: solution
1. **Jamming margin.**
   $$30 - 10 - 2 = 18\ \text{dB}$$
2. **As a ratio.** The jammer can be 63 times stronger than the signal at the receiver and the link still works:
   $$10^{1.8} = 63$$
3. **More chips.** Doubling the chip rate would add 3 dB.

**Answer:** a jammer up to 18 dB, or 63 times, stronger than the signal.
:::
:::

::: example
## GPS spreads 50 b/s of navigation data at 1.023 Mchip/s and is received at −130 dBm with a 2 dB noise figure. What processing gain does it have, and what Eb/N0?

::: solution
1. **Processing gain.**
   $$\begin{aligned} G_p &= 10\log_{10}\frac{1.023 \times 10^6}{50} \\ &= 43.1\ \text{dB} \end{aligned}$$
2. **Below the noise.** The signal is far below the noise in its 2 MHz bandwidth: −130 against −109 dBm.
3. **Carrier to noise density.**
   $$\begin{aligned} C/N_0 &= -130 + 174 - 2 \\ &= 42\ \text{dB-Hz} \end{aligned}$$
4. **After despreading.**
   $$\begin{aligned} E_b/N_0 &= 42 - 10\log_{10}50 \\ &= 25\ \text{dB} \end{aligned}$$
   plenty for the data, with margin for buildings and foliage.

**Answer:** a processing gain of 43.1 dB, and an Eb/N0 of 25 dB after despreading.
:::
:::

::: check
given: c = 1.023 | 3.84 | 10.23; r = 0.05 | 9.6 | 64
answer: 10*log(c*1e6/(r*1e3))
unit: dB
tolerance: 0.05

## A DSSS system runs at {c} Mchip/s carrying {r} kb/s. What's its processing gain?

::: right
Right. $10\log(R_c/R_b)$ = {answer} dB.
:::

::: misses
- [10*log(c/r)] Use matching units: chips per second over bits per second.
- [any] Not yet. $G_p = R_c/R_b$.
:::
:::

::: check
given: G = 20 | 30 | 43; E = 6 | 10; L = 1 | 3
answer: G - E - L
unit: dB
tolerance: 0.05

## A spread-spectrum link has {G} dB processing gain, needs {E} dB Eb/N0 and loses {L} dB in implementation. What's its jamming margin?

::: right
Right. {G} − {E} − {L} = {answer} dB.
:::

::: misses
- [G - E] Subtract the system losses too.
- [any] Not yet. $G_p - (E_b/N_0)_\text{req} - L$.
:::
:::

::: check
given: G = 18 | 21.07; E = 5 | 7; v = 0.4 | 1; f = 0 | 0.6
answer: 1 + 10^(G/10)/(10^(E/10)*v*(1 + f))
tolerance: 0.5%

## A CDMA cell has {G} dB processing gain; users need {E} dB, with activity {v} and other-cell factor {f}. About how many users fit?

::: right
Right. $1 + G_p/((E_b/N_0)\nu(1 + f))$ = {answer}.
:::

::: misses
- [10^(G/10)/(10^(E/10)*v*(1 + f))] Add the user being received: N − 1 interferers.
- [any] Not yet. Solve $E_b/N_0 = G_p/((N - 1)\nu(1 + f))$.
:::
:::

::: check
given: W = 26 | 79 | 500; B = 0.2 | 1
answer: 10*log(W/B)
unit: dB
tolerance: 0.05

## A frequency hopper spreads over {W} MHz in {B} MHz channels. What's its processing gain?

::: right
Right. $10\log(W/B)$ = {answer} dB.
:::

::: misses
- [any] Not yet. The number of hop channels in dB.
:::
:::

::: check
given: c = 1.023 | 3.84 | 10.23
answer: 299.792458/c
unit: m
tolerance: 0.5%

## A RAKE receiver at {c} Mchip/s: how much longer must one path be than another to be resolved separately?

::: right
Right. One chip of travel: $c/R_c$ = {answer} m.
:::

::: misses
- [299.792458/(2*c)] Paths are resolvable at one full chip of delay.
- [any] Not yet. Delay of one chip times the speed of light.
:::
:::

::: check
given: W = 5 | 25 | 75; s = 8 | 4
answer: W/0.2*s
tolerance: 0.5%

## A TDMA system puts {s} time slots on each 200 kHz carrier. How many voice channels fit in {W} MHz?

::: right
Right. ({W} MHz / 0.2 MHz) × {s} = {answer}.
:::

::: misses
- [W/0.2] Each carrier carries {s} users.
- [any] Not yet. Carriers times slots per carrier.
:::
:::

::: check
kind: parts
given: P = -135 | -130 | -125; N = 1 | 3; R = 50 | 1000; c = 1.023 | 10.23

## A spread-spectrum navigation signal arrives at {P} dBm with a {N} dB noise figure, carrying {R} b/s at {c} Mchip/s.

::: part
answer: P + 174 - N
unit: dB-Hz
tolerance: 0.5%

### What is its C/N₀?

::: misses
- [any] $P + 174 - \text{NF}$.
:::
:::

::: part
answer: P + 174 - N - 10*log(R)
unit: dB
tolerance: 0.5%

### What Eb/N₀ does despreading leave?

::: misses
- [any] C/N₀ − $10\log_{10}R_b$.
:::
:::

::: part
answer: 10*log(c*1e6/R)
unit: dB
tolerance: 0.5%

### What is the processing gain?

::: misses
- [any] $10\log_{10}(R_c/R_b)$.
:::
:::
:::

::: check
kind: derivation
vars: G = 10..10000, E = 1..30, v = 0.3..1, f = 0..1

## A CDMA cell has processing gain G and users need Eb/N0 = E (both linear), with voice activity v and other-cell factor f.

::: step
answer: 1 + G/(E*v*(1 + f))

### How many users fit?
:::

::: step
answer: G/E

### What is the jamming margin (linear) against a single jammer, ignoring losses?
:::

::: right
Right. Voice activity and sectoring raise CDMA capacity because interference, not dimensions, limits it.
:::
:::

::: explain
## Why does despreading suppress a jammer but not the wanted signal?

::: model
The transmitter multiplies each data bit by a fast ±1 code, and the receiver multiplies by the same code, time-aligned. Since the code squared is exactly 1, the wanted signal's spreading is undone completely and its energy collapses back into the narrow data bandwidth, where a filter collects all of it. A jammer was never multiplied by the code at the transmitter, so the receiver's multiplication by the code spreads it instead, across the whole chip-rate bandwidth. Only the fraction falling inside the narrow data filter, one over the processing gain, gets through. The same thing happens to other users' signals with different codes and to delayed echoes, which is the basis of CDMA and RAKE reception.
:::
:::

::: practice

::: check
given: c = 2.048 | 30.72; r = 1 | 384
answer: 10*log(c*1e6/(r*1e3))
unit: dB
tolerance: 0.05

## Processing gain: {c} Mchip/s, {r} kb/s?

::: misses
- [any] $10\log(R_c/R_b)$.
:::
:::

::: check
given: G = 24 | 35; E = 4 | 9; L = 2 | 4
answer: G - E - L
unit: dB
tolerance: 0.05

## Jamming margin: {G} dB gain, {E} dB needed, {L} dB loss?

::: misses
- [any] $G_p - E_b/N_0 - L$.
:::
:::

::: check
given: G = 20 | 24; E = 6 | 8; v = 0.45 | 1; f = 0.3 | 0.7
answer: 1 + 10^(G/10)/(10^(E/10)*v*(1 + f))
tolerance: 0.5%

## CDMA users: {G} dB, {E} dB, ν {v}, f {f}?

::: misses
- [any] $1 + G_p/((E_b/N_0)\nu(1 + f))$.
:::
:::
:::
