English
Language : 

MFR4300 Datasheet, PDF (157/266 Pages) Freescale Semiconductor, Inc – FlexRay Communication Controllers
FlexRay Module (FLEXRAYV2)
State
Idle, HLck
CCMa
Table 3-94. Single Transmit Message Buffer Transition Priorities
Priorities
MA > SA
TX > STS
TX > DSS
Description
module internal
Message Available > Slot Assigned
Transmission Slot Start > Static Slot Start
Transmission Slot Start > Dynamic Slot Start
3.4.6.2.4 Transmit Message Setup
To transmit a message over the FlexRay bus, the application writes the message data into the message
buffer data field and sets the commit bit CMT in the Message Buffer Configuration, Control, Status
Registers (MBCCSRn). The physical access to the message buffer data field is described in
Section 3.4.3.1, “Individual Message Buffers”.
As indicated by Table 3-91, the application shall write to the message buffer data field and change the
commit bit CMT only if the transmit message buffer is in one of the states HDis, HDisLck, HLck,
HLckCCSa, HLckCCMa, or HLckCCMa. A message buffer can be identified for message transmission
only if it is the Idle state. The application can change the state of a message buffer if it issues the
appropriate commands given in Table 3-92. The state change is indicated through the MBCCSRn.EDS and
MBCCSRn.LCKS status bits.
If the transmit message buffer enters one of the states HDis, HDisLck, HLck, HLckCCSa, HLckCCMa,
or HLckCCMa the MBCCSRn.DVAL flag is negated.
3.4.6.2.5 Message Transmission
As a result of the message buffer search described in Section 3.4.7, “Individual Message Buffer Search”,
the FlexRay module triggers the message available transition MA for up to two transmit message buffers.
This changes the message buffer state from Idle to CCMa and the message buffers can be used for message
transmission in the next slot.
The FlexRay module transmits a message from a message buffer if both of the following two conditions
are fulfilled at the start of the transmission slot:
1. the message buffer is in the message available state CCMa
2. the message data are still valid, i.e. MBCCSRn.CMT = ‘1’
In this case, the FlexRay module triggers the TX transition and changes the message buffer state to CCTx.
A transmit message buffer timing and state change diagram for message transmission is given in
Figure 3-112. In this example, the message buffer with message buffer number n is Idle at the start of the
search slot, matches the slot and cycle number of the next slot, and message buffer data are valid, i.e.
MBCCSRn.CMT = ‘1’.
MFR4300 Data Sheet, Rev. 1
Freescale Semiconductor
157