31.4.2.3.2 Receiving Address Packets (SCLSM=1)

When SCLSM=1, the I2C client will stretch the SCL line only after an ACK. See the Client Behavioral Diagram (SCLSM=1). When the I2C client is properly configured, it waits for a Start condition to be detected.

When a Start condition is detected, the subsequent address packet is received and checked by the address-match logic.

If the received address does not match, the packet is rejected, and the I2C client waits for a new Start condition.

If the address matches, the acknowledge action as configured by the Acknowledge Action bit in the Control B register (CTRLB.ACKACT) is sent, and th Address Match bit in the Interrupt Flag register (INTFLAG.AMATCH) is set. SCL is stretched until the I2C client clears INTFLAG.AMATCH. Because the I2C client holds the clock by forcing SCL low, the software has unlimited time to respond to the address.

The direction of a transaction is determined by reading the Read/Write Direction bit in the STATUS register (STATUS.DIR). This bit is updated only when a valid address packet is received.

If the Transmit Collision bit in the STATUS register (STATUS.COLL) is set, the last packet addressed to the I2C client experienced a packet collision. A collision causes the SDA and SCL lines to be released without notifying the software. Therefore the next AMATCH interrupt provides the first indication of the previous packet’s collision. Collisions are intended to comply with the SMBus Address Resolution Protocol (ARP).

After the address packet is received from the I2C host, INTFLAG.AMATCH must be written to ‘1’ to clear it.