Example: quiz answers

Introduction to the Controller Area Network (CAN) (Rev. B)

1 SLOA101B August2002 RevisedMay 2016 SubmitDocumentationFeedbackCopyright 2002 2016,TexasInstrumentsIncorporatedIntrodu ctionto the ControllerAreaNetwork (CAN) CANopenis a trademarkof CANin a trademarkof OpenDeviceNetVendorAssociation, August2002 RevisedMay 2016 Introductionto the ControllerAreaNetwork(CAN) controllerareanetwork (CAN) is ideallysuitedto the manyhigh-levelindustrialprotocolsembraci ngCANand ISO-11898:2003as cost,performance,and upgradeabilityprovidefortremendousflexib ilityin introductionto the CANfundamentals,operatingprinciples,and the implementationof a basicCANbus with TI's CANtransceiversand electricallayerrequirementsof a CANbus are discussedalongwith the importanceof thedifferentfeaturesof a TI Bit Fieldsof StandardCANand of Figures1 The LayeredISO InvertedLogicof a a a RecessiveBus of TablesDSPor ControllerApplication LayerData-LinkLayerLogic Link ControlMedium AccessControlPhysicalLayerPhysical SignalingPhysical Medium AttachmentMedium-Dependant InterfaceEmbeddedCANC ontrollerCANT ransceiverCAN Bus-L

devices on a network and conforms to the Open Systems Interconnection (OSI) model that is defined in ... synchronize the nodes on a bus after being idle. • Identifier-The Standard CAN 11-bit identifier establishes the priority of the message. The lower the ... indicating an error-free message has been sent. Should a receiving node detect an

Tags:

  System, Free, Deli

Information

Domain:

Source:

Link to this page:

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

Other abuse

Transcription of Introduction to the Controller Area Network (CAN) (Rev. B)

1 1 SLOA101B August2002 RevisedMay 2016 SubmitDocumentationFeedbackCopyright 2002 2016,TexasInstrumentsIncorporatedIntrodu ctionto the ControllerAreaNetwork (CAN) CANopenis a trademarkof CANin a trademarkof OpenDeviceNetVendorAssociation, August2002 RevisedMay 2016 Introductionto the ControllerAreaNetwork(CAN) controllerareanetwork (CAN) is ideallysuitedto the manyhigh-levelindustrialprotocolsembraci ngCANand ISO-11898:2003as cost,performance,and upgradeabilityprovidefortremendousflexib ilityin introductionto the CANfundamentals,operatingprinciples,and the implementationof a basicCANbus with TI's CANtransceiversand electricallayerrequirementsof a CANbus are discussedalongwith the importanceof thedifferentfeaturesof a TI Bit Fieldsof StandardCANand of Figures1 The LayeredISO InvertedLogicof a a a RecessiveBus of TablesDSPor ControllerApplication LayerData-LinkLayerLogic Link ControlMedium AccessControlPhysicalLayerPhysical SignalingPhysical Medium AttachmentMedium-Dependant InterfaceEmbeddedCANC ontrollerCANT ransceiverCAN Bus-LineElectricalSpecifications.

2 Transceivers,Connectors,CableCAN Controller ,Embedded August2002 RevisedMay 2016 SubmitDocumentationFeedbackCopyright 2002 2016,TexasInstrumentsIncorporatedIntrodu ctionto the ControllerAreaNetwork(CAN)(1)RobertBosch GmbH, CANbus was developedby BOSCH(1)as a multi-master,messagebroadcastsystemthat specifiesamaximumsignalingrate of 1 megabitper second(bps).Unlikea traditionalnetworksuchas USBorEthernet,CANdoesnot sendlargeblocksof datapoint-to-pointfromnodeA to nodeB underthesupervisionof a centralbus a CANnetwork,manyshortmessageslike temperatureor RPMare broadcastto the entirenetwork,whichprovidesfor dataconsistencyin everynodeof the messageformat,messageidentifiers,and bit-wisearbitration-- a majorbenefitof the CANsignalingschemeare explained,a CANbus implementationis examined,typicalwaveformspresented,and CANS tandardCANis an InternationalStandardizationOrganization (ISO)definedserialcommunicationsbus originallydevelopedfor the automotiveindustryto replacethe complexwiringharnesswith a two-wirebus.

3 Thespecificationcallsfor high immunityto electricalinterferenceand the abilityto self-diagnoseand to CAN s popularityin a varietyof industriesincludingbuildingautomation,me dical,and CANcommunicationsprotocol,ISO-11898:2003 ,describeshow informationis passedbetweendeviceson a networkand conformsto the OpenSystemsInterconnection(OSI)modelthat is definedintermsof the physicalmediumis definedbythe physicallayerof the ISO 11898architecturedefinesthe lowesttwo layersof the sevenlayerOSI/ISOmodelas the data-linklayerand physicallayerin The LayeredISO 11898 StandardArchitectureIn Figure1, the applicationlayerestablishesthe communicationlink to an upper-levelapplicationspecificprotocolsu chas the vendor-independentCANopen protocolis supportedby theinternationalusersand manufacturersgroup,CANin Automation(CiA).

4 AdditionalCANinformationislocatedat the CiA Website, Manyprotocolsare dedicatedto particularapplicationslikeindustrialauto mation,dieselengines,or industry-standard,CAN-basedprotocolsare KVASER'sCANK ingdomand RockwellAutomation'sDeviceNet . Bytes DataCCRRCCACKEOFEOFEOFFISIIDDEErr00 DDLLCC1 1- b itId e n tifie ExtendedCAN3 SLOA101B August2002 RevisedMay 2016 SubmitDocumentationFeedbackCopyright 2002 2016,TexasInstrumentsIncorporatedIntrodu ctionto the ControllerAreaNetwork (CAN) 3 StandardCANor ExtendedCANThe CANcommunicationprotocolis a carrier-sense,multiple-accessprotocolwit h collisiondetectionandarbitrationon messagepriority(CSMA/CD+AMP).CSMA meansthat eachnodeon a bus mustwait for aprescribedperiodof inactivitybeforeattemptingto senda +AMPmeansthat collisionsareresolvedthrougha bit-wisearbitration,basedon a preprogrammedpriorityof eachmessagein theidentifierfield of a higherpriorityidentifieralwayswinsbus , the last logic-high in the identifierkeepson transmittingbecauseit is the a bustakespart in writingeverybit "as it is beingwritten,"an arbitratingnodeknowsif it placedthe logic-highbiton the ISO-11898.

5 2003 Standard,with the standard11-bitidentifier,providesfor signalingratesfrom125kbpsto 1 standardwas lateramendedwith the extended standard11-bitidentifierfield in Figure2 providesfor 211, or 2048differentmessageidentifiers,whereast he extended29-bit identifierin Figure3 providesfor 229, or 537 Bit Fieldsof StandardCANand StandardCAN:11-BitIdentifierThe meaningof the bit fieldsof Figure2 are: SOF The singledominantstartof frame(SOF)bit marksthe startof a message,and is usedtosynchronizethe nodeson a bus afterbeingidle. Identifier-TheStandardCAN11-bitidentifie restablishesthe priorityof the lowerthebinaryvalue,the higherits priority. RTR The singleremotetransmissionrequest(RTR)bit is dominantwheninformationis nodesreceivethe request,but the identifierdeterminesthe also receivedby all nodesand usedby any this way,all databeingusedin a systemis uniform.

6 IDE A dominantsingleidentifierextension(IDE)bi t meansthat a standardCANidentifierwith noextensionis beingtransmitted. r0 Reservedbit (for possibleuse by futurestandardamendment). DLC The 4-bitdatalengthcode(DLC)containsthe numberof bytesof databeingtransmitted. Data Up to 64 bits of applicationdatamay be transmitted. CRC The 16-bit(15 bits plus delimiter)cyclicredundancycheck(CRC)cont ainsthe checksum(numberof bits transmitted)of the precedingapplicationdatafor errordetection. ACK Everynodereceivingan accuratemessageoverwritesthis recessivebit in the originalmessagewith a dominatebit, indicatingan error-freemessagehas receivingnodedetectanerrorand leavethis bit recessive,it discardsthe messageand the sendingnoderepeatsthe this way,eachnodeacknowledges(ACK)the integrityof its 2 bits,one is the acknowledgmentbit and the secondis a delimiter.

7 EOF This end-of-frame(EOF),7-bitfield marksthe end of a CANframe(message)and disablesbit-stuffing,indicatinga bits of the samelogicleveloccurinsuccessionduringnor maloperation,a bit of the oppositelogiclevelisstuffedinto the data. IFS This 7-bitinterframespace(IFS)containsthe time requiredby the controllerto movea correctlyreceivedframeto its properpositionin a = 1 0 1R = 1 0 1 RecessiveRecessiveDominant110 VCANHVCANL1 1- bi tIde nti fi erRTRIDEr 0D L C0 ..8C R CA C Kr 11 8 -bi tIde n tif ierSRRSOFB ytes DataEOFEOFEOFFISA August2002 RevisedMay 2016 SubmitDocumentationFeedbackCopyright 2002 2016,TexasInstrumentsIncorporatedIntrodu ctionto the ControllerAreaNetwork(CAN) ExtendedCAN:29-BitIdentifierAs shownin Figure3, the ExtendedCANmessageis the sameas the Standardmessagewith theadditionof: SRR The substituteremoterequest(SRR)bit replacesthe RTRbit in the standardmessagelocationas a placeholderin the extendedformat.

8 IDE A recessivebit in the identifierextension(IDE)indicatesthat moreidentifierbits 18-bitextensionfollowsIDE. r1 Followingthe RTRand r0 bits, an additionalreservebit has beenincludedaheadof the fundamentalCANcharacteristicshownin Figure4 is the oppositelogicstatebetweenthe bus, and thedriverinputand ,a logic-highis associatedwith a one,and a logic-lowisassociatedwith a zero- but not so on a CANbus. This is why TI CANtransceivershavethe driverinputand receiveroutputpins passivelypulledhigh internally,so that in the absenceof any input,the deviceautomaticallydefaultsto a recessivebus stateon all inputand The InvertedLogicof a CANBusBus accessis event-drivenand two nodestry to occupythe bus simultaneously,accessis implementedwith a nondestructive, the nodewinningarbitrationjust continueson with the message,withoutthe messagebeingdestroyedor corruptedby allocationof priorityto messagesin the identifieris a featureof CANthat makesit particularlyattractivefor use withina lowerthe binarymessageidentifiernumber.

9 The higherits identifierconsistingentirelyof zerosis the highestprioritymessageon a networkbecauseit holdsthe bus dominantthe ,if two nodesbeginto transmitsimultaneously,the nodethat sendsa last identifierbit as a zero(dominant)whilethe othernodessenda one (recessive)retainscontrolof the CANbus and goeson to completeits dominantbit alwaysoverwritesarecessivebit on a BusNode CTransmitsNode BTransmitsC winsarbitrationB CANM essage5 SLOA101B August2002 RevisedMay 2016 SubmitDocumentationFeedbackCopyright 2002 2016,TexasInstrumentsIncorporatedIntrodu ctionto the ControllerAreaNetwork (CAN) Notethat a transmittingnodeconstantlymonitorseachbi t of its own is the reasonforthe transceiverconfigurationof Figure4 in whichthe CANHand CANL outputpins of the driverareinternallytied to the receiver' propagationdelayof a signalin the internalloop fromthe driverinputto the receiveroutputis typicallyusedas a qualitativemeasureof a referredto as the loop time (tLOOPin a TI datasheet)

10 ,but takeson variednomenclaturefromvendorto displaysthe CANarbitrationprocessthat is handledautomaticallyby a own transmissions,as nodeB's recessivebit is overwrittenby nodeC s higherprioritydominantbit, B detectsthat the bus statedoesnot matchthe bit that it ,nodeB haltstransmissionwhilenodeC continueson with its messageis madeby nodeB oncethe bus is releasedby nodeC. This functionalityis part ofthe ISO 11898physicalsignalinglayer,whichmeansth at it is containedentirelywithinthe CANcontrollerand is completelytransparentto a Arbitrationon a CANBusThe allocationof messagepriorityis up to a systemdesigner,but industrygroupsmutuallyagreeon thesignificanceof example,a manufacturerof motordrivesmay specifythat message0010is a windingcurrentfeedbacksignalfroma motoron a CANnetworkand that 0011is the lowestbinaryidentifier,messagesrelatingt o currentvaluesalwayshavea higherpriorityon the bus thanthoseconcernedwith the caseof DeviceNet.


Related search queries