Matching Process - NXP Semiconductors freescale KV4 Series Reference Manual

Table of Contents

Advertisement

3. Read all Data Bytes (start read at 0x88 address, optional)
4. Read the last Data Bytes (read 0x8C address is mandatory)

43.5.4 Matching process

The matching process scans the MB memory looking for Rx MBs programmed with the
same ID as the one received from the CAN bus. If the FIFO is enabled, the priority of
scanning can be selected between Mailboxes and FIFO filters. The matching starts from
the lowest number Message Buffer toward the higher ones. If no match is found within
the first structure then the other is scanned subsequently. In the event that the FIFO is
full, the matching algorithm always looks for a matching MB outside the FIFO region.
As the frame is being received, it is stored in a hidden auxiliary MB called Rx Serial
Message Buffer (Rx SMB).
The matching process start point depends on the following conditions:
• If the received frame is a remote frame, the start point is the CRC field of the frame
• If the received frame is a data frame with DLC field equal to zero, the start point is
the CRC field of the frame
• If the received frame is a data frame with DLC field different than zero, the start
point is the DATA field of the frame
If a matching ID is found in the FIFO table or in one of the Mailboxes, the contents of the
Rx SMB are transferred to the FIFO or to the matched Mailbox by the move-in process.
If any CAN protocol error is detected then no match results are transferred to the FIFO or
to the matched Mailbox at the end of reception.
The matching process scans all matching elements of both Rx FIFO (if enabled) and the
active Rx Mailboxes (CODE is EMPTY, FULL, OVERRUN or RANSWER) in search of
a successful comparison with the matching elements of the Rx SMB that is receiving the
frame on the CAN bus. The Rx SMB has the same structure of a Mailbox. The reception
structures (Rx FIFO or Mailboxes) associated with the matching elements that had a
successful comparison are the matched structures. The matching winner is selected at the
end of the scan among those matched structures and depends on conditions described
ahead. See the following table.
Freescale Semiconductor, Inc.
KV4x Reference Manual, Rev. 2, 02/2015
Preliminary
Chapter 43 Flex Controller Area Network (FlexCAN)
1137

Advertisement

Table of Contents
loading

Table of Contents