
FlexRay Communication Controller (FlexRAY)
PXN20 Microcontroller Reference Manual, Rev. 1
26-128
Freescale Semiconductor
26.6.9.5
FIFO Almost-Full Interrupt Generation
If the fifo fill level FLA (FLB) is updated after a frame reception and exceeds the FIFO watermark level
WM, i.e. FLA>WM
A
(FLB>WM
B
), then the FIFO almost-full interrupt flag GIFER[FAFAIF]
(GIFER[FAFBIF]) is asserted.If the periodic timer expires, and FIFOA (FIFOB) is not empty, i.e. FLA>0
(FLB>0), then the FIFO almost-full interrupt flag GIFER[FAFAIF] (GIFER[FAFBIF]) is asserted.
26.6.9.6
FIFO Overflow Error Generation
If the FIFOA (FIFOB) is full, i.e. FLA=FIFO_DEPTH
A
(FLB=FIFO_DEPTH
B
) and the conditions for a
FIFO reception as described in
Section 26.6.9.4, FIFO Reception,
are fulfilled, then the fifo overflow error
flag CHIERFR[FOVA_EF] (CHIERFR[FOVB_EF]) is asserted.
26.6.9.7
FIFO Message Access
The FIFOA (FIFOB) contains valid messages if the FIFO fill level FLA (FLB) is greater than 0. The
Receive FIFO A Read Index Register (RFARIR)
(
Receive FIFO B Read Index Register (RFBRIR)
pointing to a message buffer with valid content and the oldest frames stored in the FIFO.
If the FIFO fill level FLA (FLB) is 0, than the FIFOA (FIFOB) contains no valid messages and the
FIFO A Read Index Register (RFARIR)
Receive FIFO B Read Index Register (RFBRIR)
) pointing to a
message buffer with invalid content. In this case the application must not read data from the FIFO.
To access the oldest message in the FIFOA (FIFOB), the application first reads the read index RDIDX out
of the
Receive FIFO A Read Index Register (RFARIR)
Receive FIFO B Read Index Register (RFBRIR)
).
This read index points to the message buffer header field of the oldest message buffer that contains valid
received message data. The application can access the message data as described in
When the application has read the message buffer data and status information, it can update
Section 26.6.9.8, FIFO Update.
26.6.9.8
FIFO Update
The application updates the FIFOA (FIFOB) by writing a pop count value
pc
different from 0 to the
PCA (PCB) field in the
Receive FIFO Fill Level and POP Count Register (RFFLPCR)
.
As a result of the this operation, the controller removes the oldest
pc
entries from FIFOA (FIFOB).
If the specified pop count value
pc
is greater than the current fill level
fl
provided in FLA (FAB) field, then
only
fl
entries are removed from the FIFOA (FIFOB), the remaining
fl-pc
requested pop operations are
discarded without any notification. In this case FIFOA (FIFOB) is empty after the update operation.
Receive FIFO A Read Index Register (RFARIR)
) is incremented by the number of removed items. If the read index reaches the top of
the FIFO, it wraps around to the FIFO start index defined in
Receive FIFO Start Index Register (RFSIR)
automatically.
Summary of Contents for PXN2020
Page 1: ...PXN20 Microcontroller Reference Manual Devices Supported PXN2020 PXN2120 PXN20RM Rev 1 06 2011...
Page 42: ...PXN20 Microcontroller Reference Manual Rev 1 lxiv Freescale Semiconductor...
Page 64: ...Introduction PXN20 Microcontroller Reference Manual Rev 1 1 22 Freescale Semiconductor...
Page 112: ...Signal Description PXN20 Microcontroller Reference Manual Rev 1 3 44 Freescale Semiconductor...
Page 118: ...Resets PXN20 Microcontroller Reference Manual Rev 1 4 6 Freescale Semiconductor...
Page 372: ...e200z6 Core Z6 PXN20 Microcontroller Reference Manual Rev 1 13 8 Freescale Semiconductor...
Page 412: ...e200z0 Core Z0 PXN20 Microcontroller Reference Manual Rev 1 14 14 Freescale Semiconductor...
Page 821: ...Media Local Bus MLB PXN20 Microcontroller Reference Manual Rev 1 Freescale Semiconductor 27 49...
Page 822: ...Media Local Bus MLB PXN20 Microcontroller Reference Manual Rev 1 27 50 Freescale Semiconductor...
Page 1376: ...Memory Map PXN20 Microcontroller Reference Manual Rev 1 A 118 Freescale Semiconductor...