Users Manual

Table Of Contents
R01UH0823EJ0110 Rev.1.10 Page 1347 of 1852
Nov 30, 2020
RX23W Group 38. Serial Peripheral Interface (RSPIa)
38.2.4 RSPI Status Register (SPSR)
Note 1. Only 0 can be written to clear the flag after reading 1.
Note 2. The write value should be 1.
OVRF Flag (Overrun Error Flag)
The OVRF flag indicates the occurrence of an overrun error. In master mode (when the SPCR.MSTR bit is 1) and when
the RSPCK clock auto-stop function is enabled (the SPCR2.SCKASE bit is 1), an overrun error does not occur;
accordingly this flag does not become 1. For details, refer to
section 38.3.8.1, Overrun Error.
[Setting condition]
When the next serial transfer ends while the SPCR.TXMD bit is 0 and the receive buffer is full.
[Clearing condition]
When SPSR is read while the OVRF flag is 1, and then 0 is written to the OVRF flag.
IDLNF Flag (RSPI Idle Flag)
The IDLNF flag indicates the transfer status of the RSPI.
[Setting condition]
Master mode
Condition 1 and condition 2 are not satisfied in master mode under the [Clearing condition] below.
Slave mode
The SPCR.SPE bit is 1 (enables the RSPI function)
[Clearing condition]
Master mode
The following 1 is satisfied (condition 1) or all of the following 2 to 4 are satisfied (condition 2).
1. The SPCR.SPE bit is 0 (disables the RSPI function)
2. The transmit buffer (SPTX) is empty (data for the next transfer is not set)
3. The SPSSR.SPCP[2:0] bits are 000b (beginning of sequence control)
Address(es): RSPI0.SPSR 0008 8383h
b7 b6 b5 b4 b3 b2 b1 b0
SPRF SPTEF PERF MODF IDLNF OVRF
Value after reset:
00100000
Bit Symbol Bit Name Description R/W
b0 OVRF Overrun Error Flag 0: No overrun error occurs
1: An overrun error occurs
R/(W)
*
1
b1 IDLNF RSPI Idle Flag 0: RSPI is in the idle state
1: RSPI is in the transfer state
R
b2 MODF Mode Fault Error Flag 0: No mode fault error occurs
1: A mode fault error occurs
R/(W)
*
1
b3 PERF Parity Error Flag 0: No parity error occurs
1: A parity error occurs
R/(W)
*
1
b4 Reserved This bit is read as 0. The write value should be 0. R/W
b5 SPTEF Transmit Buffer Empty Flag 0: Transmit buffer has valid data
1: Transmit buffer has no valid data
R*
2
b6 Reserved This bit is read as 0. The write value should be 0. R/W
b7 SPRF Receive Buffer Full Flag 0: Receive buffer has no valid data
1: Receive buffer has valid data
R*
2