R01UH0823EJ0100 Rev.1.00 Page 1409 of 1823
Jul 31, 2019
RX23W Group 38. Serial Peripheral Interface (RSPIa)
38.3.14 Interrupt Sources
The RSPI has interrupt sources of receive buffer full, transmit buffer empty, mode fault, overrun, parity error, and RSPI
idle. In addition, the DTC or DMAC can be activated by the receive buffer full or transmit buffer empty interrupt to
perform data transfer.
Since the vector address for SPEI is allocated to interrupt requests due to mode fault, overrun, and parity errors, the
actual interrupt source must be determined from the flags. Interrupt sources for the RSPI are listed in
Table 38.13. An
interrupt is generated on satisfaction of an interrupt condition in
Table 38.13. Clear the receive buffer full and transmit
buffer empty sources through data transfer.
When using the DTC or DMAC to perform data transmission/reception, the DTC or DMAC must be set up first to be in
a status in which transfer is enabled before making the RSPI settings. For the method for setting the DTC or DMAC,
refer to
section 18, DMA Controller (DMACA), or section 19, Data Transfer Controller (DTCa).
If the conditions for generating a transmit buffer empty or receive buffer full interrupt are generated while the
ICU.IRn.IR flag is 1, the interrupt is not output as a request for ICU but is retained internally (the capacity for retention
is one request per source). A retained interrupt request is output when the ICU.IRn.IR flag becomes 0. A retained
interrupt request is automatically discarded once it is output as an actual interrupt request. The interrupt enable bit (the
SPCR.SPTIE or SPCR.SPRIE bit) for an internally retained interrupt request can also be cleared to 0.
Table 38.13 Interrupt Sources of RSPI
Interrupt Source Symbol Interrupt Condition DMAC/DTC Activation
Receive buffer full SPRI The receive buffer becomes full (the SPRF flag
becomes 1) while the SPCR.SPRIE bit is 1.
Possible
Transmit buffer empty SPTI The transmit buffer becomes empty (the
SPTEF flag becomes 1) while the
SPCR.SPTIE bit is 1.
Possible
RSPI errors (mode fault,
overrun and parity error)
SPEI The SPSR.MODF, OVRF, or PERF flag is set
to 1 while the SPCR.SPEIE bit is 1.
Impossible
RSPI idle SPII The SPSR.IDLNF flag is set to 0 while the
SPCR2.SPIIE bit is 1.
Impossible