TXZ Family
Serial Peripheral Interface
2019-02-28
28 / 67
Rev. 3.0
3.3.2. Communication mode
The TSPI has two communication modes: SIO mode and SPI mode. Communication mode is specified by
[TSPIxCR1]
<TSPIMS>.
3.3.2.1. SPI mode
When write "0" to
[TSPIxCR1]
<TSPIMS>(Communication mode selection), the TSPI operates in SPI mode.
In SPI mode, one master device can be connected with four slave devices via TSPIxSCK(clock input/output),
TSPIxCS0/1/2/3(Chip select output), TSPIxCSIN(Chip select input), TSPIxTXD(data transmission), and
TSPIxRXD(data reception).
In addition, maximum four chip select signal Output(TSPIxCS0/1/2/3) are built-in, and it can communicate with
four external slave devices. Moreover, one chip select signal input(TSPIxCSIN) is built-in, and it can
communicate with one master device.
Note: The number of chip select outputs(TSPIxCS0/1/2/3) are different product by product. Please refer to the
datasheet and reference manual “Product Information”.
● Master operation
The TSPI outputs a chip select signal from TSPIxCS0/1/2/3 and outputs a clock from TSPIxSCK. The TSPI
operates synchronously with TSPIxSCK.
● Slave operation
The TSPI receives a chip select signal input via TSPIxCSIN pin and operates synchronously with TSPIxSCK.
When a chip select signal is invalid, TSPIxSCK is ignored.