TC1796
Peripheral Units (Vol. 2 of 2)
Controller Area Network (MultiCAN) Controller
User’s Manual
22-38
V2.0, 2007-07
MultiCAN, V2.0
Figure 22-15 Received Message Identifier Acceptance Check
22.3.8.2 Transmit Acceptance Filtering
A message is requested for transmission by setting a transmit request in the message
object that holds the message. If more than one message object have a valid transmit
request for the same CAN node, one of these message objects is chosen for
transmission, because only one single message object can be transmitted at the same
time on one CAN bus.
A message object is qualified for transmission on a CAN node if the following four
conditions are met (see also
•
The message object is allocated to the message object list of the CAN node.
•
Bit MOSTATn.MSGVAL is set.
•
Bit MOSTATn.TXRQ is set.
•
Bit MOSTATn.TXEN0 and MOSTATn.TXEN1 are set.
A priority scheme determines which one of all qualifying message objects is transmitted
first. It is assumed that message object a (MOa) and message object b (MOb) are two
message objects qualified for transmission. MOa is a list successor of MOb. For both
message objects, CAN messages CANa and CANb are defined (identifier, IDE, and RTR
are taken from the message-specific bit fields and bits MOARn.ID, MOARn.IDE and
MOCTRn.DIR).
If both message objects belong to the same priority class (identical PRI bit field in register
MOARn), MOa has a higher transmit priority than MOb if one of the following conditions
is fulfilled.
•
PRI = 10
B
and CAN message MOa has higher or equal priority than CAN message
MOb with respect to CAN arbitration rules (see
MCA05841
Identifier of
Received Frame
Identifier of
Message Object
Acceptance Mask of
Message Object
Bitwise
XOR
Bitwise
AND
0 = Bit match
1 = No match
ID
match
= 0: ID of the received frame fits to message object
ID
match
> 0: ID of the received frame does not fit to message object
ID
match