atmega32u4-16mu ATMEL Corporation, atmega32u4-16mu Datasheet - Page 263

no-image

atmega32u4-16mu

Manufacturer Part Number
atmega32u4-16mu
Description
Atmega32u4 8-bit Avr Microcontroller With 32k Bytes Of Isp Flash And Usb Controller
Manufacturer
ATMEL Corporation
Datasheet
21.8.3
7766A–AVR–03/08
Slave Receiver Mode
Figure 21-15. 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
are zero or are masked to zero.
Figure 21-16. 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
21-16). All the status codes mentioned in this section assume that the prescaler bits
SDA
SCL
From master to slave
From slave to master
$08
S
TWA6
SLA
Device 1
RECEIVER
SLAVE
TWA5
R
MR
TRANSMITTER
A or A
Device 2
DATA
$40
$48
$38
$68
MASTER
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
ATmega32U4
TWA0
$10
P
R
S
R2
SLA
TWGCE
W
R
MT
263

Related parts for atmega32u4-16mu