622
Chapter 18
I
2
C Bus (IIC)
Preliminary User’s Manual U17566EE1V2UM00
18.12 Arbitration
When several master devices simultaneously output a start condition (when
the IICCn.STTn bit is set to 1 before the IICSn.STDn bit is set to 1),
communication between the master devices is performed while the number of
clocks is adjusted until the data differs. This kind of operation is called
arbitration.
When one of the master devices loses in arbitration, an arbitration loss flag
(IICSn.ALDn bit) is set to 1 via the timing by which the arbitration loss
occurred, and the SCLn and SDAn lines are both set to high impedance, which
releases the bus.
Arbitration loss is detected based on the timing of the next interrupt request
signal (the eighth or ninth clock, when a stop condition is detected, etc.) and
the setting of the ALDn bit to 1, which is made by software.
For details of interrupt request timing, see
“I2C Interrupt Request Signals
(INTIICn)“ on page 601
.
Figure 18-13
Arbitration timing example
M
as
ter 1
M
as
ter 2
Tr
a
n
s
fer line
s
S
CLn
S
DAn
S
CLn
S
DAn
S
CLn
S
DAn
M
as
ter 1 lo
s
e
s
a
r
b
itr
a
tion
Hi-Z
Hi-Z
electronic components distributor