31.6.6 Status

Name: STATUS
Offset: 0x1A
Reset: 0x0000
Property: –

Bit 15141312111098 
       SEXTTOUT  
Access R/W 
Reset 0 
Bit 76543210 
 CLKHOLDLOWTOUT SRDIRRXNACKCOLLBUSERR 
Access RR/WRRRR/WR/W 
Reset 0000000 

Bit 9 – SEXTTOUT Client SCL Low Extend Time-Out

This bit is set if a client SCL low extend timeout occurs.

This bit is cleared automatically when responding to a new START condition with ACK or NACK (write 0x3 to CTRLB.CMD).

This bit is not cleared when INTFLAG.AMATCH is cleared. Write '1' to clear the SEXTTOUT status bit.

Writing a ‘0’ to this bit has no effect.

Writing a ‘1’ to this bit clears the status.

ValueDescription
0No SCL low extend timeout has occurred
1An SCL low extend timeout has occurred

Bit 7 – CLKHOLD Clock Hold

The client Clock Hold bit (STATUS.CLKHOLD) is set when the client holds the SCL line low to stretch the I2C clock. Software must treat this bit as a read-only status flag that is set when INTFLAG.DRDY or INTFLAG.AMATCH is set. Do not clear the STATUS.CLKHOLD bit, as doing so may alter the current clock hold state.

This bit is automatically cleared when the corresponding interrupt flag is cleared.

Bit 6 – LOWTOUT SCL Low Time-out

This bit is set if an SCL low time-out occurs.

This bit is cleared automatically when responding to a new start condition with ACK or NACK (write 0x3 to CTRLB.CMD). This bit is not cleared when INTFLAG.AMATCH is cleared. Write '1' to clear the LOWTOUT status bit.

Writing a ‘0’ to this bit has no effect.

Writing a ‘1’ to this bit clears the status.

ValueDescription
0No SCL low timeout has occurred
1An SCL low timeout has occurred

Bit 4 – SR Repeated Start

When INTFLAG.AMATCH is raised due to an address match, SR indicates whether a repeated START or START condition has occurred.

This flag is valid only while INTFLAG.AMATCH is set.

ValueDescription
0A START condition occurred on last address match
1A repeated START condition occurred on last address match

Bit 3 – DIR Read/Write Direction

The Read/Write Direction (STATUS.DIR) bit stores the direction of the last address packet received from the host.

ValueDescription
0A host write operation is in progress
1A host read operation is in progress

Bit 2 – RXNACK Received Not Acknowledge

This bit indicates whether the last data packet sent was acknowledged.

ValueDescription
0The host responded with an ACK
1The host responded with a NACK

Bit 1 – COLL Transmit Collision

If set, the I2C client was unable to transmit a high data or NACK bit. The I2C client immediately releases the SDA and SCL lines and waits for the next packet addressed to it.

This flag is intended for the SMBus Address Resolution Protocol (ARP). A detected collision in non-ARP situations indicates a protocol violation and must be treated as a bus error.

Note that this status does not trigger any interrupt and must be checked by software to verify that the data were sent correctly. This bit is cleared automatically when responding to an address match with an ACK or a NACK (writing 0x3 to CTRLB.CMD). This bit is not cleared when INTFLAG.AMATCH is cleared. Write '1' to clear the COLL status bit.

Writing a ‘0’ to this bit has no effect.

Writing a ‘1’ to this bit clears the status.

ValueDescription
0No collision was detected on the last data byte sent
1A collision was detected on the last data byte sent

Bit 0 – BUSERR Bus Error

The Bus Error bit (STATUS.BUSERR) indicates that an illegal bus condition has occurred, regardless of bus ownership. An illegal bus condition is detected if a protocol violating START, repeated START, or Stop condition occurs on the I2C bus lines. A START condition directly followed by a STOP condition is one example of a protocol violation. A timeout occuring during a frame is also considered a protocol violation and sets STATUS.BUSERR.

This bit is cleared automatically when responding to an address match with an ACK or a NACK (writing 0x3 to CTRLB.CMD). This bit is not cleared when INTFLAG.AMATCH is cleared. Write '1' to clear the BUSERR status bit.

Writing a ‘0’ to this bit has no effect.

Writing a ‘1’ to this bit clears the status.

ValueDescription
0No bus error was detected
1A bus error was detected