
Rev. 1.00
467 of 576
January 28, 2022
32-Bit Arm
®
Cortex
®
-M0+ MCU
HT32F54231/HT32F54241/HT32F54243/HT32F54253
21 Serial Peripheral Interface (SPI)
21 Serial Peripheral Interface (SPI)
Bits
Field
Descriptions
[3:0]
TXFS
TX FIFO Status
0000: TX FIFO empty
0001: TX FIFO contains 1 data
…
1000: TX FIFO contains 8 data
Others: Reserved
SPI FIFO Time Out Counter Register – SPIFTOCR
This register stores the SPI RX FIFO time out counter value.
Offset:
0x020
Reset value: 0x0000_0000
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
TOC
Type/Reset RW 0 RW 0 RW 0 RW 0 RW 0 RW 0 RW 0 RW 0
7
6
5
4
3
2
1
0
TOC
Type/Reset RW 0 RW 0 RW 0 RW 0 RW 0 RW 0 RW 0 RW 0
Bits
Field
Descriptions
[15:0]
TOC
Time Out Counter Compare Value
The time out counter starts to count from 0 after the SPI RX FIFO receives a data,
and the counter value is reset once the data is read from the SPIDR register by
software or another new data is received. If the FIFO does not receive new data
or the software does not read data from the SPIDR register the time out counter
value will continuously increase. When the time out counter value is equal to the
TOC setting value, the TO flag in the SPISR register will be set and an interrupt will
be generated if the TOIEN bit in the SPIIER register is set. The time out counter
will be stopped when the RX FIFO is empty. The SPI FIFO time out function can
be disabled by setting the TOC field to zero. The time out counter is driven by the
system APB clock, named f
PCLK
.