292
Bit 3—Arbitration Lost Flag (AL):
This flag indicates that arbitration was lost in master mode.
The I
2
C bus interface monitors the bus. When two or more master devices attempt to seize the bus
at nearly the same time, if the I
2
C bus interface detects data differing from the data it sent, it sets
AL to 1 to indicate that the bus has been taken by another master. At the same time, it sets the
IRIC bit in ICSR to generate an interrupt request.
AL is cleared by reading AL after it has been set to 1, then writing 0 in AL. In addition, AL is
reset automatically by write access to ICDR in transmit mode, or read access to ICDR in receive
mode.
Bit 3: AL
Description
0
Bus arbitration won
This bit is cleared to 0 at the following times:
When ICDR data is written (transmit mode) or read (receive mode)
When AL is read while AL = 1, then 0 is written in AL
(Initial value)
1
Arbitration lost
This bit is set to 1 at the following times:
If the internal SDA signal and bus line disagree at the rise of SCL in master
transmit mode
If the internal SCL is high at the fall of SCL in master transmit mode
Bit 2—Slave Address Recognition Flag (AAS):
When the addressing format is selected (FS = 0)
in slave receive mode, this flag is set to 1 if the first byte following a start condition matches bits
SVA6 to SVA0 in SAR, or if the general call address (H'00) is detected.
AAS is cleared by reading AAS after it has been set to 1, then writing 0 in AAS. In addition, AAS
is reset automatically by write access to ICDR in transmit mode, or read access to ICDR in receive
mode.
Bit 2: AAS
Description
0
Slave address or general call address not recognized
This bit is cleared to 0 at the following times:
When ICDR data is written (transmit mode) or read (receive mode)
When AAS is read while AAS = 1, then 0 is written in AAS
(Initial value)
1
Slave address or general call address recognized
This bit is set to 1 at the following times:
When the slave address or general call address is detected in slave receive
mode