13
13-48
32180 Group User’s Manual (Rev.1.0)
CAN MODULE
13.2 CAN Module Related Registers
13.2.12 CAN Mask Registers
CAN0 Global Mask Register Standard ID0 (C0GMSKS0) <Address: H’0080 1028>
CAN0 Local Mask Register A Standard ID0 (C0LMSKAS0) <Address: H’0080 1030>
CAN0 Local Mask Register B Standard ID0 (C0LMSKBS0) <Address: H’0080 1038>
CAN1 Global Mask Register Standard ID0 (C1GMSKS0) <Address: H’0080 1428>
CAN1 Local Mask Register A Standard ID0 (C1LMSKAS0) <Address: H’0080 1430>
CAN1 Local Mask Register B Standard ID0 (C1LMSKBS0) <Address: H’0080 1438>
123456b7b0
SID0M SID1M SID2M SID3M SID4M
00000
<After reset: H’00>
b Bit Name Function R W
0–2 No function assigned. Fix to "0". 00
3–7 SID0M–SID4M 0: ID not checked R W
(Standard mask ID0–standard mask ID4) 1: ID checked
CAN0 Global Mask Register Standard ID1 (C0GMSKS1) <Address: H’0080 1029>
CAN0 Local Mask Register A Standard ID1 (C0LMSKAS1) <Address: H’0080 1031>
CAN0 Local Mask Register B Standard ID1 (C0LMSKBS1) <Address: H’0080 1039>
CAN1 Global Mask Register Standard ID1 (C1GMSKS1) <Address: H’0080 1429>
CAN1 Local Mask Register A Standard ID1 (C1LMSKAS1) <Address: H’0080 1431>
CAN1 Local Mask Register B Standard ID1 (C1LMSKBS1) <Address: H’0080 1439>
9 10 11 12 13 14 b15b8
SID6MSID5M SID7M SID8M SID9M SID10M
000000
<After reset: H’00>
b Bit Name Function R W
8–9 No function assigned. Fix to "0". 00
10–15 SID5M–SID10M 0: ID not checked R W
(Standard mask ID5–standard mask ID10) 1: ID checked
Three mask registers are used in acceptance filtering: global mask register, local mask register A and local
mask register B. The global mask register is used for message slots 0-13, while local mask registers A and B are
used for message slots 14 and 15, respectively.
• If any bit in this register is set to "0", the corresponding ID bit is masked (assumed to have matched) during
acceptance filtering.
• If any bit in this register is set to "1", the corresponding ID bit is compared with the receive ID during
acceptance filtering and when it matches the ID set in the message slot, the received data is stored in it.
Notes: • SID0M corresponds to the MSB of the standard ID.
• The global mask register can only be modified when none of slots 0-13 have receive requests set.
• The local mask register A can only be modified when slot 14 does not have a receive request set.
• The local mask register B can only be modified when slot 15 does not have a receive request set.