
Rev. 1.00
464 of 576
January 28, 2022
32-Bit Arm
®
Cortex
®
-M0+ MCU
HT32F54231/HT32F54241/HT32F54243/HT32F54253
21 Serial Peripheral Interface (SPI)
SPI Status Register – SPISR
This register contains the relevant SPI status.
Offset:
0x014
Reset value: 0x0000_0003
31
30
29
28
27
26
25
24
Reserved
Type/Reset
23
22
21
20
19
18
17
16
Reserved
Type/Reset
15
14
13
12
11
10
9
8
Reserved
BUSY
Type/Reset
RO 0
7
6
5
4
3
2
1
0
TO
SA
MF
RO
WC
RXBNE
TXE
TXBE
Type/Reset WC 0 WC 0 WC 0 WC 0 WC 0 RO 0 RO 1 RO 1
Bits
Field
Descriptions
[8]
BUSY
SPI Busy flag
0: SPI not busy
1: SPI busy
In the master mode, this flag is reset when the TX buffer and TX shift register are
both empty and is set when the TX buffer or the TX shift register are not empty.
In the slave mode, this flag is set when SEL changes to an active level and is reset
when SEL changes to an inactive level.
[7]
TO
Time Out flag
0: No RX FIFO time out
1: RX FIFO time out has occurred
Once the time out counter value is equal to the TOC field setting in the SPIFTOCR
register, the time out flag will be set and an interrupt will be generated if the TOIEN
bit in the SPIIER register is enabled. This bit is cleared by writing 1.
Note: This Time Out flag function is only available in the SPI FIFO mode.
[6]
SA
Slave Abort flag
0: No slave abort
1: Slave abort has occurred
This bit is set by hardware and cleared by writing 1.
[5]
MF
Mode Fault flag
0: No mode fault
1: Mode fault has occurred
This bit is set by hardware and cleared by writing 1.
[4]
RO
Read Overrun flag
0: No read overrun
1: Read overrun has occurred
This bit is set by hardware and cleared by writing 1.
[3]
WC
Write Collision flag
0: No write collision
1: Write collision has occurred
This bit is set by hardware and cleared by writing 1.