EEVblog Electronics Community Forum

Electronics => Projects, Designs, and Technical Stuff => Topic started by: SparkFly on December 12, 2016, 08:14:30 am

Title: CAN Bus Impedance Matching
Post by: SparkFly on December 12, 2016, 08:14:30 am
Hi all,

I am looking into designing a CAN bus, with just two nodes, operating at 1Mb/s. I've noted that whilst the CAN spec itself doesn't mention the physical layer, there are a few documents around from manufacturers which detail requirements set out by ISO 11898. What interests me the most is the requirement for a 120Ohm impedance along the bus. However, whilst I understand how to design/source 120Ohm cable, I am perplexed a little at which (if any) connectors are 120Ohm impedance? I've seen a variety of connectors employed in existing designs, from DB9 to OBD II, but no specs saying they are 120 Ohm.

Am I simply looking in the wrong place, and there are 120Ohm connectors, or is there something else going on? I would've thought that everything would need to be matched to avoid reflections...

Many thanks for your time, it is most appreciated.
Title: Re: CAN Bus Impedance Matching
Post by: bktemp on December 12, 2016, 08:26:11 am
At 1Mbits/s the connector doesn't care, because it is very short compared to the wavelength of the frequencies involved.
Title: Re: CAN Bus Impedance Matching
Post by: kaz911 on December 12, 2016, 08:26:35 am
Hi all,

I am looking into designing a CAN bus, with just two nodes, operating at 1Mb/s. I've noted that whilst the CAN spec itself doesn't mention the physical layer, there are a few documents around from manufacturers which detail requirements set out by ISO 11898. What interests me the most is the requirement for a 120Ohm impedance along the bus. However, whilst I understand how to design/source 120Ohm cable, I am perplexed a little at which (if any) connectors are 120Ohm impedance? I've seen a variety of connectors employed in existing designs, from DB9 to OBD II, but no specs saying they are 120 Ohm.

Am I simply looking in the wrong place, and there are 120Ohm connectors, or is there something else going on? I would've thought that everything would need to be matched to avoid reflections...

Many thanks for your time, it is most appreciated.

You have a 120 Ohm resistor in each end between CAN-H and CAN-L

http://www.ni.com/white-paper/9759/en/ (http://www.ni.com/white-paper/9759/en/)

:)
Title: Re: CAN Bus Impedance Matching
Post by: kaz911 on December 12, 2016, 08:32:11 am
and for cable many twisted pair cables will work. In a pinch I use CAT5e cable. I like the marine version (NMEA-2000) as it supplies up to 4A power as well. So a 5 wire cable with 2 sets of twisted pair - one for CAN-H/CAN-L - one for power - and a shield.

Title: Re: CAN Bus Impedance Matching
Post by: tatus1969 on December 12, 2016, 08:33:36 am
At 1Mbits/s the connector doesn't care, because it is very short compared to the wavelength of the frequencies involved.
+1. they care of wave impedance because CAN allows for long cable runs like tens of meters.
Title: Re: CAN Bus Impedance Matching
Post by: SparkFly on December 12, 2016, 08:34:08 am
Thanks very much for the quick replies. :)

I've designed the 120Ohm resistors on the pcbs anyway, it is good to know the reasoning. Bktemp, I will endeavour to find some further sources on the matter! Thanks for your help once again.
Title: Re: CAN Bus Impedance Matching
Post by: cat87 on December 12, 2016, 10:42:27 am
Because CAN is designed to operate in noisy environments (industrial, automotive) the cabling doesn't really matter that much, as long as it's a twisted pair (ok, not 30 gauge, nor 5 gauge  :-DD).
What does matter on the physical layer, is the impedance of the bus. Normally, CAN bus has an impedance of 60 Ohms, therefore the two 120 Ohms resistors at each end.

However, be careful in this matter. If  YOU are designing both nodes, then the 120 Ohms resistors are indeed necessary and it's OK that you included them on your board. But if you design only a part of the bus and use something off the shelf, read the documentation of the bought part/device  to see what kind of termination is has (if any)

Some manufacturers put the 120 Ohms resistor in their product, some do not.
Title: Re: CAN Bus Impedance Matching
Post by: SvanGool on December 12, 2016, 11:45:17 am
To make the picture complete, on the major points:

Last Edit: added connector description
Title: Re: CAN Bus Impedance Matching
Post by: Jeroen3 on December 12, 2016, 12:43:49 pm
You also need to keep the common mode in check. Often using split termination.
eg: two series 60 ohms with ground in the middle via a cap.

If the bus is isolated...