TXZ Family
Serial Peripheral Interface
2019-02-28
50 / 67
Rev. 3.0
4.2.2. [TSPIxCR1] (TSPI Control Register 1)
Bit
Bit Symbol
After reset
Type
Function
31:16
-
0
R
Read as "0".
15
TRGEN
0
R/W
Trigger control (valid only in Master operation)
0
:
Not used
1
:
A trigger is valid
14
TRXE
0
R/W
Communication control (Note1)(Note2)(Note3)(Note4)
0
:
Communication stops
1
:
Communication is enabled
Full duplex mode/transmission mode
If valid data exists in the transmit FIFO or shift register,
transmission starts. If valid data does not exist in the transmit
FIFO or shift register, transmission does not start. To start
communications, write data to transmit FIFO or write transmit
data when communications are enabled. If this bit is set as
disable during transmission, the transmission will stop after the
ongoing frame will complete and the setting will disable.
Receive mode:
Once this bit is enabled, reception immediately starts. If this bit is
set to disable during reception, reception will stop after the
ongoing frame is complete and the setting will disable.
13
TSPIMS
0
R/W
Communication mode selection
0
:
SPI mode
1
:
SIO mode
12
MSTR
1
R/W
Master/slave selection
0
:
Slave operation
1
:
Master operation
11:10
TMMD[1:0]
11
R/W
Transfer mode selection
00
:
Reserved
01
:
Transmit only
10
:
Receive only
11
:
Full-duplex mode (Transmit/receive)
If the mode "transmit only" is selected, the process circuit for
TSPIxRXD stops. If the mode "receive only" is selected, the
process circuit for TSPIxTXD stops.
9:8
CSSEL
0
R/W
Selection of TSPIxCS0/1/2/3
00
:
TSPIxCS0 is valid
01
:
TSPIxCS1 is valid
10
:
TSPIxCS2 is valid
11
:
TSPIxCS3 is valid
When slave operation and selected SIO mode, TSPIxCS0/1/2/3
cannot be used. (Note5)
7:0
FC[7:0]
0x01
R/W
Sets the number of transfer frames
0: Continuously transfer
(No limit of transfer times specification) (Note6)
1: Single transfer (one burst transfer)
2 to 255: Burst transfer (2 to 255 times transfer)
Note1: <TRXE> must set to “1” after all the setting.
Note2: <TRXE> is not cleared to "0" unless the CPU writes "0" to <TRXE> in continuously transfer. However,
in the case of single and burst transfer, <TRXE> is automatically cleared to "0" after the specified
numbers of transfers are complete. If single and burst transfer is executed again, check whether
[TSPIxSR]
<TSPISUE> bit returns to "0", and then write "1" to <TRXE>.
Note3: Even if it rewrites <TRXE> to "0" (Communication stops) when actual communication (master side) is