8.6.5.7.6 Extended Message ID Filter Element

Up to 64 filter elements can be configured for 29-bit extended IDs. When accessing an Extended Message ID Filter element, its address is the Filter List Extended Start Address MCAN_XIDFC.FLESA plus two times the index of the filter element (0…63).

Table 8-52. Extended Message ID Filter Elemen
313029282726252423222120191817161514131211109876543210
F0EFEC[2:0]EFID[28:0]
F1EFT[1:0]ESYNCEFID[28:0]

F0 Bit 31:29 EFEC[2:0]: Extended Filter Element Configuration

All enabled filter elements are used for acceptance filtering of extended frames. Acceptance filtering stops at the first matching enabled filter element or when the end of the filter list is reached. If EFEC = “100”, “101”, or “110”, a match sets the interrupt flag MCAN_IR.HPM and, if enabled, an interrupt is generated. In this case, register MCAN_HPMS is updated with the status of the priority match.

ValueDescription
0Disable filter element
1Store in Rx FIFO 0 if filter matches
2Store in Rx FIFO 1 if filter matches
3Reject ID if filter matches
4Set priority if filter matches
5Set priority and store in FIFO 0 if filter matches
6Set priority and store in FIFO 1 if filter matches
7Store into Rx Buffer or as debug message, configuration of EFT[1:0] ignored

F0 Bits 28:0 EFID1[28:0]: Extended Filter ID 1

First ID of extended ID filter element.

When filtering for Rx Buffers or for debug messages this field defines the ID of an extended message to be stored. The received identifiers must match exactly, only MCAN_XIDAM masking mechanism (see Extended Message ID Filtering) is used.

F1 Bit 29 ESYNC: Extended Sync Message

Only evaluated when CCCR.UTSU = ‘1’. When this bit is set and a matching message is received, a pulse is generated to signal the reception of a Sync message to the Timestamping Unit (TSU) connected to the MCAN.

Value Description
0Timestamping for the matching Sync message disabled
1Timestamping for the matching Sync message enabled

F1 Bits 31:30 EFT[1:0]: Extended Filter Type

Value Description
0Range filter from EF1ID to EF2ID (EF2ID ≥ EF1ID)
1Dual ID filter for EF1ID or EF2ID
2Classic filter: EF1ID = filter, EF2ID = mask
3Range filter from EF1ID to EF2ID (EF2ID ≥ EF1ID), MCAN_XIDAM mask not applied

F1 Bits 28:0 EFID2[28:0]: Extended Filter ID 2

This field has a different meaning depending on the configuration of EFEC:

  • EFEC = “001”...“110”–Second ID of extended ID filter element
  • EFEC = “111”–Filter for Rx Buffers or for debug messages

EFID2[10:9] decides whether the received message is stored into an Rx Buffer or treated as message A, B, or C of the debug message sequence.

ValueDescription
0Store message in an Rx buffer
1Debug Message A
2Debug Message B
3Debug Message C

EFID2[5:0] defines the index of the dedicated Rx Buffer element to which a matching message is stored.