ADuCM320 Hardware Reference Manual
UG-498
Rev. C | Page 133 of 196
Bits
Bit Name
Description
Reset
Access
13
CSFLG
Detected a falling edge on CS, in CONT mode. This bit causes an interrupt.
This can be used to identify the start of an SPI data frame.
0x0
RC
0: cleared to 0 when the status register is read.
1: set to 1 when there was a falling edge in CS line, when the device was in
master mode, continuous transfer, high frequency mode and CSIRQ_EN
was asserted.
12
CSERR
Detected a CS error condition.
0x0
RC
0: cleared to 0 when the status register is read.
1: set to 1 when the CS line was de-asserted abruptly, even before the full
byte of data was transmitted completely. This bit causes an interrupt.
11
RXS
SPI Rx FIFO excess bytes present.
0x0
R
0: cleared to 0 when the number of bytes in the FIFO is equal or less than
the number in SPI1CON[15:14].
1: set to 1 when there are more bytes in the Rx FIFO than indicated in the
MOD bits in SPI1CON.
[10:8]
RXFSTA
SPI Rx FIFO status.
0x0
R
000: Rx FIFO empty
001: 1 valid byte in FIFO
010: 2 valid bytes in the FIFO
011: 3 valid bytes in the FIFO
100: 4 valid bytes in the FIFO
7
RXOF
SPI Rx FIFO overflow.
0x0
RC
0: cleared to 0 when the SPI1STA register is read.
1: set to 1 when the Rx FIFO was already full when new data was loaded to the
FIFO. This bit generates an interrupt except when RFLUSH is set in SPI1CON.
6
RX
SPI Rx IRQ. Not available in DMA mode. Set when a receive interrupt occurs.
0x0
RC
0: cleared to 0 when the SPI1STA register is read.
1: set to 1 when TIM in SPI1CON is cleared and the required number of
bytes have been received.
5
TX
SPI Tx IRQ. Status bit. Not available in DMA mode.
0x0
RC
0: CLR. Cleared to 0 when the SPI1STA register is read.
1: SET. Set to 1 when a transmit interrupt occurs. This bit is set when TIM in
SPI1CON is set and the required number of bytes have been transmitted.
4
TXUR
SPI Tx FIFO underflow.
0x0
RC
0: cleared to 0 when the SPI1STA register is read.
1: set to 1 when a transmit is initiated without any valid data in the Tx FIFO.
This bit generates an interrupt except when TFLUSH is set in SPI1CON.
[3:1]
TXFSTA
SPI Tx FIFO status.
0x0
R
000: Tx FIFO empty
001: 1 valid byte in FIFO
010: 2 valid bytes in FIFO
011: 3 valid bytes in FIFO
100: 4 valid bytes in FIFO
0
IRQ
SPI interrupt status.
0x0
RC
0: cleared to 0 after reading SPI1STA.
1: set to 1 when an SPI based interrupt occurs.