ATMEGA323-8AC Atmel, ATMEGA323-8AC Datasheet - Page 118

IC AVR MCU 32K 8MHZ COM 44TQFP

ATMEGA323-8AC

Manufacturer Part Number
ATMEGA323-8AC
Description
IC AVR MCU 32K 8MHZ COM 44TQFP
Manufacturer
Atmel
Series
AVR® ATmegar
Datasheet

Specifications of ATMEGA323-8AC

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
0°C ~ 70°C
Package / Case
44-TQFP, 44-VQFP
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Other names
ATMEGA3238AC
Assembly Code Example –
Slave Receiver Mode
118
ATmega323(L)
Figure 57. Formats and States in the Slave Receiver Mode
Reception of the Own
Slave Address and One or
more Data Bytes. All are
Acknowledged
Last Data Byte Received
is not Acknowledged
Arbitration Lost as Master
and Addressed as Slave
Reception of the General Call
Address and One or more Data
Bytes
Last Data Byte received is
not Acknowledged
Arbitration Lost as Master and
Addressed as Slave by General Call
;Part specific include file and TWI include file must be included.
; <Initialize registers TWAR and TWBR>
; <Receive START condition and SLA+W>
wait10:in
ldi
out
sbrs r16, TWINT
rjmp wait10
in
cpi
brne ERROR
ldi
out
From Master to Slave
From Slave to Master
r16, (1<<TWINT) | (1<<TWEA) | (1<<TWEN)
TWCR, r16
r16,TWCR
r16, TWSR
r16, SR_SLA_ACK
r16, (1<<TWINT) | (1<<TWEA) | (1<<TWEN)
TWCR, r16
S
SLA
General Call
W
DATA
; Enable TWI in Slave Receiver Mode
; Wait for TWINT Flag set. This indicates that
; START followed by SLA+W has been received
; Check value of TWI Status Register. If status
; different from SR_SLA_ACK, go to ERROR
; Clear TWINT bit in TWCR to start reception of
; first data byte. Setting TWEA indicates that
$60
$68
$70
$78
A
A
A
A
n
A
DATA
DATA
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
$80
$90
A
A
DATA
DATA
1457G–AVR–09/03
$80
$88
$90
$98
A
A
A
A
P or S
P or S
P or S
P or S
$A0
$A0

Related parts for ATMEGA323-8AC