English
Language : 

ATMEGA640 Datasheet, PDF (259/407 Pages) ATMEL Corporation – 8- BIT Microcontroller with 256K Bytes In-System Programmable Flash
Master Receiver Mode
ATmega640/1280/1281/2560/2561
Figure 103. Formats and States in the Master Transmitter Mode
MT
Successfull
transmission
to a slave
receiver
S
$08
Next transfer
started with a
repeated start
condition
SLA
W
A
$18
DATA
Not acknowledge
received after the
slave address
Not acknowledge
received after a data
byte
A
P
$20
Arbitration lost in slave
address or data byte
Arbitration lost and
addressed as slave
A or A
Other master
continues
$38
A
Other master
continues
$68 $78 $B0
A
P
$28
RS
SLA
W
$10
R
MR
A
P
$30
A or A
Other master
continues
$38
To corresponding
states in slave mode
From master to slave
From slave to master
DATA
n
Any number of data bytes
A
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
In the Master Receiver mode, a number of data bytes are received from a Slave Trans-
mitter (Slave see Figure 104). In order to enter a Master mode, a START condition must
be transmitted. The format of the following address packet determines whether Master
Transmitter or Master Receiver mode is to be entered. If SLA+W is transmitted, MT
mode is entered, if SLA+R is transmitted, MR mode is entered. All the status codes
mentioned in this section assume that the prescaler bits are zero or are masked to zero.
2549A–AVR–03/05
259