ATMEGA48V_11 ATMEL [ATMEL Corporation], ATMEGA48V_11 Datasheet - Page 227

no-image

ATMEGA48V_11

Manufacturer Part Number
ATMEGA48V_11
Description
8-bit Atmel Microcontroller with 4/8/16K Bytes In-System Programmable Flash
Manufacturer
ATMEL [ATMEL Corporation]
Datasheet
Table 22-3.
2545T–AVR–05/11
Status code
(TWSR)
prescaler bits
are 0
0x08
0x10
0x38
0x40
0x48
0x50
0x58
Status of the 2-wire serial bus
and
hardware
A START condition has been
transmitted
A repeated START condition
has been transmitted
Arbitration lost in SLA+R or
NOT ACK bit
SLA+R has been transmitted;
ACK has been received
SLA+R has been transmitted;
NOT ACK has been received
Data byte has been received;
ACK has been returned
Data byte has been received;
NOT ACK has been returned
Status codes for master receiver mode.
2-wire serial interface
the Master to switch between Slaves, Master Transmitter mode and Master Receiver mode with-
out losing control over the bus.
To/from TWDR
Load SLA+R
Load SLA+R or
load SLA+W
No TWDR action or
no TWDR action
No TWDR action or
no TWDR action
No TWDR action or
no TWDR action or
no TWDR action
Read data byte or
read data byte
Read data byte or
read data byte or
read data byte
Application software response
STA
0
0
0
0
1
0
0
1
0
1
0
0
1
0
1
STO
0
0
0
0
0
0
0
0
1
1
0
0
0
1
1
To TWCR
TWIN
T
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
TWE
A
X
X
X
X
X
X
X
X
X
X
X
0
1
0
1
Next action taken by TWI hardware
SLA+R will be transmitted
ACK or NOT ACK will be received
SLA+R will be transmitted
ACK or NOT ACK will be received
SLA+W will be transmitted
Logic will switch to master transmitter mode
2-wire serial bus will be released and not addressed
Slave mode will be entered
A START condition will be transmitted when the bus
becomes free
Data byte will be received and NOT ACK will be
returned
Data byte will be received and ACK will be returned
Repeated START will be transmitted
STOP condition will be transmitted and TWSTO Flag
will be reset
STOP condition followed by a START condition will be
transmitted and TWSTO flag will be reset
Data byte will be received and NOT ACK will be
returned
Data byte will be received and ACK will be returned
Repeated START will be transmitted
STOP condition will be transmitted and TWSTO Flag
will be reset
STOP condition followed by a START condition will be
transmitted and TWSTO flag will be reset
ATmega48/88/168
227

Related parts for ATMEGA48V_11