Channelization: Structured Channel Sharing
CDMA: Code Division Multiple Access
Read aloud is unavailable in this browser.
The Code Domain: Sharing Through Mathematical Separation
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.
The Spread Spectrum Concept
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:
- Multiple Access Capability — Spread signals can overlap in frequency and time while remaining distinguishable through their unique spreading codes.
- Interference Resistance — Spread signals are robust against narrowband interference and jamming.
- Security — Without knowing the spreading code, the signal appears as low-level noise, difficult to detect or intercept.
- Multipath Resistance — Spread spectrum enables separating and combining multipath components constructively.
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:
- $d(t) \in {-1, +1}$ is the data signal (BPSK: Binary Phase Shift Keying representation)
- $c(t) \in {-1, +1}$ is the spreading code (running at chip rate)
- $f_c$ is the carrier frequency
The spread signal $s(t)$ occupies bandwidth approximately equal to the chip rate $R_c$, regardless of the original data rate $R_b$.
CDMA Spreading Calculation
Illustrate the spreading process with concrete numbers.
**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.
The Despreading Process: Recovering User Data
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:
- Other users' signals (if codes are orthogonal)
- Narrowband interference (spread by multiplication, then reduced by integration)
- Some noise components (statistical averaging reduces noise power)
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 eq 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.
Processing Gain: The Power of Spreading
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:
- Interference from other CDMA users is reduced by factor $G_p$ (for orthogonal codes)
- Narrowband jamming is spread across the entire bandwidth, reducing its power spectral density by factor $G_p$
- Thermal noise power in the data bandwidth is the same, but the signal is coherently combined (integration gain)
| 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:
- $G_p$ is processing gain
- $(E_b/N_0)_{\text{req}}$ is the required signal-to-noise ratio per bit for acceptable error rate
- $v$ is the voice activity factor (typically 0.4–0.5, accounting for silence periods)
Higher processing gain → more users. This is why higher chip rates and lower data rates enable more simultaneous users.
IS-95 Capacity Calculation
Estimate the number of simultaneous voice users per IS-95 sector.
**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 Spreading Codes: Walsh, PN, and Gold Sequences
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 — Perfectly orthogonal codes used for channel separation within a single cell. A Walsh code set of length $N$ provides exactly $N$ orthogonal codes.
- •PN (Pseudo-Noise) Sequences — Maximum-length sequences with good autocorrelation properties. Used for scrambling and cell identification. Near-orthogonal but not perfectly so.
- •Gold Codes — Constructed from pairs of PN sequences, providing more codes with controlled cross-correlation. Used when more codes are needed than Walsh provides.
- •Kasami Codes — Offer even larger sets with bounded cross-correlation, used in systems requiring many codes.
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:
- Autocorrelation: Sharp peak at zero shift, approximately $-1/N$ elsewhere
- Balance: Nearly equal numbers of +1 and -1 (differs by exactly 1)
- Run property: Runs of consecutive same values follow specific pattern
- Spectral flatness: Approximately white noise spectrum
PN sequences are used for:
- Cell identification — Each cell uses a different PN offset
- Base scrambling — Provides security and separates cells
- Uplink spreading — Users distinguished by PN sequence offsets or different PN codes
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.
The Near-Far Problem: CDMA's Greatest Challenge
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:
- Mobile A is 100 meters away (strong signal)
- Mobile B is 1 km away (weak signal)
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:
- Codes aren't perfectly orthogonal under real-world propagation conditions (multipath, timing errors)
- Cross-correlation isn't exactly zero but some small value $\rho$
- Strong signals leak into weak signal detection
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.
Power Control: Taming the Near-Far Problem
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:
- •Open-Loop Power Control — Mobile measures received signal strength from base station. Assuming channel reciprocity (uplink and downlink path loss are similar), it adjusts transmit power inversely. Fast but imprecise due to frequency differences between uplink and downlink.
- •Closed-Loop Power Control — Base station measures each mobile's received power and sends explicit commands to adjust. In IS-95, commands are sent at 800 Hz (every 1.25 ms), with 1 dB steps up or down. Slower than open-loop but much more accurate.
- •Outer-Loop Power Control — Adjusts the target receive power based on actual frame error rate. If errors are too high, target power increases. If errors are acceptable, target decreases to minimize interference.
| 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:
- Slow fading (shadowing): Changes over seconds—handled by open-loop
- Fast fading (multipath): Changes over milliseconds—requires closed-loop
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 Advantages: Why It Revolutionized Wireless
CDMA offers several significant advantages over FDMA and TDMA that made it the technology choice for 3G cellular systems.
- •Universal Frequency Reuse — All cells can use the same frequency. No complex frequency planning needed. Neighboring cells are separated by codes, not frequencies. This dramatically simplifies network planning and maximizes spectrum utilization.
- •Soft Capacity — CDMA has no hard user limit. Adding users gradually increases interference, gradually degrading quality. The system degrades gracefully rather than blocking calls. Operators can trade quality for capacity during peaks.
- •Soft Handoff — A mobile can communicate with multiple base stations simultaneously. The signal combines constructively, improving quality at cell edges. No call dropping during handoff. This is impossible with FDMA/TDMA (mobile can be on only one frequency/slot).
- •Multipath Exploitation — RAKE receivers can separately receive and combine multipath components, turning destructive interference into diversity gain. What degrades FDMA/TDMA improves CDMA.
- •Voice Activity Gain — During silence periods (60% of calls), power control reduces transmit power, reducing interference. Other users immediately benefit. TDMA would waste the slot; FDMA would waste the channel.
- •Enhanced Security — The spread signal appears as noise without the spreading code. Eavesdropping requires knowing the code. Military-grade security is inherent, not added.
- •Flexible Data Rates — Different spreading factors enable different data rates. A user can dynamically shift between voice (high SF) and data (low SF) without changing frequency or slot allocation.
| 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.
KEEP LEARNING
Keep learning for free.
Read the complete lesson, save your notes and pick up where you left off with a free account. No card needed.