Data Sheet

517
Atmel | SMART SAM D21 [DATASHEET]
Atmel-42181G–SAM-D21_Datasheet–09/2015
Figure 27-5. SCL Timing
The following parameters are timed using the SCL low time period. This comes from the Master Baud Rate Low bit group
in the Baud Rate register (BAUD.BAUDLOW) when non-zero, or the Master Baud Rate bit group in the Baud Rate
register (BAUD.BAUD) when BAUD.BAUDLOW is zero.
z T
LOW
– Low period of SCL clock
z T
SU;STO
– Set-up time for stop condition
z T
BUF
– Bus free time between stop and start conditions
z T
HD;STA
– Hold time (repeated) start condition
z T
SU;STA
– Set-up time for repeated start condition
z T
HIGH
is timed using the SCL high time count from BAUD.BAUD
z T
RISE
is determined by the bus impedance; for internal pull-ups. Refer to “Electrical Characteristics” on page
935 for details.
z T
FALL
is determined by the open-drain current limit and bus impedance; can typically be regarded as zero.
Refer to “Electrical Characteristics” on page 935 for details.
The SCL frequency is given by:
When BAUD.BAUDLOW is zero, the BAUD.BAUD value is used to time both SCL high and SCL low. In this case the
following formula will give the SCL frequency:
When BAUD.BAUDLOW is non-zero, the following formula is used to determine the SCL frequency:
T
HD;STA
T
LOW
T
HIGH
T
BUF
T
RISE
SCL
SDA
T
SU;STO
T
SU;STA
PS Sr
T
FALL
RISEHIGHLOW
SCL
TTT
f
++
=
1
RISE
GCLK
GCLK
SCL
TBAUD
f
f
f
++
=
)5(2
RISE
GCLK
GCLK
SCL
TBAUDLOWBAUD
f
f
f
+++
=
10