ATMEGA323-8AI Atmel, ATMEGA323-8AI Datasheet - Page 115
![IC AVR MCU 32K 8MHZ IND 44TQFP](/photos/6/70/67042/313-44-tqfp_sml.jpg)
ATMEGA323-8AI
Manufacturer Part Number
ATMEGA323-8AI
Description
IC AVR MCU 32K 8MHZ IND 44TQFP
Manufacturer
Atmel
Series
AVR® ATmegar
Datasheet
1.ATMEGA323L-4PC.pdf
(247 pages)
Specifications of ATMEGA323-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
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
44-TQFP, 44-VQFP
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Other names
ATMEGA3238AI
- Current page: 115 of 247
- Download datasheet (4Mb)
Assembly Code Example –
Master Receiver Mode
1457G–AVR–09/03
Figure 56. Formats and States in the Master Receiver Mode
Successfull
Reception
from a Slave
Receiver
Next Transfer
Started with a
Repeated Start
Condition
Not Acknowledge
Received after the
Slave Address
Arbitration Lost in Slave
Address or Data Byte
Arbitration Lost and
Addressed as Slave
;Part specific include file and TWI include file must be included.
; <Initialize registers TWAR and TWBR>
wait5:in
wait6:in
From Master to Slave
From Slave to Master
$08
S
ldi
sbrs r16, TWINT
rjmp wait5
in
cpi
brne ERROR
ldi
out
ldi
out
sbrs r16, TWINT
rjmp wait6
out
SLA
r16, (1<<TWINT) | (1<<TWSTA) | (1<<TWEN)
r16,TWCR
r16, TWSR
r16, START
r16, 0xc9
TWDR, r16
r16, (1<<TWINT) | (1<<TWEN)
TWCR, r16
r16,TWCR
R
TWCR, r16
MR
A or A
DATA
$40
$48
$38
$68
A
A
A
$78
Other Master
Other Master
n
Continues
Continues
P
;Send START condition
; Wait for TWINT Flag set. This indicates that
; the START condition has been transmitted
; Check value of TWI Status Register. If status
; different from START, go to ERROR
; Load SLA+R into TWDR Register
; Clear TWINT bit in TWCR to start transmission
; of SLA+R
; Wait for TWINT Flag set. This indicates that
; SLA+R has been transmitted, and ACK/NACK has
; been received
$B0
DATA
A
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
$50
$38
To Corresponding
States in Slave Mode
A
A
Other Master
DATA
Continues
ATmega323(L)
$58
A
$10
P
S
SLA
W
R
115
MT
Related parts for ATMEGA323-8AI
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![ATmega32](/images/manufacturer_photos/0/0/79/atmel_corporation_tmb.jpg)
Part Number:
Description:
Manufacturer:
Atmel Corporation
Datasheet:
![ATMEGA32-8AU](/images/manufacturer_photos/0/0/79/atmel_corporation_tmb.jpg)
Part Number:
Description:
Manufacturer:
ATMEL Corporation
Datasheet:
![ATMEGA32-16MU](/photos/12/13/121316/313-44-qfn_tmb.jpg)
Part Number:
Description:
IC AVR MCU 32K 16MHZ 5V 44-QFN
Manufacturer:
Atmel
Datasheet:
![ATMEGA32-16PU](/photos/6/70/67049/453-40-dip_tmb.jpg)
Part Number:
Description:
IC AVR MCU 32K 16MHZ 5V 40DIP
Manufacturer:
Atmel
Datasheet:
![ATMEGA32-16AU](/photos/6/70/67042/313-44-tqfp_tmb.jpg)
Part Number:
Description:
IC AVR MCU 32K 16MHZ 5V 44TQFP
Manufacturer:
Atmel
Datasheet:
![ATMEGA32-16PI](/photos/6/70/67049/453-40-dip_tmb.jpg)
Part Number:
Description:
IC AVR MCU 32K 16MHZ IND 40-DIP
Manufacturer:
Atmel
Datasheet:
![ATMEGA32-16AI](/photos/6/70/67042/313-44-tqfp_tmb.jpg)
Part Number:
Description:
IC AVR MCU 32K 16MHZ IND 44-TQFP
Manufacturer:
Atmel
Datasheet:
![ATMEGA32-16AUR](/images/manufacturer_photos/0/0/78/atmel_tmb.jpg)
Part Number:
Description:
MCU AVR 32KB FLASH 16MHZ 44TQFP
Manufacturer:
Atmel
Datasheet:
![ATMEGA32-16MUR](/images/manufacturer_photos/0/0/78/atmel_tmb.jpg)
Part Number:
Description:
MCU AVR 32KB FLASH 16MHZ 44QFN
Manufacturer:
Atmel
Datasheet:
![ATMEGA32-16AQ](/photos/6/70/67042/313-44-tqfp_tmb.jpg)
Part Number:
Description:
MCU AVR 32K FLASH 16MHZ 44-TQFP
Manufacturer:
Atmel
Datasheet:
![ATMEGA32-16PC](/photos/6/70/67049/453-40-dip_tmb.jpg)
Part Number:
Description:
IC AVR MCU 32K 16MHZ COM 40-DIP
Manufacturer:
Atmel
Datasheet:
![ATMEGA32-16MC](/photos/12/13/121316/313-44-qfn_tmb.jpg)
Part Number:
Description:
IC AVR MCU 32K 16MHZ COM 44-QFN
Manufacturer:
Atmel
Datasheet:
![ATMEGA32-16AC](/photos/6/70/67042/313-44-tqfp_tmb.jpg)
Part Number:
Description:
IC AVR MCU 32K 16MHZ COM 44-TQFP
Manufacturer:
Atmel
Datasheet: