bit timing(can总线bt时间确定-用于确定波特率)

bit timing(can总线bt时间确定-用于确定波特率)

ID:5994569

大小:111.39 KB

页数:4页

时间:2017-12-30

bit timing(can总线bt时间确定-用于确定波特率)_第1页
bit timing(can总线bt时间确定-用于确定波特率)_第2页
bit timing(can总线bt时间确定-用于确定波特率)_第3页
bit timing(can总线bt时间确定-用于确定波特率)_第4页
资源描述:

《bit timing(can总线bt时间确定-用于确定波特率)》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库

1、Bittiming(can总线BT时间确定-用于确定波特率)CANhasadvancedfeaturesforcopingwiththetimedelaysfoundinlongbuslengths(incomparisontothebitrate)andcopingwithdifferencesinclockchrystalfrequenciesfornodesonthebus.Thechoiceofbittimingisveryimportantsinceitdecidesthebitrate,thesample

2、pointandtheabilitytoresynchronise.Bitsegments(asinBoschstandard)Eachbitisdividedintofoursegments-thesynchronisationsegment,thepropagationsegmentandthephasesegmentsoneandtwo.Eachsegmentconsistsofoneormoretimequanta.Atimequantumisafixedamountoftimewhichisderivedf

3、romtheCANcontrollerclockwithaprescalefactor.Synchronisationsegment(Synch_Seg)Thesynchronisationsegmentisusedtosynchronisethevariousnodesonthebus.Whenabitissentonthebus,theleadingedgeisexpectedtobewithinthissegment.Thissegmentisalwaysonetimequantumlong.Propagati

4、onsegment(Prop_Seg)ThePropagationSegmentisneededtocompensateforthedelayinthebuslines.Thesegmentsizeisprogrammablebetween1and8timequanta.PhaseSegment1(Phase_Seg1),PhaseSegment2(Phase_Seg2)Thesesegmentscanbeusedlengthenedorshortenedbyresynchronisation.Bitsegments

5、(asinimplementationslikeIntel527andC167CR)InmostimplementationsofCANcontrollersthesegmentsseemtobeimplementedinadifferentwaythandescribedinthestandard.Thesynchsegmentlooksasinthestandardandconsistsofonetimequantum.Thebigdifferenceisthatthepropagationsegmentandt

6、hephasesegment1inthestandardhavebeencombinedintoonesegment,TSEG1.Phasesegment2isleftuntouched,butisrenamedtoTSEG2.Normallythereisonlyonesamplepointforeachbit.Inthiscase,thesamplepointisintheedgebetweenTSEG1andTSEG2.However,someCANcontrollerscanalsosampleeachbit

7、threetimes.Inthiscase,thebitwillbesampledthreequantainarow,withthelastsamplebeingtakenintheedgebetweenTSEG1andTSEG2.Threesamplesshouldonlybeusedforrelativelyslowbaudrates.CalculationofbaudrateandsamplepointBaudrateThebaudrateofthebuscanbecalculatedfrom:Baudrate

8、=fcrystal/(2*n*(BRP+1))wherenisthenumberoftimequantaforonebitandisdefinedas:n=SYNCHSEG+TSEG1+TSEG2BRPisthevalueoftheBaudRatePrescaler.Warning:someCANcontrollers(likeIntel526

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

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

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