MCC Expt 2 CSMA
MCC Expt 2 CSMA
MCC Expt 2 CSMA
Subject Professor
In-charge
Assisting Teachers
Laboratory
Student Name
Experiment Number 2
Objectives (Skill Set / To understand how a signal is transmitted using CDMA technique in which
Knowledge Tested / multiple users can share same frequency for data transmission.
Imparted)
Multiple accesses: The use of spreading codes which is independent for each
user along with synchronous reception will allow multiple users to access the
same channel simultaneously.
Department of Computer Engineering Exp. No.2
Use of Wide Bandwidth: CDMA like other spread-spectrum technologies uses a
wider bandwidth than would otherwise be needed for the transmission of data.
This results in a number of advantages including an increased immunity to
interference and multiple user access.
Level of Security: In order to receive the data, the receiver synchronizes the code
to recover the data. The use of an independent data and synchronous reception
allows multiple users to access the same frequency band at same time.
Direct Sequence
Direct sequence is the most famous spread spectrum technique in which the
data signal is multiplied by a Pseudo-random noise code. A PN code is a
sequence of chips which is given values as -1 and 1 (non polar) or 0 and 1 (polar).
The number of chips within one code is known as the period of this code. The
digital data is directly coded at higher frequency, and the code is generated
pseudo randomly. A receiver knows how to generate the same code and
correlates the received signal with that code to extract the data.
The modulated carrier signal is amplified and broadcasted, and the signal
reception also involves the following steps:
Example 1
In its simplest form, decoding involves calculating the dot product of the
received bit stream with one user’s spreading sequence. Note that when signals
arrive at the receiver from different users, they linearly add. See the example
below.
Chip Sequence: 1 0 1 1 0 0
Spreading Sequence: 1 -1 1 1 -1 -1
No transmission: 0 0 0 0 0
A -1 +1 -1 +1 Low +1 -1 +1 -1 -4 1
B -1 +1 -1 0 High +1 +1 -1 -1 +4 -1
C -1 -1 1 0 N/T 0 0 0 0 0 0
Received 2 0 0 -2
Example2.
Take as an example that the data to be transmitted is 1001, and the chip
or spreading code is 0010. For each data bit, the complete spreading
code is used to multiple the data, and in this way, for each data bits, the
spread or expanded signal consists of four bits.
1 0 0 1 Data to be transmitted
Department of Computer Engineering Exp. No.2
0010 0010 0010 0010 Chip or spreading code
With the signal obtained and transmitted, it needs to be decoded within the
remote receiver:
Incoming
1101 0010 0010 1101 CDMA
signal
Chip or
0010 0010 0010 0010 spreading
code
Result of
000 000
1111 1111 de-sprea
0 0
ding
1 0 0 1 Integrated output
decoded_A_data = 0
decoded_B_data = 0
for i in range(8):
decoded_A_data += A_code[i] * C_station[i]
decoded_B_data += B_code[i] * C_station[i]
Conclusion CDMA technique applied for a given set of data bits for transmission.