Freescale Semiconductor Microcontrollers Manual de usuario Pagina 288

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 892
  • Tabla de contenidos
  • SOLUCIÓN DE PROBLEMAS
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 287
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
Vista de pagina 287
1 2 ... 283 284 285 286 287 288 289 290 291 292 293 ... 891 892

Comentarios a estos manuales

Sin comentarios