FlexCAN Module
MCF5253 Reference Manual, Rev. 1
Freescale Semiconductor
25-21
25.6
Functional Overview
The FlexCAN module is flexible in that each one of its 32 message buffers (MBs) can be assigned either
as a transmit buffer or a receive buffer. Each MB, which is up to 8 bytes long, is also assigned an interrupt
flag bit that indicates successful completion of either transmission or reception.
An arbitration algorithm decides the prioritization of MBs to be transmitted based on either the message
ID or the MB ordering. A matching algorithm makes it possible to store received frames only into MBs
that have the same ID programmed on its ID field. A masking scheme makes it possible to match the ID
programmed on the MB with a range of IDs on received CAN frames. Data coherency mechanisms are
implemented to guarantee data integrity during MB manipulation by the CPU.
Before proceeding with the functional description, an important concept must be explained. A message
buffer is said to be active at a given time if it can participate in the matching and arbitration algorithms that
are happening at that time. An Rx MB with a 0000 code is inactive (refer to
). Similarly, a Tx
MB with a 1000 code is inactive (refer to
). An MB not programmed with either 0000 or 1000
will be temporarily deactivated (will not participate in the current arbitration/matching run) when the CPU
writes to the C/S field of that MB.
25.6.1
Transmit Process
The CPU prepares or changes an MB for transmission by writing the following:
1. Control/status word to hold Tx MB inactive (CODE = 1000)
2. ID word
3. Data bytes
4. Control/status word (active CODE, LENGTH)
NOTE
The first and last steps are mandatory.
0
1010
1010
Transmit a data frame whenever a remote request frame with the same ID is received.
This message buffer participates simultaneously in both the matching and arbitration
processes. The matching process compares the ID of the incoming remote request
frame with the ID of the MB. If a match occurs, this message buffer is allowed to
participate in the current arbitration process and the CODE field is automatically
updated to 1110 to allow the MB to participate in future arbitration runs. When the frame
is eventually transmitted successfully, the code automatically returns to 1010 to restart
the process again.
0
1110
1010
This is an intermediate code that is automatically written to the message buffer as a
result of match to a remote request frame. The data frame will be transmitted
unconditionally once, and then the code will automatically return to 1010. The CPU can
also write this code with the same effect.
Table 25-13. Message Buffer Code for Tx Buffers (continued)
MBn[RTR]
Initial
Tx Code
Code After
Successful
Transmission
Description
Summary of Contents for MCF5253
Page 1: ...Document Number MCF5253RM Rev 1 08 2008 MCF5253 Reference Manual...
Page 26: ...MCF5253 Reference Manual Rev 1 xxvi Freescale Semiconductor...
Page 32: ...MCF5253 Reference Manual Rev 1 xxxii Freescale Semiconductor...
Page 46: ...MCF5253 Introduction MCF5253 Reference Manual Rev 1 1 14 Freescale Semiconductor...
Page 62: ...Signal Description MCF5253 Reference Manual Rev 1 2 16 Freescale Semiconductor...
Page 98: ...Instruction Cache MCF5253 Reference Manual Rev 1 5 10 Freescale Semiconductor...
Page 104: ...Static RAM SRAM MCF5253 Reference Manual Rev 1 6 6 Freescale Semiconductor...
Page 128: ...Synchronous DRAM Controller Module MCF5253 Reference Manual Rev 1 7 24 Freescale Semiconductor...
Page 144: ...Bus Operation MCF5253 Reference Manual Rev 1 8 16 Freescale Semiconductor...
Page 176: ...System Integration Module SIM MCF5253 Reference Manual Rev 1 9 32 Freescale Semiconductor...
Page 198: ...Analog to Digital Converter ADC MCF5253 Reference Manual Rev 1 12 6 Freescale Semiconductor...
Page 246: ...DMA Controller MCF5253 Reference Manual Rev 1 14 18 Freescale Semiconductor...
Page 282: ...UART Modules MCF5253 Reference Manual Rev 1 15 36 Freescale Semiconductor...
Page 344: ...Audio Interface Module AIM MCF5253 Reference Manual Rev 1 17 46 Freescale Semiconductor...
Page 362: ...I2 C Modules MCF5253 Reference Manual Rev 1 18 18 Freescale Semiconductor...
Page 370: ...Boot ROM MCF5253 Reference Manual Rev 1 19 8 Freescale Semiconductor...