Spread Spectrum
Spread Spectrum
Manjunatha. P (JNNCE) Spread Spectrum Signals for Digital Communication December 15, 2015 2 / 70
Generation of Pseudo Noise codes Generation of Pseudo Noise codes
Manjunatha. P (JNNCE) Spread Spectrum Signals for Digital Communication December 15, 2015 3 / 70
Generation of Pseudo Noise codes Generation of Pseudo Noise codes
Manjunatha. P (JNNCE) Spread Spectrum Signals for Digital Communication December 15, 2015 4 / 70
Generation of Pseudo Noise codes Generation of Pseudo Noise codes
Spread spectrum modulation was originally developed for military to be used in the battle ground and in
the hostile territories where the enemy always tries to intrude into the communication system of the
friendly forces to steal information and to jam the systems.
Manjunatha. P (JNNCE) Spread Spectrum Signals for Digital Communication December 15, 2015 5 / 70
Generation of Pseudo Noise codes Generation of Pseudo Noise codes
Manjunatha. P (JNNCE) Spread Spectrum Signals for Digital Communication December 15, 2015 7 / 70
Generation of Pseudo Noise codes Types of Spread Spectrum
Manjunatha. P (JNNCE) Spread Spectrum Signals for Digital Communication December 15, 2015 8 / 70
Spreading Codes Spreading Codes
Spreading Codes
Maximal length sequences
Good auto and cross correlation, small code set
Gold codes and Kasami sequences
Are derived from M-sequences with similar correlation properties, and a larger
code set.
Walsh and Hadamard sequences
zero correlation between codes when aligned cross-correlation non-zero when
time shifted fixed spreading factor (codes of different length are not
orthogonal)
Manjunatha. P (JNNCE) Spread Spectrum Signals for Digital Communication December 15, 2015 9 / 70
Spreading Codes Spreading Codes
x1 x2 x3
Output
Flip-Flop Flip-Flop Flip-Flop Sequence
x1
Modulo 2 adder
Manjunatha. P (JNNCE) Spread Spectrum Signals for Digital Communication December 15, 2015 10 / 70
Spreading Codes Spreading Codes
A pseudo noise (PN) sequence is defined as a coded sequence of 1s and 0s with a certain
autocorrelation properties.
The class of sequence used in spread spectrum communication is usually periodic.
The major tasks of PN sequences are:
1 Spreading the bandwidth of the modulated signal to the larger bandwidth.
2 Distinguishing between the different user signals utilizing the same transmission bandwidth.
The maximum length sequence is a type of cyclic code represents a commonly used PN sequence.
x1 x2 x3
Output
Flip-Flop Flip-Flop Flip-Flop Sequence
x1
Modulo 2 adder
Consider the initial state of the shift register is 100 (i.e, x1=1, x2=0 and x3=0).
Then, the succession of state will be as follows: 100, 110, 111, 011,101, 010, 001, 100
The output of the sequence (the last position of each of the shift register) is therefore 0011101. The
choice of initial state 100 is an arbitrary one.
Any of the other six states could serve equally well as an initial state.
Manjunatha. P (JNNCE) Spread Spectrum Signals for Digital Communication December 15, 2015 11 / 70
Spreading Codes Spreading Codes
Z∞
Ra (τ ) = f (t)f (t − τ )dt
−∞
The autocorrelation function of a maximum length sequence is periodic and binary valued. This property is
called as correlation property.
L−1
1X
Rc (τ ) = Ci ∗ C(i+τ ) mod L τ = 0, 1, . . . L − 1
L i=0
If symbol1 and 0 are represented by +1 volt and -1 volt then autocorrelation has only two values.
1 for τ = kL k = 0, 1, 2, ...
Rc (τ ) =
− L1 for τ 6= kL k = 0, 1, 2, ...
Manjunatha. P (JNNCE) Spread Spectrum Signals for Digital Communication December 15, 2015 12 / 70
Spreading Codes Spreading Codes
x1 x2 x3 x4
Modulo-2
adder
1000, 0100, 0010, 1001, 1100, 0110, 1011, 0101, 1010, 1101, 1110, 1111,
0111, 0011, 0001, 1000,
000100110101111
N = 2m − 1
000100110101111
Manjunatha. P (JNNCE) Spread Spectrum Signals for Digital Communication December 15, 2015 13 / 70
Spreading Codes Spreading Codes
0011101 =⇒ C0 C1 C2 C3 C4 C5 C6 C0 C1 C5 =-1 C2 C3 C4 C6 =1
1
C02 + C12 + C22 + C32 + C42 + C52 + C62 = 1
Rc (0) =
7
1 1
Rc (1) = (C0 .C6 + C1 .C0 + C2 .C1 + C3 .C2 + C4 .C3 + C5 .C4 + C6 .C5 ) = −
7 7
1 1
= (−1.1 + −1. − 1 + 1. − 1 + 1.1 + 1.1 + −1.1 + 1. − 1) = −
7 7
0 0 1 1 1 0 1 0 0 1 1 1 0 1
Tc NTc
Rc(t)
Tc Tc
Manjunatha. P (JNNCE) Spread Spectrum Signals for Digital Communication December 15, 2015 14 / 70
Spreading Codes Gold codes
Gold codes
Combining two m-sequences creates Gold codes.
Gold sequences are an important class of sequences that allow construction of
long sequences with three valued Auto Correlation Function ACFs.
Gold sequences are constructed from pairs of preferred m-sequences by
modulo-2 addition of two maximal sequences of the same length.
Gold sequences are in useful in non-orthogonal (asynchronous) CDMA.
The use of Gold sequences permits the transmission to be asynchronous.
The receiver can synchronize using the auto-correlation property of the Gold
sequence.
Manjunatha. P (JNNCE) Spread Spectrum Signals for Digital Communication December 15, 2015 15 / 70
Notion of spread spectrum Notion of spread spectrum
m(t) = c(t)b(t)
c(t) c(t)
c(t)
m(t) r(t)
m(t) r(t)
m(t) r(t)
r (t) = m(t) + i(t) = c(t)b(t) + i(t)
i(t)
i(t)
i(t)
z(t)
r(t)
Baseband
LPF z(t) = c(t)r (t) = c 2 (t)b(t)+c(t)i(t)
z(t)
Baseband
r(t) z(t) LPF c 2 (t) = 1
Baseband
r(t) LPF
c(t)
z(t) = b(t) + c(t)i(t)
c(t)
Manjunatha. P c(t)
(JNNCE) Spread Spectrum Signals for Digital Communication December 15, 2015 17 / 70
Notion of spread spectrum Notion of spread spectrum
Data b(t)
Tb
NTc
0 0 1 1 1 0 1
Product Signal m(t)
Manjunatha. P (JNNCE) Spread Spectrum Signals for Digital Communication December 15, 2015 18 / 70
Direct Sequence Spread Binary PSK Direct Sequence Spread Binary PSK
Binary
2 P cos( w0t + θ (t ))
Data Phase
modulator
2 P c(t ) cos( w0t + θ (t ))
Binary
2 P cos( w0t + θ (t ))
Data Phase
modulator c(t )
2 P cos( w0t ) 2 P c(t ) cos( w0t + θ (t ))
Despreading
c(t − Td )
Despreading Mixer 2 P cos(w0t )
c(t − Td ) Mixer 2 P cos(w0t )
Manjunatha. P (JNNCE) Spread Spectrum Signals for Digital Communication December 15, 2015 19 / 70
Direct Sequence Spread Binary PSK Direct Sequence Spread Binary PSK
Manjunatha. P (JNNCE) Spread Spectrum Signals for Digital Communication December 15, 2015 20 / 70
Direct Sequence Spread Binary PSK Direct Sequence Spread Binary PSK
Figure: Bandwidth
Manjunatha. P (JNNCE) Spread Spectrum Signals for Digital Communication December 15, 2015 21 / 70
Direct sequence spread spectrum signals Direct sequence spread spectrum signals
Manjunatha. P (JNNCE) Spread Spectrum Signals for Digital Communication December 15, 2015 24 / 70
Direct sequence spread spectrum signals Direct sequence spread spectrum signals
PN Mod-2 Balanced
Generator adder Modulator
cos ( 2π f ct ) QPSK
Data signal
Local
Encoder Adder
oscillator
sin ( 2π f ct )
PN Mod-2 Balanced
Generator adder Modulator
ai = bi ⊕ ci
j2πfc t ±jx
s(t) = ±Re[g (t)e ] [e = cosx ± jsinx] Figure: Illustrates the spreading process
Manjunatha. P (JNNCE) Spread Spectrum Signals for Digital Communication December 15, 2015 25 / 70
Direct sequence spread spectrum signals Direct sequence spread spectrum signals
W Tb
Be = = (1)
R Tc
In practical system the ratio Tb /Tc is an integer,
Tb
Le = (2)
Tc
which is the number of chips per information bit.
Manjunatha. P (JNNCE) Spread Spectrum Signals for Digital Communication December 15, 2015 28 / 70
Code Division Multiple Access (CDMA) Code Division Multiple Access (CDMA)
Manjunatha. P (JNNCE) Spread Spectrum Signals for Digital Communication December 15, 2015 29 / 70
Code Division Multiple Access (CDMA) Code Division Multiple Access (CDMA)
CDMA
Manjunatha. P (JNNCE) Spread Spectrum Signals for Digital Communication December 15, 2015 30 / 70
Code Division Multiple Access (CDMA) Code Division Multiple Access (CDMA)
Manjunatha. P (JNNCE) Spread Spectrum Signals for Digital Communication December 15, 2015 31 / 70
Code Division Multiple Access (CDMA) Code Division Multiple Access (CDMA)
Manjunatha. P (JNNCE) Spread Spectrum Signals for Digital Communication December 15, 2015 32 / 70
Code Division Multiple Access (CDMA) Code Division Multiple Access (CDMA)
CDMA
Forward
Link
Reverse
Link
Manjunatha. P (JNNCE) Spread Spectrum Signals for Digital Communication December 15, 2015 33 / 70
Code Division Multiple Access (CDMA) CDMA
Forward Link
CELP coder generates a variable data rate of 9600, 4800, 2400, and 1200 bits/s, (based speech activity)
in the frame of 20 ms.
Data is encoded by a rate of 1/2, constraint length K=9 convolutional encoder.
For lower speech activity 4800, 2400, or 1200 bits/s the output symbols from the convolutional encoder
are repeated either twice, four times, or eight times so as to maintain a constant bit rate of 9600 bits/s.
Block interleaver is used to overcome the effects of burst errors that may occur during the transmission
through the channel.
Scrambler is used for Data Encryption to make call more secure.
Scrambler will randomizes data and prevents the transition of a long series of 1’s or 0’s
Block interleaver data rate of 19.2 kbps are scrambled by multiplication with long code with chip rate of
1.2288 M chips/s and is decimated by factor of 64 to 19.2 kchips/s.
The long code is used to identify a call of a MS on the forward and reverse links.
Hadmard or Walsh code sequence of length 64 is assigned to each channel.
64 orthogonal sequences are assigned to each BS (64 Channels), One channel is used to transmit pilot
signal, which is used measure the channel characteristics (includes signal strength and the carrier phase
offset).
Another channel is used to provide time synchronization. one channel for paging activity.
Remaining 61 channels for user.
Manjunatha. P (JNNCE) Spread Spectrum Signals for Digital Communication December 15, 2015 34 / 70
Code Division Multiple Access (CDMA) CDMA
Each user data is multiplied by Hadmard sequence, the resulting sequence is spread by two PN
sequences one in-phase and other in quadrature phase of length N = 215 .
Different BS are identified by different offsets of these PN sequences.
Manjunatha. P (JNNCE) Spread Spectrum Signals for Digital Communication December 15, 2015 35 / 70
Code Division Multiple Access (CDMA) Reverse Link
Reverse Link
Orthogonal Modulation
6 bit block of data is mapped into 64 Hadamard seq => (64/6) ∗ 28.8 = 307.8
64-ary orthogonal modulation using the same Walsh function in the forward link
Contrary to the forward link, used for orthogonal data modulation
One Walsh function is transmitted for six coded bits
Modulated symbol rate: 28.8kbps ∗ 64chips/6codedbits = 307.2kcps
Increase interference tolerance
Manjunatha. P (JNNCE) Spread Spectrum Signals for Digital Communication December 15, 2015 37 / 70
Code Division Multiple Access (CDMA) Processing Gain and Jamming Margin
If there are Nu simultaneous users then the desired signal-to-nose interference ratio at a given receiver is
(Pav = PS Jav = PN )
PS PS 1
= =
PN (Nu − 1)PS Nu − 1
Manjunatha. P (JNNCE) Spread Spectrum Signals for Digital Communication December 15, 2015 38 / 70
Code Division Multiple Access (CDMA) Processing Gain and Jamming Margin
Manjunatha. P (JNNCE) Spread Spectrum Signals for Digital Communication December 15, 2015 40 / 70
Code Division Multiple Access (CDMA) Problems
13.5 A rate of 1/2 convolutional code with dmin = 10 is used to encode a data sequence occuring at
a rate of 1000 bits/s. The modulation is binary PSK. The DS spread spectrum sequence has a chip rate
of 10 MHz
a) Determine the coding gain
b) Determine the processing gain
c) Determine the Jamming margin assuming an Eb /J0 = 10
Solution:
a) The Coding gain is
W 107 3 3
= = 5 ∗ 10 = 10log (5 ∗ 10 ) = 37 db
R 2 ∗ 103
Pav
= (W /R)dB + (CGdB ) − (Eb /J0 )dB
Jav
= 37 + 7 − 10 = 34dB
Manjunatha. P (JNNCE) Spread Spectrum Signals for Digital Communication December 15, 2015 41 / 70
Code Division Multiple Access (CDMA) Problems
13.6 A total of 30 equal-power users are to share a common communication channel by CDMA. Each
user transmits information at a rate of 10 kbps via DS spread spectrum and binary PSK. Determine the
minimum chip rate in order to obtain a bit-error probability of 10−5 . Additive noise at the receiver may
be ignored in this computation.
Solution: s s
−5 1 Eb Eb
Pe = 10 = erfc ∴ erfc = 2 ∗ 10−5
2 N0 N0
−5
erf (u) = 1 − erfc(u) = 1 − 2 ∗ 10 = 0.99998
p
From the error function table u = Eb /N0 = 3.0 for a value of 0.99998
s
Eb
u= ' 3.0 ∴ Eb /N0 = 9
N0
To achieve an error probability of 10−5 , the required Eb /J0 = 10 Then, by using the relation in and we have
W /R W /R Eb Eb
= = ∴ W /R = (Nu − 1)
PN /PS Nu − 1 J0 J0
Eb
W =R (Nu − 1)
J0
13.7 A CDMA system is designed based on DS spread spectrum with a processing gain of 1000 and binary
PSK modulation. Determine the number of users, if each user has equal power and the desired level of
performance is an error probability of 10−6 . Repeat the computation if the processing gain is changed to 500.
Solution: s s
−6 1 Eb −6 Eb
Pe = 10 = erfc i.e., 2 ∗ 10 = erfc
2 N0 N0
−6
erfc(u) = 2 ∗ 10
From the complementary error function table u = Eb /N0 ' 3.36 for a value of 2 ∗ 10−6
p
∴ Eb /N0 = 11.3
Then, the number of users of the CDMA system is
W /Rb
Nu = +1
Eb /J0
W /Rb 1000
Nu = + 1 = Nu = + 1 = 89 users
Eb /J0 11.3
Manjunatha. P (JNNCE) Spread Spectrum Signals for Digital Communication December 15, 2015 43 / 70
Code Division Multiple Access (CDMA) Problems
13.8 A DS spread-spectrum system transmits at a rate of 1000 bps in the presence of tone interference. The
interference power is 20 dB greater than the desired signal and the required to achieve satisfactory
performance is 10 dB.
a Determine the spreading bandwidth required to meet the specifications.
b In the case of pulse interference, determine the pulse duty cycle that results in worst-case
performance and the corresponding probability of error.
Solution:
a (PJ /PS )dB = 20dB R = 1000 bps and (Eb /J0 )dB = 10dB
W PJ Eb
= + = 30dB
R db PS db J0 db
W
= 1000
R
6
W = 1000R = 1000 ∗ 1000 = 10 Hz
0.7 0.7
α= = = 0.07
Eb /J0 10
0.082 0.082 −3
P2 = = = 8.2 ∗ 10
Eb /J0 10
Manjunatha. P (JNNCE) Spread Spectrum Signals for Digital Communication December 15, 2015 44 / 70
Code Division Multiple Access (CDMA) Problems
13.9 CDMA system consists of 15 equal power users that transmit information at a rate of 10,000 bits/s, each
using a DS spread spectrum signal operating at a chip rate of 1 MHz. The modulation is binary PSK.
a) Determine the Eb /Jo where Jo is the spectral density of the combined interference.
b) What is processing gain?
c) How much should the processing gain be increased to allow for doubling the number of users without
affecting the output SNR?
Solution:
a) We have Nu = 15 users transmitting at a rate of 10, 000 bps each, in a bandwidth of W = 1 MHz
The Eb /J0 is
Eb W /R 106 /104 100
= = = = 7.14(8.54dB)
J0 Nu − 1 14 14
b) Processing gain PG = W
R
c 1Mbps
= 100
b 10Kbps
c) With Nu = 30 and Eb /J0 = 7.14, the processing gain should be increased to
W /R = (7.14)(29) = 207
Manjunatha. P (JNNCE) Spread Spectrum Signals for Digital Communication December 15, 2015 45 / 70
Code Division Multiple Access (CDMA) Problems
13.14 An m=10 ML shift register is used to generate the pseudorandom sequence in a DS SS. The chip
duration is Tc = 1microsec and the bit duration is Tb = NTc where N is the length of the m sequences
1 Determine the processing gain of the system in dB
2 Determine the jamming margin if the required E − b/J0 = 10 and the jammer is tone jammer with an
average power Jav
Solution:
1 The period of the maximum length shift register sequence is
10
N =2 − 1 = 1023
Tb
N = 1023(30dB)
Tc
Manjunatha. P (JNNCE) Spread Spectrum Signals for Digital Communication December 15, 2015 46 / 70
Code Division Multiple Access (CDMA) Problems
13.15 An FH binary orthogonal FSK system employs a m = 15 stage linear feedback shift register that
generates a maximal length sequence. Each state of the shift register selects one of N nonoverlapping
frequency bands in the hopping pattern. The bit rate is 100 bits/sec and the hop rate is once/bit. The
demodulator employs noncoherent detection.
1 Determine the hopping bandwidth for this channel.
2 What is the processing gain?
3 What is the probability of error in the presence of AWGN?
Solution:
1 The length of the shift-register sequence is
m 15
L=2 −1=2 − 1 = 32767 bits
For binary FSK modulation, the minimum frequency separation is 2/T, where 1/T is the symbol (bit)
rate. The hop rate is 100 hops/ sec. Since the shift register has N = 32767 states and each state
utilizes a bandwidth of 2/T = 200 Hz, then the total bandwidth for the FH signal is 6.5534 MHz.
2 The processing gain is W/R. We have,
W 6.5534 ∗ 106 4
= = 6.5534 × 10 bps
R 100
3 If the noise is AWG with power spectral density N0, the probability of error expression
s s !
Eb W /R
P2 = Q =Q
N0 PN /PS
Manjunatha. P (JNNCE) Spread Spectrum Signals for Digital Communication December 15, 2015 47 / 70
Frequency Hopping Spread Spectrum Modulation Frequency Hopping Spread Spectrum Modulation
Manjunatha. P (JNNCE) Spread Spectrum Signals for Digital Communication December 15, 2015 49 / 70
Frequency Hopping Spread Spectrum Modulation Frequency Hopping Spread Spectrum Modulation
BW = Wd BW = Ws
The type of spread spectrum in which
Binary
carrier hops randomly from one frequency Data Data
High
to another is called Frequency Hop (FH)BW = W BW = Ws
pass
d modulator
filter
spread spectrum. Binary
Data High
Data
pass
modulator
Frequencies are shifted for every Tc filter
Frequency
seconds. 2 P cos(w0t ) synthesizer
Frequency
Duration of signal element is Tb seconds.2P cos(w t ) synthesizer
0
Figure: Transmitter
BW = Wd
BW = Wd Estimated
BW = Ws
BW = Ws Estimated
Band pass data Phase data
Band pass Phase
filter filter
demodulator demodulator
FH code
clock FH code
Code
gnerator
clock
Code
gnerator
Figure: Receiver
Manjunatha. P (JNNCE) Spread Spectrum Signals for Digital Communication December 15, 2015 50 / 70
Frequency Hopping Spread Spectrum Modulation Frequency Hopping Spread Spectrum Modulation
Manjunatha. P (JNNCE) Spread Spectrum Signals for Digital Communication December 15, 2015 51 / 70
Frequency Hopping Spread Spectrum Modulation Frequency Hopping Spread Spectrum Modulation
Manjunatha. P (JNNCE) Spread Spectrum Signals for Digital Communication December 15, 2015 52 / 70
Frequency Hopping Spread Spectrum Modulation Frequency Hopping Spread Spectrum Modulation
Manjunatha. P (JNNCE) Spread Spectrum Signals for Digital Communication December 15, 2015 53 / 70
Frequency Hopping Spread Spectrum Modulation Frequency Hopping Spread Spectrum Modulation
Manjunatha. P (JNNCE) Spread Spectrum Signals for Digital Communication December 15, 2015 54 / 70
Frequency Hopping Spread Spectrum Modulation Frequency Hopping Spread Spectrum Modulation
Manjunatha. P (JNNCE) Spread Spectrum Signals for Digital Communication December 15, 2015 55 / 70
Frequency Hopping Spread Spectrum Modulation Frequency Hopping Spread Spectrum Modulation
Output
Information FSK FSK
Encoder Mexer Channel Mexer Decoder
sequence modulator demodulator
Time
PN sync
Frequency Frequency
sequence
synthesizer synthesizer
generator
PN
sequence
generator
Manjunatha. P (JNNCE) Spread Spectrum Signals for Digital Communication December 15, 2015 56 / 70