Datasheet

Table Of Contents
Figure 24-12. Formats and States in the Master Transmitter Mode
S SLA W A DAT A A P
$08 $18 $28
R SLA W
$10
A P
$20
P
$30
A or A
$38
A
Other master
contin ues
A or A
$38
Other master
contin ues
R
A
$68
Other master
contin ues
$78 $B0
To corresponding
states in sla v e mode
MT
MR
Successfull
transmission
to a sla v e
receiv er
Next transfer
star ted with a
repeated star t
condition
Not acknowledge
received after the
slave address
Not acknowledge
receiv ed after a data
byte
Arbitration lost in sla v e
address or data b yte
Arbitration lost and
addressed as sla v e
DAT A A
n
From master to sla v e
From sla v e to master
Any number of data b ytes
and their associated ac kno wledge bits
This number (contained in TWSR) corresponds
to a defined state of the 2-Wire Ser ial Bus. The
prescaler bits are z ero or mask ed to z ero
S
24.6.3. Master Receiver Mode
In the Master Receiver (MR) mode, a number of data bytes are received from a Slave Transmitter (see
next figure). In order to enter a Master mode, a START condition must be transmitted. The format of the
following address packet determines whether Master Transmitter (MT) or MR 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.
Atmel ATmega32A [DATASHEET]
Atmel-8155I-ATmega32A_Datasheet_Complete-08/2016
234