RL78/G1P
CHAPTER 12 SERIAL INTERFACE IICA
R01UH0895EJ0100 Rev.1.00
515
Nov 29, 2019
(b) Start ~ Address ~ Data ~ Start ~ Address ~ Data ~ Stop (restart)
(i) When WTIMn = 0
1: IICSn = 1000×110B
2: IICSn = 1000×000B (Sets the WTIMn bit to 1)
Note 1
3: IICSn = 1000××00B (Clears the WTIMn bit to 0
Note 2
, sets the STTn bit to 1)
4: IICSn = 1000×110B
5: IICSn = 1000×000B (Sets the WTIMn bit to 1)
Note 3
6: IICSn = 1000××00B (Sets the SPTn bit to 1)
7: IICSn = 00000001B
Notes 1.
To generate a start condition, set the WTIMn bit to 1 and change the timing for generating the
INTIICAn interrupt request signal.
2.
Clear the WTIMn bit to 0 to restore the original setting.
3.
To generate a stop condition, set the WTIMn bit to 1 and change the timing for generating the
INTIICAn interrupt request signal.
Remark
: Always
generated
: Generated only when SPIEn = 1
×:
Don’t
care
(ii) When WTIMn = 1
1: IICSn = 1000×110B
2: IICSn = 1000××00B (Sets the STTn bit to 1)
3: IICSn = 1000×110B
4: IICSn = 1000××00B (Sets the SPTn bit to 1)
5: IICSn = 00000001B
Remark
: Always
generated
: Generated only when SPIEn = 1
×:
Don’t
care
Remark
n = 0, 1
ST
AD6 to AD0
R/W ACK
D7 to D0
AD6 to AD0
ACK
ACK
SP
ST
R/W
D7 to D0
ACK
STTn = 1
SPTn = 1
3
4
7
2
1
5
6
ST
AD6 to AD0
R/W ACK
D7 to D0
AD6 to AD0
ACK
ACK
SP
ST
R/W
D7 to D0
ACK
STTn = 1
SPTn = 1
3
4
5
2
1