Renesas M16C Laptop User Manual


 
Rev.1.10 Jul 01, 2005 page 204 of 318
REJ09B0124-0110
M16C/6N Group (M16C/6NK, M16C/6NM) 18. CAN Module
Under development
This document is under development and its contents are subject to change.
18.2 CANi Message Box (i = 0, 1)
Table 18.1 shows the memory mapping of the CANi message box.
It is possible to access to the message box in byte or word.
Mapping of the message contents differs from byte access to word access. Byte access or word access can
be selected by the MsgOrder bit of the CiCTLR register.
Table 18.1 Memory Mapping of CANi Message Box
i = 0, 1
n = 0 to 15: the number of the slot
Address Message Content (Memory mapping)
CAN0 CAN1 Byte access (8 bits) Word access (16 bits)
0060h + n 16 + 0 0260h + n 16 + 0 SID10 to SID6 SID5 to SID0
0060h + n 16 + 1 0260h + n 16 + 1 SID5 to SID0 SID10 to SID6
0060h + n 16 + 2 0260h + n 16 + 2 EID17 to EID14 EID13 to EID6
0060h + n 16 + 3 0260h + n 16 + 3 EID13 to EID6 EID17 to EID14
0060h + n 16 + 4 0260h + n 16 + 4 EID5 to EID0 Data Length Code (DLC)
0060h + n 16 + 5 0260h + n 16 + 5 Data Length Code (DLC) EID5 to EID0
0060h + n 16 + 6 0260h + n 16 + 6 Data byte 0 Data byte 1
0060h + n 16 + 7 0260h + n 16 + 7 Data byte 1 Data byte 0
••
••
••
0060h + n 16 + 13 0260h + n 16 + 13 Data byte 7 Data byte 6
0060h + n 16 + 14 0260h + n 16 + 14 Time stamp high-order byte Time stamp low-order byte
0060h + n 16 + 15 0260h + n 16 + 15 Time stamp low-order byte Time stamp high-order byte