Keil™, An ARM® Company

µVision® User's Guide

Simulate Incoming Messages

The following example shows the simulation of an incoming message object with 2 message bytes.

>CAN0ID = 0x4500   // message ID = 0x4500
>CAN0L = 2         // message length 2 bytes
>CAN0B0 = 0x12     // message data byte 0
>CAN0B1 = 0x34     // message data byte 1
>CAN0IN = 2        // set CAN message with 29-bit identifier to the application program

Note:

  • You may also enter incoming messages directly in the CAN communication dialog page.