ATMEGA128-16AU SL383 Atmel, ATMEGA128-16AU SL383 Datasheet - Page 222

no-image

ATMEGA128-16AU SL383

Manufacturer Part Number
ATMEGA128-16AU SL383
Description
Manufacturer
Atmel
Datasheet
Slave Transmitter
Mode
222
ATmega128
Figure 101. Formats and States in the Slave Receiver Mode
In the Slave Transmitter mode, a number of data bytes are transmitted to a master receiver (see
Figure
zero or are masked to zero.
Figure 102. Data Transfer in Slave Transmitter Mode
To initiate the Slave Transmitter mode, TWAR and TWCR must be initialized as follows:
SDA
SCL
102). All the status codes mentioned in this section assume that the prescaler bits are
Reception of the
own slave address
and one or more
data bytes. All are
acknowledged
Last data byte received
is not acknowledged
Arbitration lost as master
and addressed as slave
Reception of the general call
address and one or more data
bytes
Last data byte received is
not acknowledged
Arbitration lost as master and
addressed as slave by general call
From master to slave
From slave to master
TRANSMITTER
Device 1
SLAVE
S
SLA
General Call
Device 2
RECEIVER
MASTER
W
DATA
$60
$68
$70
$78
A
A
A
A
Device 3
n
A
DATA
DATA
Any number of data bytes
and their associated acknowledge bits
This number (contained in TWSR) corresponds
to a defined state of the Two-wire Serial Bus. The
prescaler bits are zero or masked to zero
........
$80
$90
Device n
A
A
V
CC
DATA
DATA
R1
$80
$88
$90
$98
A
A
A
A
P or S
P or S
P or S
P or S
$A0
$A0
R2
2467S–AVR–07/09

Related parts for ATMEGA128-16AU SL383