TXZ Family
Serial Peripheral Interface
2019-02-28
58 / 67
Rev. 3.0
4.2.9. [TSPIxSR] (TSPI
Status Register
)
Bit
Bit Symbol
After
reset
Type
Function
31
TSPISUE
0
R
TSPI modify status flag
0: Modification is enabled.
1: Modification is disabled.
If <TSPISUE> is "0", the TSPI is not transmitting or receiving, thus
the register setting can be modified.
<TSPISUE> is "0" in the following conditions.(Please refer to Table
4.2):
1. Reset is input.
2. Software reset occurs.
3. In the continuously transfer mode, the time when current
transferring frame is finished when
[TSPIxCR1]
<TRXE>=0 is
set.
4. In the burst mode, the timing when specified number of
transfers is finished.
5. The time when current transferring frame is finished when
[TSPIxCR1]
<TRXE>=0 is set during burst transfer.
However, even if above conditions are satisfied, <TSPISUE> does
not become "0" when the transmit FIFO or receive shift register is
full. To set <TSPISUE>=0, read the receive FIFO and transfer a
receive value in the receive shift register to the receive FIFO.
30:24
-
0
R
Read as "0".
23
TXRUN
0
R
Transmit shift operation flag
0
:
Stop
1
:
Operation
A status flag indicates the transmit shift operation is ongoing.
Combination of <TXRUN> and <TFEMP> bits indicates the
following status:
<TXRUN> <TFEMP>
Conditions
0
0
Stop or wait for the next transmission
1
Completed transmission and the
transmit FIFO is empty.
1
-
In transmission
<TXRUN> is set when data exists in the transmit shift register even
if data does not exist in the transmit FIFO.
22
TXEND
0
R
Transmit completion flag
0: -
1: Transmit is complete.
A flag that is set at the time when transmission is complete.
This flag is set at the last frame (TSPIxCS0/1/2/3 is deasserted) in
the single transfer, burst transfer or continuously transfer after one
frame transfer.
W
This bit is cleared by writing "1".
0: Don’t care
1: Flag is cleared.
When the setting by transmission completion and clearing by
writing "1" occur simultaneously, the setting by transmission
receives a higher priority.
21
INTTXWF
0
R
Transmit FIFO interrupt flag
0
:
No interrupt
1
:
Interrupt occurs
This bit is set when remaining data in the transmit FIFO reaches a
TIL value from a fill level setting value (TIL)+1.