AT32UC3L064-D3HES ATMEL [ATMEL Corporation], AT32UC3L064-D3HES Datasheet - Page 513

no-image

AT32UC3L064-D3HES

Manufacturer Part Number
AT32UC3L064-D3HES
Description
Manufacturer
ATMEL [ATMEL Corporation]
Datasheet
Figure 23-8. Slave Transmitter with Multiple Data Bytes
23.8.4
32099D–06/2010
TCOMP
TXRDY
TWD
Slave Receiver Mode
Write THR (Data n)
NBYTES set to m
S
DADR
The TWI transfers require the receiver to acknowledge each received data byte. During the
acknowledge clock pulse (9th pulse), the slave releases the data line (HIGH), enabling the
master to pull it down in order to generate the acknowledge. The slave polls the data line dur-
ing this clock pulse and sets the Not Acknowledge bit (NAK) in the Status Register if the
master does not acknowledge the data byte. A NAK means that the master does not wish to
receive additional data bytes. As with the other status bits, an interrupt can be generated if
enabled in the Interrupt Enable Register (IER).
TXRDY is used as Transmit Ready for the Peripheral DMA Controller transmit channel.
The end of the complete transfer is marked by the SR.TCOMP bit set to one. See
on page 513
Figure 23-7. Slave Transmitter with One Data Byte
If 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.
After the address phase, the following is repeated:
7. If REPEATED START is received, SR.REP will be set.
1. If SMBus mode and PEC is used, NBYTES must be set up with the number of bytes
2. Receive a byte. Set SR.BTF when done.
to 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.
W
TCOMP
TXRDY
TWD
A
and
Write THR (DATA)
NBYTES set to 1
Write THR (Data n+1)
Figure 23-8 on page
S
DATA n
DADR
A
W
513.
Write THR (Data n+m)
A
DATA n+5
Last data sent
DATA
AT32UC3L016/32/64
A
DATA n+m
A
STOP sent by master
P
STOP sent by master
A
P
Figure 23-7
513

Related parts for AT32UC3L064-D3HES