English
Language : 

SAM4L Datasheet, PDF (743/1185 Pages) ATMEL Corporation – ATSAM ARM-based Flash MCU
ATSAM4L4/L2
28.8.3.1
• Write to the relevant register fields in the TWIS with appropriate values and leave those in
TWIM as zeros, or vice versa; or
• Write to the relevant register fields in both the TWIM and the TWIS with the same values.
Bus Timing
The Timing Register (TR) is used to control the timing of bus signals driven by the TWIS. TR
describes bus timings as a function of cycles of the prescaled CLK_TWIS. The clock prescaling
can be selected through TR.EXP.
fPRESCALED
=
f--C----L--K---_---T---W----I--S-
2(EXP + 1)
TR has the following fields:
TLOWS: Prescaled clock cycles used to time SMBUS timeout TLOW:SEXT.
TTOUT: Prescaled clock cycles used to time SMBUS timeout TTIMEOUT.
SUDAT: Non-prescaled clock cycles for data setup and hold count. Used to time TSU_DAT.
EXP: Specifies the clock prescaler setting used for the SMBUS timeouts.
When the TWIS is in HS-mode, the data hold count is set by writing to the HDDAT field in the
HS-mode Timing Register (HSTR).
Figure 28-6. Bus Timing Diagram
t LOW
t HIGH
t LOW
S
t HD:STA
t
SU:DAT
t HD:DAT
t SU:DAT
t
SU:STO
P
42023C–SAM–02/2013
t SU:STA
Sr
743