Spi Control Register 3 (Spix_C3) - NXP Semiconductors MKL27Z128VFM4 Reference Manual

Table of Contents

Advertisement

Memory map/register definition
Field
0
Transmit FIFO overflow condition has not occurred
1
Transmit FIFO overflow condition occurred
4
Receive FIFO overflow flag
RXFOF
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
Transmit FIFO nearly empty flag clear interrupt
TNEAREFCI
Writing 1 to this bit clears the TNEAREF interrupt provided that C3[3] is set.
2
Receive FIFO nearly full flag clear interrupt
RNFULLFCI
Writing 1 to this bit clears the RNFULLF interrupt provided that C3[3] is set.
1
Transmit FIFO empty flag clear interrupt
SPTEFCI
Writing 1 to this bit clears the SPTEF interrupt provided that C3[3] is set.
0
Receive FIFO full flag clear interrupt
SPRFCI
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.
586
SPIx_CI field descriptions (continued)
KL27 Sub-Family Reference Manual , Rev. 5, 01/2016
Description
Freescale Semiconductor, Inc.

Advertisement

Table of Contents
loading

Table of Contents