21.3.3 SPIx Status Register

Note:
  1. SPITUR is cleared when SPIEN = 0. When IGNTUR = 1, SPITUR provides dynamic status of the Transmit Underrun condition but does not stop RX/TX operation and does not need to be cleared by software.

Legend: C = Clearable bit, HS = Hardware Settable bit, HSC = Hardware Settable/Clearable bit

Name: SPIxSTAT
Offset: 0x1808, 0x1828, 0x1848, 0x1868

Bit 3130292827262524 
      RXELM[2:0] 
Access R/HSR/HSR/HS 
Reset 000 
Bit 2322212019181716 
      TXELM[2:0] 
Access R/HSCR/HSCR/HSC 
Reset 000 
Bit 15141312111098 
    FRMERRBUSY  SPITUR 
Access R/C/HSR/HSCR/HSC 
Reset 000 
Bit 76543210 
 SRMTSPIROVSPIRBE SPITBE SPITBFSPIRBF 
Access R/HSCR/C/HSR/HSCR/HSCR/HSCR/HSC 
Reset 001100 

Bits 26:24 – RXELM[2:0]  Receive Buffer Element Count bits (valid in Enhanced Buffer mode)

Bits 18:16 – TXELM[2:0]  Transmit Buffer Element Count bits (valid in Enhanced Buffer mode)

Bit 12 – FRMERR SPIx Frame Error Status bit

ValueDescription
1

Frame error is detected.

0

No frame error is detected.

Bit 11 – BUSY SPIx Activity Status bit

ValueDescription
1

Module is currently busy with some transactions.

0

No ongoing transactions (at time of read)

Bit 8 – SPITUR  SPIx Transmit Underrun Status bit(1)

ValueDescription
1

Transmit buffer has encountered a Transmit Underrun condition.

0

Transmit buffer does not have a Transmit Underrun condition.

Bit 7 – SRMT Shift Register Empty Status bit

ValueDescription
1

No current or pending transactions (i.e., neither SPIxTXB or SPIxTXSR contains data to transmit)

0

Current or pending transactions

Bit 6 – SPIROV SPIx Receive Overflow Status bit

ValueDescription
1

A new byte/half-word/word has been completely received when the SPIxRXB was full.

0

No overflow

Bit 5 – SPIRBE SPIx RX Buffer Empty Status bit

Standard Buffer Mode:

Automatically set in hardware when SPIxBUF is read from, reading SPIxRXB. Automatically cleared in hardware when SPIx transfers data from SPIxRXSR to SPIxRXB.

Enhanced Buffer Mode:

Indicates RXELM[2:0] = 00.

ValueDescription
1

RX buffer is empty,

0

RX buffer is not empty,

Bit 3 – SPITBE SPIx Transmit Buffer Empty Status bit

Standard Buffer Mode:

Automatically set in hardware when SPIx transfers data from SPIxTXB to SPIxTXSR. Automatically cleared in hardware when SPIxBUF is written, loading SPIxTXB.

Enhanced Buffer Mode:

Indicates TXELM[2:0] = 00.

ValueDescription
1

SPIxTXB is empty.

0

SPIxTXB is not empty.

Bit 1 – SPITBF SPIx Transmit Buffer Full Status bit

Standard Buffer Mode:

Automatically set in hardware when SPIxBUF is written, loading SPIxTXB. Automatically cleared in hardware when SPIx transfers data from SPIxTXB to SPIxTXSR.

Enhanced Buffer Mode:

Indicates TXELM[2:0] = 11.

ValueDescription
1

SPIxTXB is full.

0

SPIxTXB not full.

Bit 0 – SPIRBF SPIx Receive Buffer Full Status bit

Standard Buffer Mode:

Automatically set in hardware when SPIx transfers data from SPIxRXSR to SPIxRXB. Automatically cleared in hardware when SPIxBUF is read from, reading SPIxRXB.

Enhanced Buffer Mode:

Indicates RXELM[2:0] = 11.

ValueDescription
1

SPIxRXB is full.

0

SPIxRXB is not full.