Figure 11.28 – Freescale Semiconductor Microcontrollers User Manual

Page 288

Advertising
background image

HC08 Full Chip Simulation

Configuration Procedure

288

Microcontrollers Debugger Manual

Figure 11.28 CAN Example Input Packet

Once the DATA packet information is entered, the CANIN window looks as shown in

Figure 11.29

. The user can then set a breakpoint in the interrupt service routine that

handles CAN packets and execute the code by typing GO in the simulator. The user is
now at the CAN ISR. By entering the t command and single stepping through the code,
the user exits the ISR and return to the main loop. The user can then see the resulting data
in the memory window pointed to by the buffptr variable, which is the
0,1,2,3,4,5,6,7

placed in the data packet.

Figure 11.30

shows the memory window.

Figure 11.29 CAN IN Display After Data Packet

Figure 11.30 Memory Window Showing Received Data

Now, for the output packets that were setup in the initialization routine, we can see that the
code sends them out from the simulator by using the CANOUT command. The user can
type the command GO in the simulator and let the simulation run for a while. Hit the Enter

Advertising