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
- A user's slow data stream (made of bits) is taken.
- 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.
- The ratio of the chip rate to the bit rate is called the (). Typical values are from 100 to 10,000.
- 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:
- The incoming mixed signal is multiplied by the exact same and perfectly synchronized PN code that was used by the desired sender.
- 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.
- Simultaneously, the signals from all other users (who used different codes) are spread even further, remaining as wideband noise.
- 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
User Signals
Combined Channel
Despread / Correlation
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.
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.
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.