CHAPTER 15 SERIAL INTERFACE IICA
Page 472 of 920
(2) Master operation in multimaster system
Figure 15 - 35 Master Operation in Multi-Master System (1/3)
Note
Confirm that the bus is released (CLDn bit = 1, DADn bit = 1) for a specific period (for example, for a period of one frame).
If the SDAAn pin is constantly at low level, decide whether to release the I
2
C bus (SCLAn and SDAAn pins = high level)
in conformance with the specifications of the product that is communicating.
Remark
n = 0, 1
INTIICAn
interrupt occurs?
IICFn
←
0XH
Setting STCENn and IICRSVn
Setting port
IICWLn, IICWHn
←
XXH
START
SVAn
←
XXH
SPIEn = 1
SPTn = 1
Slave operation
Slave operation
Releases the bus for a specific period.
Bus status is
being checked.
Yes
Checking bus status
Note
Master operation starts?
Enables reserving
communication.
Disables reserving
communication.
SPDn = 1?
STCENn = 1?
IICRSVn = 0?
Selects a transfer clock.
Sets a local address.
Sets a start condition.
(Communication start request)
(No communication start request)
• Waiting to be specified as a slave by other master
• Waiting for a communication start request (depends on user program)
Prepares for starting communication
(generates a stop condition).
Waits for detection of the stop condition.
No
Yes
Yes
No
INTIICAn
interrupt occurs?
Yes
No
Yes
No
SPDn = 1?
Yes
No
Slave operation
No
INTIICAn
interrupt occurs?
Yes
No
A
1
B
SPIEn = 0
Yes
No
Waits for a communication request.
IICCTLn0
←
0XX111XXB
ACKEn = WTIMn = SPIEn = 1
IICCTLn0
←
1XX111XXB
IICEn = 1
Setting port
In
itia
l se
tt
in
g
Wa
its for
a
co
mm
uni
cat
io
n
Setting IICCTLn1
Release the serial interface IICA from the reset status and start clock supply.
Setting the PER0 register
Setting of the port used alternatively as the pin to be used.
First, set the port to input mode and the output latch to 0 (see
15.3.8 Register to control port function of serial I/O pin
).
Set the port from input mode to output mode and enable the output of the I
2
C bus
(see
15.3.8 Register to control port function of serial I/O pin
).
Summary of Contents for RL78/G1H
Page 941: ...R01UH0575EJ0120 RL78 G1H...