atmega163l ATMEL Corporation, atmega163l Datasheet - Page 98

no-image

atmega163l

Manufacturer Part Number
atmega163l
Description
Atmega163 8-bit Avr Microcontroller With 16k Bytes Of In-system Programmable Flash
Manufacturer
ATMEL Corporation
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
atmega163l-4AI
Manufacturer:
ATMEL
Quantity:
984
Table 35. Status Codes for Slave Transmitter Mode
98
Status Code
(TWSR)
$A8
$B0
$B8
$C0
$C8
ATmega163(L)
Status of the Two-wire Serial Bus
and Two-wire Serial Interface
hardware
Own SLA+R has been received;
ACK has been returned
Arbitration lost in SLA+R/W as
master; own SLA+R has been
received; ACK has been returned
Data byte in TWDR has been
transmitted; ACK has been
received
Data byte in TWDR has been
transmitted; NOT ACK has been
received
Last data byte in TWDR has been
transmitted (TWEA = “0”); ACK
has been received
Figure 55. Formats and States in the Slave Transmitter Mode
Reception of the Own
Slave Address and One or
More Data Bytes
Arbitration Lost as Master
and Addressed as Slave
Last Data Byte Transmitted.
Switched to not Addressed
Slave (TWEA = "0")
To/from TWDR
Load data byte or
Load data byte
Load data byte or
Load data byte
Load data byte or
Load data byte
No TWDR action or
No TWDR action or
No TWDR action or
No TWDR action
No TWDR action or
No TWDR action or
No TWDR action or
No TWDR action
From Master to Slave
From Slave to Master
Application Software Response
S
To TWCR
STA
X
X
X
X
X
X
0
0
1
1
0
0
1
1
SLA
STO
0
0
0
0
0
0
0
0
0
0
0
0
0
0
R
DATA
TWINT
1
1
1
1
1
1
1
1
1
1
1
1
1
1
$A8
$B0
A
A
n
TWEA
0
1
0
1
0
1
0
1
0
1
0
1
0
1
A
DATA
Next Action Taken by Two-wire Serial Interface Hard-
ware
Last data byte will be transmitted and NOT ACK should
be received
Data byte will be transmitted and ACK should be re-
ceived
Last data byte will be transmitted and NOT ACK should
be received
Data byte will be transmitted and ACK should be re-
ceived
Last data byte will be transmitted and NOT ACK should
be received
Data byte will be transmitted and ACK should be re-
ceived
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
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
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
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
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
$B8
A
DATA
$C0
$C8
A
A
1142E–AVR–02/03
P or S
All 1's
P or S

Related parts for atmega163l