UM10850
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2016. All rights reserved.
User manual
Rev. 2.4 — 13 September 2016
351 of 464
NXP Semiconductors
UM10850
Chapter 24: LPC5410x System FIFO for Serial Peripherals
24.5.17 Interrupt status register for SPI0 and SPI1
The read-only INTSTATSPI register provides information about a peripheral being
serviced by the System FIFO that may be needed by an interrupt service routine. Each
SPI has a dedicated INTSTATSPI register.
24.5.18 Control read and set register for SPIn
The CTLSETSPI register determines which interrupts are passed on to the system
interrupt controller. Writing a 1 to a defined bit causes that bit to be set, enabling the
related interrupt. Writing 0 has no effect. When read, the state of the interrupt enables is
provided. Each SPI has a dedicated CTLSETSPI register.
Table 402. Address map INTSTATSPI[0:1] registers
Peripheral
Base address
Offset
Increment
Dimension
VFIFO
0x1C03 8000
[0x2008:0x2108]
0x100
2
Table 403. Interrupt status register for SPIn (INTSTATSPI[0:1], address offset [0x2008:0x2108]) bit description
Bit
Symbol
Description
Reset Value
0
RXTH
Receive FIFO Threshold. When 1, the receive FIFO threshold has been reached, and
the related interrupt is enabled.
0
1
TXTH
Transmit FIFO Threshold. When 1, the transmit FIFO threshold has been reached, and
the related interrupt is enabled.
0
3:2
-
Reserved. Read value is undefined, only zero should be written.
NA
4
RX
TIMEOUT
Receive Timeout. When 1, the receive FIFO has timed out, based on the timeout
configuration in the CFGSPI register, and the related interrupt is enabled.
0
6:5
-
Reserved. Read value is undefined, only zero should be written.
NA
7
BUSERR
Bus Error. This is simply a copy of the same bit in the STATSPI register. The bus error
interrupt is always enabled.
0
8
RXEMPTY
Receive FIFO Empty. This is simply a copy of the same bit in the STATSPI register.
1
9
TXEMPTY
Transmit FIFO Empty. This is simply a copy of the same bit in the STATSPI register.
1
15:10 -
Reserved. Read value is undefined, only zero should be written.
NA
23:16 RXCOUNT
Receive FIFO Count. This is simply a copy of the same field in the STATSPI register,
included here so an ISR can read all needed status information in one read.
0
31:24 TXCOUNT
Transmit FIFO Available. This is simply a copy of the same field in the STATSPI register,
included here so an ISR can read all needed status information in one read.
0
Table 404. Address map CTLSETSPI[0:1] registers
Peripheral
Base address
Offset
Increment
Dimension
VFIFO
0x1C03 8000
[0x200C:0x210C]
0x100
2
Table 405. Control read and set register for SPIn (CTLSETSPI[0:1], address offset [0x200C:0x210C]) bit description
Bit
Symbol
Description
Reset Value
0
RXTHINTEN
Receive FIFO Threshold Interrupt Enable.
0
1
TXTHINTEN
Transmit FIFO Threshold Interrupt Enable.
0
3:2
-
Reserved. Read value is undefined, only zero should be written.
NA
4
RXTIMEOUT
INTEN
Receive FIFO Timeout Interrupt Enable. When enabled, this also enables the timeout
for this SPI. Writing a 1 to this bit resets the SPI timeout logic.
0
7:5
-
Reserved. Read value is undefined, only zero should be written.
NA