ATMEGA163-8AI Atmel, ATMEGA163-8AI Datasheet - Page 88

IC AVR MCU 16K A/D 8MHZ 44TQFP

ATMEGA163-8AI

Manufacturer Part Number
ATMEGA163-8AI
Description
IC AVR MCU 16K A/D 8MHZ 44TQFP
Manufacturer
Atmel
Series
AVR® ATmegar
Datasheet

Specifications of ATMEGA163-8AI

Core Processor
AVR
Core Size
8-Bit
Speed
8MHz
Connectivity
I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
32
Program Memory Size
16KB (8K x 16)
Program Memory Type
FLASH
Eeprom Size
512 x 8
Ram Size
1K x 8
Voltage - Supply (vcc/vdd)
4 V ~ 5.5 V
Data Converters
A/D 8x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
44-TQFP, 44-VQFP
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ATMEGA163-8AI
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Slave Transmitter Mode
Miscellaneous States
88
ATmega163(L)
In the Slave Transmitter mode, a number of data bytes are transmitted to a Master
Receiver (see Figure 55). The transfer is initialized as in the Slave Receiver mode.
When TWAR and TWCR have been initialized, the Two-wire Serial Interface waits until
it is addressed by its own slave address (or the general call address if enabled) followed
by the Data Direction bit which must be “1” (read) for the Two-wire Serial Interface to
operate in the Slave Transmitter mode. After its own slave address and the read bit
have been received, the Two-wire Serial Interface Interrupt Flag is set and a valid status
code can be read from TWSR. The status code is used to determine the appropriate
software action. The appropriate action to be taken for each status code is detailed in
Table 35. The slave transmitter mode may also be entered if arbitration is lost while the
Two-wire Serial Interface is in the Master mode (see state $B0).
If the TWEA bit is reset during a transfer, the Two-wire Serial Interface will transmit the
last byte of the transfer and enter state $C0 or state $C8. the Two-wire Serial Interface
is switched to the not addressed Slave mode, and will ignore the Master if it continues
the transfer. Thus the Master Receiver receives all “1” as serial data. While TWEA is
reset, the Two-wire Serial Interface does not respond to its own slave address. How-
ever, the Two-wire Serial Bus is still monitored and address recognition may resume at
any time by setting TWEA. This implies that the TWEA bit may be used to temporarily
isolate the Two-wire Serial Interface from the Two-wire Serial Bus.
Assembly code illustrating operation of the Slave Receiver mode is given at the end of
the TWI section.
There are two status codes that do not correspond to a defined Two-wire Serial Inter-
face state, see Table 36.
Status $F8 indicates that no relevant information is available because the Two-wire
Serial Interface Interrupt Flag (TWINT) is not set yet. This occurs between other states,
and when the Two-wire Serial Interface is not involved in a serial transfer.
Status $00 indicates that a bus error has occured during a Two-wire Serial Bus transfer.
A bus error occurs when a START or STOP condition occurs at an illegal position in the
format frame. Examples of such illegal positions are during the serial transfer of an
address byte, a data byte or an acknowledge bit. When a bus error occurs, TWINT is
set. To recover from a bus error, the TWSTO Flag must set and TWINT must be cleared
by writing a logic one to it. This causes the Two-wire Serial Interface to enter the not
addressed Slave mode and to clear the TWSTO Flag (no other bits in TWCR are
affected). The SDA and SCL lines are released and no STOP condition is transmitted.
1142E–AVR–02/03

Related parts for ATMEGA163-8AI