C8051F04x-DK
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
→
View
Debug Windows
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.
PC
Serial or USB Port
6
Downloaded from
Elcodis.com
electronic components distributor
→
→
Debug Windows
SFRs
→
CAN0 Message Registers. To view SFRs and message registers, the device must be
Serial or USB
Debug
Cable
Adapter
CAN Application Hardware Setup
Figure 2.
→
CAN0. To view message objects in CAN RAM, click
AC/DC
Adapter
Ribbon
Cable
Serial
Cable
Rev. 0.6
Target
Board
AC/DC
Adapter
Target
Board
Need help?
Do you have a question about the C8051F040DK and is the answer not in the manual?
Questions and answers