ATMEGA8-16AI SL383 Atmel, ATMEGA8-16AI SL383 Datasheet - Page 184

no-image

ATMEGA8-16AI SL383

Manufacturer Part Number
ATMEGA8-16AI SL383
Description
Semiconductors and Actives, Microprocessors, Microcontrollers
Manufacturer
Atmel
Datasheet
Slave Receiver Mode
184
ATmega8(L)
Figure 81. Formats and States in the Master Receiver Mode
In the Slave Receiver mode, a number of data bytes are received from a Master Transmitter
(see
zero or are masked to zero.
Figure 82. Data transfer in Slave Receiver mode
To initiate the Slave Receiver mode, TWAR and TWCR must be initialized as follows:
TWAR
value
Successfull
reception
from a slave
receiver
Next transfer
started with a
repeated start
condition
Not acknowledge
received after the
slave address
Arbitration lost in slave
address or data byte
Arbitration lost and
addressed as slave
Figure
SDA
SCL
82). All the status codes mentioned in this section assume that the prescaler bits are
From master to slave
From slave to master
$08
S
TWA6
SLA
Device 1
RECEIVER
SLAVE
TWA5
R
MR
TRANSMITTER
Device 2
A or A
DATA
MASTER
$40
$48
$38
$68
A
A
A
TWA4
Device’s Own Slave Address
$78
Other master
Other master
n
continues
continues
P
$B0
DATA
Device 3
TWA3
A
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
........
TWA2
$50
$38
To corresponding
states in slave mode
A
A
Device n
Other master
DATA
continues
TWA1
V
CC
$58
A
R1
TWA0
$10
R
P
S
R2
SLA
TWGCE
2486W–AVR–02/10
W
R
MT

Related parts for ATMEGA8-16AI SL383