25-10
MCF5282 User’s Manual
MOTOROLA
Functional Overview
the MB, the ID field, data field (8 bytes at most) and the LENGTH field are stored, the Code
field is updated and a status flag is set in the IFLAG register.
The CPU should read a receive frame from its MB in the following way:
• Control/status word (mandatory—activates internal lock for this buffer).
• ID (Optional—needed only if a mask was used).
• Data field word(s).
• Free-running timer (Releases internal lock —optional).
The read of the free-running timer is not mandatory. If not executed, the MB remains
locked, unless the CPU starts the read process for another MB. Note that only a single MB
is locked at a time. The only mandatory CPU read operation is of the Control/Status word,
to assure data coherency. If the BUSY bit is set in the MB code, then the CPU should defer
until this bit is negated.
The CPU should synchronize to frame reception by the status flag for the specific MB (see
Section 25.5.10, “Interrupt Flag Register (IFLAG)”), and not by the control/status word
code field for that MB. This is because polling the control/status word may lock the MB
(see above), and the Code may change before the full frame is received into the MB.
Note that the received identifier field is always stored in the matching MB, thus the contents
of the identifier field in a MB may change if the match was due to mask.
25.4.2.1 Self-Received Frames
The FlexCAN receives self-transmitted frames if there exists a matching receive MB.
25.4.3 Message Buffer Handling
In order to maintain data coherency and proper FlexCAN operation, the CPU must obey the
rules listed in Section 25.4.1, “Transmit Process” and in Section 25.4.2, “Receive Process.”
Deactivation of a message buffer (MB) is a host action that causes that message buffer to
be excluded from FlexCAN transmit or receive processes. Any CPU write access to a
control/status word of MB structure deactivates that MB, thus excluding it from Rx/Tx
processes. Any form of CPU MB structure access within the FlexCAN (other than those
specified in Section 25.4.1, “Transmit Process” and in Section 25.4.2, “Receive Process”)
may cause the FlexCAN to behave in an unpredictable manner.
The match/arbitration processes are performed only during one period by the FlexCAN.
Once a winner or match is determined, there is no re-evaluation whatsoever, in order to
ensure that a receive frame is not lost. Two receive MBs or more that hold a matching ID
to a received frame do not assure reception in the FlexCAN if the user has deactivated the
matching MB after FlexCAN has scanned the second.
Summary of Contents for ColdFire MCF5281
Page 124: ...3 20 MCF5282 User s Manual MOTOROLA EMAC Instruction Set Summary ...
Page 141: ...MOTOROLA Chapter 5 Static RAM SRAM 5 5 SRAM Programming Model ...
Page 142: ...5 6 MCF5282 User s Manual MOTOROLA SRAM Programming Model ...
Page 168: ...6 26 MCF5282 User s Manual MOTOROLA Interrupts ...
Page 186: ...7 18 MCF5282 User s Manual MOTOROLA Functional Description ...
Page 228: ...9 22 MCF5282 User s Manual MOTOROLA Functional Description ...
Page 246: ...10 18 MCF5282 User s Manual MOTOROLA Low Power Wakeup Operation ...
Page 254: ...11 8 MCF5282 User s Manual MOTOROLA Memory Map and Registers ...
Page 264: ...12 10 MCF5282 User s Manual MOTOROLA Chip Select Registers ...
Page 280: ...13 16 MCF5282 User s Manual MOTOROLA Misaligned Operands ...
Page 314: ...14 34 MCF5282 User s Manual MOTOROLA MCF5282 External Signals ...
Page 339: ...MOTOROLA Chapter 15 Synchronous DRAM Controller Module 15 25 SDRAM Example ...
Page 340: ...15 26 MCF5282 User s Manual MOTOROLA SDRAM Example ...
Page 356: ...16 16 MCF5282 User s Manual MOTOROLA DMA Controller Module Functional Description ...
Page 408: ...17 52 MCF5282 User s Manual MOTOROLA Buffer Descriptors ...
Page 446: ...20 24 MCF5282 User s Manual MOTOROLA Interrupts ...
Page 474: ...22 18 MCF5282 User s Manual MOTOROLA Programming Model ...
Page 510: ...23 36 MCF5282 User s Manual MOTOROLA Operation ...
Page 526: ...24 16 MCF5282 User s Manual MOTOROLA I2C Programming Examples ...
Page 672: ...28 12 MCF5282 User s Manual MOTOROLA Functional Description ...
Page 718: ...29 46 MCF5282 User s Manual MOTOROLA Motorola Recommended BDM Pinout ...
Page 750: ...32 8 MCF5282 User s Manual MOTOROLA Ordering Information ...