Skip to main content

CAN DB9 Connection: Pinout, Male or Female, Termination and Shield Wiring

·Published ·8 min read

A CAN DB9 connection follows the CAN in Automation (CiA) pin assignment for the 9-pin D-sub (DE-9): CAN_L on pin 2, CAN_GND on pin 3 and CAN_H on pin 7. Pin 5 is an optional shield, pin 6 an optional second ground and pin 9 an optional supply (CAN_V+); pins 1, 4 and 8 are reserved. The pin numbers are the same on male and female connectors, but the female face is a mirror image of the male face. Run CAN_H and CAN_L as one twisted pair, fit one 120 Ω termination at each of the two ends of the bus rather than at every node, and bond the cable shield to the connector shell and the chassis. RS-485 has no single DB9 pinout, so take it from the device manual.

WHB050XX6X1ADB2
I/O Connectors · D-SUB ConnectorsWHB050XX6X1ADB2D-SUB female right angle 8.08mm,riveting board lock D-SUB Connector
3A1000V1000mΩ5009pin15pin
WHB050XX6X1XD02
I/O Connectors · D-SUB ConnectorsWHB050XX6X1XD02D-SUB machined pin female right angle,7.2mm,riveted insert,lock screw
5A1000V1000mΩ5009pin15pin

This guide covers the connector end of a CAN or RS-485 port, for the engineer drawing it and the layout engineer placing the DB9 footprint. The circuit behind the connector, the transceiver, split termination, TVS and common mode choke, is covered in CAN bus communication circuit design and CAN bus common mode choke selection; the RS-485 front end is in RS-485 circuit design.

What is the CAN bus DB9 pinout?

CiA first recommended this assignment for the DE-9 connector in CiA DS 102, then published it in CiA 303-1 for CANopen. It now sits in the CiA 106 technical report, which is no longer tied to CANopen and applies to CAN CC, CAN FD and CAN XL interfaces, so a CAN FD port uses the same DB9 pins. The table below is the assignment as PC interface and PLC makers reproduce it in their manuals.

PinSignal (CiA)What to do on your board
01ReservedLeave unconnected
02CAN_LTo the transceiver CANL pin, through the common mode choke and protection if fitted
03CAN_GNDTo the transceiver ground; on an isolated node, to the isolated-side ground
04ReservedLeave unconnected
05CAN_SHLD (optional)Decide with your shield plan; see the shield section below
06GND (optional)If used, the same net as pin 3
07CAN_HTo the transceiver CANH pin, routed as a pair with pin 2
08ReservedLeave unconnected
09CAN_V+ (optional)Only if your system distributes bus power; protect it at the source

Only pins 2, 3 and 7 are needed for a working link. Products differ on the optional pins, for example pins 3 and 6 tied together inside, or an auxiliary supply on pin 9, and some automotive adapter cables ignore the CiA table, so check the manual of every device that will plug into your port.

Read the pin numbers from the right face. Viewed from the mating face, a male DB9 has pin 1 at the left end of the five-pin row and pin 6 at the left end of the four-pin row. A female DB9 is the mirror image: the front view in the datasheet of the WHB050XX8X1ADE5 female receptacle numbers the top row 5 to 1 and the bottom row 9 to 6. A footprint drawn from the wrong face moves CAN_L from pin 2 to pin 4 and CAN_H from pin 7 to pin 8, two reserved pins, and the bus stays silent. Take the numbering from the datasheet of the receptacle you are actually placing.

Should the CAN DB9 on your board be male or female?

The CiA pin assignment is the same on plug and socket, so in practice the gender on your board is set by your system's convention, and the rule that avoids trouble is to match the cables and tools already on your bus. Practice is mixed: NI documents a 9-pin male D-sub on each port of its high-speed CAN hardware, common CAN extension cables are female at one end and male at the other, and at least one servo drive manual describes two daisy-chained 9-way D-subs on the drive, one male and one female.

  • Your board mates with existing cables: check which gender those cables present at the device end and fit the opposite.
  • Your node sits mid-bus: a male and a female DB9 wired pin for pin in parallel let the bus come in on one and leave on the other, so the stub inside the box is only the track to the transceiver.
  • You are building a gateway, analyzer or test box that plugs straight onto a device's male port: the board side is female.

Write the gender on the schematic symbol and in the interface specification, so the cable drawing and the PCB cannot disagree.

Where does the 120 Ω terminator go on a CAN bus DB9?

High-speed CAN to ISO 11898-2 uses a nominal 120 Ω resistor between CAN_H and CAN_L at each of the two ends of the bus line, two in total. With DB9 connectors you have three places to put them:

  • On the end-node board, across the CAN_H and CAN_L nets behind pins 7 and 2, with a jumper or switch so the same board can also sit mid-bus. Split termination goes here too; the values are in the CAN circuit design guide.
  • In a DB9 termination plug that fits on the last connector of the chain.
  • In the end connector of the cable assembly.

Whichever you choose, check it with the power off: measure across pins 2 and 7 at any DB9 on the bus. About 60 Ω means two terminations are in place. About 120 Ω means one is missing. About 40 Ω means a third has crept in, usually a mid-bus node with its jumper left in.

Avoid putting the only termination on a node that is unplugged in service, such as a laptop interface: when its DB9 comes off, the bus loses one end.

Does a CAN DB9 cable need a shield, and where does it connect?

CiA lists the shield pin as optional, so whether you need shielded cable depends on your EMC environment and test plan. If you do use it, a drain wire through pin 5 is a long, thin path for high-frequency current. The usual approach is to clamp the braid all round to a metal backshell and let the shell bond to the chassis at the panel, through the jack screws or a chassis contact. On the board:

  • Keep the connector shell and its board locks on a chassis ground area at the board edge, separate from CAN_GND, and join the two only where your grounding plan says. Our industrial D-sub interface guide covers shell-to-chassis bonding and ESD.
  • Treat pin 3 as a signal reference, not as a shield. On an isolated node it belongs to the isolated side and must not touch chassis.
  • If you also wire pin 5, decide whether it ties to chassis at one end of the cable or both, and write that down for the cable maker.

The common mode choke and TVS belong between the DB9 and the transceiver, close to the connector, so noise and ESD entering on pins 2 and 7 are dealt with before they reach the board; the CAN common mode choke guide shows the order.

DB9 connection for RS-485 and LIN: what changes?

RS-485 (TIA-485-A) defines drivers and receivers, not a connector, so there is no single RS-485 DB9 pinout. The most widely fixed one is PROFIBUS DP: pin 3 is RxD/TxD-P (line B), pin 8 is RxD/TxD-N (line A), pin 5 is data ground (DGND) and pin 6 is VP, a +5 V supply used for the bus termination. PROFIBUS International lists those four pins as mandatory. Other RS-485 devices choose their own pins, so the device manual decides.

When one product, or one cabinet, carries CAN, RS-485 and RS-232 on identical DB9 shells, check three things:

  • CAN and PROFIBUS do not line up. CAN uses pins 2 and 7, PROFIBUS uses 3 and 8, so a PROFIBUS cable plugged into a CAN port puts line B on CAN_GND.
  • A serial port is not a CAN port. An RS-232 DTE port has RxD on pin 2, TxD on pin 3 and ground on pin 5, so a CAN node plugged into it sees the RS-232 transmit signal on CAN_GND. Label the ports, or key them with different genders or connectors.
  • Termination still applies. RS-485 is also terminated at both ends of the line and usually needs fail-safe biasing; values are in RS-485 circuit design.

For LIN, the CiA table does not apply. LIN interface tools that use a DB9 define their own pins, typically the LIN line, ground and the battery supply that LIN nodes need, so take the pinout from the tool's manual and do not reuse a CAN cable without checking it.

Which VOOHU DB9 receptacles fit a CAN or RS-485 port?

The three VOOHU 9-position D-sub receptacles below are female, PCB-mount, two rows, with 2.77 mm pitch along a row and 2.84 mm between rows on the PCB, and their datasheets rate them at 1000 V AC withstand voltage and 500 mating cycles.

PartMounting and lockingRated currentOperating temperatureA good fit when
WHB050XX6X1ADB2Right angle, 8.08 mm, riveted board lock3 A−55 to +125 °CA side-entry panel port on an end node or interface board; the datasheet also lists 1000 MΩ min. insulation resistance and 35 mΩ max. contact resistance
WHB050XX6X1XD02Right angle, machined pins, riveted insert with #4-40 UNC lock screws5 A−55 to +105 °CThe mating cable uses jack screws, or pin 9 carries bus power and you want the higher current rating
WHB050XX8X1ADE5Vertical (180°) through-hole, #4-403 A−55 to +125 °CThe connector must face up out of the board, as on a gateway, analyzer or test fixture

Before you place one, check two things against its datasheet: the pin numbering on the front view, so your footprint matches the face you will see on the panel, and the rated current, if pin 9 will carry CAN_V+. Datasheets are on each product page, for example the WHB050XX6X1ADB2 datasheet.

To see the 9-position VOOHU D-sub receptacles side by side, open the D-sub connector selector filtered to 9 pins; clear the filter to include the 15-position high-density versions.

FAQ

Does CAN bus need a ground?

Yes, in most systems you should carry a ground reference with the pair. CAN is differential, but a transceiver only works while the bus voltages stay inside its common-mode range, and that range is measured against the transceiver's own ground. Pin 3 (CAN_GND) carries that reference between nodes. Check the common-mode range in your transceiver datasheet; on an isolated node, pin 3 connects to the isolated ground.

Is CAN bus RS485?

No. Both use a differential pair terminated at the ends, but during arbitration a CAN transceiver (ISO 11898-2) drives the bus only for dominant bits and lets the termination pull it back to recessive, which is what makes bitwise arbitration possible; an RS-485 driver (TIA-485-A) actively drives both states. On a DB9 the pins differ too: CAN_H and CAN_L on pins 7 and 2, PROFIBUS RS-485 on pins 3 and 8.

Are DB9 and RS232 the same?

No. DB9, more precisely DE-9, names the 9-pin D-sub shell; RS-232 is one electrical interface often carried on it, with RxD on pin 2, TxD on pin 3 and ground on pin 5 at a DTE port. A CAN DB9 uses pins 2, 3 and 7 for different signals, so a serial cable is not a CAN cable. Shell sizes and naming are explained in our D-sub sizes and types guide.

Is it common practice to connect power supply to a DB9?

On CAN it is provided for: pin 9 is the optional CAN_V+ supply, returned on the ground pins. Use it only when every device that can be plugged in follows the CiA pinout, fuse or current-limit the supply at the source, and check the rated current of the D-sub contacts. Do not put bus power on a DB9 that someone could plug into a PC serial port.

Get your DB9 port checked before layout

Send the protocol, the pins you need, the gender and mounting direction at the board, and how the cable locks through our sample request form. Our FAE team can suggest suitable parts and help check the design: which VOOHU D-sub receptacle fits the port, how its pin numbering maps onto your footprint, and which common mode chokes suit the CAN or RS-485 lines behind it. Samples are available for evaluation, and selected parts are free of charge. Our FAE team will be glad to confirm the options for your project. VOOHU supplies RJ45 and SFP connectors, LAN and PoE transformers and common mode chokes from Suzhou, China, to more than 1,500 customers.

Sources

  • CiA 106, Connector pin-assignment recommendations, version 1.1.0 (2023-07-11), technical report: scope as published by CAN in Automation.
  • CiA DS 102 and CiA 303-1 DE-9 pin assignment, as reproduced in the HMS Ixxat knowledge base article on CAN connector pin assignment (2025-05-09), the Beckhoff CX7050 D-sub connector (X003) documentation and the NI High-Speed CAN Pinout article.
  • ISO 11898-2, Road vehicles – Controller area network (CAN) – Part 2: High-speed medium access unit.
  • TIA-485-A, Electrical Characteristics of Generators and Receivers for Use in Balanced Digital Multipoint Systems.
  • TIA-574, 9-position non-synchronous interface (RS-232 on DE-9).
  • PROFIBUS International, PROFIBUS assembly guideline training: 9-pin Sub-D pin assignment.
  • Moog DS2100 drive user manual: CAN-In and CAN-Out ports.
  • VOOHU WHB050XX6X1ADB2 D-sub receptacle datasheet, Rev. A0, page 1.
  • VOOHU WHB050XX6X1XD02 D-sub receptacle datasheet, Rev. A0, page 1.
  • VOOHU WHB050XX8X1ADE5 D-sub receptacle datasheet, Rev. A0, page 1.
SAMPLES & SUPPORT

Need a quote, samples or selection support?

Part number WHB050XX6X1ADB2 is filled in for you. Add the quantity and lead time and submit. Our FAE team will be glad to confirm the options for your project.

Before you order: samples, MOQ, lead time and import duties in our ordering guide →

REQUEST TYPE

Choose a Request Type and Fill in the Fields

You need samples, pricing, or lead time for catalog parts

Contact Details

Have attachments? Send datasheets, BOMs, or drawings to voohu@voohuele.com with your name and company, and our engineers will handle them together with this request.
  1. You see a confirmation right after submitting, and the request goes to our engineering queue

  2. Pricing and lead time within 1 business day; items without stock data are marked "To be confirmed"

  3. If information is missing, we list what we need first instead of closing the request

ThorneFAE Engineer, VOOHU ElectronicArticles: Tech Blog and Selection Guides
RELATED

Related articles

Latest from this section.

SUBSCRIBE

Subscribe to VOOHU technical articles

Get new articles in your inbox. Unsubscribe at any time.

By subscribing you agree to our Privacy Policy