2018 Microchip Technology Inc. DS70005340A-page 97
CAN FD Protocol Module
Figure 10-12 illustrates the status of FIFO 2 after one more message is received: MSG16. All
status flags are set because the FIFO is full. The user address and the FIFO index point to MO1.
Figure 10-12: FIFO 2 – FIFO Full
Figure 10-13 illustrates the status of FIFO 2 after one more message is received. Since FIFO 2
is already full, an overflow occurs. The message is discarded and RXOVIF is set. The user
address and FIFO index has not changed.
Figure 10-13: FIFO 2 – FIFO Overflow
Figure 10-14 illustrates the status of FIFO 2 after the application cleared RXOVIF and read two
more messages. RFFIF is clear because the FIFO is not full anymore. The user address points
to MO3. The FIFO index has not changed.
Figure 10-14: FIFO 2 – Two More Messages Read
MO0/MSG16
MO1/MSG1
MO2/MSG2
MO15/MSG15
C1FIFOUA2L = 0x384
C1FIFOSTA2:
FIFOCIx = 1
RFFIF = 1
RFHIF = 1
RFNIF = 1
RXOVIF = 0
MO0/MSG16
MO1/MSG1
MO2/MSG2
MO15/MSG15
C1FIFOUA2L = 0x384
C1FIFOSTA2:
FIFOCIx = 1
RFFIF = 1
RFHIF = 1
RFNIF = 1
RXOVIF = 1
MO0/MSG16
MO1
MO2
MO15/MSG15
C1FIFOUA2L = 0x41C
C1FIFOSTA2:
FIFOCIx = 1
RFFIF = 0
RFHIF = 1
RFNIF = 1
RXOVIF = 0
MO3/MSG3
MO4/MSG4