Техническая Спецификация для Atmel Xplained Pro Evaluation Kit ATSAMD20-XPRO ATSAMD20-XPRO

Модели
ATSAMD20-XPRO
Скачать
Страница из 660
394
Atmel | SMART SAM D20 [DATASHEET]
Atmel-42129K–SAM-D20_datasheet–06/2014
When BAUDLOW is non-zero, the following formula can be used to determine the SCL frequency:
The following formulas can be used to determine the SCL T
LOW
 and T
HIGH
 times:
26.6.2.5  I
2
C Master Operation
The I
2
C master is byte-oriented and interrupt based. The number of interrupts generated is kept at a minimum by 
automatic handling of most events. Auto-triggering of operations and a special smart mode, which can be enabled by 
writing a one to the Smart Mode Enable bit in the Control A register (CTRLA.SMEN), are included to reduce software 
driver complexity and code size. 
The I
2
C master operates according to the behavior diagram shown in 
. The circles with a capital letter M 
followed by a number (M1, M2... etc.) indicate which node in the figure the bus logic can jump to based on software or 
hardware interaction. 
This diagram is used as reference for the description of the I
2
C master operation throughout the document.
RISE
GCLK
GCLK
SCL
T
BAUDLOW
BAUD
f
f
f
+
+
+
=
10
GCLK
low
f
BAUDLOW
BAUD
T
5
.
+
=
GCLK
HIGH
f
BAUD
BAUD
T
5
.
+
=