Users Manual

Table Of Contents
R01UH0823EJ0110 Rev.1.10 Page 1186 of 1852
Nov 30, 2020
RX23W Group 35. I
2
C-bus Interface (RIICa)
35.10 Start Condition/Restart Condition/Stop Condition Generating Function
35.10.1 Generating a Start Condition
The RIIC generates a start condition when the ICCR2.ST bit is set to 1.
When the ST bit is set to 1, a start condition generation request is made and the RIIC generates a start condition when the
ICCR2.BBSY flag is 0 (bus free state). When a start condition is generated normally, the RIIC automatically shifts to the
master transmit mode.
A start condition is generated in the following sequence.
Start condition generation
(1) Drive the SDA0 line low (high to low).
(2) Secure the time set in the ICBRH register and the start condition hold time.
(3) Drive the SCL0 line low (high to low).
(4) Detect the low level on the SCL0 line and secure the low period of the signal on the SCL0 line set in the ICBRL
register.
35.10.2 Generating a Restart Condition
The RIIC generates a restart condition when the ICCR2.RS bit is set to 1.
When the RS bit is set to 1, a restart condition generation request is made and the RIIC generates a restart condition when
the ICCR2.BBSY flag is 1 (bus busy state) and the ICCR2.MST bit is 1 (master mode).
A restart condition is generated in the following sequence.
Restart condition generation
(1) Release the SDA0 line.
(2) Secure the low period of the signal on the SCL0 line set in the ICBRL register.
(3) Release the SCL0 line (low to high).
(4) Detect the high level on the SCL0 line and secure the time set in the ICBRL register and the restart condition setup
time.
(5) Drive the SDA0 line low (high to low).
(6) Secure the time set in the ICBRH register and the restart condition hold time.
(7) Drive the SCL0 line low (high to low).
(8) Detect the low level on the SCL0 line and secure the low period of the signal on the SCL0 line set in the ICBRL
register.
Figure 35.37 Start Condition/Restart Condition Generation Timing (ST and RS Bits)
[Start condition generating operation]
[Restart condition generating operation]
Write 1 to ST bit
ICBRH ICBRL
Write 1 to RS bit
ICBRH ICBRLICBRLICBRLICBRH
ACK/NACK
S8
Hold time Hold timeSetup time
Accept restart condition generation
Accept start condition generation
Generate
start condition
TRS
START
MST
BBSY
IIC
ϕ
TDRE
ST
TRS
RS
MST
BBSY
IIC
ϕ
TDRE
START
Generate
restart
condition
Sr
SCL0
SDA0
SCL0
SDA0