TXZ Family
Serial Peripheral Interface
2019-02-28
29 / 67
Rev. 3.0
3.3.2.2. SIO mode
When write "1" to
[TSPIxCR1]
<TSPIMS>(Communication mode selection), the TSPI operates in SIO mode.
In SIO mode, one master device can be connected with one slave device via TSPIxSCK(clock input/output),
TSPIxTXD(data transmission), TSPIxRXD(data reception).
● Master
operation
The TSPI outputs a clock from TSPIxSCK and operates synchronously with TSPIxSCK.
● Slave
operation
The TSPI receives a clock from TSPIxSCK and operates synchronously with TSPIxSCK.
Note: When using SIO mode, do not select TSPIxCS0/1/2/3 and TSPIxCSIN in port setting.
3.3.2.3. Master / Slave selection
The TSPI operates as Master (the device outputs transfer clock) or Slave (transfer clock is input to the device).
When "0" is set to
[TSPIxCR1]
<MSTR>, the TSPI operates as Slave.
When "1" is set to
[TSPIxCR1]
<MSTR>, the TSPI operates as Master.
3.3.3. Buffer Structure
The transmit buffer and receive buffer are independent respectively. Each buffer has a double-buffering structure
consisting of the FIFO and 32-bit width shift register.
There are the transmit FIFO and receive FIFO. Each FIFO is 16-bit width and 8-stage. Settable FIFO level varies
depending on the data length.
Table 3.2 Data format and settable fill level
Data
Settable fill level
Transmit FIFO
[TSPIxCR2]<TIL[3:0]>
Receive FIFO
[TSPIxCR2]<RIL[3:0]>
7 to 16bit
0 to 7
1 to 8
17 to 32bit
0 to 3
1 to 4
Note: Set a value within the settable fill level. If a value outside of the settable fill level is set, the operation is
not guaranteed.