Loading learning content...
FDMA separates users by frequency. TDMA separates users by time. Code Division Multiple Access (CDMA) takes a radically different approach: it allows all users to transmit simultaneously on the same frequency and distinguishes them through unique mathematical codes.
This concept initially seems impossible—if everyone transmits at once on the same frequency, shouldn't the result be chaos, an unintelligible cacophony of overlapping signals? The answer lies in spread spectrum technology and the remarkable properties of orthogonal codes.
CDMA was originally developed for military communications due to its inherent resistance to jamming and low probability of intercept. The same properties that provide security also enable efficient multiple access—making CDMA the foundation of 3G cellular systems (CDMA2000, WCDMA) and GPS navigation.
By the end of this page, you will understand CDMA's complete theoretical foundation: the concept of spreading and despreading, how unique codes enable user separation, the mathematics of direct sequence spread spectrum, chip rates versus bit rates, processing gain, near-far problem, and power control. You will comprehend why CDMA revolutionized wireless communication.
Traditional communication systems transmit signals in the minimum bandwidth required—a principle called bandwidth efficiency. CDMA deliberately violates this principle: it spreads each user's signal across a bandwidth much wider than necessary.
Why Spread the Signal?
Spreading provides several profound benefits:
The Spreading Process:
Each data bit is multiplied by a high-rate spreading code consisting of many "chips." If the data rate is $R_b$ bits per second and the chip rate is $R_c$ chips per second, the spreading factor $SF$ is:
$$SF = \frac{R_c}{R_b}$$
A spreading factor of 64 means each data bit is represented by 64 chips—and the signal occupies approximately 64× the bandwidth of the original data.
Direct Sequence Spread Spectrum (DSSS):
The most common CDMA implementation uses Direct Sequence Spread Spectrum. The user's data signal $d(t)$ is multiplied by a spreading code $c(t)$:
$$s(t) = d(t) \cdot c(t) \cdot \cos(2\pi f_c t)$$
where:
The spread signal $s(t)$ occupies bandwidth approximately equal to the chip rate $R_c$, regardless of the original data rate $R_b$.
**Given:**
- User data rate: 9.6 kbps (voice)
- Chip rate: 1.2288 Mcps (IS-95 CDMA)
- One data bit: +1**Step 1:** Calculate spreading factor
$$SF = \frac{R_c}{R_b} = \frac{1.2288 \times 10^6}{9.6 \times 10^3} = 128 \text{ chips per bit}$$
**Step 2:** Apply spreading code
If spreading code for this bit period is:
$c = [+1, -1, +1, +1, -1, -1, +1, -1, ...]$ (128 chips)
Data bit: $d = +1$
**Step 3:** Spread signal
$s = d \times c = +1 \times [+1, -1, +1, +1, -1, -1, +1, -1, ...]$
$s = [+1, -1, +1, +1, -1, -1, +1, -1, ...]$ (same as code)
If data bit were $d = -1$:
$s = -1 \times c = [-1, +1, -1, -1, +1, +1, -1, +1, ...]$ (inverted code)
**Step 4:** Bandwidth expansion
Original bandwidth: ~9.6 kHz
Spread bandwidth: ~1.25 MHz ($1.2288 × 10^6$ Hz)
Bandwidth expansion: 128× (matches spreading factor)A chip is the fundamental unit of the spreading code—analogous to a bit but carrying no user information on its own. The term "chip" distinguishes these from data bits. The chip rate determines the spread bandwidth, while the bit rate determines the user's data capacity. Their ratio (spreading factor) determines processing gain.
Spreading alone doesn't enable multiple access—what matters is the receiver's ability to despread the desired signal while rejecting all others. This is where the mathematical properties of spreading codes become crucial.
The Despreading Operation:
The receiver multiplies the incoming signal by the same spreading code used by the intended transmitter:
$$r(t) \cdot c(t) = [d(t) \cdot c(t)] \cdot c(t) = d(t) \cdot c^2(t) = d(t) \cdot 1 = d(t)$$
Since a spreading code multiplied by itself equals +1 (because $(+1)^2 = (-1)^2 = 1$), the despreading operation recovers the original data.
What Happens to Other Users' Signals?
If User A's receiver multiplies by User A's code $c_A(t)$, but receives User B's signal $d_B(t) \cdot c_B(t)$:
$$[d_B(t) \cdot c_B(t)] \cdot c_A(t) = d_B(t) \cdot [c_B(t) \cdot c_A(t)]$$
If codes $c_A$ and $c_B$ are orthogonal, their product averages to zero over each bit period:
$$\frac{1}{T_b} \int_0^{T_b} c_A(t) \cdot c_B(t) , dt = 0$$
This means User B's signal, after despreading with User A's code, becomes zero-mean noise that can be filtered out—User B effectively disappears!
The Correlation Receiver:
In CDMA, the receiver performs correlation—multiplying by the code and integrating over the bit period. The integration averages out:
Mathematical Formulation:
The decision statistic for bit $i$ of User A is:
$$z_i = \int_{iT_b}^{(i+1)T_b} r(t) \cdot c_A(t) , dt$$
where $r(t)$ is the total received signal including all users and noise. If orthogonality holds and codes are synchronized:
$$z_i = A_A \cdot d_i^A + \sum_{k \neq A} A_k \cdot d_i^k \cdot \rho_{Ak} + n_i$$
where $\rho_{Ak}$ is the cross-correlation between codes $c_A$ and $c_k$. For orthogonal codes, $\rho_{Ak} = 0$ and the interference term vanishes.
Orthogonality is CDMA's enabling principle. Just as perpendicular vectors have zero dot product, orthogonal codes have zero cross-correlation. This allows the receiver to "see" only the desired user while remaining mathematically blind to all others—even though everyone transmits on the same frequency at the same time.
One of CDMA's most powerful properties is processing gain—the improvement in signal-to-interference ratio achieved through the spreading and despreading process.
Definition of Processing Gain:
Processing gain $G_p$ is the ratio of the spread bandwidth to the data bandwidth, equivalently the spreading factor:
$$G_p = \frac{W}{R_b} = \frac{\text{Chip Rate}}{\text{Bit Rate}} = SF$$
where $W$ is the spread bandwidth (approximately equal to chip rate) and $R_b$ is the data rate.
In decibels: $$G_p \text{ (dB)} = 10 \log_{10}(SF)$$
Physical Interpretation:
Processing gain quantifies the suppression of interference through despreading:
| System | Chip Rate | Voice Rate | Spreading Factor | Processing Gain (dB) |
|---|---|---|---|---|
| IS-95 (cdmaOne) | 1.2288 Mcps | 9.6 kbps | 128 | 21.1 dB |
| IS-95 (high rate) | 1.2288 Mcps | 14.4 kbps | 85 | 19.3 dB |
| WCDMA (voice) | 3.84 Mcps | 12.2 kbps | 315 | 25.0 dB |
| WCDMA (data 384k) | 3.84 Mcps | 384 kbps | 10 | 10.0 dB |
| WCDMA (data 2M) | 3.84 Mcps | 2 Mbps | 1.9 | 2.8 dB |
| GPS C/A code | 1.023 Mcps | 50 bps | 20,460 | 43.1 dB |
Processing Gain and System Capacity:
Processing gain directly impacts CDMA system capacity. The number of simultaneous users $K$ a CDMA system can support is approximately:
$$K \approx 1 + \frac{G_p}{(E_b/N_0)_{\text{req}}} \cdot \frac{1}{v}$$
where:
Higher processing gain → more users. This is why higher chip rates and lower data rates enable more simultaneous users.
**Given:**
- Processing gain: 128 (21 dB)
- Required Eb/N0: 6 dB (typical for voice with error correction)
- Voice activity factor: 0.4
- Other-cell interference factor: 0.6**Solution:**
**Step 1:** Convert to linear scale
$$G_p = 128, \quad (E_b/N_0)_{\text{req}} = 10^{6/10} = 4$$
**Step 2:** Basic capacity calculation
$$K_{\text{basic}} = 1 + \frac{128}{4 \times 0.4} = 1 + \frac{128}{1.6} = 1 + 80 = 81 \text{ users}$$
**Step 3:** Account for other-cell interference
$$K_{\text{actual}} = \frac{K_{\text{basic}}}{1 + f} = \frac{81}{1 + 0.6} = \frac{81}{1.6} \approx 51 \text{ users}$$
**Step 4:** Include overhead and margin
With 20% margin for control channels and power control overhead:
$$K_{\text{practical}} \approx 51 \times 0.8 \approx 40 \text{ users per sector}$$
IS-95 typically supports 35-45 simultaneous voice users per 1.25 MHz carrier per sector.Processing gain reveals a fundamental CDMA trade-off: higher data rates mean lower processing gain, which means fewer simultaneous users. A video call at 384 kbps uses 10× the capacity of a voice call at 12.2 kbps—not just 32× less users, but the reduced processing gain makes each high-rate user more interference-sensitive. This is why 3G networks carefully manage high-rate allocations.
The choice of spreading codes is critical to CDMA system performance. Different code families offer different properties suited to different aspects of system operation.
Walsh Codes (Hadamard Sequences):
Walsh codes are generated from the Hadamard matrix, constructed recursively:
$$H_1 = [1]$$
$$H_{2N} = \begin{bmatrix} H_N & H_N \ H_N & -H_N \end{bmatrix}$$
For example, $H_4$:
$$H_4 = \begin{bmatrix} 1 & 1 & 1 & 1 \ 1 & -1 & 1 & -1 \ 1 & 1 & -1 & -1 \ 1 & -1 & -1 & 1 \end{bmatrix}$$
Each row is a Walsh code. The inner product of any two different rows is zero—they are perfectly orthogonal.
Critical Limitation: Walsh codes are orthogonal only when perfectly time-aligned. A time shift as small as one chip destroys orthogonality. This makes Walsh codes suitable for synchronous channels (like downlink) but problematic for asynchronous channels.
| Code Index | Walsh Sequence | Cross-Correlation (aligned) | Notes |
|---|---|---|---|
| W0 | +1 +1 +1 +1 +1 +1 +1 +1 | 0 with all others | All same |
| W1 | +1 -1 +1 -1 +1 -1 +1 -1 | 0 with all others | Alternating |
| W2 | +1 +1 -1 -1 +1 +1 -1 -1 | 0 with all others | Pairs |
| W3 | +1 -1 -1 +1 +1 -1 -1 +1 | 0 with all others | Mixed |
| W4 | +1 +1 +1 +1 -1 -1 -1 -1 | 0 with all others | Half/half |
| ... | ... | ... | ... |
PN Sequences (Maximum-Length Sequences):
PN sequences are generated by Linear Feedback Shift Registers (LFSRs). An $n$-stage LFSR produces a sequence of period $2^n - 1$.
Key properties:
PN sequences are used for:
IS-95 uses both Walsh codes and PN sequences in combination. Walsh codes provide perfect orthogonality between users in the same cell. PN sequences scramble the Walsh-coded signals, providing cell isolation and security. The combination leverages the strengths of each: Walsh for intra-cell separation, PN for inter-cell separation and scrambling.
While CDMA's theoretical elegance is compelling, practical implementation faces a severe challenge: the near-far problem. This problem nearly killed CDMA as a viable technology and required brilliant engineering solutions to overcome.
The Problem:
Consider a base station receiving signals from two mobiles:
Radio signal power decreases with distance according to the path loss law: $$P_r = P_t \cdot \left(\frac{\lambda}{4\pi d}\right)^n$$
where $n$ is the path loss exponent (typically 3-4 in urban environments). If $n = 4$:
$$\frac{P_A}{P_B} = \left(\frac{d_B}{d_A}\right)^4 = \left(\frac{1000}{100}\right)^4 = 10,000 = 40 \text{ dB}$$
Mobile A's signal is 10,000 times stronger than Mobile B's signal!
Why This Destroys CDMA:
In theory, orthogonal codes completely separate users. In practice:
If the cross-correlation between codes is even $\rho = 0.01$ (1%), Mobile A's leakage into Mobile B's channel is:
$$I_A = P_A \cdot \rho^2 = 10,000 \times 0.0001 = 1$$
The interference from Mobile A equals Mobile B's entire signal power! Mobile B is completely jammed by Mobile A, even though they're using "orthogonal" codes.
With 20 near users and one far user, the situation is hopeless—the far user is buried under interference.
The near-far problem was so severe that early CDMA critics (including most of the telecom industry) believed practical CDMA was impossible. A system where one strong user could block all weak users seemed fundamentally broken. It took Qualcomm's power control innovation to transform CDMA from theoretical curiosity to practical technology.
The solution to the near-far problem is elegant: if near users are too strong, make them weaker. Power control adjusts each mobile's transmit power so that all signals arrive at the base station with equal power.
The Goal:
All mobile signals should arrive at the base station with the same received power:
$$P_{r,A} = P_{r,B} = P_{r,C} = ... = P_{\text{target}}$$
To achieve this, near mobiles transmit at low power while far mobiles transmit at high power:
$$P_{t,i} = P_{\text{target}} \cdot L_i$$
where $L_i$ is the path loss from mobile $i$ to the base station.
CDMA Power Control Mechanisms:
| Parameter | Value | Purpose |
|---|---|---|
| Closed-loop rate | 800 Hz (every 1.25 ms) | Track fast fading |
| Step size | ±1 dB | Fine adjustment |
| Dynamic range | 80 dB | Handle near-far extremes |
| Open-loop accuracy | ±6 dB | Initial estimate |
| Closed-loop accuracy | ±1 dB | Precise control |
| Outer-loop update | Every 20 ms frame | Adapt to conditions |
Power Control Speed Requirements:
The channel changes due to fading, mobility, and environment. Power control must track these changes to maintain equal received power:
For a mobile moving at 100 km/h at 900 MHz, the Doppler frequency is approximately 83 Hz, meaning the channel can change completely in 6 ms. IS-95's 800 Hz update rate (1.25 ms period) is fast enough to track this fading with some margin.
Power control transforms CDMA from theoretically elegant but practically impossible to commercially viable. Qualcomm's demonstration that fast, accurate power control could tame the near-far problem was the breakthrough that enabled 3G cellular. The 800 Hz closed-loop update rate—transmitted on every 1.25 ms power control group—was critical to this success.
CDMA offers several significant advantages over FDMA and TDMA that made it the technology choice for 3G cellular systems.
| Factor | FDMA/TDMA Impact | CDMA Impact |
|---|---|---|
| Frequency reuse | 1/7 to 1/4 reuse pattern | 1/1 (universal reuse) |
| Voice activity | No gain | 1.67× capacity (60% silence) |
| Sectorization | Moderate gain | 3× capacity (soft handoff) |
| Handoff | Hard (call drops risk) | Soft (seamless, diversity gain) |
| Peak capacity | Fixed | Soft limit (quality trade-off) |
When all advantages are combined—universal reuse (7×), voice activity (1.67×), sectorization (2.5×)—CDMA achieves roughly 10-20× the capacity of analog FDMA per MHz of spectrum. This massive improvement drove CDMA's adoption despite its implementation complexity.
We've explored CDMA from spread spectrum fundamentals through the practical challenges and solutions that made it viable. Let's consolidate the essential concepts:
Critical Formulas:
$$SF = \frac{R_c}{R_b} = G_p$$
$$G_p \text{ (dB)} = 10 \log_{10}(SF)$$
$$K \approx 1 + \frac{G_p}{(E_b/N_0)_{\text{req}} \cdot v}$$
$$P_{t,i} = P_{\text{target}} \cdot L_i$$
What's Next:
In the next page, we dive deeper into code orthogonality—the mathematical foundation that makes CDMA possible. We'll explore Hadamard matrices, cross-correlation properties, and why perfect orthogonality requires perfect synchronization. Understanding orthogonality illuminates both CDMA's power and its practical limitations.
You now understand Code Division Multiple Access—the technology that overcame skepticism to power 3G networks worldwide. CDMA's combination of spread spectrum, orthogonal codes, and aggressive power control transformed wireless capacity. Next, we'll examine the mathematical foundation that makes this seemingly impossible technique work: code orthogonality.