R01UH0823EJ0100 Rev.1.00 Page 1335 of 1823
Jul 31, 2019
RX23W Group 38. Serial Peripheral Interface (RSPIa)
38.2 Register Descriptions
38.2.1 RSPI Control Register (SPCR)
Do not change the SPCR.MSTR, SPCR.MODFEN, or SPCR.TXMD bit while the SPCR.SPE bit is 1.
SPMS Bit (RSPI Mode Select)
The SPMS bit selects SPI operation (4-wire method) or clock synchronous operation (3-wire method).
The SSLA0, SSLA1, and SSLA3 pins are not used in clock synchronous operation. The RSPCKA, MOSIA, and MISOA
pins handle communications. If clock synchronous operation is to proceed in master mode (SPCR.MSTR = 1), the
SPCMDm.CPHA bit can be set to either 0 or 1. Set the CPHA bit to 1 if clock synchronous operation is to proceed in
slave mode (SPCR.MSTR = 0). Do not set the CPHA bit to 0 when clock synchronous operation is to proceed in slave
mode (SPCR.MSTR = 0).
TXMD Bit (Communications Operating Mode Select)
The TXMD bit selects full-duplex synchronous serial communications or transmit operations only.
When performing communications with the TXMD bit set to 1, the RSPI performs only transmit operations and not
receive operations (refer to
section 38.3.6, Communications Operating Mode).
When the TXMD bit is set to 1, receive buffer full interrupt requests cannot be used.
Address(es): RSPI0.SPCR 0008 8380h
b7 b6 b5 b4 b3 b2 b1 b0
SPRIE SPE SPTIE SPEIE MSTR
MODF
EN
TXMD SPMS
Value after reset:
00000000
Bit Symbol Bit Name Description R/W
b0 SPMS RSPI Mode Select 0: SPI operation (4-wire method)
1: Clock synchronous operation (3-wire method)
R/W
b1 TXMD Communications Operating Mode
Select
0: Full-duplex synchronous serial communications
1: Serial communications consisting of only transmit operations
R/W
b2 MODFEN Mode Fault Error Detection Enable 0: Disables the detection of mode fault error
1: Enables the detection of mode fault error
R/W
b3 MSTR RSPI Master/Slave Mode Select 0: Slave mode
1: Master mode
R/W
b4 SPEIE RSPI Error Interrupt Enable 0: Disables the generation of RSPI error interrupt requests
1: Enables the generation of RSPI error interrupt requests
R/W
b5 SPTIE Transmit Buffer Empty Interrupt
Enable
0: Disables the generation of transmit buffer empty interrupt
requests
1: Enables the generation of transmit buffer empty interrupt
requests
R/W
b6 SPE RSPI Function Enable 0: Disables the RSPI function
1: Enables the RSPI function
R/W
b7 SPRIE RSPI Receive Buffer Full Interrupt
Enable
0: Disables the generation of RSPI receive buffer full interrupt
requests
1: Enables the generation of RSPI receive buffer full interrupt
requests
R/W