English
Language : 

PXR40RM Datasheet, PDF (663/1434 Pages) Freescale Semiconductor, Inc – PXR40 Microcontroller
FlexRay Communication Controller (FLEXRAY)
22.6.3.2 Receive Shadow Buffers
The receive shadow buffers are required for the frame reception process for individual message buffers.
The controller provides four receive shadow buffers, one receive shadow buffer per channel and per
message buffer segment.
Each receive shadow buffer consists of two parts, the physical message buffer located in the flexray
memory and the receive shadow buffer control registers located in dedicated registers. The structure of a
receive shadow buffer is shown in Figure 22-105. The four internal shadow buffer control registers can be
accessed by the Receive Shadow Buffer Index Register (RSBIR).
The connection between the receive shadow buffer control register and the physical message buffer for the
selected receive shadow buffer is established by the receive shadow buffer index field RSBIDX in the
Receive Shadow Buffer Index Register (RSBIR). The start address SADR_MBHF of the related message
buffer header field in the flexray memory is determined according to Equation 22-4.
SADR_MBHF = (RSBIR[RSBIDX] * 10) + SMBA
Eqn. 22-4
The length required for the message buffer data field depends on the message buffer segment that the
receive shadow buffer is assigned to. For the receive shadow buffers assigned to the first message buffer
segment, the length must be the same as for the individual message buffers assigned to the first message
buffer segment. For the receive shadow buffers assigned to the second message buffer segment, the length
must be the same as for the individual message buffers assigned to the second message buffer segment.
The receive shadow buffer assignment is described in Receive Shadow Buffer Index Register (RSBIR).
(min) MBDSR[MBSEG1DS] * 2 bytes / MBDSR[MBSEG2DS] * 2 bytes
SADR_MBDF
Frame Data
Message Buffer Data Field
SADR_MBHF
Frame Header
Data Field Offset
Message Buffer Header Field
Slot Status
RSBIDX[0]
RSBIDX[1]
RSBIDX[2]
RSBIDX[3]
Receive Shadow Buffer Control Register
Figure 22-105. Receive Shadow Buffer Structure
22.6.3.3 Receive FIFO
The receive FIFO implements a frame reception system based on the FIFO concept. The controller
provides two independent receive FIFOs, one per channel.
Freescale Semiconductor
PXR40 Microcontroller Reference Manual, Rev. 1
22-79