Figure 2. can application hardware setup – Silicon Laboratories C8051F04X-DK User Manual

Page 6

Advertising
background image

C8051F04x-DK

6

Rev. 0.6

You may run the example with the Debug Adapter connected to view CAN registers, and CAN message objects in
CAN RAM. While connected to one target board, run the code. Depress the RESET button on the other target
board. You may use debug and view features of the Silicon Laboratories IDE and on-chip debug logic. To view the
CAN SFRs, click View

Debug Windows

SFRs

CAN0. To view message objects in CAN RAM, click

View

Debug Windows

CAN0 Message Registers. To view SFRs and message registers, the device must be

in a halt state to update the debug view windows.

Important Note: To view a Message Object in the CAN Message Registers window, you must set its Message Valid
bit to 1 in the Message Object's associated Message Arbitration 2 Register (Bit 15, ARBT2). This can be done in
code by configuring the IF1 and IF2 registers to set the associated Message Objects’ ARBT2 register. A second
method to set this bit is available while viewing the Message Object registers in the IDE CAN0 Message Registers
view. Click on, and change, the associated Message Objects’ ARBT2 register directly. Working in the background
the IDE will set the register for you via the IF1 and IF2 registers.

Figure 2.

CAN Application Hardware Setup

Serial or USB Port

Debug

Adapter

Ribbon

Cable

Target

Board

PC

CA

N

JT

AG

RS23

2

Target

Board

AC/DC

Adapter

RS23

2

JT

AG

CAN

Serial or USB

Cable

Serial
Cable

AC/DC

Adapter

Advertising