R01UH0823EJ0100 Rev.1.00
Page 1353 of 1823
Jul 31, 2019
RX23W Group
38. Serial Peripheral Interface (RSPIa)
38.2.13
RSPI Control Register 2 (SPCR2)
Do not change the SPPE, SPOE, and SCKASE bits in the SPCR2 register while the SPCR.SPE bit is 1.
The SPPE bit enables or disables the parity function.
The parity bit is added to transmit data and parity checking is performed for receive data when the SPCR.TXMD bit is 0
and the SPCR2.SPPE bit is 1.
The parity bit is added to transmit data but parity checking is not performed for receive data when the SPCR.TXMD bit
is 1 and the SPCR2.SPPE bit is 1.
The SPOE bit specifies odd or even parity.
When even parity is set, parity bit addition is performed so that the total number of 1-bits in the transmit/receive
character plus the parity bit is even. Similarly, when odd parity is set, parity bit addition is performed so that the total
number of 1-bits in the transmit/receive character plus the parity bit is odd.
The SPOE bit is valid only when the SPPE bit is 1.
SPIIE Bit (RSPI Idle Interrupt Enable)
The SPIIE bit enables or disables the generation of RSPI idle interrupt requests when the RSPI being in the idle state is
detected and the SPSR.IDLNF flag is set to 0.
PTE Bit (Parity Self-Diagnosis)
The PTE bit enables the self-diagnosis function of the parity circuit in order to check whether the parity function is
operating correctly.
Address(es): RSPI0.SPCR2 0008 838Fh
b7
b6
b5
b4
b3
b2
b1
b0
—
—
—
SCKAS
E
PTE
SPIIE
SPOE
SPPE
Value after reset:
0
0
0
0
0
0
0
0
Bit
Symbol
Bit Name
Description
R/W
b0
Parity Enable
0: Does not add the parity bit to transmit data and does not check the
parity bit of receive data
1: Adds the parity bit to transmit data and checks the parity bit of
receive data (when SPCR.TXMD = 0)
Adds the parity bit to transmit data but does not check the parity bit
of receive data (when SPCR.TXMD = 1)
R/W
b1
Parity Mode
0: Selects even parity for use in transmission and reception
1: Selects odd parity for use in transmission and reception
R/W
b2
RSPI Idle Interrupt Enable
0: Disables the generation of idle interrupt requests
1: Enables the generation of idle interrupt requests
R/W
b3
Parity Self-Diagnosis
0: Disables the self-diagnosis function of the parity circuit
1: Enables the self-diagnosis function of the parity circuit
R/W
b4
RSPCK Auto-Stop Function
Enable
0: Disables the RSPCK auto-stop function
1: Enables the RSPCK auto-stop function
R/W
b7 to b5
—
Reserved
These bits are read as 0. The write value should be 0.
R/W