TXZ Family
Serial Peripheral Interface
2019-02-28
45 / 67
Rev. 3.0
3.3.9.1. Transmit Completion Interrupt/Receive Completion Interrupt
(1)
Master operation
Each single transfer, burst transfer and continuously transfer, transmit completion interrupt occurs (Note) when
TSPIxCS0/1/2/3 is deasserted in transmission or full duplex communications.
Each single transfer, burst transfer and continuously transfer, receive completion interrupt occurs (Note) when
TSPIxCS0/1/2/3 is deasserted in reception or full duplex communications.
Note: When use SIO mode, it cannot confirm the TSPIxCS0/1/2/3 deassertion. The timing of interrupt occurrence is
depends on value of
[TSPIxFRMR0]
<SCKCSDL>.
(2)
Slave operation
A transmit completion interrupt occurs in transmission or full-duplex communication. A transmit completion
interrupt occurs at the timing of one frame transfer completion in single transfer or continuous transfer, or at the
end of the last frame transfer in burst transfer. A reception completion interrupt occurs in receive or full-duplex
communication. The receive completion interrupt occurs at the timing of one frame transfer completion in the case
of single transfer or continuous transfer, or at the end of the last frame transfer in the case of burst transfer.
3.3.9.2. Transmit FIFO Interrupt/Receive FIFO Interrupt
A transmit FIFO interrupt occurs when the following conditions are met.
•
[TSPIxSR]
<TLVL[3:0]> is greater one than the transmit FIFO interrupt condition (fill level) specified in
[TSPIxCR2]
<TIL[3:0]>.
•
Data is transferred from the transmit FIFO to the transmit shift register. fill level of the transmit FIFO is
decreased by one, and the level is changed to the same value of transmit interrupt generation condition (fill
level).
A transmit FIFO interrupt occurs when the following conditions are met.
•
[TSPIxSR]
<RLVL[3:0]> is less one than receive interrupt generation condition (fill level) specified in
[TSPIxCR2]
<RIL[3:0]>.
•
Data is transferred from the receive shift register to the receive FIFO. fill level of the receive FIFO is
increased by one, and the level is changed to the same value of receive interrupt generation condition (fill
level).
3.3.9.3. Error Interruption
The following error interrupt is generated. In case, please process appropriately.
(1) Parity Error Interrupt
When a parity error is detected, a parity error interrupt is generated.
If a parity is enabled, a parity is calculated using received data that is received one bit previous to the last
data of the frame.
The calculated parity is compared with the received parity that is the last bit of frame. If they do not match,
a parity error interrupt occurs.
An interrupt generates when receive frame data is stored to the receive FIFO.
(2) Overrun error interrupt and underrun error interrupt