Atmel Xplained Pro Evaluation Kit for the ATSAMD21J18A Microcontroller ATSAMD21-XPRO ATSAMD21-XPRO Data Sheet

Product codes
ATSAMD21-XPRO
Page of 1018
501
Atmel | SMART SAM D21 [DATASHEET]
Atmel-42181C–SAM-D21_Datasheet–07/2014
27.5.6 Events
Not applicable.
27.5.7 Debug Operation
When the CPU is halted in debug mode, the I
2
C interface continues normal operation. If the I
2
C interface is configured in 
a way that requires it to be periodically serviced by the CPU through interrupts or similar, improper operation or data loss 
may result during debugging. The I
2
C interface can be forced to halt operation during debugging.
Refer to the 
27.5.8 Register Access Protection
All registers with write-access are optionally write-protected by the Peripheral Access Controller (PAC), except the 
following registers: 
z
Interrupt Flag Status and Clear register (INTFLAG)
z
Status register (STATUS) 
z
Address register (ADDR)
z
Data register (DATA)
Write-protection is denoted by the Write-Protected property in the register description. 
Write-protection does not apply to accesses through en external debugger. Refer to
 for details. 
27.5.9 Analog Connections
Not applicable.
27.6 Functional Description
27.6.1 Principle of Operation
The I
2
C interface uses two physical lines for communication:
z
Serial Data Line (SDA) for packet transfer
z
Serial Clock Line (SCL) for the bus clock
A transaction starts with the start condition, followed by a 7-bit address and a direction bit (read or write) sent from the I
2
C 
master. The addressed I
2
C slave will then acknowledge (ACK) the address, and data packet transactions can 
commence. Every 9-bit data packet consists of 8 data bits followed by a one-bit reply indicating whether the data was 
acknowledged or not. In the event that a data packet is not acknowledged (NACK), whether sent from the I
2
C slave or 
master, it will be up to the I
2
C master to either terminate the connection by issuing the stop condition, or send a repeated 
start if more data is to be transceived.
 illustrates the possible transaction formats and 
 explains the legend used.