
NUC126
Aug. 08, 2018
Page
615
of 943
Rev 1.03
NUC12
6 S
E
RI
E
S
T
E
CH
NI
CA
L R
E
F
E
RE
NCE
MA
NUA
L
SPI Status Register (SPIx_STATUS)
Register
Offset
R/W
Description
Reset Value
SPIx_STATUS
0x14
R/W
SPI Status Register
0x0005_0110
Note:
Not supported in I
2
S mode.
31
30
29
28
27
26
25
24
TXCNT
RXCNT
23
22
21
20
19
18
17
16
TXRXRST
Reserved
TXUFIF
TXTHIF
TXFULL
TXEMPTY
15
14
13
12
11
10
9
8
SPIENSTS
Reserved
RXTOIF
RXOVIF
RXTHIF
RXFULL
RXEMPTY
7
6
5
4
3
2
1
0
SLVURIF
SLVBEIF
Reserved
SSLINE
SSINAIF
SSACTIF
UNITIF
BUSY
Bits
Description
[31:28]
TXCNT
Transmit FIFO Data Count (Read Only)
This bit field indicates the valid data count of transmit FIFO buffer.
[27:24]
RXCNT
Receive FIFO Data Count (Read Only)
This bit field indicates the valid data count of receive FIFO buffer.
[23]
TXRXRST
TX or RX Reset Status (Read Only)
0 = The reset function of TXRST or RXRST is done.
1 = Doing the reset function of TXRST or RXRST.
Note:
Both the reset operations of TXRST and RXRST need 3 system clock cycles + 2
peripheral clock cycles. User can check the status of this bit to monitor the reset function is
doing or done.
[22:20]
Reserved
Reserved.
[19]
TXUFIF
TX Underflow Interrupt Flag
When the TX underflow event occurs, this bit will be set to 1, the state of data output pin
depends on the setting of TXUFPOL.
0 = No effect.
1 = No data in Transmit FIFO and TX shift register when the slave selection signal is
active.
Note1:
This bit will be cleared by writing 1 to it.
Note2:
If reset slave’s transmission circuit when slave selection signal is active, this flag
will be set to 1 after 2 peripheral clock cycles + 3 system clock cycles since the reset
operation is done.
[18]
TXTHIF
Transmit FIFO Threshold Interrupt Flag (Read Only)
0 = The valid data count within the transmit FIFO buffer is larger than the setting value of
TXTH.
1 = The valid data count within the transmit FIFO buffer is less than or equal to the setting
value of TXTH.
[17]
TXFULL
Transmit FIFO Buffer Full Indicator (Read Only)
0 = Transmit FIFO buffer is not full.