Experiment 3. Direct Sequence Spread Spectrum. Prelab

Similar documents
Laboratory 5: Spread Spectrum Communications

Presentation Outline. Advisors: Dr. In Soo Ahn Dr. Thomas L. Stewart. Team Members: Luke Vercimak Karl Weyeneth

Multiple Access Techniques for Wireless Communications

CDMA - QUESTIONS & ANSWERS

CDMA Example with MATLAB

UNIT 4 Spread Spectrum and Multiple. Access Technique

Mobile Communications TCS 455

Access Methods and Spectral Efficiency

Spread Spectrum: Definition

Performing the Spectrogram on the DSP Shield

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

Multiplexing Module W.tra.2

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

OFDM Systems For Different Modulation Technique

Rep. ITU-R BO REPORT ITU-R BO SATELLITE-BROADCASTING SYSTEMS OF INTEGRATED SERVICES DIGITAL BROADCASTING

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

Chapter 7. Multiple Division Techniques

Multi-Carrier Systems

CH 4. Air Interface of the IS-95A CDMA System

Presentation Outline. Advisors: Dr. In Soo Ahn Dr. Thomas L. Stewart. Team Members: Luke Vercimak Karl Weyeneth. Karl. Luke

Multiple Access. Difference between Multiplexing and Multiple Access

Module 3: Physical Layer

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

Signals and Systems Lecture 9 Communication Systems Frequency-Division Multiplexing and Frequency Modulation (FM)

Code Division Multiple Access.

Department of Computer Science and Engineering. CSE 3213: Communication Networks (Fall 2015) Instructor: N. Vlajic Date: Dec 13, 2015

Communications Theory and Engineering

CDMA is used to a limited extent on the 800-MHz band, but is much more common in the 1900-MHz PCS band. It uses code-division multiple access by

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

Using Modern Design Tools To Evaluate Complex Communication Systems: A Case Study on QAM, FSK and OFDM Transceiver Design

Lecture 3: Wireless Physical Layer: Modulation Techniques. Mythili Vutukuru CS 653 Spring 2014 Jan 13, Monday

Year : TYEJ Sub: Digital Communication (17535) Assignment No. 1. Introduction of Digital Communication. Question Exam Marks

Digital Image Watermarking by Spread Spectrum method

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

German Jordanian University Department of Communication Engineering Digital Communication Systems Lab. CME 313-Lab

Course Specifications

SPREAD SPECTRUM (SS) SIGNALS FOR DIGITAL COMMUNICATIONS

Wireless Transmission & Media Access

CH 5. Air Interface of the IS-95A CDMA System

EEE 309 Communication Theory

An Overview of the QUALCOMM CDMA Digital Cellular Proposal

Difference Between. 1. Old connection is broken before a new connection is activated.

DSP First. Laboratory Exercise #7. Everyday Sinusoidal Signals

MODULATION AND MULTIPLE ACCESS TECHNIQUES

Lecture 9: Spread Spectrum Modulation Techniques

Medium Access Control. Wireless Networks: Guevara Noubir. Slides adapted from Mobile Communications by J. Schiller

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

Multiple Access Schemes

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

Lecture 2. Mobile Evolution Introduction to Spread Spectrum Systems. COMM 907:Spread Spectrum Communications

WCDMA Basics Chapter 2 OBJECTIVES:

P. 241 Figure 8.1 Multiplexing

Experiment 02: Amplitude Modulation

Chapter 3 : Media Access. Mobile Communications. Collision avoidance, MACA

Spread Spectrum Communications and Jamming Prof. Debarati Sen G S Sanyal School of Telecommunications Indian Institute of Technology, Kharagpur

ORTHOGONAL frequency division multiplexing (OFDM)

Prof. P. Subbarao 1, Veeravalli Balaji 2

MODULE IV. End Sem. Exam Marks. Syllabus

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

Multiple Access Techniques

Implementation of Different Interleaving Techniques for Performance Evaluation of CDMA System

Performance Analysis of DSSS and FHSS Techniques over AWGN Channel

Erik Haas and Michael Schnell German Aerospace Center - DLR. J. Prinz, C.Rihacek, and M. Sajatovic Frequentis Nachrichtentechnik G.m.b.H.

EE 460L University of Nevada, Las Vegas ECE Department

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

BER Analysis for MC-CDMA

PAPR Reduction in 4G Cellular Network: A SLM-based IFDMA Uplink System

DESIGN, IMPLEMENTATION AND OPTIMISATION OF 4X4 MIMO-OFDM TRANSMITTER FOR


QUESTION BANK SUBJECT: DIGITAL COMMUNICATION (15EC61)

Comparison of MIMO OFDM System with BPSK and QPSK Modulation

EE 400L Communications. Laboratory Exercise #7 Digital Modulation

Lab/Project Error Control Coding using LDPC Codes and HARQ

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

CDMA Principle and Measurement

LOW-COST TELEMETRY USING FREQUENCY HOPPING AND THE TRF6900 TRANSCEIVER1

Performance Analysis of Concatenated RS-CC Codes for WiMax System using QPSK

SC - Single carrier systems One carrier carries data stream

CSCD 433 Network Programming Fall Lecture 5 Physical Layer Continued

Mobile Computing. Chapter 3: Medium Access Control

Politecnico di Milano Scuola di Ingegneria Industriale e dell Informazione. Physical layer. Fundamentals of Communication Networks

Basic idea: divide spectrum into several 528 MHz bands.

UNDERSTANDING LTE WITH MATLAB

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

Spectrum Analysis: The FFT Display

1/14. Signal. Surasak Sanguanpong Last updated: 11 July Signal 1/14

Department of Electronic and Information Engineering. Communication Laboratory

Performance Analysis Of OFDM Using QPSK And 16 QAM

Wireless Communication Systems Laboratory #2. Understanding test equipments. The students will be familiar with the following items:

Wireless Network Security Spring 2016

Chapter 2 Overview. Duplexing, Multiple Access - 1 -

Study on the UWB Rader Synchronization Technology

Multiple Access Techniques

COMM 907:Spread Spectrum Communications

Analysis of Interference & BER with Simulation Concept for MC-CDMA

Digi-Wave Technology Williams Sound Digi-Wave White Paper

RADIO SYSTEMS ETIN15. Channel Coding. Ove Edfors, Department of Electrical and Information Technology

IMPLEMENTATION OF SOFTWARE-BASED 2X2 MIMO LTE BASE STATION SYSTEM USING GPU

PHASE DIVISION MULTIPLEX

Problems from the 3 rd edition

Transcription:

Experiment 3 Direct Sequence Spread Spectrum Prelab Introduction One of the important stages in most communication systems is multiplexing of the transmitted information. Multiplexing is necessary since usually a communication channel is shared by many users, so the information transmitted to each user should be separable from that of the others. A simple example is radio, where different radio stations are transmitting their programs through a channel (the air) to a number of listeners in their coverage distance. For the signals from different stations to be separable, the signals are multiplexed in frequency. This is done through AM/FM modulation of each station at a different carrier (center) frequency. This multiplexing method is called Frequency Division Multiple Access (FDMA). In this experiment, you will learn about another multiplexing method called Code Division Multiple Access (CDMA). The idea behind this method is very simple: Assume that the waveform to be transmitted is what is shown in figure 1-a. If this waveform is multiplied by a code waveform which is a pseudo-random concatenation of +1 s and -1 s, the resulting signal looks very much like noise. Now if this signal is multiplied once more with the same code waveform, what we get is the same signal we started with. Furthermore, it is seen that if the signal in figure 1-c is multiplied by another code waveform, the original signal is not obtained. In digital communication systems, the codes can be designed in a way that the receivers can completely separate the signals of different users that are transmitting simultaneously in the system. (Each user will be assigned a code waveform that is orthogonal to the codes of other users in the system.) In digital communication, the duration of each +1 or -1 in the code waveform is chosen to be much shorter than the duration of the bits being transmitted. As a result, when the output bit stream is multiplied by the code waveform, the resulting signal has a much higher bandwidth. This is why these systems are called spread spectrum. Since the signal with higher bandwidth is generated by direct multiplication in a sequence (the code waveform), the system is called Direct Sequence Spread Spectrum (DS-SS). Since the implementation of a digital CDMA system is rather complicated and cannot be done in a two week lab time, you ll implement a simplified version of this system.

0.5 3 0.4 0.3 2 0.2 1 0.1 0 0-0.1-1 -0.2-2 -0.3-0.4 0 200 400 600 800 1000 1200-3 100 200 300 400 500 600 700 800 900 1000 1100 1200 (a) (b) 0.5 0.4 0.3 0.2 0.1 0-0.1-0.2-0.3-0.4-0.5 0 200 400 600 800 1000 1200 (c) Figure 1 The signal in (a) is multiplied by a code waveform that is a concatenation of -1 and +1 s (b), the resulting waveform is shown in (c). Questions: 1. Assume a signal x() t with bandwidth W x is multiplied in a signal with bandwidth W c, what will be the bandwidth of the multiplication result? (Hint: Multiplication in time domain is equivalent to convolution in frequency domain.)

Objective The goal of this experiment is to learn more about direct sequence spread spectrum systems by making a simplified version of a CDMA communication system. Through this experiment you will also familiarize yourself with the notion of DMA and interrupts. Procedure The experiment consists of making two systems: a transmitter and a receiver. The transmitter system should: Get input sound from the computer through the line-in socket. Multiply the input sound by a code waveform consisting of a concatenation of +1 and -1 s. Send the resulting signal to the line-out port. The Receiver should: Get input sound from the transmitter through the line-in socket. Synchronize its code waveform with that of the transmitter. Multiply the input sound by the same code waveform used at the transmitter. Send the resulting signal to the line-out port. Instead of writing the program from scratch, you will use one of the tutorial programs that comes with the DSK board software. First copy the tutorial project folder dsk_app to your working directory. This is a simple program that makes the board loop back whatever it hears through the line-in port to the line-out. Open the dsk_app.c source file through the project tree pane. Start by reading the comment section of the code. There may be some things you won t understand right away but don t get discouraged since you don t need to (and won t have enough time to) understand every minor detail to get this lab done. The source can be seen as the following pieces: 1. General comments 2. Header file specifications 3. Function prototypes 4. Global declarations 5. Constant configuration definitions 6. The main() function 7. Other function definitions Let s first take a look at the main() function. This is the heart of the program. First the initialization routines are called. Then the transmit and receive buffers are allocated. The following two function calls deal with setting a new IRQ and setting the DMA for capturing the incoming sounds to the buffers and signaling the DSP when each buffer is full and ready to be processed.. Question: Define the following terms: IRQ (Interrupt Request), DMA (Direct Memory Access). (You will find your answer by using above terms and microprocessor in Google. The answer will be on the first page of the search results.)

Each of the input and output buffers, consists of two parts, A and B (in the source named ping and pong). After the part A is filled, the data in this part starts being processed and in the meantime part B starts being filled with incoming data. When B is filled, the role of A and B is interchanged. The interrupt is used to inform the DSP that one part of the buffer is filled and its data is ready to be processed. The key point in doing this experiment and making the systems is to note that the example source code that you have already performs all the settings required for the DMA and interrupt settings. Your first task thus is to find the section of code where the data from input buffer is copied to the output buffer for the loop-back operation. All that remains is then to modify this code to perform the additional required operations on the input sound before it is sent to the output. Code Waveform The code waveform that you will use for this experiment will be 16 bits long. It is important that the length of the input and output buffers you use be divisible by 16 for best performance. The best choices will be powers of 2. The duration of each -1 or +1 in the code waveform will hence be the length of the buffer divided by 16. To choose a code sequence, use the MATLAB hadamard function with an argument of 16. This gives you 16 codes in a matrix form, where every row is a code sequence. Transmitter For the transmitter part you simply need to multiply the code with the input sound. To be able to compare the effect of multiplication of the code waveform you need to program on of the DIP switches on the board to select if the input should be simply looped-back to the output or it should be multiplied with the code waveform before being output. Receiver The receiver part is very similar to the transmitter part but note that the sound that comes in is now encoded, so it is very important that the code waveform at the receiver be in phase with the input sound. With the equipment you have it would be rather difficult to fully synchronize the receiver code waveform with the input sound and making it automatic will require further processing and additional processing at the transmitter. An easy way to achieve approximately synchronized waveforms is to use the DIP switches on the DSK board to determine the number of shifts in the code waveform before it is multiplied with the received sound. The DIP switches can define 16 different combinations so considering that the switches define a 4 bit binary number, this number can define the number of bits the code waveform needs to be shifted, before it is multiplied with the received sound. For instance, if the number selected by the DIP switches is 5 and the buffer size is 1024 samples, the first 1024/16 = 64 samples are multiplied by code bit 6 instead of code bit 1 and so forth. Using this method you should select the time shift in the code waveform that results in the best output sound quality.

Some Important Considerations: The length of the input and output buffers in the receiver and transmitter systems should be equal so that the systems can cooperate with each other. The current version of Code Composer Studio that is used in the lab has a known bug and may crash after the program starts running on the board. Make sure you have saved all your work before loading your program onto the board and running it. Since the DSK and the PC have separate processing units, the program on DSK will continue running even if Code Composer Studio has crashed so you can test if your code is functional. It s better if you play a long sound file rather than a short one when testing your programs. Try using a music file rather than mere speech for testing your work. After finishing the transmitter code, listen carefully to the difference in the output sound before and after enabling the multiplication with the code waveform. What are the main features you notice? If the sound you re playing has high frequency components you should be able to see one of the limitations of the system. Try running the receiver code with two different code waveforms, one equal to the one used at the transmitter and one different from it. What can you conclude? Questions 1. Assume that the code waveform you are using is an alternating +1, -1 stream (the waveform will then be similar to a square-wave signal), try depicting the spectrum of the result of multiplication of this waveform and a sound waveform which has a bandwidth of 10KHz. (Hint: Use the Fourier series expansion of the code waveform and then use convolution.) 2. What are the main factors that limit the performance of the system you designed?

Instructor Sign-off Sheet How well is the code written? (Commented, organized, etc.) The transmitter system: The switch on the transmitter system enables and disables the multiplication of the code waveform: The receiver system: How well is the system synchronized with the transmitter?