ATMEGA323-8PI Atmel, ATMEGA323-8PI Datasheet - Page 107
ATMEGA323-8PI
Manufacturer Part Number
ATMEGA323-8PI
Description
IC AVR MCU 32K 8MHZ IND 40DIP
Manufacturer
Atmel
Series
AVR® ATmegar
Datasheet
1.ATMEGA323L-4PC.pdf
(247 pages)
Specifications of ATMEGA323-8PI
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
32KB (16K x 16)
Program Memory Type
FLASH
Eeprom Size
1K x 8
Ram Size
2K x 8
Voltage - Supply (vcc/vdd)
4.5 V ~ 5.5 V
Data Converters
A/D 8x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
40-DIP (0.600", 15.24mm)
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Other names
ATMEGA3238PI
- Current page: 107 of 247
- Download datasheet (4Mb)
The Two-wire Serial Interface
(Slave) Address Register –
TWAR
Two-wire Serial Interface
Modes
1457G–AVR–09/03
• Bits 7..1 – TWA: Two-wire Serial Interface (Slave) Address Register
These seven bits constitute the slave address of the Two-wire Serial Bus unit.
• Bit 0 – TWGCE: Two-wire Serial Interface General Call Recognition Enable bit
This bit enables, if set, the recognition of the General Call given over the Two-wire Serial
Bus.
The TWAR should be loaded with the 7-bit slave address (in the seven most significant
bits of TWAR) to which the Two-wire Serial Interface will respond when programmed as
a Slave Transmitter or Receiver, and not needed in the Master modes. The LSB of
TWAR is used to enable recognition of the general call address ($00). There is an asso-
ciated address comparator that looks for the slave address (or general call address if
enabled) in the received serial address. If a match is found, an interrupt request is
generated.
The Two-wire Serial Interface can operate in four different modes:
•
•
•
•
Data transfer in each mode of operation is shown in Figure 55 to Figure 58. These fig-
ures contain the following abbreviations:
S: START condition
R: Read bit (high level at SDA)
W: Write bit (low level at SDA)
A: Acknowledge bit (low level at SDA)
A: Not acknowledge bit (high level at SDA)
Data: 8-bit data byte
P: STOP condition
SLA: Slave Address
In Figure 55 to Figure 58, circles are used to indicate that the Two-wire Serial Interface
Interrupt Flag is set. The numbers in the circles show the status code held in TWSR. At
these points, actions must be taken by the application to continue or complete the Two-
wire Serial Bus transfer. The Two-wire Serial Bus transfer is suspended until the Two-
wire Serial Interface Interrupt Flag is cleared by software.
The Two-wire Serial Interface Interrupt Flag is not automatically cleared by hardware
when executing the interrupt routine. Software has to clear the flag to continue the Two-
wire transfer. Also note that the Two-wire Serial Interface starts execution as soon as
this bit is cleared, so that all access to TWAR, TWDR, and TWSR must have been com-
pleted before clearing this flag.
Bit
$02 ($22)
Read/Write
Initial Value
Master Transmitter
Master Receiver
Slave Receiver
Slave Transmitter
TWA6
R/W
7
1
TWA5
R/W
6
1
TWA4
R/W
5
1
TWA3
R/W
4
1
TWA2
R/W
3
1
TWA1
R/W
2
1
ATmega323(L)
TWA0
R/W
1
1
TWGCE
R/W
0
0
TWAR
107
Related parts for ATMEGA323-8PI
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
Manufacturer:
Atmel Corporation
Datasheet:
Part Number:
Description:
Manufacturer:
ATMEL Corporation
Datasheet:
Part Number:
Description:
IC AVR MCU 32K 16MHZ 5V 44-QFN
Manufacturer:
Atmel
Datasheet:
Part Number:
Description:
IC AVR MCU 32K 16MHZ 5V 40DIP
Manufacturer:
Atmel
Datasheet:
Part Number:
Description:
IC AVR MCU 32K 16MHZ 5V 44TQFP
Manufacturer:
Atmel
Datasheet:
Part Number:
Description:
IC AVR MCU 32K 16MHZ IND 40-DIP
Manufacturer:
Atmel
Datasheet:
Part Number:
Description:
IC AVR MCU 32K 16MHZ IND 44-TQFP
Manufacturer:
Atmel
Datasheet:
Part Number:
Description:
MCU AVR 32KB FLASH 16MHZ 44TQFP
Manufacturer:
Atmel
Datasheet:
Part Number:
Description:
MCU AVR 32KB FLASH 16MHZ 44QFN
Manufacturer:
Atmel
Datasheet:
Part Number:
Description:
MCU AVR 32K FLASH 16MHZ 44-TQFP
Manufacturer:
Atmel
Datasheet:
Part Number:
Description:
IC AVR MCU 32K 16MHZ COM 40-DIP
Manufacturer:
Atmel
Datasheet:
Part Number:
Description:
IC AVR MCU 32K 16MHZ COM 44-QFN
Manufacturer:
Atmel
Datasheet:
Part Number:
Description:
IC AVR MCU 32K 16MHZ COM 44-TQFP
Manufacturer:
Atmel
Datasheet: