ATMEGA16-16AU SL602 Atmel, ATMEGA16-16AU SL602 Datasheet - Page 195

no-image

ATMEGA16-16AU SL602

Manufacturer Part Number
ATMEGA16-16AU SL602
Description
Manufacturer
Atmel
Datasheet
Slave Transmitter
Mode
2466T–AVR–07/10
Figure 91. 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
zero or are masked to zero.
Figure 92. Data Transfer in Slave Transmitter Mode
To initiate the Slave Transmitter mode, TWAR and TWCR must be initialized as follows:
TWAR
Value
Figure
SDA
SCL
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
92). All the status codes mentioned in this section assume that the prescaler bits are
From master to slave
From slave to master
TWA6
TRANSMITTER
Device 1
SLAVE
S
TWA5
SLA
Device 2
General Call
RECEIVER
MASTER
TWA4
Device’s Own Slave Address
W
DATA
Device 3
$60
$68
$70
$78
TWA3
A
A
A
A
n
A
TWA2
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
TWA1
Device n
$80
$90
A
A
V
CC
DATA
DATA
ATmega16(L)
TWA0
R1
$80
$90
$88
$98
A
A
A
A
TWGCE
R2
P or S
P or S
P or S
P or S
$A0
$A0
195

Related parts for ATMEGA16-16AU SL602