Users Manual

Table Of Contents
R01UH0823EJ0110 Rev.1.10 Page 1080 of 1852
Nov 30, 2020
RX23W Group 33. Serial Communications Interface (SCIg, SCIh)
33.8 Operation in Simple SPI Mode
As an extended function, the SCI supports a simple SPI mode that handles transfer among one or multiple master devices
and multiple slave devices.
Making the settings for clock synchronous mode (SCMR.SMIF = 0, SIMR1.IICM = 0, SMR.CM = 1) plus setting the
SPMR.SSE bit to 1 places the SCI in simple SPI mode. However, the SS pin function on the master side is unnecessary
for connection of the device used as the master in simple SPI mode when the configuration only has a single master, so
set the SPMR.SSE bit to 0 in such cases.
Figure 33.57 shows an example of connections for simple SPI mode. Control a general port pin to produce the SS
output signal from the master.
In simple SPI mode, data are transferred in synchronization with clock pulses in the same way as in clock synchronous
mode. One character of data for transfer consists of 8 bits of data, and parity bits cannot be appended to this. The data can
be inverted by setting the SCMR.SINV bit to 1.
Since the receiver and transmitter are independent of each other within the SCI module, full-duplex communications are
possible, with a common clock signal. Furthermore, since both the transmitter and receiver have a double-buffered
structure, writing of further transmit data while transmission is in progress and reading of previously received data while
reception is in progress are both possible. Continuous transfer is thus possible.
Figure 33.57 Example of Connections via a Simple SPI Mode (In Single Master Mode, SPMR.SSE Bit = 0)
SMOSIn (output)
SMISOn (input)
Device 1 (master)
SCKn (output)
Port pin (output)
SSn# (input)
Port pin (output)
SMOSIn (input)
SMISOn (output)
Device 2 (slave)
SCKn (input)
SSn# (input)
SMOSIn (input)
SMISOn (output)
Device 3 (slave)
SCKn (input)
SSn# (input)
*
1
Note 1. The SSn# input is not required in a single-master system
(the interface is used with the setting SPMR.SSE = 0).