4.4 CAN

„Usage

1)Open Nand Flash sample project, and start debug.

2)Use “step over” to debug, and watch local variable “sec”, “min”, “hour”.

4.4 CAN

„Hardware Setting

Connect 2 EV-board with CAN interface, as following figure.

EV board 1

(Node A)

CAN 1 „Block DiagramManual background

CAN 2

CAN 1

CAN 2

EV board 2

(Node B)

Figure 4-6: CAN Hardware Connection

„Block Diagram

¾Node A: use buffer 10 (ID = 0x12345678) to transfer and buffer 8 (ID = 0x08765432) to receive

¾Node B: use buffer 7 (ID = 0x12345678) to receive and buffer 10 (ID = 0x08765432) to transfer.

Node A

Node B

Buffer 10

Buffer 7

(ID=0x12345678)

(ID=0x12345678)

Buffer 8

Buffer 10

(ID=0x08765432)

(ID=0x08765432)

Figure 4-7: CAN Demo Block Diagram

„Usage

1)Define “CAN_TX_RX” in the code, and compile, then program the code into Node A

2)Don’t define “CAN_TX_RX” in the code, and compile, then program the code into Node B.

3)Connect Node A with Node B

When in real usage, user can program one node, and use the other node to debug.

17

Page 17
Image 17
Fujitsu MB9B500 Series user manual 4.4 CAN, „ Usage, „ Hardware Setting, „ Block Diagram