Spi Clear Interrupt Register (Spix_Ci) - NXP Semiconductors MKL27Z128VFM4 Reference Manual

Table of Contents

Advertisement

35.4.9 SPI clear interrupt register (SPIx_CI)

This register applies only for an instance of the SPI module that supports the FIFO
feature.
The register has four bits dedicated to clearing the interrupts. Writing 1 to these bits
clears the corresponding interrupts if the INTCLR bit in the C3 register is 1. Reading
these bits always returns 0.
This register also has two read-only bits to indicate the transmit FIFO and receive FIFO
overrun conditions. When the receive FIFO is full and data is received, RXFOF is set.
Similarily, when the transmit FIFO is full and a write to the data register occurs, TXFOF
is set. These flags are cleared when the CI register is read while the flags are set.
The register has two more read-only bits to indicate the error flags. These flags are set
when, due to some spurious reason, entries in the FIFO total more than 64 bits of data. At
this point, all the flags in the status register are reset, and entries in the FIFO are flushed
with the corresponding error flags set. These flags are cleared when the CI register is read
while the flags are set.
Address: Base address + Ah offset
Bit
7
Read
TXFERR
Write
Reset
0
Field
7
Transmit FIFO error flag
TXFERR
This flag indicates that a transmit FIFO error occurred because entries in the FIFO total more than 64 bits
of data.
0
No transmit FIFO error occurred
1
A transmit FIFO error occurred
6
Receive FIFO error flag
RXFERR
This flag indicates that a receive FIFO error occurred because entries in the FIFO total more than 64 bits
of data.
0
No receive FIFO error occurred
1
A receive FIFO error occurred
5
Transmit FIFO overflow flag
TXFOF
This flag indicates that a transmit FIFO overflow condition has occurred.
Freescale Semiconductor, Inc.
6
5
RXFERR
TXFOF
0
0
SPIx_CI field descriptions
Table continues on the next page...
KL27 Sub-Family Reference Manual , Rev. 5, 01/2016
Chapter 35 Serial Peripheral Interface (SPI)
4
3
RXFOF
0
TNEAREFCI
RNFULLFCI
0
0
Description
2
1
0
0
SPTEFCI
SPRFCI
0
0
0
0
0
585

Advertisement

Table of Contents
loading

Table of Contents