TXZ Family
Serial Peripheral Interface
2019-02-28
62 / 67
Rev. 3.0
Example for use
For example, the details of starting / stopping operation for every communicate mode and transfer mode are shown
in Table 5.1.
Table 5.1
Transfer starting and stopping operation in each mode setting (Master)
communication
mode
Transfer mode
Communication start timing
Transfer stop timing
Full duplex
Continuously
transfer
A transfer starts if the
[TSPIxCR1]
<TRXE> bit is "1"
and valid data exists in the transmit FIFO. Either
condition can start transferring.
When the receive buffer (receive FIFO or receive shift
register) is full, next frame cannot be transferred.
When reading data in the receive FIFO, if data in the
receive shift register is automatically transferred to
the FIFO, the shift register is determined as not full
and a transfer is automatically restarted.
In transmission/reception, if
<TRXE> is set to stop, a transfer is
stopped after a frame in progress
is complete.
Burst transfer
(Include single
transfer)
A transfer starts if
[TSPIxCR1]
<TRXE> bit is "1" and
valid data exists in the transmit FIFO. Either condition
can start transferring.
In burst transfer mode, if specified number of burst
transfers are complete, the
[TSPIxCR1]
<TRXE> bit
returns to "0". If a burst transfer is attempted again,
set "1" to
[TSPIxCR1]
<TRXE> after the confirmation
that
[TSPIxSR]
<TSPISUE> bit was returned to "0".
If data in the transmit FIFO runs out during specified
number of burst transfers, TSPIxCS0/1/2/3 stays
asserted. A transfer automatically will restart when
valid data is written to the transmit FIFO.
If receive buffer (receive FIFO or receive shift
register) is full, next frame cannot be transferred. At
this time, TSPIxCS0/1/2/3 stays asserted. When
reading the receive FIFO data, if data in the shift
register is automatically transferred to the FIFO, the
shift register is determined as not full and a transfer is
automatically restarted.
In transmission/reception, if
<TRXE> is set to stop, a transfer is
stopped after a frame in progress
is complete
Transmission
mode
Continuously
transfer
A transfer starts If
[TSPIxCR1]
<TRXE> bit is "1" and
valid data exists in the FIFO. Either condition can
start transferring.
In transmission/reception, if
<TRXE> is set to stop, a transfer is
stopped after a frame in progress
is complete
Burst transfer
(Include single
transfer)
A transfer starts if
[TSPIxCR1]
<TRXE> bit is "1" and
valid data exists in the transmit FIFO. Either condition
can start transferring.
If a burst transfer is attempted again, set "1" to
<TRXE> after the confirmation that
[TSPIxSR]
<TSPISUE> bit was returned to "0".
If data in the transmit FIFO runs out during specified
number of burst transfers, TSPIxCS0/1/2/3 stays
asserted. A transfer automatically will restart when
valid data is written to the transmit FIFO.
In reception, if t<TRXE> is set to
stop, a transfer is stopped after a
frame in progress is complete.
Receive
mode
Continuously
transfer
A reception starts if the receive buffer (receive FIFO
or receive shift register) is not full.
If the receive buffer is full, serial clock stops and next
frame cannot be transferred. When reading the
receive FIFO data, if data in the shift register is
automatically transferred to FIFO, the shift register is
determined as not full and a transfer is automatically
restarted.
In reception, if <TRXE> is set to
stop, a transfer is stopped after a
frame in progress is complete.