
Rev. 1.00
439 of 486
July 31, 2018
32-Bit Arm
®
Cortex
®
-M0+ MCU
HT32F50231/HT32F50241
20 Serial Peripheral Interface (SPI)
SPI FIFO Time Out Counter Register – SPIFTOCR
This register stores the SPI RX FIFO timeout 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
The timeout counter starts to count from 0 after the SPI RX FIFO receives a data,
and reset the counter value 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 timeout counter value
will continuously increase. When the timeout 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 SPIIEN register is set. The timeout counter will be
stopped when the RX FIFO is empty. The SPI FIFO timeout function can be disabled
by setting the TOC field to zero. The timeout counter is driven by the system APB
clock, named f
PCLK
.