毕业设计外文文献翻译.docx

上传人:b****6 文档编号:15967483 上传时间:2023-07-09 格式:DOCX 页数:19 大小:370.49KB
下载 相关 举报
毕业设计外文文献翻译.docx_第1页
第1页 / 共19页
毕业设计外文文献翻译.docx_第2页
第2页 / 共19页
毕业设计外文文献翻译.docx_第3页
第3页 / 共19页
毕业设计外文文献翻译.docx_第4页
第4页 / 共19页
毕业设计外文文献翻译.docx_第5页
第5页 / 共19页
毕业设计外文文献翻译.docx_第6页
第6页 / 共19页
毕业设计外文文献翻译.docx_第7页
第7页 / 共19页
毕业设计外文文献翻译.docx_第8页
第8页 / 共19页
毕业设计外文文献翻译.docx_第9页
第9页 / 共19页
毕业设计外文文献翻译.docx_第10页
第10页 / 共19页
毕业设计外文文献翻译.docx_第11页
第11页 / 共19页
毕业设计外文文献翻译.docx_第12页
第12页 / 共19页
毕业设计外文文献翻译.docx_第13页
第13页 / 共19页
毕业设计外文文献翻译.docx_第14页
第14页 / 共19页
毕业设计外文文献翻译.docx_第15页
第15页 / 共19页
毕业设计外文文献翻译.docx_第16页
第16页 / 共19页
毕业设计外文文献翻译.docx_第17页
第17页 / 共19页
毕业设计外文文献翻译.docx_第18页
第18页 / 共19页
毕业设计外文文献翻译.docx_第19页
第19页 / 共19页
亲,该文档总共19页,全部预览完了,如果喜欢就下载吧!
下载资源
资源描述

毕业设计外文文献翻译.docx

《毕业设计外文文献翻译.docx》由会员分享,可在线阅读,更多相关《毕业设计外文文献翻译.docx(19页珍藏版)》请在冰点文库上搜索。

毕业设计外文文献翻译.docx

毕业设计外文文献翻译

学校代码:

10128

学号:

201020205056

 

 

本科毕业设计外文文献翻译

题目:

PacketHandlingHardwareSupport

学生姓名:

学院:

系别:

专业:

班级:

指导教师:

二〇一四年六月

PacketHandlingHardwareSupport

参考文献:

TexasInstruments.CC1101Low-PowerSub-1GHzRFTransceiver.www..2013

TheCC1101hasbuilt-inhardwaresupportforpacketorientedradioprotocols.

Intransmitmode,thepackethandlercanbeconfiguredtoaddthefollowingelementstothepacketstoredintheTXFIFO:

●Aprogrammablenumberofpreamblebytes

●Atwobytesynchronization(sync)word.Canbeduplicatedtogivea4-bytesyncword(recommended).Itisnotpossibletoonlyinsertpreambleoronlyinsertasyncword

●ACRCchecksumcomputedoverthedatafield.

Therecommendedsettingis4-bytepreambleand4-bytesyncword,exceptfor500kBauddataratewheretherecommendedpreamblelengthis8bytes.Inaddition,thefollowingcanbeimplementedonthedatafieldandtheoptional2-byteCRCchecksum:

●WhiteningofthedatawithaPN9sequence

●ForwardErrorCorrection(FEC)bytheuseofinterleavingandcodingofthedata(convolutionalcoding)

Inreceivemode,thepackethandlingsupportwillde-constructthedatapacketbyimplementingthefollowing(ifenabled):

●Preambledetection

●Syncworddetection

●CRCcomputationandCRCcheck

●Onebyteaddresscheck

●Packetlengthcheck(lengthbytecheckedagainstaprogrammablemaximumlength)

●De-whitening

●De-interleavinganddecoding

Optionally,twostatusbytes(seeTable27andTable28)withRSSIvalue,LinkQualityIndication,andCRCstatuscanbeappendedintheRXFIFO.

Table27:

ReceivedPacketStatusByte1(firstbyteappendedafterthedata)

Bit

FieldName

Description

7:

0

RSSI

RSSIvalue

Table28:

ReceivedPacketStatusByte2(secondbyteappendedafterthedata)

Bit

FieldName

Description

7

CRC_OK

1:

CRCforreceiveddataOK

(orCRCdisabled)

0:

CRCerrorinreceiveddata

6:

0

LQI

Indicatingthelinkquality

Note:

RegisterfieldsthatcontrolthepackethandlingfeaturesshouldonlybealteredwhenCC1101isintheIDLEstate.

1.Datawhitening

Fromaradioperspective,theidealovertheairdataarerandomandDCfree.Thisresultsinthesmoothestpowerdistributionovertheoccupiedbandwidth.Thisalsogivestheregulationloopsinthereceiveruniformoperationconditions(ondatadependencies).

Realdataoftencontainlongsequencesofzerosandones.Inthesecases,performancecanbeimprovedbywhiteningthedatabeforetransmitting,andde-whiteningthedatainthereceiver.

WithCC1101,thiscanbedoneautomatically.BysettingPKTCTRLO.WHITE_DATA=1,alldata,exceptthepreambleandthesyncwordwillbeXOR-edwitha9-bitpseudo-random(PN9)sequencebeforebeingtransmitted.ThisisshowninFigure16.Atthereceiverend,thedataareXOR-edwiththesamepseudorandomsequence.Inthisway,thewhiteningisreversed,andtheoriginaldataappearinthereceiver.ThePN9sequenceisinitializedtoall1’s.

2.PacketFormat

Theformatofthedatapacketcanbeconfiguredandconsistsofthefollowingitems(seeFigure17):

●Preamble

●Synchronizationword

●Optionallengthbyte

●Optionaladdressbyte

●Payload

●Optional2byteCRC

Thepreamblepatternisanalternatingsequenceofonesandzeros(10101010…).TheminimumlengthofthepreambleisprogrammablethroughthevalueofMDMCFG1.NUM_PREAMBLE.WhenenablingTX,themodulatorwillstarttransmittingthepreamble.Whentheprogrammednumberofpreamblebyteshasbeentransmitted,themodulatorwillsendthesyncwordandthendatafromtheTXFIFOifdataisavailable.IftheTXFIFOisempty,themodulatorwillcontinuerosendpreamblebytesuntilthefirstbyteiswrittentotheTXFIFO.Themodulatorwillthensendthesyncwordandthenthedatabytes.

Thesynchronizationwordisatwo-bytevaluesetintheSYNC1andSYNC0registers.Thesyncwordprovidesbytesynchronizationoftheincomingpacket.Aone-bytesyncwordcanbeemulatedbysettingtheAYNC1valuetothepreamblepattern.Itisalsopossibletoemulatea32bitsyncwordbysettingMDMCFG2.SYNC_MODEto3or7.Thesyncwordwillthenberepeatedtwice.

CC1101supportsbothconstantpacketlengthprotocolsandvariablelengthprotocols.Variableorfixedpacketlengthmodecanbeusedforpacketsupto255bytes.Forlongerpackets,infinitepacketlengthmodemustbeused.

FixedpacketlengthmodeisselectedbysettingPKTCTRL0.LENGTH_CONFIG=0.ThedesiredpacketlengthissetbythePKTLENregister.Thisvaluemustbedifferentfrom0.

Invariablepacketlengthmode,PKTCTRL0.LENGTH_CONFIG=1,thepacketlengthisconfiguredbythefirstbyteafterthesyncword.Thepacketlengthisdefinedasthepayloaddata,excludingthelengthbyteandoptionalCRC.ThePKTLENregisterisusedtosetthemaximumpacketlengthallowedinRX.AnypacketreceivedwithalengthbytewithavaluegreaterthanPKTLENwillbediscarded.ThePKTLENvaluemustbedifferentfrom0.ThebytewrittentotheTXFIFOmustbedifferentfrom0.

WithPKTCTRL0.LENGTH_CONFIG=2,thepacketlengthissettoinfiniteandtransmissionandreceptionwillcontinueuntilturnedoffmanually.Asdescribedinthenextsection,thiscanbeusedtosupportpacketformatswithdifferentlengthconfigurationthannativelysupportedbyCC1101.oneshouldmakesurethatTXisnotturnoffduringthetransmissionofthefirsthalfofanybyte.RefertotheCC1101ErrataNotes[4]formoredetails.

Note:

Theminimumpacketlengthsupported(excludingtheoptionallengthbyteandCRC)isonebyteofpayloaddata.

2.1ArbitraryLengthFieldConfiguration

Thepacketlengthregister,PKTLEN,canbereprogrammedduringreceiveandtransmit.Incombinationwithfixedpacketlengthmode(PKTCTRL0.LENGTH_CONFIG=0),thisopensthepossibilitytohaveadifferentlengthfieldconfigurationcansupportedforvariablelengthpackets(invariablepacketlengthmodethelengthbyteisthefirstbyteafterthesyncword).Atthestartofreception,thepacketlengthissetalargevalue.TheMCUreadsoutenoughbytestointerpretthelengthfieldinthepacket.ThenthePKTLENvalueissetaccordingtothisvalue.TheendofpacketwilloccurwhenthebytecounterinthepackethandlerisequaltothePKTLENregister.Thus,theMCUmustbeabletoprogramthecorrectlength,beforetheinternalcounterreachesthepacketlength.

2.2PacketLength>255

Thepacketautomationcontrolregister,PKTCTRL0,canbereprogrammedduringTXandRX.Thisopensthepossibilitytotransmitandreceivepacketsthatarelongerthan256bytesandstillbeabletousethepackethandlinghardwaresupport.Atthestartofthepacket,theinfinitepacketlengthmode(PKTCTRL0.LENGTH_CONFIG=2)mustbeactive.OntheTXside,thePKTLENregisterissettomod(length,256).OntheRXsidetheMCUreadsoutenoughbytestointerpretthelengthfieldinthepacketandsetsthePKTLENregistertomod(length,256).Whenlessthan256bytesremainsofthepacket,theMCUdisablesinfinitepacketlengthmodeandactivatesfixedpacketlengthmode.WhentheinternalbytecounterreachesthePKTLENvalue,thetransmissionorreceptionends(theradioentersthestatedeterminedbyTXOFF_MODEorRXOFF_MODE).AutomaticCRCappending/checkingcanalsobeused(bysettingPKTCTRL0.CRC_EN=1).

Whenforexamplea600-bytepacketistobetransmitted,theMCUshoulddothefollowing(seealsoFigure18)

●SetPKTCTRL0.LENGTH_CONFIG=2.

●Pre-programthePKTLENregistertomod(600,256)=88.

●Transmitatleast345bytes(600-255),forexamplebyfillingthe64-byteTXFIFOsixtimes(384bytestransmitted).

●SetPKTCTRL0.LENGTH_CONFIG=0.

●Thetransmissionendswhenthepacketcounterreaches88.atotalof600bytesaretransmitted.

3PacketfilteringinReceiveMode

CC1101supportsthreedifferenttypesofpacket-filtering;addressfiltering,maximumlengthfiltering,andCRCfiltering.

3.1AddressingFiltering

SettingPKTCTRL1.ADR_CHKtoanyothervaluethanzeroenablesthepacketaddressfilter.ThepackethandlerenginewillcomparethedestinationaddressbyteinthepacketwiththeprogrammednodeaddressintheADDRregisterandthe0*00broadcastaddresswhenPKTCTRL1.ADR_CHK=10orboththe0*00and0*FFbroadcastaddresseswhenPKTCTRL1.ADR_CHK=11.Ifthereceivedaddressmatchesavalidaddress,thepacketisreceivedandwrittenintotheRXFIFO.Iftheaddressmatchfails,thepacketisdiscardedandreceivemoderestarted(regardlessoftheMCSM1.RXOFF_MODEsetting).

Ifthereceivedaddressmatchesavalidaddresswhenusinginfinitepacketlengthmodeandaddressfilteringisenabled,0*FFwillbewrittenintotheRXFIFOfollowedbytheaddressbyteandthenthepayloaddata.

3.2MaximumLengthFiltering

Invariablepacketlengthmode,PKTCTRL0.LENGTH_CONFIG=1,thePKTLEN.PACKET_LENGTHregistervalueisusedtosetthemaximumallowedpacketlength.Ifthereceivedlengthbytehasalargervaluethanthis,thepacketisdiscardedandreceivemoderestarted(regardlessoftheMCSM1.RXOFF_MODEsetting).

3.3CRCFiltering

ThefilteringofapacketwhenCRCcheckfailsisenabledbysettingPKTCTRL1.CRC_AUTOFLUSH=1.TheCRCautoflushfunctionwillflushtheentireRXFIFOiftheCRCcheckfails.AfterautoflushingtheRXFIFO,thenextstatedependsontheMCSM1.RXOFF_MODEsetting.

Whenusingtheautoflushfunction,themaximumpacketlengthis63bytesinvariablepacketlengthmode.NotethatwhenPKTCTRL1APPEND_STATUSisenabled,themaximumallowedpacketlengthisreducedbytwobytesinordertomakeroomintheRXFIFOforthetwostatusbytesappendedattheendofthepacket.SincetheentireRXFIFOisflushedwhentheCRCcheckfails,thepreviouslyreceivedpacketmustbereadoutoftheFIF

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > IT计算机 > 电脑基础知识

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2