Renesas RL78/G1P Hardware User Manual page 498

16-bit single-chip microcontroller
Hide thumbs Also See for RL78/G1P:
Table of Contents

Advertisement

RL78/G1P
Address: FFF52H (IICF0), FFF56H (IICF1)
<7>
Symbol
IICFn
STCFn
STCFn
0
1
Condition for clearing (STCFn = 0)
• Cleared by STTn = 1
• When IICEn = 0 (operation stop)
• Reset
IICBSYn
0
1
Condition for clearing (IICBSYn = 0)
• Detection of stop condition
• When IICEn = 0 (operation stop)
• Reset
STCENn
0
1
Condition for clearing (STCENn = 0)
• Cleared by instruction
• Detection of start condition
• Reset
IICRSVn
0
1
Condition for clearing (IICRSVn = 0)
• Cleared by instruction
• Reset
Note Bits 6 and 7 are read-only.
Cautions 1. Write to the STCENn bit only when the operation is stopped (IICEn = 0).
2. As the bus release status (IICBSYn = 0) is recognized regardless of the actual bus
3. Write to IICRSVn only when the operation is stopped (IICEn = 0).
Remarks 1.
2.
R01UH0895EJ0100 Rev.1.00
Nov 29, 2019
Figure 12-8. Format of IICA Flag Register n (IICFn)
After reset: 00H
<6>
5
4
IICBSYn
0
0
Generate start condition
Start condition generation unsuccessful: clear the STTn flag
Bus release status (communication initial status when STCENn = 1)
Bus communication status (communication initial status when STCENn = 0)
After operation is enabled (IICEn = 1), enable generation of a start condition upon detection of
a stop condition.
After operation is enabled (IICEn = 1), enable generation of a start condition without detecting
a stop condition.
Communication reservation function disable bit
Enable communication reservation
Disable communication reservation
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.
STTn: Bit 1 of IICA control register n0 (IICCTLn0)
IICEn: Bit 7 of IICA control register n0 (IICCTLn0)
n = 0, 1
CHAPTER 12 SERIAL INTERFACE IICA
Note
R/W
3
2
<1>
0
0
STCENn
IICRSVn
STTn clear flag
Condition for setting (STCFn = 1)
• Generating start condition unsuccessful and the
STTn bit cleared to 0 when communication
reservation is disabled (IICRSVn = 1).
2
I
C bus status flag
Condition for setting (IICBSYn = 1)
• Detection of start condition
• Setting of the IICEn bit when STCENn = 0
Initial start enable trigger
Condition for setting (STCENn = 1)
• Set by instruction
Condition for setting (IICRSVn = 1)
• Set by instruction
<0>
479

Advertisement

Table of Contents
loading

Table of Contents