直接序列扩频 实验报告

直接序列扩频 实验报告

ID:46825653

大小:454.39 KB

页数:5页

时间:2019-11-28

直接序列扩频 实验报告_第1页
直接序列扩频 实验报告_第2页
直接序列扩频 实验报告_第3页
直接序列扩频 实验报告_第4页
直接序列扩频 实验报告_第5页
资源描述:

《直接序列扩频 实验报告》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库

1、WirelessNetwork–Lab2DirectSequenceSpreadFrequencyTechniquesName:XIELingClass:2008215106StudentNumber:08212917AbstractThisexperimentisdesignedtolearnthefundamentalsofthedirectsequencespreadspectrumandcodedivisionmultipleaddresstechniques.Descriptionso

2、fExperiment1.Writeaprogramtogeneratethem-sequencewith.Sinceanm-sequencegeneratorusuallyadoptedasthepseudorandomsequencegenerator,whichisalinearfeedbackshiftregister’s(LFSR)output,theLSFR’simplementationofthegivenpolynomialisasfollow:B14B13B12B9B8B7B6

3、B5B4B0Outputx15+x13+x9+x8+x7+x5+1Figure1LFSRimplementationAsthefigureshows,thenumberofpolynomialcoefficientsis15,thenthenumberofregisterswhichareneededforshiftingis2^15-1(Notice:statefullofzeroisinvalid).Giventhatinitialstateofregister000000000000001

4、.Thenthefirstoutputis0,andthenewdatainregistersB13toB0arethepreviousdatainregistersB14toB1respectivelybylinearshifting.ThenewdatainregisterB14isthemod-2sumofB0,B5,B7,B8,B9andB13.InMATLAB,thisprocessisrealizedasnewRegister(1:lenC-1)=register(2:lenC);n

5、ewRegister(lenC)=mod(sum(coefficient.*register),2);Whenanewregisterstateisgenerated,thesequenceoutputisthefirstbitofthenewstate.InMATLAB,theprocesscanbedonebyaloopwith2^15-1timesasfollows:fori=2:lenR%code...mSeq(i)=register(1);WirelessNetwork–Lab2end

6、;Inthemainfunction,themSeqGenerate(coefficient)functionisinvokedtogeneratetherequiredm-sequence.Asthepolynomialdefined,thecoefficientparameterinthisexperimentis100001011100010.InMATLAB,itisinvokedasthecodebelow:coefficient=[100001011100010];mSequence

7、=mSeqGenerate(coefficient);stairs(mSequence);2.Drawtheautocorrelationofthegeneratedm-sequence.Them-sequencehasgoodperformanceinautocorrelation.Intheory,theautocorrelationisperiodicdefinedasthefollowingequation,whereNisthelengthofthesequence.InMATLAB,

8、theautocorrelationcanbeobtainedthefunction[ACF,Lags,Bounds]=autocorr(Series)whereseriesistheinputsequenceandACFistheautocorrelationofthesequence.Thecodeisasfollowautocorr(mSequence);3.Buildupasimulationsystemwiththedatarate1bit/s,spreadinggain64andth

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。