Example: dental hygienist

Calculator for CAN Bit Timing Parameters - TI.com

1 SPRAC35 March2016 SubmitDocumentationFeedbackCopyright 2016,TexasInstrumentsIncorporatedCalcula torfor CANBit TimingParametersApplicationReportSPRAC35 March2016 CalculatorforCANBitTimingParametersAdamH aunABSTRACTC ontrollerAreaNetwork(CAN)nodesuse user-specifiedtimingparametersto samplethe asynchronousbitstreamand recoverthe typicallybasedon the frequencyof the severaloptionsavailablefor a givenfrequency,and someof themwillallowa creationof a bit timingcalculatorto maximizethe oscillatortolerancefor the CANmoduleson TI this applicationreportcanbe downloadedfromthe followingURL: a trademarkof othertrademarksare the propertyof the bit timingparametersrequiresat leastthreeinputs: The desiredbit rate,whichis commonacrossthe entirebus. An estimateof the propagationdelaybetweenthe mostdistantnodeson the bus The CANmoduleclockfrequency,whichis usedto derivethe bitstreamsamplingclockThe propagationdelaycomesfromtwo mainsources:the speedof electromagneticpropagationalongthebus wiringand extradelaydue to transceivers,isolation,or bit timingcalculatormustprovideat leastfive outputs: The baudrate prescaler(BRP),whichdeterminesthe singleperiodis referredto as a time quantum(Tq).

IMPORTANT NOTICE FOR TI DESIGN INFORMATION AND RESOURCES Texas Instruments Incorporated (‘TI”) technical, application or other design advice, services or information, including, but not limited to,

Tags:

  Texas, Texas instruments, Instruments, Calculator, Timing, Parameters, Calculator for can bit timing parameters

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Advertisement

Transcription of Calculator for CAN Bit Timing Parameters - TI.com

1 1 SPRAC35 March2016 SubmitDocumentationFeedbackCopyright 2016,TexasInstrumentsIncorporatedCalcula torfor CANBit TimingParametersApplicationReportSPRAC35 March2016 CalculatorforCANBitTimingParametersAdamH aunABSTRACTC ontrollerAreaNetwork(CAN)nodesuse user-specifiedtimingparametersto samplethe asynchronousbitstreamand recoverthe typicallybasedon the frequencyof the severaloptionsavailablefor a givenfrequency,and someof themwillallowa creationof a bit timingcalculatorto maximizethe oscillatortolerancefor the CANmoduleson TI this applicationreportcanbe downloadedfromthe followingURL: a trademarkof othertrademarksare the propertyof the bit timingparametersrequiresat leastthreeinputs: The desiredbit rate,whichis commonacrossthe entirebus. An estimateof the propagationdelaybetweenthe mostdistantnodeson the bus The CANmoduleclockfrequency,whichis usedto derivethe bitstreamsamplingclockThe propagationdelaycomesfromtwo mainsources:the speedof electromagneticpropagationalongthebus wiringand extradelaydue to transceivers,isolation,or bit timingcalculatormustprovideat leastfive outputs: The baudrate prescaler(BRP),whichdeterminesthe singleperiodis referredto as a time quantum(Tq).

2 The propagationdelayexpressedas a numberof time quanta. The lengthof phasesegment1 (PhSeg1)in time additionto determiningthe bit rate,phasesegment1 acts as a bufferthat can be lengthenedto resynchronizewith the bitstream. The lengthof phasesergment2 (PhSeg2)in time is like phasesegment1,but it occursafterthe samplingpointinsteadof can be shortenedtoresynchronizewith the bit stream. The synchronizationjumpwidth(SJW)in time is the maximumtime by whichthe bitsamplingperiodmay be lengthenedor shortenedduringeachcycleto adjustfor calculatordescribedin this documentalso outputsthe numberof time quantaper bit, the oscillatortolerance,the samplingpoint,and timingregistervaluesfor the eCANand D_CANmodulesusedon theTMS320C2000 seriesof microcontrollers.()2 10 SJWdbit _ timef =()()()min PhSeg1,PhSeg22 13 bit _ time PhSegf2d - = March2016 SubmitDocumentationFeedbackCopyright 2016,TexasInstrumentsIncorporatedCalcula torfor CANBit TimingParameters2 ImplementationThe calculatorfirst computesthe propagationtime as a fractionof the bit bus length,aphysicalpropagationdelay,or bothmay be bus propagationspeedis assumedto be twothirdsof the speedof light,the standardvaluefor twistedpair resultingdelaytime is doubledtogive a roundtrip numberof time quantaper bit (knownas the bit time)can rangefrom8 to 25.

3 Thereis no analyticformulafor determiningthe optimumbit time in advance,so the calculatortries all of closestintegralbaudrate prescaleris calculatedfor BRPand Tq/bitvaluesare thenusedtocalculatethe actualsamplingbit differencefromthe desiredvalueis addedto the total propagationsegmentis determinedfromthe fractioncomputedabove,roundedup. The remainingtime is split betweenphasesegments1 and 2, with PhSeg2roundedup and synchronizationjumpwidthis limitedto 4 Tq at most,and cannotbe longerthanPhSeg1or ,the SJWis the minimumof derivedfromtwo first givesthe conditionfor correctevaluationof 13dominantbits in a row duringan errorcondition,wherethereis no re-synchronization:(1)The secondformulagivesthe conditionfor full re-synchronizationafter10 consecutivebits:(2)The factorof 2 in eachformulacomesfromconsideringtwo oscillatorson differentnodes,eachhavingtheworst-casefr equencyerrorin final oscillatortoleranceis the minimumof thesetwo valuesminusany errorin the tolerancesfor all possiblevaluesof Tq/bithavebeencalculated,the settingswith the besttoleranceare reportedin the outputsectionof the settingsare thenconvertedinto eCANand D_CANregistervalues,whichare also calculatorcan reporterrorsbasedon severalconditions: The CANclockfrequencymustbe at least8 timesthe bit rate to give the minimum8 Tq/bit.

4 The propagationdelaymustbe shortenoughto allowreasonablevaluesfor the phasesegments. The ratiobetweenthe CANclockand the bit rate mustbe closeenoughto an integerto calculatorreportsa warningwhenthe exactbit rate cannotbe derivedfromthe also reportsa warningwhenthe propagationtime is morethanhalf the bit time,sincethis impliesthatthe bus lengthis too long for the desiredbit Introductionto the ControllerAreaNetwork(CAN)(SLOA101) ControllerAreaNetworkPhysicalLayerRequir ements(SLLA270) BoschCANS pecification( )IMPORTANTNOTICEFORTIDESIGNINFORMATIONAN DRESOURCEST exasInstrumentsIncorporated( TI ) technical,applicationor otherdesignadvice,servicesor information,including,but not limitedto,referencedesignsand materialsrelatingto evaluationmodules,(collectively, TI Resources ) are intendedto assistdesignerswho aredevelopingapplicationsthat incorporateTI products.

5 By downloading,accessingor usingany particularTI Resourcein any way,you(individuallyor, if you are actingon behalfof a company,yourcompany)agreeto use it solelyfor this purposeand subjectto the termsofthis s provisionof TI Resourcesdoesnot expandor otherwisealterTI s applicablepublishedwarrantiesor warrantydisclaimersfor TIproducts,and no additionalobligationsor liabilitiesarisefromTI providingsuchTI reservesthe rightto makecorrections,enhancements,improvement sand otherchangesto its TI understandand agreethat you remainresponsiblefor usingyourindependentanalysis,evaluationa nd judgmentin designingyourapplicationsand that you havefull and exclusiveresponsibilityto assurethe safetyof yourapplicationsand complianceof yourapplications(andof all TI productsusedin or for yourapplications)with all applicableregulations,lawsand ,with respectto yourapplications,you haveall the necessaryexpertiseto createand implementsafeguardsthat (1)anticipatedangerousconsequencesof failures,(2) monitorfailuresand theirconsequences,and (3) lessenthe likelihoodof failuresthatmightcauseharmand take agreethat priorto usingor distributingany applicationsthat includeTI products,youwill thoroughlytest suchapplicationsand the functionalityof suchTI productsas usedin has not conductedanytestingotherthanthat specificallydescribedin the publisheddocumentationfor a particularTI are authorizedto use, copyand modifyany individualTI Resourceonly in connectionwith the developmentof applicationsthat includethe TI product(s)

6 Identifiedin suchTI OTHERLICENSE,EXPRESSOR IMPLIED,BY ESTOPPELOR OTHERWISETOANYOTHERTI INTELLECTUALPROPERTYRIGHT,ANDNO LICENSETO ANYTECHNOLOGYOR INTELLECTUALPROPERTYRIGHTOF TI OR ANYTHIRDPARTYIS GRANTEDHEREIN,includingbut not limitedto any patentright,copyright,maskworkright,orot herintellectualpropertyrightrelatingto any combination,machine,or processin whichTI productsor servicesare referencingthird-partyproductsor servicesdoesnot constitutea licenseto use suchproductsor services,or a of TI Resourcesmay requirea licensefroma thirdpartyunderthe patentsor otherintellectualpropertyof thethirdparty,or a licensefromTI underthe patentsor otherintellectualpropertyof RESOURCESAREPROVIDED AS IS ANDWITHALL DISCLAIMSALL OTHERWARRANTIESORREPRESENTATIONS,EXPRESS OR IMPLIED,REGARDINGTI RESOURCESOR USETHEREOF,INCLUDINGBUTNOTLIMITEDTOACCUR ACYOR COMPLETENESS,TITLE,ANYEPIDEMICFAILUREWAR RANTYANDANYIMPLIEDWARRANTIESOFMERCHANTAB ILITY,FITNESSFORA PARTICULARPURPOSE,ANDNON-INFRINGEMENTOF SHALLNOTBE LIABLEFORANDSHALLNOTDEFENDOR INDEMNIFYYOUAGAINSTANYCLAIM,INCLUDINGBUT NOTLIMITEDTO ANYINFRINGEMENTCLAIMTHATRELATESTO OR IS BASEDON ANYCOMBINATIONOF PRODUCTSEVENIFDESCRIBEDIN TI RESOURCESOR NO EVENTSHALLTI BE LIABLEFORANYACTUAL,DIRECT,SPECIAL,COLLAT ERAL,INDIRECT,PUNITIVE,INCIDENTAL,CONSEQ UENTIALOR EXEMPLARYDAMAGESIN CONNECTIONWITHORARISINGOUTOF TI RESOURCESOR USETHEREOF,ANDREGARDLESSOF WHETHERTI HASBEENADVISEDOF THEPOSSIBILITYOF agreeto fully indemnifyTI and its representativesagainstany damages,costs,losses.

7 And/orliabilitiesarisingout of yournon-compliancewith the termsand provisionsof this Noticeappliesto TI the use and purchaseof certaintypesof materials,TI productsand ;withoutlimitation,TI s standardtermsfor ), evaluationmodules, and samples( ).MailingAddress:TexasInstruments,PostOf ficeBox 655303,Dallas,Texas75265 Copyright 2018,TexasInstrumentsIncorporat


Related search queries