How should I configure the PN sequence generator to generate a length 11 Barker code PN sequence?

7 views (last 30 days)
How should I configure the PN sequence generator to generate a length 11 Barker code PN sequence?
I need to generate an 11 chip PN code of [+1,-1,+1,+1,-1,+1,+1,+1,-1,-1,-1] for DSSS. How should I configure the parameters in the PN sequence generator, which requires a generator polynomial and initial conditions?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
The 11- chip sequence that corresponds to a Barker code of length 11 is:
[1,0,1,1,0,1,1,1,0,0,0]
You can generate this sequence by using any 11 degree polynomial with the eleven states set up as the PN code values. In other words, the initial states parameter should be set to:
[1,0,1,1,0,1,1,1,0,0,0]
and the Generator polynomial can be any 11th order polynomial, such as [0 -11], for example.
If you want repeated sets of this same sequence, you will not be able to generate that using the PN block. You may however, send those values into the workspace and then use a From Workspace block with the 'Form output after final data value by' option set to 'CyclicRepetition'.
You can also use 'Barker Code Generator' block from 'Communications Blockset->Comm Sources->Sequence Generators' Library to achieve the functionality.

More Answers (0)

Categories

Find more on RF Blockset Models for Transceivers in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!