Users Manual

Table Of Contents
R01UH0823EJ0110 Rev.1.10 Page 1128 of 1852
Nov 30, 2020
RX23W Group 35. I
2
C-bus Interface (RIICa)
TRS Bit (Transmit/Receive Mode)
This bit indicates transmit or receive mode.
The RIIC is in receive mode when the TRS bit is set to 0 and is in transmit mode when the bit is set to 1. Combination of
this bit and the MST bit indicates the operating mode of the RIIC.
The value of the TRS bit is automatically changed to 1 for transmission or 0 for reception in response to the generation or
detection of a start condition and setting of the R/W# bit. Although writing to the TRS bit is possible when the
ICMR1.MTWP bit is set to 1, writing to this bit is not necessary during normal usage.
[Setting conditions]
When a start condition is generated normally according to the start condition generation request (when a start
condition is detected with the ST bit set to 1)
When a restart condition is generated normally according to the restart condition generation request (when a restart
condition is detected with the RS bit set to 1)
When the R/W# bit added to the slave address is set to 0 in master mode
When the address received in slave mode matches the address enabled in the ICSER register, with the R/W# bit set
to 1
When 1 is written to the TRS bit with the ICMR1.MTWP bit set to 1
[Clearing conditions]
When a stop condition is detected
The ICSR2.AL (arbitration-lost) flag being set to 1
In master mode, reception of a slave address to which an R/W# bit with the value 1 is appended
In slave mode, a match between the received address and the address enabled in the ICSER register when the value
of the received R/W# bit is 0 (including cases where the received address is the general call address)
In slave mode, a restart condition is detected (that is, a start condition is detected while the ICCR2.BBSY flag is 1
and the ICCR2.MST bit is 0)
When 0 is written to the TRS bit with the ICMR1.MTWP bit set to 1
When 1 is written to the ICCR1.IICRST bit to apply an RIIC reset or an internal reset
MST Bit (Master/Slave Mode)
This bit indicates master or slave mode.
The RIIC is in slave mode when the MST bit is set to 0 and is in master mode when the bit is set to 1. Combination of this
bit and the TRS bit indicates the operating mode of the RIIC.
The value of the MST bit is automatically changed to 1 for master mode or 0 for slave mode by generating of a start
condition and generating or detection of a stop condition, etc. Although writing to the MST bit is possible when the
ICMR1.MTWP bit is set to 1, writing to this bit is not necessary during normal usage.
[Setting conditions]
When a start condition is generated normally according to the start condition generation request (when a start
condition is detected with the ST bit set to 1)
When 1 is written to the MST bit with the ICMR1.MTWP bit set to 1
[Clearing conditions]
When a stop condition is detected
When the ICSR2.AL (arbitration-lost) flag is set to 1
When 0 is written to the MST bit with the ICMR1.MTWP bit set to 1
When 1 is written to the ICCR1.IICRST bit to apply an RIIC reset or an internal reset