AT32UC3C2512C Automotive Atmel Corporation, AT32UC3C2512C Automotive Datasheet - Page 738

no-image

AT32UC3C2512C Automotive

Manufacturer Part Number
AT32UC3C2512C Automotive
Description
Manufacturer
Atmel Corporation
Figure 28-8. Slave Transmitter with Multiple Data Bytes
Figure 28-9. Timing Relationship between TWCK, SR.NAK, and SR.BTF
28.8.4
9166C–AVR-08/11
TCOMP
TXRDY
TWD
Slave Receiver Mode
Write THR (Data n)
NBYTES set to m
S
DADR
SR.NAK
SR.BTF
t
1
TWCK
: (CLK_TWIS period) x 2
TWD
If the TWIS matches an address in which the R/W bit in the TWI address phase transfer is
cleared, it will enter slave receiver mode and clear SR.TRA (note that SR.TRA is cleared one
CLK_TWIS cycle after the relevant address match bit in the same register is set).
After the address phase, the following is repeated:
The TWI transfers require the receiver to acknowledge each received data byte. During the
acknowledge clock pulse (9th pulse), the master releases the data line (HIGH), enabling the
1. If SMBus mode and PEC is used, NBYTES must be set up with the number of bytes to
2. Receive a byte. Set SR.BTF when done.
3. Update NBYTES. If CR.CUP is written to one, NBYTES is incremented, otherwise
4. After a data byte has been received, the slave transmits an ACK or NAK bit. For ordi-
5. If STOP is received, SR.TCOMP will be set.
6. If REPEATED START is received, SR.REP will be set.
receive. This is necessary in order to know which of the received bytes is the PEC byte.
NBYTES can also be used to count the number of bytes received if using DMA.
NBYTES is decremented. NBYTES is usually configured to count downwards if PEC is
used.
nary data bytes, the CR.ACK field controls if an ACK or NAK should be returned. If PEC
is enabled and the last byte received was a PEC byte (indicated by NBYTES equal to
zero), The TWIS will automatically return an ACK if the PEC value was correct, other-
wise a NAK will be returned.
DATA (LSB)
R
A
Write THR (Data n+1)
DATA n
t
1
A
N
Write THR (Data n+m)
DATA n+5
Last data sent
t
1
A
P
DATA n+m
STOP sent by master
AT32UC3C
N
P
738

Related parts for AT32UC3C2512C Automotive