Introduction To CDMA and PN-Sequence
Introduction To CDMA and PN-Sequence
Introduction To CDMA and PN-Sequence
User 1
User 2
CSMA = carrier sense
multiple access ...
User n
Time
Code
• Separate (unique) code per user
• Code sequences are orthogonal
=> different users can use same frequency simultaneously (see Fig above)
• Some 2G systems use CDMA / Most of 3G systems use CDMA
Frequency f ’ Frequency f
Structure of a CDMA MS #1 C1 ’ C1
System (with FDD)
MS #2 C2 ’ C2
…
…
MS #n Cn’ Cn
Reverse channels
BS
Forward channels
(Uplink) (Downlink)
Notes:
1) FDD (frequency division duplexing ) since f for all forward
channels, and f’ for all reverse channels
2) Ci = ith code
3) Ci’ x Cj’ = 0, i.e., Ci’ and Cj’ are orthogonal codes on f’
Ci x Cj = 0, i.e., Ci and Cj are orthogonal codes on f
Two Implementation Methodologies for CDMA
a) DS = direct sequence
b) FH = frequency hopping
- same frequency for all forward and all reverse
channels
Direct Sequence Spread Spectrum DSSS
Concept of DSSS for CDMA
Pseudorandom sequence c(t) phase-modulates original signal s(t), producing m(t)
m(t) occupies broader bandwidth & has lower peak power than s(t)
Transmitter Receiver
Spreading De-
Original spreading Recreated
spread signal
digital signal m(t) digital signal
s(t) s(t)
user 0 a 0 , a 0 , a 0 , a 0
• The codes are nothing but the sequences
such as [1, 1, 1, 1]
• For user 0
• we write a code of length four symbols
and we call this code (C0) [1, 1, 1, 1]. • Now we take a1 symbol and multiply
• For user 1 by its code which will give the
sequence as shown, which
• For user 1 will write a different code C1 i.e. corresponds to user 1
[1,-1,-1, 1] and we call this code as C1.
user 1 a1 , a1 , a1 , a1
Introduction to Code Division Multiple Access (continue..)
• Transmitted Signal
• Now, we add up the two signals corresponding to
the two users (i.e. user 0 and user 1)
Introduction to Code Division Multiple Access (continue..)
Xi Xi3 Xi4
Linear Feedback shift Register (LFSR) (continue..)
Now we look at the Operation of Pseudo Noise Sequence or PN-sequence
the LFSR implementing the below by LFSR
Feed-Back equation, by a table as
shown
Xi Xi3 Xi4
• Now we map the above sequence to a voltage level either +1 or -1. We map 1 to a -1
and 0 to a +1 , and hence, we will have the code as shown by the blue color below
Linear Feedback shift Register (LFSR) (continue..)
Balanced property….. Property 1
The no of -1 ones and the no of
Now let we look at the properties +1ones are approximately equal
of this code and we count the except that the no of -1ones is one
number of -1 ones an +1 ones. more than the no of +1ones.
The number of -1ones is 8 (i.e. As the number of -1ones in the code
there are 8 (-1) in this code), and is always one greater than the
the number of +1 ones is 7 (i.e. number of +1ones in the code, hence
there are 7(+1) in the code). this property of PN-sequence is
called as Balanced Property
Property 2 (Run Length Property)
solution
Balance: the code has eight “1”s and seven “0”s. Balance is achieved.
Run property: the code has two one bit run of “1”s and two one bit run of “0”s ,
One two bit run of “1”s and one two bit run of “0”s , no three bit run of “1”s
and one three bit run of “0”s, one four bit run of “1”s and no four bit runs of “0”s.
Correlation:
[B] = [ 1 0 0 1 1 0 1 0 1 1 1 1 0 0 0 ]
[B]1 = [ 0 1 0 0 1 1 0 1 0 1 1 1 1 0 0 ]
[C]1 = [ 1 1 0 1 0 1 1 1 1 0 0 0 1 0 0 ]
[B] = [1 0 0 1 1 0 1 0 1 1 1 1 0 0 0 ]
[B]2 = [ 0 0 1 0 0 1 1 0 1 0 1 1 1 1 0 ]
[C]2 = [ 1 0 1 1 1 1 0 0 0 1 0 0 1 1 0 ]
m(t) occupies broader bandwidth & has lower peak power than s(t)
Transmitte Receiver
r
Spreading De-
spreading Recreated
Original Xmit (“dehopped”)
digital signal spread signal digital signal
Hopp. patt.
Synchro-
nized!
Frequency Frequency Frequency
An Example of Frequency Hopping Pattern
Frequency
Time
Frequency hopping spread spectrum (FHSS)
Frequency selection in FHSS
First–hop frequency
Comparison between FHSS and DSSS/CDMA
Both the spread spectrum techniques are popular for their characteristics. To
have a clear understanding, let us take a look at their comparisons.