CAN Bus Interface

Bits

Field Name

Description

5:0

FRB[5:0]

frame_ref_bit_nr

 

 

A 6-bit vector that counts the bit numbers in one field.

 

 

Example: if field = “data” = “01010”, “bit_nr” = “000000”, and

 

 

“tx_mode” = ‘1’, it indicates that the first data bit is being

 

 

transmitted.

CAN Bus Interface

DSTni contains two complete CAN controllers, CAN0 and CAN1. Each controller supplies two signal pins, CAN receive (CAN_RX) and CAN transmit (CAN_TX). These signals are routed to interface circuits and a CAN transceiver such as the PCA82C251. From the transceiver, the signals become CAN- and CAN+, which are routed to CAN interface connectors. The CAN transceiver can support DeviceNet or CANopen interface requirements.

CLK

 

RST

 

PCS1

CAN0

(CAN0)

CAN1

PCS2

(CAN1)

 

RD

 

WR

BUS

ADDR

 

DATA_IN

 

DATA_OUT Figure 5-5. CAN Bus Interface

Figure 5-5. CAN Bus Interface

 

RX

Acceptance

 

 

 

FIFO

Filters

 

 

 

 

TX

 

 

 

INT

FIFO

MODULE

CAN_TX

 

CAN_RX

 

 

CTRL

 

 

 

CAN

 

 

STATUS &

 

 

 

 

 

 

 

CONFIGURATION

 

INT1

 

 

 

 

INT6

START/STOP

 

 

INT2

 

 

INT6

 

 

 

CTRL

 

 

 

 

CANBUS

CANH

TRANSCEIVER

CANL

82C251

 

Interface Connections

The following sample circuits demonstrate a practical DeviceNet or CANopen interface. The wiring diagram for DeviceNet and CANopen connections are shown in Figure 5-6.

Figure 5-6. CAN Connector

 

 

 

 

 

 

CAN_OPEN (DB-9)

 

 

 

 

 

 

CAN_L

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

2

 

 

CAN-

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CAN_GND

3

 

 

GND_CAN

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

4

 

 

 

DeviceNet CAN

 

 

5

 

 

 

 

 

 

 

 

 

CAN_H

6

 

 

CAN+

(BLK) V-

1

 

 

 

V-

7

 

 

 

 

 

 

 

 

 

 

 

8

 

 

 

(BLU) CAN-

2

 

 

 

CAN-

 

 

 

 

 

 

 

 

9

 

 

 

Shield

3

 

 

 

SHIELD

 

 

 

 

 

 

 

 

10

 

 

 

(WHT) CAN+

4

 

 

 

CAN+

 

 

 

 

 

 

 

 

11

 

 

 

(RED) V+

5

 

 

 

V+

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

DeviceNet can supply network voltage on the V- and V+ pins. This supply can be used to operate the transceiver and interface circuits. In the circuit below, V- and V+ signals are combined to form +24, which is then connected to a regulator to generate the +5_BUS signal for the transceiver circuits.

84

Page 92
Image 92
Lantronix DSTni-EX manual Interface Connections, 5. CAN Bus Interface, 6. CAN Connector