RL78/G1D
(8-Clock and 9-Clock Wait Is Selected for Master, 9-Clock Wait Is Selected for Slave) (3/3)
Master side
IICAn
ACKDn
(ACK detection)
WTIMn
(8 or 9 clock wait)
ACKEn
(ACK control)
MSTSn
(communication status)
STTn
(ST trigger)
SPTn
(SP trigger)
WRELn
(wait cancellation)
INTIICAn
(interrupt)
TRCn
(transmit/receive)
Bus line
SCLAn (bus)
(clock line)
SDAAn (bus)
(data line)
Slave side
IICAn
ACKDn
(ACK detection)
STDn
(ST detection)
SPDn
(SP detection)
WTIMn
(8 or 9 clock wait)
ACKEn
(ACK control)
MSTSn
(communication
status)
WRELn
(wait cancellation)
INTIICAn
(interrupt)
TRCn
(transmit/receive)
: Wait state by master device
Notes 1. To cancel a wait state, write "FFH" to IICAn or set the WRELn bit.
2. Make sure that the time between the rise of the SCLAn pin signal and the generation of the stop
condition after a stop condition has been issued is at least 4.0 µs when specifying standard mode and at
least 0.6 µs when specifying fast mode.
3. Write data to IICAn, not setting the WRELn bit, in order to cancel a wait state during transmission by a
slave device.
4. If a wait state during transmission by a slave device is canceled by setting the WRELn bit, the TRCn bit
will be cleared.
Remark n = 0
R01UH0515EJ0120 Rev.1.20
Dec 16, 2016
Figure 14-33. Example of Slave to Master Communication
(c) Data ~ data ~ stop condition
L
Note 1
<9>
L
<8>
<11>
ACK
D
0
D
7
D
15
16
16
<10>
Note 3
<12>
L
H
H
L
: Wait state by slave device
CHAPTER 14 SERIAL INTERFACE IICA
Stop condition
6
D
5
D
4
D
3
D
2
D
16
16
16
16
<14>
<17>
Note 1
<15>
<13>
<16>
Note 2
1
D
0
NACK
16
16
<19>
<18>
Notes 1, 4
Note 4
: Wait state by master and slave devices
603