lecture 7: spread spectrum anders västberg [email protected] 08-790 44 55
TRANSCRIPT
![Page 2: Lecture 7: Spread Spectrum Anders Västberg vastberg@kth.se 08-790 44 55](https://reader030.vdocument.in/reader030/viewer/2022032518/56649cc95503460f94991cf8/html5/thumbnails/2.jpg)
Concepts
• Spread Spectrum– Frequency Hopping Spread Spectrum– Direct Sequence Spread Spectrum
• Code Division Multiple Access (CDMA)• Generating Spread Sequences
![Page 3: Lecture 7: Spread Spectrum Anders Västberg vastberg@kth.se 08-790 44 55](https://reader030.vdocument.in/reader030/viewer/2022032518/56649cc95503460f94991cf8/html5/thumbnails/3.jpg)
Spread Spectrum Communication System
![Page 4: Lecture 7: Spread Spectrum Anders Västberg vastberg@kth.se 08-790 44 55](https://reader030.vdocument.in/reader030/viewer/2022032518/56649cc95503460f94991cf8/html5/thumbnails/4.jpg)
Advantage of Spread Spectrum Systems
• Immunity from noise, interference and multipath distortion
• Hiding and encrypting signals• Several users can use the same
bandwidth at the same time => Code Division Multiple Access
![Page 5: Lecture 7: Spread Spectrum Anders Västberg vastberg@kth.se 08-790 44 55](https://reader030.vdocument.in/reader030/viewer/2022032518/56649cc95503460f94991cf8/html5/thumbnails/5.jpg)
Frequency Hopping Spread Spectrum
• carrier frequencies forming channels• The transmission hops between channels,
where the spreading code dictates the sequence of channels.
• The transmitter and receiver uses the same spreading code and are synchronized
![Page 6: Lecture 7: Spread Spectrum Anders Västberg vastberg@kth.se 08-790 44 55](https://reader030.vdocument.in/reader030/viewer/2022032518/56649cc95503460f94991cf8/html5/thumbnails/6.jpg)
Frequency Hopping
![Page 7: Lecture 7: Spread Spectrum Anders Västberg vastberg@kth.se 08-790 44 55](https://reader030.vdocument.in/reader030/viewer/2022032518/56649cc95503460f94991cf8/html5/thumbnails/7.jpg)
FHSS-System
![Page 8: Lecture 7: Spread Spectrum Anders Västberg vastberg@kth.se 08-790 44 55](https://reader030.vdocument.in/reader030/viewer/2022032518/56649cc95503460f94991cf8/html5/thumbnails/8.jpg)
FHSS using MFSK
• MFSK (multiple FSK) signal is translated to a new frequency every Tc seconds
• M=2L L number of bits, M number of signal elements
• For data rate of R:• duration of a bit: T = 1/R seconds• duration of signal element: Ts = LT seconds
• Tc Ts - slow-frequency-hop spread spectrum• Tc < Ts - fast-frequency-hop spread spectrum
![Page 9: Lecture 7: Spread Spectrum Anders Västberg vastberg@kth.se 08-790 44 55](https://reader030.vdocument.in/reader030/viewer/2022032518/56649cc95503460f94991cf8/html5/thumbnails/9.jpg)
Slow FHSS
![Page 10: Lecture 7: Spread Spectrum Anders Västberg vastberg@kth.se 08-790 44 55](https://reader030.vdocument.in/reader030/viewer/2022032518/56649cc95503460f94991cf8/html5/thumbnails/10.jpg)
Fast FHSS
![Page 11: Lecture 7: Spread Spectrum Anders Västberg vastberg@kth.se 08-790 44 55](https://reader030.vdocument.in/reader030/viewer/2022032518/56649cc95503460f94991cf8/html5/thumbnails/11.jpg)
Performance of FHSS
• If k is large, , then the systems is resistant to interference and noise
• Interference signal has the power • in a normal MFSK system• in a FHSS system
![Page 12: Lecture 7: Spread Spectrum Anders Västberg vastberg@kth.se 08-790 44 55](https://reader030.vdocument.in/reader030/viewer/2022032518/56649cc95503460f94991cf8/html5/thumbnails/12.jpg)
Direct Sequence Spread Spectrum
![Page 13: Lecture 7: Spread Spectrum Anders Västberg vastberg@kth.se 08-790 44 55](https://reader030.vdocument.in/reader030/viewer/2022032518/56649cc95503460f94991cf8/html5/thumbnails/13.jpg)
DSSS
![Page 14: Lecture 7: Spread Spectrum Anders Västberg vastberg@kth.se 08-790 44 55](https://reader030.vdocument.in/reader030/viewer/2022032518/56649cc95503460f94991cf8/html5/thumbnails/14.jpg)
DSSS Performance
![Page 15: Lecture 7: Spread Spectrum Anders Västberg vastberg@kth.se 08-790 44 55](https://reader030.vdocument.in/reader030/viewer/2022032518/56649cc95503460f94991cf8/html5/thumbnails/15.jpg)
Processing Gain
• The signal to noise ratio has a processing gain of:
![Page 16: Lecture 7: Spread Spectrum Anders Västberg vastberg@kth.se 08-790 44 55](https://reader030.vdocument.in/reader030/viewer/2022032518/56649cc95503460f94991cf8/html5/thumbnails/16.jpg)
CDMA
![Page 17: Lecture 7: Spread Spectrum Anders Västberg vastberg@kth.se 08-790 44 55](https://reader030.vdocument.in/reader030/viewer/2022032518/56649cc95503460f94991cf8/html5/thumbnails/17.jpg)
CDMA Example
![Page 18: Lecture 7: Spread Spectrum Anders Västberg vastberg@kth.se 08-790 44 55](https://reader030.vdocument.in/reader030/viewer/2022032518/56649cc95503460f94991cf8/html5/thumbnails/18.jpg)
Categories of Spreading Sequences
• Spreading Sequence Categories – PN sequences– Orthogonal codes
• For FHSS systems– PN sequences most common
• For DSSS systems not employing CDMA– PN sequences most common
• For DSSS CDMA systems– PN sequences– Orthogonal codes
![Page 19: Lecture 7: Spread Spectrum Anders Västberg vastberg@kth.se 08-790 44 55](https://reader030.vdocument.in/reader030/viewer/2022032518/56649cc95503460f94991cf8/html5/thumbnails/19.jpg)
PN Sequences
• PN generator produces periodic sequence that appears to be random
• PN Sequences – Generated by an algorithm using initial seed– Sequence isn’t statistically random but will pass many
test of randomness– Sequences referred to as pseudorandom numbers or
pseudonoise sequences– Unless algorithm and seed are known, the sequence
is impractical to predict
![Page 20: Lecture 7: Spread Spectrum Anders Västberg vastberg@kth.se 08-790 44 55](https://reader030.vdocument.in/reader030/viewer/2022032518/56649cc95503460f94991cf8/html5/thumbnails/20.jpg)
Important PN Properties
• Randomness– Uniform distribution
• Balance property• Run property
– Independence– Correlation property
• Unpredictability
![Page 21: Lecture 7: Spread Spectrum Anders Västberg vastberg@kth.se 08-790 44 55](https://reader030.vdocument.in/reader030/viewer/2022032518/56649cc95503460f94991cf8/html5/thumbnails/21.jpg)
Linear Feedback Shift Register Implementation
![Page 22: Lecture 7: Spread Spectrum Anders Västberg vastberg@kth.se 08-790 44 55](https://reader030.vdocument.in/reader030/viewer/2022032518/56649cc95503460f94991cf8/html5/thumbnails/22.jpg)
Properties of M-Sequences
• Property 1: – Has 2n-1 ones and 2n-1-1 zeros
• Property 2: – For a window of length n slid along output for N (=2n-
1) shifts, each n-tuple appears once, except for the all zeros sequence
• Property 3:– Sequence contains one run of ones, length n– One run of zeros, length n-1– One run of ones and one run of zeros, length n-2– Two runs of ones and two runs of zeros, length n-3– 2n-3 runs of ones and 2n-3 runs of zeros, length 1
![Page 23: Lecture 7: Spread Spectrum Anders Västberg vastberg@kth.se 08-790 44 55](https://reader030.vdocument.in/reader030/viewer/2022032518/56649cc95503460f94991cf8/html5/thumbnails/23.jpg)
Properties of M-Sequences
• Property 4: – The periodic autocorrelation of a ±1 m-
sequence is
Where
otherwise
... 2N, N,0, 1
1
τ
NR
![Page 24: Lecture 7: Spread Spectrum Anders Västberg vastberg@kth.se 08-790 44 55](https://reader030.vdocument.in/reader030/viewer/2022032518/56649cc95503460f94991cf8/html5/thumbnails/24.jpg)
PN Autocorrelation Function
![Page 25: Lecture 7: Spread Spectrum Anders Västberg vastberg@kth.se 08-790 44 55](https://reader030.vdocument.in/reader030/viewer/2022032518/56649cc95503460f94991cf8/html5/thumbnails/25.jpg)
Definitions
• Correlation – The concept of determining how much similarity one
set of data has with another– Range between –1 and 1
• 1 The second sequence matches the first sequence• 0 There is no relation at all between the two sequences• -1 The two sequences are mirror images
• Cross correlation – The comparison between two sequences from
different sources rather than a shifted copy of a sequence with itself
![Page 26: Lecture 7: Spread Spectrum Anders Västberg vastberg@kth.se 08-790 44 55](https://reader030.vdocument.in/reader030/viewer/2022032518/56649cc95503460f94991cf8/html5/thumbnails/26.jpg)
Advantages of Cross Correlation
• The cross correlation between an m-sequence and noise is low– This property is useful to the receiver in filtering out
noise
• The cross correlation between two different m-sequences is low– This property is useful for CDMA applications – Enables a receiver to discriminate among spread
spectrum signals generated by different m-sequences
![Page 27: Lecture 7: Spread Spectrum Anders Västberg vastberg@kth.se 08-790 44 55](https://reader030.vdocument.in/reader030/viewer/2022032518/56649cc95503460f94991cf8/html5/thumbnails/27.jpg)
Gold Sequences
• Gold sequences constructed by the XOR of two m-sequences with the same clocking
• Codes have well-defined cross correlation properties
• Only simple circuitry needed to generate large number of unique codes
• In following example (Figure 7.16a) two shift registers generate the two m-sequences and these are then bitwise XORed
![Page 28: Lecture 7: Spread Spectrum Anders Västberg vastberg@kth.se 08-790 44 55](https://reader030.vdocument.in/reader030/viewer/2022032518/56649cc95503460f94991cf8/html5/thumbnails/28.jpg)
Gold Sequences
![Page 29: Lecture 7: Spread Spectrum Anders Västberg vastberg@kth.se 08-790 44 55](https://reader030.vdocument.in/reader030/viewer/2022032518/56649cc95503460f94991cf8/html5/thumbnails/29.jpg)
Orthogonal Codes
• Orthogonal codes – All pairwise cross correlations are zero– Fixed- and variable-length codes used in CDMA
systems– For CDMA application, each mobile user uses one
sequence in the set as a spreading code• Provides zero cross correlation among all users
• Types– Welsh codes– Variable-Length Orthogonal codes
![Page 30: Lecture 7: Spread Spectrum Anders Västberg vastberg@kth.se 08-790 44 55](https://reader030.vdocument.in/reader030/viewer/2022032518/56649cc95503460f94991cf8/html5/thumbnails/30.jpg)
Walsh Codes
• Set of Walsh codes of length n consists of the n rows of an n ´ n Walsh matrix:
– W1 = (0)
• n = dimension of the matrix
– Every row is orthogonal to every other row and to the logical not of every other row
– Requires tight synchronization• Cross correlation between different shifts of Walsh
sequences is not zero
nn
nnn WW
WWW 2
2
![Page 31: Lecture 7: Spread Spectrum Anders Västberg vastberg@kth.se 08-790 44 55](https://reader030.vdocument.in/reader030/viewer/2022032518/56649cc95503460f94991cf8/html5/thumbnails/31.jpg)
Homework before F9
• Vad används en CRC-kod till?• Vad är Hammingavståndet mellan 11011
och 10101?• Hur många fel kan en (15,11) Hamming
kod upptäcka respektive rätta?