Controller Area Network (CAN) is widely used in automotive electronics, industrial automation, robotics, and embedded control systems. It allows multiple electronic devices to communicate over a shared two-wire differential bus without requiring a dedicated communication line between every pair of devices.
Although CAN includes built-in error detection and fault-handling mechanisms, reliable communication also depends on the physical hardware design. Poor PCB layout, incorrect termination, excessive signal stubs, and inadequate protection can lead to communication errors, electromagnetic interference, and intermittent connectivity.
This project explores the theoretical design of a high-speed CAN bus interface based on ISO 11898-2, focusing on the PCB-level considerations required for reliable operation.
Project Objectives
The main objectives are:
- Understand the physical-layer operation of a CAN bus.
- Explore the role of CAN transceivers in embedded communication.
- Understand differential signal routing and PCB placement.
- Examine bus termination and signal reflections.
- Study ESD protection and electrical noise management.
- Understand grounding and galvanic isolation requirements.
- Identify important considerations for reliable CAN and CAN FD hardware.
Understanding the CAN Bus Architecture
A typical CAN node consists of three main elements:
CAN Controller: Usually integrated into a microcontroller, the controller handles message framing, arbitration, error detection, and communication management.
CAN Transceiver: Converts the controller's TX and RX logic signals into differential CANH and CANL signals and performs the reverse conversion during reception.
CAN Connector: Provides the physical connection between the node and the CAN network through a twisted-pair cable.
CAN uses differential signaling, meaning the receiver detects the voltage difference between CANH and CANL rather than relying on either signal independently.
During the recessive state, both lines typically remain around 2.5 V. During the dominant state, CANH rises and CANL falls, producing a differential voltage that allows receivers to distinguish the transmitted bit.
This differential approach provides good resistance to common-mode electrical noise, making CAN suitable for electrically demanding environments.
CAN Bus Topology and Termination
A high-speed CAN network generally uses a linear bus topology with a main trunk cable and short branches connecting individual nodes.
The cable has a characteristic impedance of approximately 120 ohms. To reduce signal reflections, a 120-ohm termination resistor is required at each physical end of the bus.
Only the two ends of the main bus should be terminated.
When the network is powered off, measuring approximately 60 ohms between CANH and CANL is a useful basic check because the two 120-ohm terminators appear in parallel.
Incorrect termination can cause signal reflections, distorted waveforms, and communication errors, especially at higher data rates.
CAN Transceiver Placement and PCB Layout
The placement of the CAN transceiver has an important influence on the physical interface.
The transceiver should be positioned close to the CAN connector to minimize the PCB trace length between the transceiver and the external bus.
The protection components and termination network should also be placed near the connector.
A typical component arrangement includes:
- CAN connector
- TVS diode or ESD protection array
- Termination network, where required
- Optional common-mode choke
- CAN transceiver
- Local decoupling capacitors
The microcontroller can be positioned farther away because its TXD and RXD signals are logic-level signals rather than the external CAN bus signals.
Differential Signal Routing
CANH and CANL should be routed together as a symmetrical pair.
Both traces should ideally have:
- Similar trace widths and spacing.
- Similar routing lengths and surrounding conditions.
- A continuous ground reference plane.
- Minimal vias and unnecessary routing branches.
- Adequate separation from switching regulators and noisy digital signals.
For a typical short transceiver-to-connector connection, maintaining symmetry and minimizing the stub length are more important than applying unnecessary length-matching techniques.
For longer PCB-level CAN transmission paths, such as backplanes, controlled differential impedance around 120 ohms should be considered.
ESD and Transient Protection
CAN connectors are exposed to external cables, so the interface can experience electrostatic discharge, electrical transients, and wiring-related disturbances.
A suitable two-line TVS protection device can help protect the transceiver.
Important selection considerations include:
- Working voltage.
- Clamping voltage.
- Low and balanced capacitance on both signal lines.
- Compatibility with the transceiver's absolute maximum ratings.
The protection device should be placed close to the connector, with a short and low-inductance path to ground.
A common-mode choke may also be considered when additional electromagnetic interference suppression is required. However, its effect on transient behavior and signal integrity should be evaluated before including it.
Grounding and Galvanic Isolation
Grounding is another important aspect of CAN PCB design.
For a non-isolated interface, the transceiver, decoupling capacitors, and protection components should have a well-planned common ground reference.
High-current return paths from motor drivers and switching power circuits should be routed carefully to avoid disturbing the CAN interface.
For systems involving separate power supplies, long cable distances, or significant ground-potential differences, galvanic isolation may be necessary.
An isolated CAN transceiver separates the controller-side circuitry from the bus-side circuitry. This requires appropriate isolation spacing, separate ground domains, and an isolated power supply for the bus side.
CAN FD Design Considerations
CAN FD extends the capabilities of Classical CAN by supporting larger data payloads and faster data-phase communication.
Its faster data rates make PCB layout and signal integrity more important.
Designers should pay particular attention to:
- Short PCB and cable stubs.
- Correct termination.
- Balanced CANH and CANL routing.
- Appropriate transceiver selection.
- Protection component capacitance.
- Electromagnetic compatibility.
The same basic PCB design principles apply to both Classical CAN and CAN FD, but CAN FD provides less timing margin for layout-related signal disturbances.
8. Prototype Validation and Testing
Before considering a CAN interface ready for production, several checks should be performed.
A theoretical validation and prototype testing plan should include:
- Checking the resistance between CANH and CANL with the network powered off.
- Confirming the transceiver's operating mode and supply voltage.
- Observing CANH and CANL waveforms using an oscilloscope.
- Checking signal quality at the highest intended communication speed.
- Evaluating the network with the longest intended cable and stub lengths.
- Testing communication while nearby switching regulators and motor drivers are operating.
- Checking communication error counters and electromagnetic compatibility.
Testing should involve at least two active CAN nodes because a transmitting node requires another node to acknowledge its messages.
Expected Outcome
This project provides a theoretical understanding of how PCB design influences CAN communication reliability.
By considering transceiver placement, differential routing, termination, protection, grounding, and isolation, engineers can make more informed hardware design decisions before moving to prototype manufacturing.
These principles are applicable to automotive control units, industrial automation equipment, robotics, energy monitoring systems, and other embedded products that rely on CAN communication.
Conclusion
A reliable CAN interface requires more than selecting a suitable transceiver and connecting two wires. The PCB layout determines how effectively the physical interface handles signal reflections, electrical noise, transient disturbances, and ground differences.
Understanding these design considerations early can help reduce hardware debugging, improve electromagnetic compatibility, and avoid unnecessary PCB revisions.
During our work at PCBCool, PCB manufacturing and assembly considerations are also an important part of understanding how electronic designs move from engineering concepts to manufacturable hardware.
Reference Guide:
For further reading on CAN bus PCB layout, termination, protection, and grounding, refer to the PCBCool technical guide:
https://pcbcool.com/technical-guides/can-bus-pcb-design-guide/