RL78/G1H CHAPTER 15 SERIAL INTERFACE IICA
R01UH0575EJ0120 Rev. 1.20 Page 442 of 920
Dec 22, 2016
Figure 15 - 13 Format of IICA flag register n (IICFn)
Note Bits 6 and 7 are read-only.
Caution 1. Write to the STCENn bit only when the operation is stopped (IICEn = 0).
Caution 2. As the bus release status (IICBSYn = 0) is recognized regardless of the actual bus status when
STCENn = 1, when generating the first start condition (STTn = 1), it is necessary to verify that no third
party communications are in progress in order to prevent such communications from being
destroyed.
Caution 3. Write to IICRSVn only when the operation is stopped (IICEn = 0).
Remark 1.
STTn: Bit 1 of IICA control register n0 (IICCTLn0)
Remark 2. IICEn: Bit 7 of IICA control register n0 (IICCTLn0)
Address: FFF52H (IICF0), FFF56H (IICF1) After reset: 00H R/W
Note
Symbol<7><6>5432<1><0>
IICFn STCFn IICBSYn 0000STCENnIICRSVn
STCFn STTn clear flag
0 Generate start condition
1 Start condition generation unsuccessful: clear the STTn flag
Condition for clearing (STCFn = 0) Condition for setting (STCFn = 1)
• Cleared by STTn = 1
• When IICEn = 0 (operation stop)
• Reset
• Generating start condition unsuccessful and the STTn bit
cleared to 0 when communication reservation is disabled
(IICRSVn = 1).
IICBSYn
I
2
C bus status flag
0 Bus release status (communication initial status when STCENn = 1)
1 Bus communication status (communication initial status when STCENn = 0)
Condition for clearing (IICBSYn = 0) Condition for setting (IICBSYn = 1)
• Detection of stop condition
• When IICEn = 0 (operation stop)
• Reset
• Detection of start condition
• Setting of the IICEn bit when STCENn = 0
STCENn Initial start enable trigger
0 After operation is enabled (IICEn = 1), enable generation of a start condition upon detection of a stop
condition.
1 After operation is enabled (IICEn = 1), enable generation of a start condition without detecting a stop
condition.
Condition for clearing (STCENn = 0) Condition for setting (STCENn = 1)
• Cleared by instruction
• Detection of start condition
• Reset
• Set by instruction
IICRSVn Communication reservation function disable bit
0 Enable communication reservation
1 Disable communication reservation
Condition for clearing (IICRSVn = 0) Condition for setting (IICRSVn = 1)
• Cleared by instruction
• Reset
• Set by instruction