![NXP Semiconductors MKL27Z128VFM4 Reference Manual Download Page 586](http://html1.mh-extra.com/html/nxp-semiconductors/mkl27z128vfm4/mkl27z128vfm4_reference-manual_1721847586.webp)
SPIx_CI field descriptions (continued)
Field
Description
0
Transmit FIFO overflow condition has not occurred
1
Transmit FIFO overflow condition occurred
4
RXFOF
Receive FIFO overflow flag
This flag indicates that a receive FIFO overflow condition has occurred.
0
Receive FIFO overflow condition has not occurred
1
Receive FIFO overflow condition occurred
3
TNEAREFCI
Transmit FIFO nearly empty flag clear interrupt
Writing 1 to this bit clears the TNEAREF interrupt provided that C3[3] is set.
2
RNFULLFCI
Receive FIFO nearly full flag clear interrupt
Writing 1 to this bit clears the RNFULLF interrupt provided that C3[3] is set.
1
SPTEFCI
Transmit FIFO empty flag clear interrupt
Writing 1 to this bit clears the SPTEF interrupt provided that C3[3] is set.
0
SPRFCI
Receive FIFO full flag clear interrupt
Writing 1 to this bit clears the SPRF interrupt provided that C3[3] is set.
35.4.10 SPI control register 3 (SPIx_C3)
This register introduces a 64-bit FIFO function on both transmit and receive buffers. It
applies only for an instance of the SPI module that supports the FIFO feature.
FIFO mode is enabled by setting the FIFOMODE bit to 1. A write to this register occurs
only when it sets the FIFOMODE bit to 1.
Using this FIFO feature allows the SPI to provide high speed transfers of large amounts
of data without consuming large amounts of the CPU bandwidth.
Enabling this FIFO function affects the behavior of some of the read/write buffer flags in
the S register as follows:
• When the receive FIFO has data in it, S[RFIFOEF] is 0. As a result:
• If C2[RXDMAE] is 1, RFIFOEF_b generates a receive DMA request. The DMA
request remains active until RFIFOEF is set to 1, indicating the receive buffer is
empty.
• If C2[RXDMAE] is 0 and C1[SPIE] is 1, SPRF interrupts the CPU.
• When the transmit FIFO is not full, S[TXFULLF] is 0. As a result:
• If C2[TXDMAE] is 1, TXFULLF_b generates a transmit DMA request. The
DMA request remains active until TXFULLF is set to 1, indicating the transmit
FIFO is full.
• If C2[TXDMAE] is 0 and C1[SPTIE] is 1, SPTEF interrupts the CPU.
Memory map/register definition
KL27 Sub-Family Reference Manual , Rev. 5, 01/2016
586
Freescale Semiconductor, Inc.