Datasheet

Status Code
(TWSR)
Prescaler
Bits are 0
Status of the Two-Wire Serial
Bus and Two-Wire Serial
Interface Hardware
Application SofTWARne Response Next Action Taken by TWI
Hardware
To/from
TWDRn
To TWCRn
STA STO TWINT TWEA
General call address has been
received;
ACK has been returned
X 0 1 1 Data byte will be received and
ACK will be returned
0x80 Previously addressed with own
SLA+W;
data has been received;
ACK has been returned
Read data
byte
X 0 1 0 Data byte will be received and
NOT ACK will be returned
X 0 1 1 Data byte will be received and
ACK will be returned
0x88 Previously addressed with own
SLA+W;
data has been received;
NOT ACK has been returned
Read data
byte
0 0 1 0 Switched to the not addressed
Slave mode;
no recognition of own SLA or
GCA
0 0 1 1 Switched to the not addressed
Slave mode;
own SLA will be recognized;
GCA will be recognized if
TWGCE = “1”
1 0 1 0 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 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
0x90 Previously addressed with
general call;
data has been received;
ACK has been returned
Read data
byte
X 0 1 0 Data byte will be received and
NOT ACK will be returned
X 0 1 1 Data byte will be received and
ACK will be returned
0x98 Previously addressed with
general call;
data has been received;
Read data
byte
0 0 1 0 Switched to the not addressed
Slave mode;
no recognition of own SLA or
GCA
ATmega48PA/88PA/168PA
Two-Wire Serial Interface (TWI)
© 2018 Microchip Technology Inc.
Datasheet Complete
DS40002011A-page 296