Understanding Spread Spectrum for Communications
Overview
This tutorial is part of the National Instruments Measurement Fundamentals series. Each tutorial in this series, will teach you a specific topic of common measurement applications, by explaining the theory and giving practical examples. This tutorial covers an introduction to RF, wireless and high-frequency signals and systems.
For the complete list of tutorials, return to the NI Measurement Fundamentals Main page or for more RF tutorials refer to the NI RF Fundamentals main subpage. For more information on National Instruments RF products, visit www.ni.com/rf.
Table of Contents
Introduction
Spread Spectrum refers to a system originally developed for military applications, to provide secure communications by spreading the signal over a large frequency band.Figure 1 represents a narrow band signal in the frequency domain. These narrowband signals are easily jammed by any other signal in the same band. Likewise, the signal can also be intercepted since the frequency band is fixed and narrow (i.e. easy to detect).

Figure 1: Narrow band signal, relatively easy to jam or intercepted.
The idea behind spread spectrum is to uses greater bandwidth than the message bandwidth but the power remains the same. Moreover, this broadband signal looks like noise, for that frequency band, and therefore would be hard to tell if there is any signal at all. This provides security to the transmission since there would be no visible peak in the spectrum. Figure 3 gives more visual insight of the point.
This document will explore basics concepts of spread spectrum for the remaining of the introduction and then it will explore the supporting concepts of the most used technique in spread spectrum systems. The last section will give the reader some insight of more advance topics but will not deeply explore them. We encourage the reader to seek the references for advance knowledge of spread spectrum systems.
General Block Diagram
We present now the block diagram of a typical communication system with the difference that the modulator/demodulator has as input the spreading generator. This piece will be explored in following sections.

[+] Enlarge Image
Figure 2: Block diagram of the spread spectrum communication system
There are two predominant techniques to spread the spectrum:
1) Frequency hoping (FH), which makes the narrow band signal jump in random narrow bands within a larger bandwidth.
2) Direct sequence (DS) which introduces rapid phase transition to the data to make it larger in bandwidth.
We will focus on Direct Sequence Spread Spectrum technique since it is the mostly used in the industry (CDMA, UMTS, 802.11, GPS).
Direct Sequence Spread Spectrum (DSSS)
Direct sequence spread spectrum (DSSS) introduces rapid phase transition to the data making it larger in bandwidth. As the period T of a signal gets shorter in time (or rate R increases), the bandwidth B of the signal increases: R = 1/T = 2B (Nyquist Rate)
The following figures explain it:
Figure 3: Rate and period are related to bandwidth by
Spreading and Despreading
The rapid phase transition (chip rate
To get the signal back, the exact same high bandwidth signal is needed. This is like a key, only the demodulator that “knows” such a key will be able to demodulate and get the message back. This “key” is in fact a pseudo random sequence (rapid phase transition) also known as pseudo noise (PN). These sequences are generated by m-sequences.
m-Sequences
These codes (DSSS codes) will all be treated as pseudonoise (PN) sequences because resembles random sequences of bits with a flat noiselike spectrum.
This sequence appears to have random pattern but in fact can be recreated by using the shift register structure in Figure 4 with M=4, polynomial

[+] Enlarge Image
Figure 4: Shift register structure for m-sequence
Where ‘
Using this scheme, the initial state is only needed to generate exactly the same sequence of length
Take for example:


[+] Enlarge Image
The final sequence will look like this,
1 1 -1 -1 -1 1 -1 -1 1 1 -1 1 -1 1 1
After the fifteenth shift, the values on the registers will be again the starting seed.
Properties of m-Sequences
Period:
After this number of ‘1’ and ‘-1’ the sequence will start to repeat since the starting symbols will be the same.
Autocorrelation:
The formal definition of discrete autocorrelation is:
Consider the previous sequence
| 1 | 1 | -1 | -1 | -1 | 1 | -1 | -1 | 1 | 1 | -1 | 1 | -1 | 1 | 1 |
If we perform the following operation:
Now take

[+] Enlarge Image
Performing the same operation:
This is the autocorrelation for each shift point. If we take them all and plot them so that there are 15 points before 0 and 15 after:
a)

b)

Figure 5: Correlation of a) example sequence and b) other sequence with polynomial
As seen, only if the end user having the exact sequence is able to demodulate the message when the sequence is synchronized (peak at correlation = 1). Other users will have very little amplitude of the original signal. This is the principle of Code Division Multiple Access (CDMA) cellular systems, in other words, share the same frequency and time with multiple users with different codes.
Spreading
The block diagram of the DSSS communication system for QPSK is presented in Figure 6. Notice that the PN sequence is introduced here to both in-phase (I) and quadrature (Q) components.

[+] Enlarge Image
Figure 6: Block diagram of the spread spectrum QPSK modulator
The sequence should be long enough (with respect to the message signal) to have the noise-like spectrum. This is the relation between spreading sequence rate
In practical systems,

[+] Enlarge Image
Figure 7: Spreading the message, each bit of the message will contain the entire PN sequence
The new message has now
The output combined baseband sequence is:
Where
Despreading
Received baseband waveform is the combination of the transmitted waveform and noise in the channel.

Figure 8: Simple additive white Gaussian noise (AWDG) channel model. LabVIEW Vi
The received signal will be combined again with the spreading sequence. Notice that the noise
The received signal will be the combination of the transmitted signal plus noise:
We can substitute the sent waveform by the combination of the PN sequence and the bit sequence.
The modulator will multiply it by the PN sequence
If
Consider the ideal example from Figure 9.

[+] Enlarge Image
M-sequences are the basics of PN sequences and they are used in real systems (GPS) but these are not the only PN sequences. Since Spread Spectrum is the basis of CDMA, we will highlight the basis of two of the most used sequences involved in the system: Gold sequences (WCDMA) and Walsh-Hadamard sequences (IS-95).
Gold Sequences
Gold sequences help generate more sequences out of a pair of m-sequences giving now many more different sequences to have multiple users. Gold sequences are based on preferred pairs m-sequences. For example, take the polynomials

Figure 10: Example of gold sequence generator using one preferred pair of m-sequences:
Remember m-sequences gave only one sequence of length
The m-sequence pair plus the
Walsh-Hadamard Sequences
Other common sequences are Walsh-Hadamard sequences currently used in CDMA systems. These sequences are orthogonal (i.e.
For larger matrices use the recursion:

Example for

Orthogonal codes have perfect properties of cross correlation (if no shift is implemented).
Concusions
We have now explored different sequences that can spread the signal like noise would behave. Spread spectrum systems expand beyond this point to many different paths: modulation schemes, performance under fading, under interference, capacity in CDMA systems, etc.
To finalize, we would like to point out the advantages and disadvantages of using spread spectrum:
Advantages:
- Privacy. Secure communications because signal is “hidden” like noise
- Non interference with other signals in the same band.
- Possible to share frequency and time at same time (CDMA)
- Protection against jamming
- Increase bandwidth (wideband circuitry, channel model for wideband systems behaves different over frequency)
- Increase complexity
For the complete list of tutorials, return to the NI Measurement Fundamentals Main page or for more RF tutorials refer to the NI RF Fundamentals main subpage. For more information on National Instruments RF products, visit www.ni.com/rf.
References
[1] G. L. Stüber, “Principles of mobile communication,” Kluwer Academic, Boston 1996.
[2] J. G. Proakis, “Digital Communications,” 4th Edition, McGraw-Hill Higher Education.
[3] T. S. Rappaport, “Wireless communications: principles and practice,” Pentrice Hall PTR, N.J., 1996.
[4] T. Pratt, C. W. Bostian and J.E. Allnutt, “Satellite Communications,” 2nd ed. John Wiley publication, 2002.
[5] R: Prasad, T. Ojanperä, “An Overview of CDMA Evolution Toward wideband CDMA,” IEEE communications surveys, Vol. 1, No. 1 Q4 1998.
Related Products
NI PXI-5660 2.7 GHz RF Vector Signal Analyzer
The National Instruments PXI-5660 is a modular 2.7 GHz RF vector signal analyzer with 20 MHz of real-time bandwidth optimized for automated test.
NI PXI-5671 2.7 GHz RF Vector Signal Generator
The National Instruments PXI-5671 module is a 3-slot RF vector signal generator that delivers signal generation from 250 kHz to 2.7 GHz, 20 MHz of real-time bandwidth and up to 512 MB of memory.
NI PXI-5652 6.6 GHz RF and Microwave Signal Generator
The National Instruments PXI-5652 6.6 GHz RF and microwave signal generator is continuous-wave with modulation capability. It is excellent for setting up stimulus response applications with RF signal analyzers.
NI RF Switches
The National Instruments RF switch modules are ideal for expanding the channel count or increasing the flexibility of systems with signal bandwidths greater than 10 MHz to bandwidths as high as 26.5 GHz.
NI LabVIEW
National Instruments LabVIEW is an industry-leading graphical software tool for designing test, measurement, and automation systems.
NI Modulation Toolkit
The National Instruments Modulation Toolkit extends the built-in analysis capability of LabVIEW with functions and tools for signal generation, analysis, visualization, and processing of standard and custom digital and analog modulation formats.
Reader Comments | Submit a comment »
Legal
This tutorial (this "tutorial") was developed by National Instruments ("NI"). Although technical support of this tutorial may be made available by National Instruments, the content in this tutorial may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this content with each new revision of related products and drivers. THIS TUTORIAL IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).
