ATmega32(L)
Table 76. Status Codes for Slave Receiver Mode
Status Code
(TWSR)
Prescaler Bits
are 0
Application Software Response
To TWCR
Status of the Two-wire Serial Bus
and Two-wire Serial Interface
Hardware
To/from TWDR
STA
X
STO
0
TWINT
1
TWEA
0
Next Action Taken by TWI Hardware
$60
$68
$70
$78
Own SLA+W has been received;
ACK has been returned
No TWDR action or
No TWDR action
Data byte will be received and NOT ACK will be
returned
X
X
0
0
1
1
1
0
Data byte will be received and ACK will be returned
Arbitration lost in SLA+R/W as No TWDR action or
master; own SLA+W has been
Data byte will be received and NOT ACK will be
returned
received; ACK has been returned
No TWDR action
X
X
0
0
1
1
1
0
Data byte will be received and ACK will be returned
General call address has been
received; ACK has been returned
No TWDR action or
Data byte will be received and NOT ACK will be
returned
No TWDR action
X
X
0
0
1
1
1
0
Data byte will be received and ACK will be returned
Arbitration lost in SLA+R/W as No TWDR action or
master; General call address has
Data byte will be received and NOT ACK will be
returned
been received; ACK has been
returned
No TWDR action
X
X
0
0
1
1
1
0
Data byte will be received and ACK will be returned
$80
$88
Previously addressed with own Read data byte or
SLA+W; data has been received;
Data byte will be received and NOT ACK will be
returned
ACK has been returned
Read data byte
X
0
0
0
1
1
1
0
Data byte will be received and ACK will be returned
Previously addressed with own Read data byte or
SLA+W; data has been received;
NOT ACK has been returned
Switched to the not addressed Slave mode;
no recognition of own SLA or GCA
Switched to the not addressed Slave mode;
own SLA will be recognized;
GCA will be recognized if TWGCE = “1”
Switched to the not addressed Slave mode;
no recognition of own SLA or GCA;
a START condition will be transmitted when the bus
becomes free
Read data byte or
0
0
0
1
1
1
0
Read data byte or
1
Read data byte
1
0
0
1
1
1
0
Switched to the not addressed Slave mode;
own SLA will be recognized;
GCA will be recognized if TWGCE = “1”;
a START condition will be transmitted when the bus
becomes free
$90
$98
Previously addressed with
general call; data has been re-
ceived; ACK has been returned
Read data byte or
X
Data byte will be received and NOT ACK will be
returned
Read data byte
X
0
0
0
1
1
1
0
Data byte will be received and ACK will be returned
Previously addressed with
general call; data has been
received; NOT ACK has been
returned
Read data byte or
Switched to the not addressed Slave mode;
no recognition of own SLA or GCA
Switched to the not addressed Slave mode;
own SLA will be recognized;
GCA will be recognized if TWGCE = “1”
Switched to the not addressed Slave mode;
no recognition of own SLA or GCA;
a START condition will be transmitted when the bus
becomes free
Read data byte or
0
0
0
1
1
1
0
Read data byte or
1
Read data byte
1
0
1
1
Switched to the not addressed Slave mode;
own SLA will be recognized;
GCA will be recognized if TWGCE = “1”;
a START condition will be transmitted when the bus
becomes free
$A0
A
STOP condition or repeated No action
0
0
0
0
1
1
0
1
Switched to the not addressed Slave mode;
no recognition of own SLA or GCA
Switched to the not addressed Slave mode;
own SLA will be recognized;
START condition has been
received while still addressed as
slave
GCA will be recognized if TWGCE = “1”
Switched to the not addressed Slave mode;
no recognition of own SLA or GCA;
a START condition will be transmitted when the bus
becomes free
1
1
0
0
1
1
0
1
Switched to the not addressed Slave mode;
own SLA will be recognized;
GCA will be recognized if TWGCE = “1”;
a START condition will be transmitted when the bus
becomes free
191
2503J–AVR–10/06