Freescale Semiconductor Microcontrollers User Manual

Page 278

Advertising
background image

HC08 Full Chip Simulation

Configuration Procedure

278

Microcontrollers Debugger Manual

RomStart equ $8000 ; start of Flash1 for AZ60
VectorStart equ $FFCC ; start of Vectors for AZ60

$Include 'az60regs.inc'

CANAddress equ $01234567 ; fixed address of this CAN Module

org RamStart
buffptr ds 2 ; pointer into the local data buffer
dataptr ds 2 ; pointer into the CAN receiver data buffer
datacount ds 1 ; holds the number of bytes in messages
PacketData ds $100 ; buffer for data from received packets
PacketDataEnd:

org RomStart
* Transmission Message Descriptors
* All messages are extended data types
* Format is Address, Priority, Length, Data
Msg1_Desc:
dw $0001 ; Message 1 Address
dw $2345 ; Message 1 Address
db $03 ; Message 1 Priority
db $08 ; Message 1 Length
db $11 ; Data Byte 1
db $22 ; Data Byte 2
db $33 ; Data Byte 3
db $44 ; Data Byte 4
db $55 ; Data Byte 5
db $66 ; Data Byte 6
db $77 ; Data Byte 7
db $88 ; Data Byte 8
M1Desc_End:

Msg2_Desc:
dw $0002 ; Message 2 Address
dw $3456 ; Message 2 Address
db $02 ; Message 2 Priority
db $04 ; Message 2 Length
db $12 ; Data Byte 1
db $34 ; Data Byte 2
db $56 ; Data Byte 3
db $78 ; Data Byte 4
M2Desc_End:

Msg3_Desc:
dw $0003 ; Message 3 Address
dw $4567 ; Message 3 Address
db $01 ; Message 3 Priority

Advertising