What a CAN Transceiver Does: How Bits Become Voltages on CAN_H and CAN_L

Key takeaways

  • A CAN transceiver converts the controller’s bitstream into voltage levels on two twisted lines, CAN_H and CAN_L.
  • In the dominant state CAN_H is a nominal 3.5 V and CAN_L 1.5 V. Both rest at 2.5 V.
  • A difference of 0.9 V or more reads as dominant (0), and 0.5 V or less as recessive (1).
Light trails from traffic on a highway at night, with the words OSI Physical Layer and CAN Transceiver
Traffic light trails on a highway at night. Image: Techqio

A CAN transceiver puts every bit of a message on the bus as two voltages at once. One wire rises while its twin falls, and the receiver reads the difference between them. That conversion is the last step before a CAN message leaves an electronic control unit (ECU).

An ECU that communicates over CAN is divided into three components. They are the microcontroller (MCU), the CAN controller and the transceiver.

Four CAN nodes on a twisted pair labeled CANH and CANL. Each node has an MCU marked Controller joined through RXD and TXD to a block marked Transceiver, with a note of up to 1 Mbps for classical CAN and up to 5 Mbps for CAN FD
Four nodes on a twisted pair, each with an MCU and a transceiver. Image: Texas Instruments (YouTube)

What the MCU, controller and transceiver each do

Each component has its own function on the way to the bus:

  • The MCU runs the ECU’s application software. Whenever a message has to go out over the CAN bus, it hands the data to the controller.
  • The CAN controller controls access to the bus for the transmission. It passes the message to the transceiver as a continuous series of bits.
  • The transceiver converts the bits it receives into specific voltage levels and puts them on the bus lines.
Block diagram of a CAN node: a microcontroller containing a CAN controller, with arrows to and from a CAN transceiver that connects to two bus lines. Labels mark the data link layer (ISO 11898-1) and the medium access unit with its electrical levels (ISO 11898-2, 3)
A microcontroller, controller and transceiver above two bus lines. Photo: EE JRW / Wikimedia Commons (CC BY-SA 4.0, cropped)

How the MCU operates and what the controller does are subjects of their own. This article stays with the CAN transceiver, the part that changes a signal into voltage levels so data bits can cross the OSI physical layer.

A CAN transceiver converts data bits into voltage levels

A message is a sequence of logical bits, and it reaches the transceiver from the controller as a continuous bitstream. The transceiver converts each bit into a specific voltage level. A bit frame from OSI layer 2 becomes a layer 1 voltage that travels over a physical medium. Our guide to the two OSI layers CAN bus uses covers that split.

The CAN bus carries data bits as a differential signal over two twisted lines. One line is CAN_H (High), and the other is CAN_L (Low). Both carry the same information, but their signal levels point in opposite directions. When the bit changes, both voltage levels on the bus change with it.

A yellow wire labeled CAN High and a green wire labeled CAN Low twisted around each other as they leave a gray cable
A yellow wire and a green wire twisted around each other. Image: CSS Electronics (YouTube)

On a high-speed CAN bus, for example, CAN_H moves from 2.5 V to a nominal 3.5 V while CAN_L moves from 2.5 V to 1.5 V. That makes noise picked up from outside during transmission easy to filter out. Newer parts go further, and the SIC transceivers standardized in ISO 11898-2:2024 suppress ringing on the network lines.

Bar graph of high-speed CAN voltages: CAN_H in the dominant state 3.5 V, both lines in the recessive state 2.5 V, CAN_L in the dominant state 1.5 V
Nominal CAN_H and CAN_L voltages in the dominant and recessive states. Source: CAN in Automation (CiA), nominal values

How the difference between CAN_H and CAN_L becomes a bit

The bit values 0 and 1 are calculated from the difference between CAN_H and CAN_L. A difference between 0.9 V and 5 V is read as “dominant,” which stands for bit value 0. A difference between -1 V and 0.5 V is read as “recessive,” which stands for bit value 1.

Slide titled CAN and CAN FD physical layer: a driver circuit, CANH and CANL waveforms around a common-mode voltage with a recessive 1 and a dominant 0, and a receiver. Below, VD = CANH - CANL, dominant when VD is at least 0.9 V, recessive when VD is at most 0.5 V
CANH and CANL waveforms with the 0.9 V and 0.5 V limits. Image: Texas Instruments (YouTube)

That leaves a gap from 0.5 V to 0.9 V between the two ranges, and it is there on purpose. A voltage level is analog and continuous, and the gap reduces the effect of noise when that level is judged as a bit. Texas Instruments documents the same limits for its receivers, which output recessive below 500 mV and dominant above 900 mV.

TI also reports that its 3.3 V transceivers passed interoperability tests on a bus shared with 5 V parts. I would treat that mixed operation as the vendor’s own test result until it holds on my own bus.

Three ways to look at one CAN message

A CAN message on its way out can now be observed in three ways. The first is the CAN frame that the controller builds.

Standard CAN frame drawn as boxes with bit counts: SOF 1, ID 11, RTR 1, Control 6, Data 0-64, CRC 16, ACK 2, EOF 7
Eight boxes in a row, labeled from SOF to EOF. Image: CSS Electronics (YouTube)

The second is the bitstream that the controller passes to the transceiver. It is the frame written out as a row of 0s and 1s. The third is the voltage level on the CAN bus, where each bit appears on CAN_H and CAN_L. Only if a node stopped communicating would I start with that third view, checking the bus voltages and termination before reading any frames.

A complete CAN frame shown three ways: field names from start of frame to end of frame, the CAN bitstream as a row of 0s and 1s, and measured CAN RX, CAN H and CAN L voltage traces
A row of bits above green, red and blue voltage traces. Photo: Dr Ken Tindell / Wikimedia Commons (CC BY-SA 4.0)

The frame and the bitstream belong to the controller in layer 2. Only the third view exists on the wires, and producing it is the CAN transceiver’s whole job. To see what a node means to say, read the frame. To see what the bus carries, read the two voltages.

Sources

Share this article

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *