Users Manual

Table Of Contents
R01UH0823EJ0110 Rev.1.10 Page 1194 of 1852
Nov 30, 2020
RX23W Group 35. I
2
C-bus Interface (RIICa)
35.13 Interrupt Sources
The RIIC generates four types of interrupt request: transfer error or event generation (arbitration-lost, NACK detection,
timeout detection, start condition detection, and stop condition detection), receive data full, transmit data empty, and
transmit end.
Table 35.6 lists details of the several interrupt requests. The receive data full and transmit data empty are both capable of
activating data transfer by the DTC or DMAC.
Table 35.6 Interrupt Sources
Note: There is a delay time between the execution of a write instruction for a peripheral module by the CPU and actual writing to the
module. Thus, when an interrupt flag has been cleared or an interrupt request has been masked, read the relevant flag again to
check whether clearing or masking has been completed, and then return from interrupt handling. Returning from interrupt
handling without checking that writing to the module has been completed creates a possibility of repeated processing of the
same interrupt.
Note 1. Because TXI is an edge-detected interrupted, it does not require clearing. Furthermore, the ICSR2.TDRE flag (a condition for
TXI) is automatically set to 0 when data for transmission are written to the ICDRT register or a stop condition is detected
(ICSR2.STOP flag is 1).
Note 2. Because RXI is an edge-detected interrupted, it does not require clearing. Furthermore, the ICSR2.RDRF flag (a condition for
RXI) is automatically set to 0 when data are read from the ICDRR register.
Note 3. When using the TEI interrupt, clear the ICSR2.TEND flag in the TEI interrupt handling.
Note that the ICSR2.TEND flag is automatically set to 0 when data for transmission are written to the ICDRT register or a stop
condition is detected (ICSR2.STOP flag is 1).
Clear the each flag or mask the interrupt request during interrupt handling.
35.13.1 Buffer Operation for TXI and RXI Interrupts
If the conditions for generating a TXI and RXI interrupt are satisfied while the corresponding IR flag is 1, the interrupt
request is not output for the ICU but retained internally (the capacity for internal retention is one request per source).
An interrupt request that was being retained internally is output to the ICU when the value of the ICU.IRn.IR flag
becomes 0. Internally retained interrupt requests are automatically cleared under normal conditions of usage.
Internally retained interrupt requests can also be cleared by writing 0 to the corresponding interrupt enable bit in the
ICIER register.
Symbol Interrupt Source Interrupt Flag
DTC
Activation
DMAC
Activation Interrupt Condition
EEI Transfer error/
event generation
AL Not possible Not possible AL = 1 and ALIE = 1
NACKF NACKF = 1 and NAKIE = 1
TMOF TMOF = 1 and TMOIE = 1
START START = 1 and STIE = 1
STOP STOP = 1 and SPIE = 1
RXI*
2
Receive data full RDRF Possible Possible RDRF = 1 and RIE = 1
TXI*
1
Transmit data empty TDRE Possible Possible TDRE = 1 and TIE = 1
TEI*
3
Transmit end TEND Not possible Not possible TEND = 1 and TEIE = 1