You are on page 1of 3

Introduction to Spread Spectrum Communications

Mini-Project #1
Due February 19, 2008
In class

Note: You may use outside references including books and notes but you may not
obtain assistance from another person.

I pledge that I have neither given nor received any assistance on this assignment.

(signed)

__________________________________________ ________________________
Name (print) Student Number

(c) Repeat (a) and (b) 1000 times and find the average values for the random code. 2. [155] 7 [211]. (a) Test your code by generating a length 63 m-sequence using the taps specified in the table below. [235].) (c) Check the cross-correlation values found in (b). try another pair from the table below until a preferred pair is found.e. [537]. (b) Determine the autocorrelation function of the sequence and compare with the function plotted in 1(c). (c) Plot the autocorrelation function of your sequence. Plot both on one graph. [747]. (b) Show that the sequence is indeed an m-sequence by identifying the number of runs of ones and zeros of length 1 to 6.. If they are not a preferred pair. Provide a detailed justification as to why you believe that this pair is a preferred pair. (a) Determine the number of runs of ones and zeros and compare with the m- sequence generated in problem 1.[345] 8 [435]. [543] . plot 9 cross- correlation functions. (b) Using the preferred pair found in (a) generate 10 different Gold Codes. [75]. (20 points) Create a Matlab program (C or other programming language is also acceptable) that will generate an m-sequence d of any length given the tap polynomial g and the initial state of the register r. List the average values and the values for an m-sequence in a table and plot the average autocorrelation function (Note: Do not plot 1000 autocorrelation functions). What are the theoretical values for Gold Codes? Do they match? Table1: Primitive Polynomials of Degree r Degree Octal Representation of Generator Polynomial g =[gr gr-1 …g1 g0] 2 [7] 3 [13] 4 [23] 5 [45]. [203]. [325]. [367]. [703]. [67] 6 [103].1. Plot the cross-correlation of each code with one of the codes (i. [545]. generate two m-sequences of length N = 63. [277]. Plot the theoretical autocorrelation function and compare the two. [217]. (20 points) Using the function created in problem 1. [147]. [313]. [551]. (a) Determine whether or not they are a preferred pair by plotting and examining their cross-correlation. [453]. How do the averages compare to the m-sequence? 3. (20 points) Create a random binary sequence of length 63 using the rand() function in Matlab.

How do they compare with m-sequences? Determine the auto-correlation values for all codes in the set. (10 points) A Matlab .. How do the auto-correlation and cross-correlation values compare with Gold codes? (c) Repeat part (a) for random codes.) How do the auto-correlation and cross-correlation values compare with Gold codes and Kasami sequences? 5. (Use the rand() function in Matlab to create the codes.4. determine the type of spread spectrum waveform (DS or FH or hybrid). The file has one vector representing a sampled complex baseband spread spectrum signal plus noise. .mat. (b) Repeat part (a) using 8 codes from the small set of Kasami sequences. Plot a histogram of the cross-correlation values.) How do the values compare with the Welch bound? Plot the auto-correlation function of any two codes in the set. Plot a histogram of the auto-correlation values.g. and pulse shape.mat file is posted on the class website titled MP1_5. Plot the cross-correlation function between any two codes in the set. (30 points) (a) Create a set of 65 Gold codes of length 63. spreading waveform type (e. Knowing that the sampling rate is 8MHz. (You will probably want to use Matlab to do this. the chip rate. Do they agree with theory? Determine the cross- correlation values between all pairs in the set. m-sequence).