AT32UC3C2512C Automotive Atmel Corporation, AT32UC3C2512C Automotive Datasheet - Page 701

no-image

AT32UC3C2512C Automotive

Manufacturer Part Number
AT32UC3C2512C Automotive
Description
Manufacturer
Atmel Corporation
27.8.2.1
9166C–AVR-08/11
Clock Generation
The Clock Waveform Generator Register (CWGR) is used to control the waveform of the TWCK
clock. CWGR must be written so that the desired TWI bus timings are generated. CWGR
describes bus timings as a function of cycles of a prescaled clock. The clock prescaling can be
selected through the Clock Prescaler field in CWGR (CWGR.EXP).
CWGR has the following fields:
LOW: Prescaled clock cycles in clock low count. Used to time T
HIGH: Prescaled clock cycles in clock high count. Used to time T
STASTO: Prescaled clock cycles in clock high count. Used to time T
DATA: Prescaled clock cycles for data setup and hold count. Used to time T
EXP: Specifies the clock prescaler setting.
Note that the total clock low time generated is the sum of T
Any slave or other bus master taking part in the transfer may extend the TWCK low period at any
time.
The TWIM hardware monitors the state of the TWCK line as required by the I²C specification.
The clock generation counters are started when a high/low level is detected on the TWCK line,
not when the TWIM hardware releases/drives the TWCK line. This means that the CWGR set-
tings alone do not determine the TWCK frequency. The CWGR settings determine the clock low
time and the clock high time, but the TWCK rise and fall times are determined by the external cir-
cuitry (capacitive load, etc.).
Figure 27-5. Bus Timing Diagram
S
t
t LOW
HD:STA
t
SU:DAT
t HIGH
t
HD:DAT
f
PRESCALER
t LOW
=
f
------------------------- -
2
CLK_TWIM
(
t
t
EXP
SU:DAT
SU:STA
+
1
)
HD_DAT
Sr
LOW
HIGH
+ T
and T
HD_STA
.
SU_DAT
BUF
, T
AT32UC3C
HD_DAT
+ T
.
t
SU_STA
SU:STO
LOW
, T
.
, T
SU_DAT
SU_STO
P
.
701
.

Related parts for AT32UC3C2512C Automotive