Atmel Xplained Pro Evaluation Kit ATSAMD20-XPRO ATSAMD20-XPRO Data Sheet

Product codes
ATSAMD20-XPRO
Page of 660
416
Atmel | SMART SAM D20 [DATASHEET]
Atmel-42129K–SAM-D20_datasheet–06/2014
z
Bit 3 – DIR: Read / Write Direction
The Read/Write Direction (STATUS.DIR) bit stores the direction of the last address packet received from a master.
0: Master write operation is in progress.
1: Master read operation is in progress. 
z
Bit 2 – RXNACK: Received Not Acknowledge
This bit indicates whether the last data packet sent was acknowledged or not.
0: Master responded with ACK.
1: Master responded with NACK.
z
Bit 1 – COLL: Transmit Collision
If set, the I
2
C slave was not able to transmit a high data or NACK bit, the I
2
C slave will immediately release the 
SDA and SCL lines and wait 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 that there has been a protocol violation, and should be treated as a bus error.
Note that this status will not trigger any interrupt, and should be checked by software to verify that the data were 
sent correctly. This bit is cleared automatically if responding to an address match with an ACK or a NACK (writing 
0x3 to CTRLB.CMD), or INTFLAG.AMATCH is cleared.
0: No collision detected on last data byte sent.
1: Collision detected on last data byte sent.
Writing a zero to this bit has no effect.
Writing a one to this bit will clear the status.
z
Bit 0 – BUSERR: Bus Error
The Bus Error bit (STATUS.BUSERR) indicates that an illegal bus condition has occurred on the bus, regardless 
of bus ownership. An illegal bus condition is detected if a protocol violating start, repeated start or stop is detected 
on the I
2
C bus lines. A start condition directly followed by a stop condition is one example of a protocol violation. If 
a time-out occurs during a frame, this is also considered a protocol violation, and will set STATUS.BUSERR.
This bit is cleared automatically if responding to an address match with an ACK or a NACK (writing 0x3 to 
CTRLB.CMD) or INTFLAG.AMATCH is cleared.
0: No bus error detected.
1: Bus error detected.
Writing a one to this bit will clear the status. 
Writing a zero to this bit has no effect.