Chapter 10 Wireless digital communication

Example 10.2 Page no 467

In [3]:
#given
n=3                 #shift registers
n1=7

#calculation
x=(2**n)-1
y=(2**7)-1

#result
print"(a) n =",n,"PN sequence length = ",x
print"(b) n =",n1,"PN sequence length = ",y
(a) n = 3 PN sequence length =  7
(b) n = 7 PN sequence length =  127

Example 10.3 Page no 477

In [4]:
#given
x=56.0                                #modulation bit rate
y=560                                 #chip rate
a=256.0                               #modulation bit rate
b=1792                                #chip rate

#calculation
z=y/x
c=b/a

#result
#part(a)
print"Spreading of a DSSS signal = ",z
print"Spreading of a DSSS signal = ",c
Spreading of a DSSS signal =  10.0
Spreading of a DSSS signal =  7.0