|
MC9S12XF512_1 Datasheet, PDF (586/1306 Pages) Freescale Semiconductor, Inc – S12X Microcontrollers | |||
|
◁ |
Chapter 13 FlexRay Communication Controller (FLEXRAY)
13.6.9 Receive FIFO
This section provides a detailed description of the two receive FIFOs.
13.6.9.1 Overview
The receive FIFOs implement the queued receive buffer deï¬ned by the FlexRay Communications System
Protocol Speciï¬cation, Version 2.1 Rev A. One receive FIFO is assigned to channel A, the other receive
FIFO is assigned to channel B. Both FIFOs work completely independent from each other.
The message buffer structure of each FIFO is described in Section 13.6.3.3, âReceive FIFOâ. The area in
the FRM for each of the two receive FIFOs is characterized by:
⢠The index of the ï¬rst FIFO entry given by Receive FIFO Start Index Register (RFSIR)
⢠The number of FIFO entries and the length of each FIFO entry as given by Receive FIFO Depth
and Size Register (RFDSR)
13.6.9.2 Receive FIFO Conï¬guration
The receive FIFO control and conï¬guration data are given in Section 13.6.3.7, âReceive FIFO Control and
Conï¬guration Dataâ. The conï¬guration of the receive FIFOs consists of two steps.
The ï¬rst step is the allocation of the required amount of FRM for the FlexRay window. This includes the
allocation of the message buffer header area and the allocation of the message buffer data ï¬elds. For more
details see Section 13.6.4, âFlexRay Memory Layoutâ.
The second step is the programming of the conï¬guration data register while the PE is in POC:conï¬g.
The following steps conï¬gure the layout of the FIFO.
⢠The number of the ï¬rst message buffer header index that belongs to the FIFO is written into the
Receive FIFO Start Index Register (RFSIR).
⢠The depth of the FIFO is written into the FIFO_DEPTH ï¬eld in the Receive FIFO Depth and Size
Register (RFDSR).
⢠The length of the message buffer data ï¬eld for the FIFO is written into the ENTRY_SIZE ï¬eld in
the Receive FIFO Depth and Size Register (RFDSR).
NOTE
To ensure, that the read index RDIDX always points to a message buffer that
contains valid data, the receive FIFO must have at least 2 entries.
The FIFO ï¬lters are conï¬gured through the ï¬fo ï¬lter registers.
13.6.9.3 Receive FIFO Reception
The frame reception to the receive FIFO is enabled, if for a certain slots no message buffer is assigned or
subscribed. In this case the FIFO ï¬lter path shown in Figure 13-132 is activated.
When the receive FIFO ï¬lter path indicates that the received frame must be appended to the FIFO, the
FlexRay block writes the received frame header and slot status into the message buffer header ï¬eld
MC9S12XF - Family Reference Manual, Rev.1.19
586
Freescale Semiconductor
|
▷ |