SlideShare a Scribd company logo
1 of 15
PN Sequence
Presented By:
Darshil shah (I1241090051)
OUTLINE
• What is PN code?
• A 15-stage PN generator.
• Properties of PN sequence.
• Data detection by correlation with PN code.
• Application of PN sequence.
• MAT-Lab Simulation for PN sequence generation.
• Example of PN sequence
What is PN code?
1. A bit sequence that is random within the sequence length
but repeats indefinitely
2. All its properties are predictable, if we know how it is
generated
3. Easy to generate and synchronize
4. Other names:
• Pseudo random bit sequences (PRBS)
• m-sequences
• Maximal length sequences
A 15-stage PN generator using shift
register
Properties of PN sequence
• 1’s and 0’s occur with equal probability
• Adding a shifted version to a PN sequence gives same PN
sequence (in different phase)
• High auto-correlation, low cross-correlation
• Power spectrum contains all frequencies with sin2x/x2
envelop
Reset Signal
Properties
PN Sequence
Generator block
Reset Signal
Output Signal
Sample-based
Sample time = 1
Sample-based
Sample time = 1
Frame-based
Sample time =1
Samples per
frame = 2
Frame-based
Sample time = 1
Samples per
frame = 2
Sample-based
Sample time = 2
Samples per
frame = 1
Frame-based
Sample time = 1
Samples per
frame = 2
Resetting a Signal
Suppose that the PN Sequence Generator block outputs [1 0 0 1 1 0 1 1] when there is no
reset. You then select the Reset on nonzero input check box and input a reset signal [0 0 0 1].
The following table shows three possibilities for the properties of the reset signal and the PN
Sequence Generator block.
1. In the first two cases, the PN sequence is reset at the fourth
bit, because the fourth bit of the reset signal is a 1 and the
Sample time is 1. Note that in the second case, the frame
sizes are 2, and the reset occurs at the end of the second
frame.
2. In the third case, the PN sequence is reset at the seventh bit.
This is because the reset signal has Sample time 2, so the
reset bit is first sampled at the seventh bit. With these
settings, the reset always occurs at the beginning of a frame
Data recover By PN correlation
Data detection by correlation with PN
code
MATLAB CODE FOR PN SEQUNCE
GENRATIONclc;
clear all;
close all;
x1=[1 1 1 1 1 1];
n1=length(x1);
len1=2^n1-1;
p1(1,1) = x1(1,1);
z1 = x1;
for y1 = 2 : len1
x1=z1;
for i = 1 : n1
if (i==1)
z1(1,i) = xor (x1(1,5),x1(1,6));
else
z1(1,i) = x1(1,i-1);
end
end
p1(1,y1)=z1(1,6);
end
subplot 211;
stem (p1);
OUTPUT
0 10 20 30 40 50 60 70
0
0.5
1
PN Sequence
Example of PN Sequence
References
• Digital Communication: Theory, Techniques and Applications by
R N Mutagi
• http://www-
rohan.sdsu.edu/doc/matlab/toolbox/commblks/ref/pnsequencege
nerator.html
• http://www.xilinx.com/support/documentation/application_notes/
xapp211.pdf
• https://archive.org/details/BetterPnGeneratorsForCdmaApplication
AVerilog-hdlImplementation
Pn sequence

More Related Content

What's hot

Analog communication
Analog communicationAnalog communication
Analog communication
Preston King
 

What's hot (20)

OFDM
OFDMOFDM
OFDM
 
Diversity Techniques in Wireless Communication
Diversity Techniques in Wireless CommunicationDiversity Techniques in Wireless Communication
Diversity Techniques in Wireless Communication
 
M ary psk modulation
M ary psk modulationM ary psk modulation
M ary psk modulation
 
Design and development of carry select adder
Design and development of carry select adderDesign and development of carry select adder
Design and development of carry select adder
 
Adaptive equalization
Adaptive equalizationAdaptive equalization
Adaptive equalization
 
Companding and DPCM and ADPCM
Companding and DPCM and ADPCMCompanding and DPCM and ADPCM
Companding and DPCM and ADPCM
 
Nyquist criterion for distortion less baseband binary channel
Nyquist criterion for distortion less baseband binary channelNyquist criterion for distortion less baseband binary channel
Nyquist criterion for distortion less baseband binary channel
 
Quadrature amplitude modulation
Quadrature amplitude modulationQuadrature amplitude modulation
Quadrature amplitude modulation
 
ASk,FSK,PSK
ASk,FSK,PSKASk,FSK,PSK
ASk,FSK,PSK
 
Trapatt diode
Trapatt diodeTrapatt diode
Trapatt diode
 
VLSI Testing Techniques
VLSI Testing TechniquesVLSI Testing Techniques
VLSI Testing Techniques
 
Sampling theorem
Sampling theoremSampling theorem
Sampling theorem
 
Chebyshev filter
Chebyshev filterChebyshev filter
Chebyshev filter
 
Time Division Multiplexing
Time Division MultiplexingTime Division Multiplexing
Time Division Multiplexing
 
MINIMUM SHIFT KEYING(MSK)
MINIMUM SHIFT KEYING(MSK)MINIMUM SHIFT KEYING(MSK)
MINIMUM SHIFT KEYING(MSK)
 
Rc delay modelling in vlsi
Rc delay modelling in vlsiRc delay modelling in vlsi
Rc delay modelling in vlsi
 
Equalization
EqualizationEqualization
Equalization
 
Introduction to equalization
Introduction to equalizationIntroduction to equalization
Introduction to equalization
 
SAMPLING & RECONSTRUCTION OF DISCRETE TIME SIGNAL
SAMPLING & RECONSTRUCTION  OF DISCRETE TIME SIGNALSAMPLING & RECONSTRUCTION  OF DISCRETE TIME SIGNAL
SAMPLING & RECONSTRUCTION OF DISCRETE TIME SIGNAL
 
Analog communication
Analog communicationAnalog communication
Analog communication
 

Similar to Pn sequence

LMSProjectReportFINAL
LMSProjectReportFINALLMSProjectReportFINAL
LMSProjectReportFINAL
Luke Snow
 
Paper Presentation
Paper PresentationPaper Presentation
Paper Presentation
johirbuet
 
Digital communication
Digital communicationDigital communication
Digital communication
meashi
 
129966862758614726[1]
129966862758614726[1]129966862758614726[1]
129966862758614726[1]
威華 王
 

Similar to Pn sequence (20)

LMSProjectReportFINAL
LMSProjectReportFINALLMSProjectReportFINAL
LMSProjectReportFINAL
 
Galgo f
Galgo fGalgo f
Galgo f
 
Pn sequence
Pn sequencePn sequence
Pn sequence
 
DNA Splice site prediction
DNA Splice site predictionDNA Splice site prediction
DNA Splice site prediction
 
Senior Project
Senior ProjectSenior Project
Senior Project
 
Paper Presentation
Paper PresentationPaper Presentation
Paper Presentation
 
R
RR
R
 
Digital communication
Digital communicationDigital communication
Digital communication
 
con-dif2
con-dif2con-dif2
con-dif2
 
Unit IV_SS_MMS.ppt
Unit IV_SS_MMS.pptUnit IV_SS_MMS.ppt
Unit IV_SS_MMS.ppt
 
Recurrent Neural Networks II (D2L3 Deep Learning for Speech and Language UPC ...
Recurrent Neural Networks II (D2L3 Deep Learning for Speech and Language UPC ...Recurrent Neural Networks II (D2L3 Deep Learning for Speech and Language UPC ...
Recurrent Neural Networks II (D2L3 Deep Learning for Speech and Language UPC ...
 
Trackster Pruning at the CMS High-Granularity Calorimeter
Trackster Pruning at the CMS High-Granularity CalorimeterTrackster Pruning at the CMS High-Granularity Calorimeter
Trackster Pruning at the CMS High-Granularity Calorimeter
 
Chap4
Chap4Chap4
Chap4
 
129966862758614726[1]
129966862758614726[1]129966862758614726[1]
129966862758614726[1]
 
Computer aided design of communication systems / Simulation Communication Sys...
Computer aided design of communication systems / Simulation Communication Sys...Computer aided design of communication systems / Simulation Communication Sys...
Computer aided design of communication systems / Simulation Communication Sys...
 
Adaptive Channel Equalization using Multilayer Perceptron Neural Networks wit...
Adaptive Channel Equalization using Multilayer Perceptron Neural Networks wit...Adaptive Channel Equalization using Multilayer Perceptron Neural Networks wit...
Adaptive Channel Equalization using Multilayer Perceptron Neural Networks wit...
 
H017376369
H017376369H017376369
H017376369
 
A New Classifier Based onRecurrent Neural Network Using Multiple Binary-Outpu...
A New Classifier Based onRecurrent Neural Network Using Multiple Binary-Outpu...A New Classifier Based onRecurrent Neural Network Using Multiple Binary-Outpu...
A New Classifier Based onRecurrent Neural Network Using Multiple Binary-Outpu...
 
Lung Cancer Detection using Fuzzy Clustering and Artificial Neyron Network
Lung Cancer Detection using Fuzzy Clustering and Artificial Neyron NetworkLung Cancer Detection using Fuzzy Clustering and Artificial Neyron Network
Lung Cancer Detection using Fuzzy Clustering and Artificial Neyron Network
 
Unit 3.pptx
Unit 3.pptxUnit 3.pptx
Unit 3.pptx
 

More from Darshil Shah (8)

Umc_18_CMOS
Umc_18_CMOSUmc_18_CMOS
Umc_18_CMOS
 
Task i
Task iTask i
Task i
 
final report_51_33_17
final report_51_33_17final report_51_33_17
final report_51_33_17
 
Final project report on Solar street light
Final project report on Solar street light Final project report on Solar street light
Final project report on Solar street light
 
Telemedicine
TelemedicineTelemedicine
Telemedicine
 
Charge coupled device(ccd)
Charge coupled device(ccd)Charge coupled device(ccd)
Charge coupled device(ccd)
 
Frequency modulation and its application
Frequency modulation and its applicationFrequency modulation and its application
Frequency modulation and its application
 
Photoelectric sensors
Photoelectric sensorsPhotoelectric sensors
Photoelectric sensors
 

Recently uploaded

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 

Recently uploaded (20)

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 

Pn sequence

  • 2. OUTLINE • What is PN code? • A 15-stage PN generator. • Properties of PN sequence. • Data detection by correlation with PN code. • Application of PN sequence. • MAT-Lab Simulation for PN sequence generation. • Example of PN sequence
  • 3. What is PN code? 1. A bit sequence that is random within the sequence length but repeats indefinitely 2. All its properties are predictable, if we know how it is generated 3. Easy to generate and synchronize 4. Other names: • Pseudo random bit sequences (PRBS) • m-sequences • Maximal length sequences
  • 4. A 15-stage PN generator using shift register
  • 5. Properties of PN sequence • 1’s and 0’s occur with equal probability • Adding a shifted version to a PN sequence gives same PN sequence (in different phase) • High auto-correlation, low cross-correlation • Power spectrum contains all frequencies with sin2x/x2 envelop
  • 6. Reset Signal Properties PN Sequence Generator block Reset Signal Output Signal Sample-based Sample time = 1 Sample-based Sample time = 1 Frame-based Sample time =1 Samples per frame = 2 Frame-based Sample time = 1 Samples per frame = 2 Sample-based Sample time = 2 Samples per frame = 1 Frame-based Sample time = 1 Samples per frame = 2 Resetting a Signal Suppose that the PN Sequence Generator block outputs [1 0 0 1 1 0 1 1] when there is no reset. You then select the Reset on nonzero input check box and input a reset signal [0 0 0 1]. The following table shows three possibilities for the properties of the reset signal and the PN Sequence Generator block.
  • 7. 1. In the first two cases, the PN sequence is reset at the fourth bit, because the fourth bit of the reset signal is a 1 and the Sample time is 1. Note that in the second case, the frame sizes are 2, and the reset occurs at the end of the second frame. 2. In the third case, the PN sequence is reset at the seventh bit. This is because the reset signal has Sample time 2, so the reset bit is first sampled at the seventh bit. With these settings, the reset always occurs at the beginning of a frame
  • 8. Data recover By PN correlation
  • 9. Data detection by correlation with PN code
  • 10. MATLAB CODE FOR PN SEQUNCE GENRATIONclc; clear all; close all; x1=[1 1 1 1 1 1]; n1=length(x1); len1=2^n1-1; p1(1,1) = x1(1,1); z1 = x1; for y1 = 2 : len1 x1=z1; for i = 1 : n1 if (i==1) z1(1,i) = xor (x1(1,5),x1(1,6)); else z1(1,i) = x1(1,i-1); end end p1(1,y1)=z1(1,6); end subplot 211; stem (p1);
  • 11. OUTPUT 0 10 20 30 40 50 60 70 0 0.5 1 PN Sequence
  • 12. Example of PN Sequence
  • 13.
  • 14. References • Digital Communication: Theory, Techniques and Applications by R N Mutagi • http://www- rohan.sdsu.edu/doc/matlab/toolbox/commblks/ref/pnsequencege nerator.html • http://www.xilinx.com/support/documentation/application_notes/ xapp211.pdf • https://archive.org/details/BetterPnGeneratorsForCdmaApplication AVerilog-hdlImplementation

Editor's Notes

  1. 16BIT DATA TRANSMITTED+USING XOR AT THE LAST TWO BITS AS SHOWN IN FIG+USE SHIFT REGISTER+AND AGAIN XOR PROCESS+ AND CONT…..+OUTPUT AS PN DATA …………………………………………………….
  2. IN EQUAL RUNS ::::: EXAMPLE OF COIN