TXZ Family
Serial Peripheral Interface
2019-02-28
49 / 67
Rev. 3.0
4.2. Detail of Register
4.2.1. [TSPIxCR0] (TSPI Control Register 0)
Bit
Bit Symbol
After reset
Type
Function
31:8
-
0
R
Read as "0".
7:6
SWRST[1:0]
00
W
TSPI software reset (Note)
Software reset occurs by writing "10" and then "01".
By software reset, the transfer operation under execution is
forcibly terminated and the value of the control register other than
the transfer setting is initialized. (Table4.1)
5:1
-
0
R
Read as "0".
0
TSPIE
0
R/W
TSPI operation control
0
:
Stop
1
:
Operation
<TSPIE> controls a whole operation of TSPI to start/stop (clock
shutdown). When <TSPIE>=0 (stop) is set, a clock is not fed into
the internal of the TSPI. Set <TSPIE>=1 (operation) to start
operation first. Then perform initialization and communications.
<TSPIE> is not initialized by software reset.
Note: Completion of software reset takes two clocks after an instruction is executed. When TSPI setting is
stopped (<TSPIE>=0), software reset is not applied.
To perform a software reset, consecutively write "10" and then "01" to
[TSPIxCR0]
<SWRST[1:0]>(Software
reset register). Software reset will become invalid if other TSPI control registers are accessed in between “10” and
“01”. Please redo from write "10".
“Table 4.1 initialized registers by software reset” shows the initialized register by software reset.
Table 4.1 Initialized registers by software reset
Register name
Symbol name
[TSPIxCR0]
No registers
[TSPIxCR1]
<TRXE>
[TSPIxCR2]
<TIL><RIL><INTTXFE><INTTXWE><INTRXFE>
<INTRXWE><INTERR><DMATE><DMARE>
[TSPIxCR3]
No registers
[TSPIxBR]
No registers
[TSPIxFMTR0]
No registers
[TSPIxFMTR1]
No registers
[TSPIxDR]
No registers
[TSPIxSR]
<TSPISUE><TXRUN><TXEND><INTTXWF><TFEMP>
<TLVL><RXRUN><RXEND><INTRXFF><RFFLL><RLVL>
[TSPIxERR]
<TRGERR><UDRERR><OVRERR><PERR>