HC08 Full Chip Simulation
Configuration Procedure
287
Microcontrollers Debugger Manual
Figure 11.26 CAN IN Display
Input packets can be added by double-clicking in the window where the packet is to go or
by selecting the row for the packet and clicking the OK button. At this point a new
window comes up as shown in Figure 11.27. It is in this window that the user can specify
the parameters of the message. The Packet Type list menu allows the user to select the
type of CAN packet, that is, a DATA, REMOTE, ERROR, or OVERLOAD packet. The
CAN address for the input can be entered in the CAN Address edit box. The address
format can be set to be standard (11 bits) or extended (29 bits). Note that if you select an
ERROR or OVERLOAD packet, then the DATA field and CAN Address fields are
unused and are grayed out. For DATA and REMOTE packets, the DATA field must be
filled with the appropriate data. Let’s demonstrate how to fill these fields for a data packet
coming in to the device from the network.
Figure 11.27 CAN Packet Dialog Box
As an example, let us assume that another node in the network wanted to send a packet
containing 8 bytes (0,1,2,3,4,5,6,7) to our device at address $01234567. In this case we
want to set the packet type to DATA, the CAN address to $01234567, the address format
to Extended, and the data field for the given 8 bytes. This is shown in Figure 11.28
through the CANIN command.