NI-9881 Getting Started
- Updated2022-09-01
- 4 minute(s) read
NI-9881 Getting Started
Wiring the NI-9881
The NI-9881 has one 9-pin male D-Sub connector that provides connections to a CAN bus. The NI-9881 has pins for CAN_H and CAN_L, to which you connect the CAN bus signals. Connect these signals using twisted-pair cable.
The port has two common pins (COM) that are internally connected to the module’s isolated reference and serve as the reference ground for CAN_H and CAN_L. You can connect the CAN bus reference ground (sometimes referred to as CAN_V-) to one or both COM pins. The port also has an optional shield pin, SHLD, that you can connect to a shielded CAN cable. Connecting SHLD may improve signal integrity and EMC performance in a noisy environment.
The NI-9881 requires an external power supply of +9 to +30 V to operate. Supply power to the NI-9881 VSUP pin.
The NI-9881 features software-selectable bus termination for High-Speed CAN transceivers. On the NI-9881, you can enable 120 Ω termination resistors between CAN_H and CAN_L through an API call. The Termination Resistor Specification table lists recommended termination resistor values.
NI-9881 Pinout
Pin | Signal |
---|---|
1 | No Connection (NC) |
2 | CAN_L |
3 | COM |
4 | NC |
5 | SHLD |
6 | COM |
7 | CAN_H |
8 | NC |
9 | VSUP |
CAN Bus Topology and Termination
A CAN bus consists of two or more CAN nodes cabled together. The CAN_H and CAN_L pins of each node are connected to the main CAN bus cable through a short connection known as a “stub.” The pair of signal wires, CAN_H and CAN_L, constitutes a transmission line. If the transmission line is not terminated, each signal change on the bus causes reflections that may cause communication errors. Because the CAN bus is bidirectional, both ends of the cable must be terminated. However, this requirement does not mean that every node on the bus should have a termination resistor; only the two nodes at the far end of the cable should have termination resistors.
The following figure shows a simplified diagram of a CAN bus with multiple CAN nodes and proper termination resistor (Rt) locations.
Connecting a CAN Bus to the NI-9881
You can connect the NI-9881 port to any location on a CAN bus. The following figure shows one example of connecting the NI-9881 directly to one CAN node.
Cabling Requirements for the NI-9881
Cable Specifications
Cables should meet the physical medium requirements specified in ISO 11898, shown in the following table. Belden cable (3084A) meets all these requirements and should be suitable for most applications.
Characteristic | Value |
---|---|
Impedance | 95 Ω minimum |
120 Ω nominal | |
140 Ω maximum | |
Length-related resistance | 70 mΩ/m nominal |
Specific line delay | 5 ns/m nominal |
Termination Resistor Requirements
The termination resistors (Rt) should match the nominal impedance of the CAN cable and therefore comply with the values in the following table.
Characteristic | Value | Condition |
---|---|---|
Termination resistor, Rt | 100 Ω minimum | Minimum power dissipation: 220 mW |
120 Ω nominal | ||
130 Ω maximum |
Cable Lengths
The cabling characteristics and desired bit transmission rates affect the allowable cable length. You can find detailed cable length recommendations in the ISO 11898, CiA DS 102, and DeviceNet specifications.
ISO 11898 specifies 40 m total cable length with a maximum stub length of 0.3 m for a bit rate of 1 Mb/s. The ISO 11898 specification says that significantly longer cable lengths may be allowed at lower bit rates, but you should analyze each node for signal integrity problems.
Number of CAN Nodes
The maximum number of nodes depends on the electrical characteristics of the nodes on the network. If all nodes meet the ISO 11898 requirements, you can connect up to at least 30 nodes to the bus. You can connect higher numbers of nodes if the nodes’ electrical characteristics do not degrade signal quality below ISO 11898 signal level specifications.
The NI-9881 electrical characteristics allow up to at least 110 CAN ports on a network.
NI-9881 Block Diagram
The NI-9881 has one full-featured CAN port that is isolated from the other modules in the system. The port has a Bosch DCAN CAN controller that is CAN 2.0B-compatible and fully supports both 11-bit and 29-bit identifiers. The port also has an NXP PCA82C251T High-Speed CAN transceiver that is fully compatible with the ISO 11898 standard and supports baud rates up to 1 Mbps.