Code-Division Multiple Access (CDMA)

Multiple access technique using spread spectrum and unique codes for each user.

A New Way to Share: The "Cocktail Party" Analogy

To understand CDMA, imagine a large room filled with many pairs of people talking. How can they all communicate without interfering with each other?

  • Frequency Division (FDM): Each pair could talk in a different corner of the room (using a different frequency).
  • Time Division (TDM): Each pair could take turns talking for a short period (using a different time slot).
  • Code Division (CDMA): Everyone could talk at the same time and in the same space, but each pair speaks a unique language. You can tune in to listen to your partner's language and treat all other conversations as background noise.

This is the core idea of CDMA. It allows multiple users to transmit simultaneously over the entire same frequency band. Each user's signal is distinguished by a unique assigned code, like a special language.

The Core Principle: Spread Spectrum

CDMA is a form of technology. Instead of trying to use as little bandwidth as possible, it intentionally uses a lot more.

The process starts with a user's data signal, which is narrow-band. This signal is then combined with a much faster, wideband code called a . This combination "spreads" the energy of the original data over a very wide frequency range. To an outsider or another user, the resulting signal looks just like random background noise.

How It Works: Spreading and Despreading

The magic of CDMA happens in two steps: spreading the signal at the transmitter and despreading it at the receiver.

At the Transmitter: Spreading

  1. A user's slow data stream (made of bits) is taken.
  2. Each bit is multiplied (using an XOR operation) by every element of a very fast, unique PN code. The elements of this code are called chips.
  3. The ratio of the chip rate to the bit rate is called the (G=Tb/TcG = T_b / T_c). Typical values are from 100 to 10,000.
  4. The resulting signal is now a wideband signal with low power density, ready for transmission.

At the Receiver: Despreading

The receiver gets a mix of signals from all users. To listen to a specific user, it performs the reverse process:

  1. The incoming mixed signal is multiplied by the exact same and perfectly synchronized PN code that was used by the desired sender.
  2. Due to the mathematical properties of the codes, this operation collapses (despreads) the desired signal back into its original narrow band, concentrating all its energy.
  3. Simultaneously, the signals from all other users (who used different codes) are spread even further, remaining as wideband noise.
  4. A simple filter can then isolate the powerful, despread signal and reject the noise, perfectly recovering the original data bit.

Interactive CDMA (Spread Spectrum) Demonstration

Processing Gain:16
Chip Rate:16.0
Theoretical SNR Gain:12.0 dB

User Signals

User 1User Data Bits01110001PN Sequences00101100001111101011110010110001111000101011101001000101110111011111010001101000111011010101110110101000010100010011101011100101Spread Signals11010011110000011011110010110001111000101011101001000101110111010000101110010111000100101010001001010111101011100011101011100101User 2User Data Bits11010000PN Sequences01000011111010001001000110101111100010110110011100010100111011101010101110001001101101101001011101110110111110100111001011100001Spread Signals01000011111010001001000110101111011101001001100000010100111011100101010001110110010010010110100010001001000001011000110100011110User 3User Data Bits01011010PN Sequences10000001011011110110110011010010001110110110100101110101000110001000010000011001010001110000110001001011101100000010111001110001Spread Signals01111110100100000110110011010010110001001001011001110101000110001000010000011001101110001111001101001011101100001101000110001110User 4User Data Bits00100101PN Sequences10100110110111000001100111111010001001111110010111110011000101101111111011011111011110011010110110011101110110011011101100010000Spread Signals01011001001000111110011000000101001001111110010100001100111010010000000100100000011110011010110101100010001001101011101100010000

Combined Channel

01010011100000011111010010010111111001001011111001010100111111000000010000010100010110001010101001000011001001001001100110000100

Despread / Correlation

10000000010000001011011111011001111110011111101111101110110111100000111110000011010010100000100000010100100010100101110010011110
Data (0/1)
PN Chips
User Spread
Combined
Despread (Selected)
Noise

Each user's bit stream is multiplied by a unique higher-rate PN chip sequence producing a spread signal. All spread signals (plus noise) sum on the channel. Correlating with the intended user's PN collapses its energy (despread) while others remain noise-like.

Bit Period:1.000 s
Chip Period:0.0625 s
Processing Gain:16 (12.0 dB)
Chip Rate:16.0 chips/s

Correlation / Despread

In correlation view the blue trace shows combined channel, green shows correlation accumulator for the selected user's code; sampling at bit boundaries recovers original bits.

G = chips/bit gives ideal processing (SNR) gain 10·log10(G) dB.

Types of Spread Spectrum Techniques

CDMA is primarily based on one type of spread spectrum, but there are three main methods:

  • Direct Sequence Spread Spectrum (DSSS): This is the method described above, where the data is directly multiplied by a fast PN code. It is the basis for many CDMA systems, including 3G mobile networks (WCDMA) and GPS.
  • Frequency Hopping Spread Spectrum (FHSS): In this method, the carrier frequency of the signal rapidly "hops" between many different frequencies across a wide band, following a pseudo-random pattern determined by a code. Only a receiver knowing the pattern can follow and demodulate the signal. This is used in technologies like Bluetooth.
  • Time Hopping Spread Spectrum (THSS): The signal is transmitted in short bursts. The time slot in which the burst is sent varies pseudo-randomly according to a code. This is used in Ultra-Wideband (UWB) communication systems.

Advantages and Applications of CDMA

  • Efficient Frequency Use: It allows for a frequency reuse factor of 1, meaning the same frequency can be used in every adjacent cell in a cellular network, greatly simplifying network planning.
  • Soft Capacity: There's no hard limit on the number of users. As more users join, the overall noise level increases, gracefully degrading performance for everyone, rather than suddenly blocking new users.
  • Interference Resistance: It is highly resistant to narrow-band interference, as the despreading process spreads the interference energy over a wide band, making it insignificant.
  • Soft Handoff: A mobile device can be connected to two or more base stations simultaneously. This makes handoffs between cells smoother and less likely to drop calls.
  • Inherent Security: The signal's noise-like nature makes it difficult to intercept or decode without knowing the specific PN code used.

Key applications include 3G cellular standards like UMTS/WCDMA and CDMA2000, as well as the Global Positioning System (GPS), which relies on the precise timing and correlation properties of DSSS.

    Code-Division Multiple Access (CDMA) | Teleinf Edu