CDMA Example with MATLAB

Similar documents
Digital Image Watermarking by Spread Spectrum method

Experiment 3. Direct Sequence Spread Spectrum. Prelab

Lecture 9: Spread Spectrum Modulation Techniques

ECE 5325/6325: Wireless Communication Systems Lecture Notes, Spring 2013

Lecture 3. Direct Sequence Spread Spectrum Systems. COMM 907:Spread Spectrum Communications

Laboratory 5: Spread Spectrum Communications

CHAPTER 2. Instructor: Mr. Abhijit Parmar Course: Mobile Computing and Wireless Communication ( )

CDMA Technology. Pr. S.Flament Pr. Dr. W.Skupin On line Course on CDMA Technology

Multiple Access Techniques for Wireless Communications

The figures and the logic used for the MATLAB are given below.

THE STUDY OF BIT ERROR RATE EVOLUTION IN A MOBILE COMMUNICATIONS SYSTEM USING DS CDMA TECHNOLOGY

Prof. P. Subbarao 1, Veeravalli Balaji 2

Part A: Spread Spectrum Systems

CDMA - QUESTIONS & ANSWERS

PERFORMANCE EVALUATION OF DIRECT SEQUENCE SPREAD SPECTRUM UNDER PHASE NOISE EFFECT WITH SIMULINK SIMULATIONS

Performance of a Flexible Form of MC-CDMA in a Cellular System

ECS455: Chapter 6 Applications

Code Division Multiple Access.

Part A: Spread Spectrum Systems

UNIT 4 Spread Spectrum and Multiple. Access Technique

Spread Spectrum: Definition

Spread Spectrum. Chapter 18. FHSS Frequency Hopping Spread Spectrum DSSS Direct Sequence Spread Spectrum DSSS using CDMA Code Division Multiple Access

Performance Analysis Of OFDM Using QPSK And 16 QAM

BER Calculation of DS-CDMA over Communication Channels

T325 Summary T305 T325 B BLOCK 3 4 PART III T325. Session 11 Block III Part 3 Access & Modulation. Dr. Saatchi, Seyed Mohsen.

Cross Spectral Density Analysis for Various Codes Suitable for Spread Spectrum under AWGN conditions with Error Detecting Code

Communications Theory and Engineering

Multiplexing Module W.tra.2

Chapter 7. Multiple Division Techniques

Swedish College of Engineering and Technology Rahim Yar Khan

Performance of Wideband Mobile Channel with Perfect Synchronism BPSK vs QPSK DS-CDMA

Mobile Radio Systems OPAM: Understanding OFDM and Spread Spectrum

Multi-Carrier Systems

Low Correlation Zone Signal Sets

SC - Single carrier systems One carrier carries data stream

Part A: Spread Spectrum Systems

Wireless Transmission & Media Access

Lecture 7: Centralized MAC protocols. Mythili Vutukuru CS 653 Spring 2014 Jan 27, Monday

Wireless Communication: Concepts, Techniques, and Models. Hongwei Zhang

Multipath signal Detection in CDMA System

ORTHOGONAL frequency division multiplexing (OFDM)

A promising set of spreading sequences to mitigate MAI effects in MIMO STS systems

Unit 1 Introduction to Spread- Spectrum Systems. Department of Communication Engineering, NCTU 1

TELE4652 Mobile and Satellite Communication Systems

The BER Evaluation of UMTS under Static Propagation Conditions

Wireless Communication Systems Laboratory Lab#1: An introduction to basic digital baseband communication through MATLAB simulation Objective

Evaluation of Code Division Multiplexing on Power Line Communication

Spread Spectrum Communications and Jamming Prof. Kutty Shajahan M G S Sanyal School of Telecommunications Indian Institute of Technology, Kharagpur

Part 3. Multiple Access Methods. p. 1 ELEC6040 Mobile Radio Communications, Dept. of E.E.E., HKU

On the Uplink Capacity of Cellular CDMA and TDMA over Nondispersive Channels

Unit 8 - Week 7 - Computer simulation of Rayleigh fading, Antenna Diversity

Implementation of Different Interleaving Techniques for Performance Evaluation of CDMA System

Spread Spectrum Techniques

Computational Complexity of Multiuser. Receivers in DS-CDMA Systems. Syed Rizvi. Department of Electrical & Computer Engineering

Mobile Communications TCS 455

Multiple Access. Difference between Multiplexing and Multiple Access

Correlation, Interference. Kalle Ruttik Department of Communications and Networking School of Electrical Engineering Aalto University

CDMA Principle and Measurement

Performance Analysis Of OFDM Using 4 PSK, 8 PSK And 16 PSK

Spread Spectrum (SS) is a means of transmission in which the signal occupies a

Noise Effective Code Analysis on the Basis of Correlation in CDMA Technology

IFH SS CDMA Implantation. 6.0 Introduction

PERFORMANCE ANALYSIS OF MC-CDMA SYSTEM USING BPSK MODULATION

Wireless Medium Access Control and CDMA-based Communication Lesson 08 Auto-correlation and Barker Codes

Comparative Study of OFDM & MC-CDMA in WiMAX System

Study on the UWB Rader Synchronization Technology

Transmit Diversity Schemes for CDMA-2000

The Effect of Carrier Frequency Offsets on Downlink and Uplink MC-DS-CDMA

Physical Layer: Modulation, FEC. Wireless Networks: Guevara Noubir. S2001, COM3525 Wireless Networks Lecture 3, 1

Satellite Telemetry Data Transmission Immunity from the ASI and Jamming Using DSSS Optimized PN Codes in DS-CDMA Systems

By Nour Alhariqi. nalhareqi

PERFORMANCE ANALYSIS OF DOWNLINK POWER CONTROL IN WCDMA SYSTEM

Towards a Comprehensive Comparison of OFDM and CDMA techniques

Pseudo Noise Sequence Generation using Elliptic Curve for CDMA and Security Application

CSCD 433 Network Programming Fall Lecture 5 Physical Layer Continued

SIMULATIVE STUDY (LINK/SYSTEM) OF WCDMA SYSTEMS

CHAPTER 4. DESIGN OF ADAPTIVE MODULATION SYSTEM BY USING 1/3 RATE TURBO CODER (SNR Vs BER)

Chapter 4. Part 2(a) Digital Modulation Techniques

SPREADING CODES PERFORMANCE FOR CORRELATION FUNCTION USING MATLAB

DATA CHUNKING IN QUASI-SYNCHRONOUS DS-CDMA. A Thesis. presented to. the Faculty of California Polytechnic State University, San Luis Obispo

= = (1) Denote the noise signal in the i th branch as n i, assume without loss of generality that the noise is zero mean and unit variance. i.e.

QUESTION BANK SUBJECT: DIGITAL COMMUNICATION (15EC61)

1. INTRODUCTION II. SPREADING USING WALSH CODE. International Journal of Advanced Networking & Applications (IJANA) ISSN:

J. Electrical Systems 13-3 (2017): Regular paper. An efficient digital signal processing method for RRNS-based DS-CDMA systems

I-Q transmission. Lecture 17

Performance Analysis of DSSS and FHSS Techniques over AWGN Channel

SPREAD SPECTRUM (SS) SIGNALS FOR DIGITAL COMMUNICATIONS

Comparative Analysis of the BER Performance of WCDMA Using Different Spreading Code Generator

Designing Information Devices and Systems I Fall 2016 Babak Ayazifar, Vladimir Stojanovic Homework 11

ICT 5305 Mobile Communications. Lecture - 3 April Dr. Hossen Asiful Mustafa

MODULATION AND MULTIPLE ACCESS TECHNIQUES

Multiple Access Schemes

Performance Evaluation of ½ Rate Convolution Coding with Different Modulation Techniques for DS-CDMA System over Rician Channel

ULTRA-WIDEBAND (UWB) communication systems

CHANNEL MEASUREMENT. Channel measurement doesn t help for single bit transmission in flat Rayleigh fading.

Effects of Fading Channels on OFDM

Performance Enhancement of Multi User Detection for the MC-CDMA

Performance Analysis of CDMA System using Direct Sequence Spread Spectrum and Frequency Hopping Spread Spectrum Techniques

Keywords MCCDMA, CDMA, OFDM, Rayleigh Fading, Rician Fading.

Digi-Wave Technology Williams Sound Digi-Wave White Paper

Transcription:

CDMA Example with MATLAB Firstly we generate a small random sequence of binary data, that we represent as a sampled waveform with 64 samples per bit. % CDMA example clear all data = randint(1,15,2); for j = 1:64, count = count + 1; data_exp(count) = data(i); data_exp = 2*data_exp - 1; figure(1) plot(data_exp)

Then we generate the spectrum of this signal, to illustrate that it is a fairly narrowband signal. % generate spectrum data_f = fft(data_exp); figure(11) plot(abs(data_f(1:(15*32)))) title('data spectrum') Then we select one of the Walsh codes, and use it to spread our data. The spreading process simply involves multiplying the data line code by the higher rate spreading code (the spreading code here is at 64 times the data rate. That is, chip rate = 64 * data rate). The resultant signal is at a much higher data rate the same as the chip rate. % generate a spreading code for a user codes = hadamard(64); user_code = codes(:,35); spread = zeros(1,15*64); spread((count+1):(count+64)) = data_exp((count+1):(count+64)).*(user_code'); count = count + 64;

figure(2) plot(spread) The resultant spectrum is much wider in bandwidth than the spectrum of the data signal. Note that the code below doesn t give an accurate rition of the spectrum of the spread signal. Why? spread_f = fft(spread); figure(12) plot(abs(spread_f(1:(15*32)))) title('spread spectrum')

We can then recover the data from the spread signal by multiplying by the code waveform and summing every 64 chips (since 1*1 = 1 and -1*-1 = 1, the effect of multiplying by the code twice is to recover the original data sequence. Obviously synchronisation is an issue how do we match the code sequence at the transmitter and the receiver? % recover user data data_desp((count+1):(count+64)) = spread((count+1):(count+64)).*(user_code'); count = count + 64; time_base = 1:(15*64); data_rec(i) = sum(data_desp((count+1):(count+64)))/64; count = count+64; for j = 1:64, count = count + 1; data_rec_exp(count) = data_rec(i);

figure(3) plot(time_base,data_rec_exp,time_base,data_exp) We can add noise to the CDMA spread signal to such an extent that the signal is indistinguishable below the noise floor. % now let's add some noise noise = 5*randn(1,15*64); noisy_cdma = spread + noise; figure(4) plot(noisy_cdma) axis([1,15*64,-12,12])

We can recover our signal in the same way, since our signal is highly correlated to the code, but the code and the noise signal are uncorrelated. % recover the CDMA signal noisy_data_desp((count+1):(count+64)) = noisy_cdma((count+1):(count+64)).*(user_code'); count = count + 64; time_base = 1:(15*64); noisy_data_rec(i) = sum(noisy_data_desp((count+1):(count+64)))/64; count = count+64; if (noisy_data_rec(i) > 0) noise_rec(i) = 1; else noise_rec(i) = -1;

for j = 1:64, count = count + 1; noisy_data_rec_exp(count) = noise_rec(i); figure(5) plot(time_base,noisy_data_rec_exp,time_base,data_exp) This illustrates the basic idea of DS CDMA. The thing we have not represented here is the carrier wave, but all of the above discussion holds true. We can also consider how CDMA can be used to achieve multiple access by assigning users different orthogonal codes. % multiple user CDMA clear all data1 = randint(1,15,2); data2 = randint(1,15,2);

for j = 1:64, count = count + 1; data_exp1(count) = data1(i); data_exp2(count) = data2(i); data_exp1 = 2*data_exp1-1; data_exp2 = 2*data_exp2-1; figure(21) plot(data_exp1) We can then add these spread signals together and transmit them over the AWGN channel (so just add noise). % generate a spreading code for a user codes = hadamard(64); user_code1 = codes(:,35); user_code2 = codes(:,44); spread1 = zeros(1,15*64); spread2 = zeros(1,15*64);

spread1((count+1):(count+64)) = data_exp1((count+1):(count+64)).*(user_code1'); spread2((count+1):(count+64)) = data_exp2((count+1):(count+64)).*(user_code2'); count = count + 64; noise = 2*randn(1,15*64); noisy_cdma = spread1+ spread2 + noise; figure(24) plot(noisy_cdma) axis([1,15*64,-12,12]) We can then recover the CDMA signal of each user as before. The effect of the other user signal does not contribute, since the two codes were chosen to be orthogonal. Once again we ignore here synchronisation issues. % recover the CDMA signal noisy_data_desp((count+1):(count+64)) = noisy_cdma((count+1):(count+64)).*(user_code1'); count = count + 64;

time_base = 1:(15*64); noisy_data_rec(i) = sum(noisy_data_desp((count+1):(count+64)))/64; count = count+64; if (noisy_data_rec(i) > 0) noise_rec(i) = 1; else noise_rec(i) = -1; for j = 1:64, count = count + 1; noisy_data_rec_exp(count) = noise_rec(i); figure(25) plot(time_base,noisy_data_rec_exp,time_base,data_exp1) plot(spread)