CAN Vs. RS-485: Why CAN Is On The Move

2y ago
144 Views
2 Downloads
372.04 KB
5 Pages
Last View : 1d ago
Last Download : 3m ago
Upload by : Macey Ridenour
Transcription

ARTICLEDELIVERING ROBUST COMMUNICATIONSCAN vs. RS-485: Why CAN Is on the MoveBy Robert Gee, Executive Business Manager, Core Products Group, Maxim IntegratedBoth RS-485 and controller area network (CAN) interfaceprotocols have been around since the mid-1980s, when theywere introduced as communication standards. RS-485 was anevolutionary step from previous transceiver (physical layer)standards like RS-423, RS-422, and RS-232. RS-485 enabledsystems to have multiple master nodes in a single system.Around the same time as these commonly used interfaceswere being used in applications such as computer keyboardsand mice, printers, and industrial automation equipment, theCANbus interface was being developed as an automotivecommunication platform (by Robert Bosch GmbH) to reducecost in automobile manufacturing. It was considered analternative to the conventional, large multi-wire looms neededin automobiles, simplifying cabling and taking advantage ofmulti-node buses. In fact, when it was first introduced on aBMW 850 in 1986, the automotive CAN interface saved over2km of cabling! On top of that, the number of connectors wassignificantly reduced and the estimated weight savings in cableand connector alone was 50kg1. RS-485 was defined for theindustrial market, while CAN was primarily developed for theautomotive/vehicle/transportation segment. Since its release,the CANbus interface has slowly been adopted to applicationsoutside of the automotive and aerospace industries.Due to its robustness in harsh electrical environments, faultprotection capabilities, and unique message handling, CANbusis being adopted into many applications where it has neverbeen used. Current market trends show an ever-increasingadoption of CANbus, even replacing the RS-485 in traditionalindustrial applications. According to available market reports,CANbus usage is growing at a high single-digit rate, which isexceptional for the interface market. Although reports do notsplit out the industrial and automotive markets, many agreethat industrial markets make up around 20-30% of the totalmarket units. Growth within the automotive industry canbe attributed to the increase of electronics used in vehiclestoday. Modern automobiles have complex microprocessingsystems used for functions like back-up cameras, self-parking,infotainment, blind spot awareness, and more. The emergenceof these automotive sub-systems stems from the increasingnumber of in-vehicle sensors and microcontrollers needed towww.maximintegrated.com/CANhandle all of the complex systems within an automobile. Back inthe ‘90s, many auto manufacturers started transitioning frommechanically controlled automatic transmission shift points toelectronically controlled shift points based off of data collectedby speed, throttle position, and barometric sensors and fed tothe microcontroller. Today, there are more than 100 sensors andmicrocontrollers per vehicle, with many of them talking CAN.Even the full electric vehicle Tesla S has 65 microcontrollers2.In the industrial market, CAN adoption is also increasing.Industrial CAN applications have a wide reach and are usedanywhere from commercial drones to elevator lift controls tocommercial-grade lawn mowers. IC suppliers are recognizingthis and developing products to address the ever-increasingneed for CAN outside of the automotive market. Othercontributors to the rising use of CAN in the industrial spacecould be the theory that many automotive engineers havemoved over to the industrial segment, bringing with them theexpertise of CAN and its unique benefits. There’s certainlycredence to this theory, especially given that the job markets inDetroit and other automotive mainstays were weak due to USrecessions during the early 1990s and early 2000s. Anotherreason for CAN adoption in the industrial market is due to itsinherent fault tolerance and the way it handles frame messageson a multi-node bus.To explain the advantages of CAN over RS-485, it is best to goover the similarities and differences between the two standards,the ISO-11898-2 and TIA/EIA-485, respectively. Both standardsdefine the electrical components of the transceivers and arerepresented in the diagram (Figure 1) below for the transmitside.Both protocols feature differential outputs. The RS-485 outputis a classical differential signal where one signal is the inverted,or mirror, version of the other. Output A is the non-inverting lineand output B is the inverting line. The differential range from 1.5V to 5V is a ‘1’ or mark and -1.5V to -5V is a ‘0’ or space.The area between -1.5V and 1.5V is undefined. It's good tonote that when RS-485 is not driven, it is in a high impedancestate. For CAN, the output differential is slightly different wherethe two outputs, CANH and CANL data lines, are a reflection1

RS-485 DRIVERCAN DRIVERB - INVERTING0.8V to 2.2V2.75V to 4.5VCANH2V to 3VA - NON-INVERTING0.5V to 2.25V-0.8V to -2.2VCANLDOMINANTOUTPUT DIFFERENTIALOUTPUT DIFFERENTIAL 5V 3VVALIDDOMINANT 1.5V 1.5VUNDEFINED0V-1.5VRECESSIVEUNDEFINED 12mVVALIDRECESSIVE-5V-120mVFigure 1. Comparison of Output Differentials for RS-485 and CAN Driversof each other as depicted and represent opposite logic. In thedominant state (a zero bit, used to determine message priority),CANH-CANL are defined to be logic ‘0’ when the voltage acrossthem is between 1.5V and 3V. In the recessive state (a 1-bitand the state of the idle bus), the driver is defined to be logic‘1’ when differential voltage is between -120mV and 12mV, orwhen it is near zero. For the receiver side, the RS-485 standarddefines the input differential to be in between 200mV to 5V.For CAN, the input differential signal is between 900mVCAN RECEIVERRS-485 DRIVERCANHB - INVERTINGA - NON-INVERTINGCANLDOMINANTand 3V, while the recessive mode is in between -120mV and 500mV. When the bus is idle or when it's not loaded, thetransceiver is in a recessive state where CANH and CANL mustbe between 2V and 3V. Both RS-485 and CAN have room formargin in applications where the signal can be attenuated bythe quality (shielded or unshielded) or length of the cables,which may affect the capacitance of the overall system. SeeFigure 2 for a comparison of receiver input differentials forRS-485 and CAN receivers.RECESSIVERECEIVER DIFFERENTIALRECEIVER DIFFERENTIAL 3VDOMINANTVALID 900mV 200mVUNDEFINED0V-200mV 500mVRECESSIVEVALID-120mVRS-485 DRIVERCAN RECEIVERB - INVERTINGA - NON-INVERTINGCANHCANLDOMINANTRECESSIVERECEIVER DIFFERENTIALRECEIVER DIFFERENTIAL 3VDOMINANTVALID 900mV 200mV0V-200mVUNDEFINEDVALIDUNDEFINED 500mVRECESSIVE-120mVFigure 2. Comparison of Receiver Input Differentials for RS-485 and CAN Receiverswww.maximintegrated.com/CAN2

Additionally, both standards have termination resistors of thesame 120-Ω value at the ends of the network, to match thecharacteristic impedance of the transmission line and avoidreflection. Other specifications, such as data rate and thenumber of nodes, are helpful references as opposed to strictparameters. Plenty of RS-485 and CAN transceivers exceed thestandard in terms of bandwidth and the allowable number ofnodes, in order to meet the demands of the market. RS-485,such as the MAX22500E from Maxim, has reached speeds of100 Mbps. Even though the new CAN-FD standard, ISO 118982:2016, defines certain timing characteristics at 2Mbps and5Mbps, the standard does not cap the data rate at 5Mbps. CANtransceivers will exceed the standard in the same way as RS-485transceivers. The common-mode range (CMR) is -7V to 12Vfor RS-485 and -2V to 7V for CAN. Many applications needa wider CMR performance from both of these interface types.This is due to the fact that they are mainly used for multiple nodebuses that may use differently sourced power transformers, orbecause the cabling is in close proximity to equipment with largeenough fields that can affect the grounding between systems.Given the many different harsh industrial applications, highCMR is often needed beyond the standard levels of just -7V to 12V. To address this problem, there are new RS-485 and CANtransceivers that have a wide common-mode range of 25V.The diagram below shows a fluctuating common mode rangeof a RS-485 transceiver. Despite the common-mode voltagesignal going up and down, as long as the common-mode voltage(VCM) is within the proper range, the differential bus signal is notaffected and the receiver is able to accurately receive the signalwithout degradation. The diagram in Figure 3 shows a varyingcommon-mode range within the range for RS-485.protect the devices from accidental shorts between a localpower supply and the data lines of the transceivers. Maxim ICsprovide industry- leading fault protection levels of 80V witheven some extra margin before breakdown of the protection,and this level of protection is present whether the transceiver ispowered or un-powered.One of the major reasons for industrial applications to designin CAN versus RS-485 transceivers is how messages arehandled on the bus. In a RS-485 system with many nodescommunicating to the microprocessor, there may be instanceswhere there are several messages sent out from multiple nodesonto a bus simultaneously that may result in a collision ofmessages, otherwise known as contention. When this happens,the bus state could possibly be invalid or indeterminate, causingdata errors. Furthermore, contention could damage or degradethe signal performance when multiple RS-485 transceiverson the bus are in one state and one single transceiver is in theopposite state. In such a condition, the lone RS-485 wouldcause significant current draw that would likely cause thermalshutdown of the IC or permanent damage to the system This iswhere CANbus has a big advantage over the RS-485 protocol.With CANbus, there is a way to resolve multiple messageson the line by way of ranking each message. Prior to bringingthe system up, different faults are assigned different prioritiesby the system engineer. Earlier, it was mentioned that CANhad a dominant and recessive state. During contention, themessage with the most consecutive dominant state ‘wins’ andwill continue to transmit, while other nodes with lower prioritywill see the dominant bit and stop transmission. This methodis called arbitration, where the messages are prioritized andreceived in an order of status. A node that loses arbitration willresend its message. This continues for all nodes until there isone node left transmitting. Here, in Figure 4, is a closer look atthe format of the CAN message data frame; the diagram andtable below show where arbitration happens.Another feature common in both CAN and RS-485 transceiversis fault protection. Fault-protected devices have an internalovervoltage circuit on the driver output and receiver inputs toVV CM (V A V B)/2DEV CCV CCREYDIRtDRROZ12ARO84RtRDDIB 7 GROUNDDIFFERENCERE GNDGNDDEt-4COMMON MODEVOLTAGE-8Figure 3. Common-mode Range (CMR) of an RS-485 Transceiverwww.maximintegrated.com/CAN3

DATAIFS0EOF2EOF1EOF0IFS2IFS1ACKNOW. DELIMITEREND OF FRAMEEOF6EOF5EOF4EOF3CRC DL2DL1DL0DL3CRC FIELD84ACKNOW. SLOT BITCOMPLETE CAN FRAMEDATACONTROLID EXT. BITRESERVEDID2ID1ID0REQU. REMOTEID4ID311ID7ID6ID5START OF FRAMEID10ID9ID8ARBITRATION FIELD0000000 1 0 1 000000 00 1 0 000 000 0 1 0000 1 1 0000000 1 0 1 1 1 1 1 1 1 1 1 1 1CANHICANLOFigure 4. CAN Message Data-Frame FormatField NameBitLengthDescriptionSOF1Start of frameIdentifier(green)11/29;12/32Represents the messagepriority (11 or 29 bits forstandard CAN and extendedCAN; 12 or 32 bits for CAN-FD)RTR (blue)1Remote transmission requestIDE1Identifier extension bitr01Reserved bit for future protocolexpansionDLC (yellow)4/8/9Code for number of data bytes(4-bit for standard CAN; 8 or 9bits for CAN-FD)Data ata to be transmitted(0–8 bytes for standard CAN;0–64 bytes for CAN-FD)CRC15Cyclic redundancy checkCRC Delimiter 1Assigned recessive (1)ACK slotDominant bit if error-freemessage;recessive to discard errantmessage1ACK Delimiter 1Acknowledgement delimiterEOFEnd of frame7Table 1. CAN Message Data-Frame FormatArbitration is resolved during transmission of the identifierfield, an example of which is shown in Table 2. Even with thenew CAN-FD standard, the arbitration phase is limited to 1Mbps, depending on network topology. But the data-field phaseis only limited by the transceiver characteristics, which meansit can go much faster.www.maximintegrated.com/CANIdentifier Bits (Arbitration Files)Start 10 9Bit8 7 6 5 4 3 21 00000 0 0 0 0 0 11 1Node 3 0000 0 0 0 0 1Node 1StopTransmittingTable 2. Node 3 Loses Arbitration to Node 1 at Bit 3In addition to arbitration, the data link layer (layer 2 of the OSImodel) also contributes to the robustness of the overall CANsystem. In this layer, the frame message is repeatedly checkedfor accuracy and errors. If a message is received with errors, anerror frame is sent out. The error frame consists of two differentfields: the error flag and the error delimiter. From a messagelevel perspective, the cyclic redundancy check (CRC) safeguardsthe information in the frame by adding redundant check bits atthe end of transmission, which are then checked on thereceiving side. If they do not match, then a CRC error hasoccurred. The other message check is the frame check, whichverifies the structure by checking the bit fields against the fixedformat and frame size of SOF, EOF, ACK, and CRC delimiter bits.From a bit-level perspective, there are three checks for errors:acknowledgement, bit monitoring, and bit stuffing.Acknowledgement errors are detected when the transmitterdoes not read a dominant ACK bit (0). This indicates atransmission error detected by the recipients, which meanseither the ACK was corrupted or there were no receivers. Bitmonitoring checks the bus level for each node for sent andreceived bits. Bit stuffing is a method that “stuffs” or inserts anextra opposite bit when five of the same bits occur in succession.The opposite bit helps to differentiate error frames and EOFbits. On the receiving side, the extra bit is removed. If the sixthbit is the same as the previous five, then an error is detected byall CAN nodes and error frames are sent out. The originalmessage will need to be retransmitted and pass througharbitration if there is contention on the line.4

With CAN features such as arbitration, error-messagechecking, improved bandwidth, and a larger data field, it iseasy to understand the appeal of CANbus in the industrialmarket. CAN is suitable for applications that require robustcommunications and reliability in harsh environments. CANsystems are able to prioritize the importance of frame messagesand treat critical ones appropriately. Many different systemscan be exposed to either electrically noisy sources or a localservice personnel that may accidentally short to local supplyrails. Maxim CAN transceivers are known for their robust serialinterface, with class-leading ESD performance and high level offault protection.Notes:1. http://canbuskits.com/what.php2. rs-count/5Maxim Integrated and the Maxim logo are registered trademarks of Maxim IntegratedCorporation. All other trademarks are the property of their respective owners.Maxim Integrated160 Rio RoblesSan Jose, CA 95134 USA408-601-1000www.maximintegrated.com/CAN

were introduced as communication standards. RS-485 was an evolutionary step from previous transceiver (physical layer) standards like RS-423, RS-422, and RS-232. RS-485 enabled systems to have multiple master nodes in a single system. Around the same time as these commonly used interfaces w

Related Documents:

36 bushing 3 136-1614 485 485 485 485 37 bushing 1 136-1624 485 485 485 485 38 nut 4 544-0115 080 190 080 39 cap screw 4 168-0564 080 080 080 . 61 shaft (one piece) refer to factory 61a head shaft (2 or 3 piece) refer to factory 61b line shaft (3 piece) refer to factory 61c pump shaft

The RS 485 repeater amplifies data signals (amplitude, edge slope and signal width) on bus lines and couples segments. Application of the RS 485 Repeater The RS 485 repeater connects two PROFIBUS or MPI segments using RS 485 technology with maximum 32 nodes. It enables transfer rates from 9.6 kbps to 12 Mbps. You need an RS 485 repeater if:

SDR pipe 20 701 485 111 0.053 31 70 9-11 25 701 485 112 0.050 36 70 9-11 32 701 485 113 0.071 44 72 9-11 40 701 485 114 0.095 54 80 9-11 50 701 485 115 0.131 66 88 9-11 63 701 485 116 0.194 81 96 9-17.6 Coupler PE 100 SDR 11 (ISO S5) 10 bar Gas / 16 bar Water 4 mm pin connectors Limited path fusion indicators * Removable .

IE-CS(T)-2TX-1RS232/485: DB9 male for RS-232, terminal block for RS-422/485 IE-CS(T)-2TX-2RS232/485: DB9 male for RS-232/422/485 Serial Line Protection: 15 KV ESD protection for all signals 1 KV surge protection (Level 2) RS-485 Data Direction Control: ADDC (automatic data direction control) Serial Communication Parameters Data Bits .

The RS-485 Standard The original ANSI/EIA/TIA-485-A-1998 standard was approved in March 1998 to address the shortcomings of RS-232 and RS-422. RS-485 is a bidirectional

Figure 2. RS-232 to RS-485 adapters SEL-2886: EIA-232 to EIA-485 interface adapter Advantech BB-485SD9TB: RS-232 to RS-485 adapter DTech RS-232 to RS-485 serial adapter 1.1.3. RS-422 To connect RS-422 devices to a Cisco RS-232 serial port, commonly available RS-422 to RS-232 adapters can be used. Most RS-

The Cruise Director helps to manage all the fun activities on the ship. The Cruise Director's name on our ship is. Some Crew Members on my cruise are:. Anyone with a Disney nametag is someone who can help me. PMS 485 PMS 294 PMS 485 PMS 294 PMS 485 PMS 294 PMS 485 PMS 294

The DH-485 Communication Interface module links host computers with the Allen-Bradley RS-485 Data Highway (DH-485). The module supports the protocol required to act as a node on the DH-485 network, freeing the host computer from this task. Figure 1.1 The DH485 Communication Interface (1770KF3) Important: The DH