ATMEGA323-8PI Atmel, ATMEGA323-8PI Datasheet - Page 116

IC AVR MCU 32K 8MHZ IND 40DIP

ATMEGA323-8PI

Manufacturer Part Number
ATMEGA323-8PI
Description
IC AVR MCU 32K 8MHZ IND 40DIP
Manufacturer
Atmel
Series
AVR® ATmegar
Datasheet

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
116
ATmega323(L)
wait7:in
wait8:in
wait9:in
;<Receive more data bytes if needed>
;receive next to last data byte.
in
cpi
brne ERROR
ldi
out
sbrs r16, TWINT
rjmp wait7
in
cpi
brne ERROR
in
nop
ldi
out
sbrs r16, TWINT
rjmp wait8
in
cpi
brne ERROR
in
nop
ldi
out
sbrs r16, TWINT
rjmp wait9
in
cpi
brne ERROR
r16, TWSR
r16, MR_SLA_ACK
r16, (1<<TWINT) | (1<<TWEA) | (1<<TWEN)
TWCR, r16
r16,TWCR
r16, TWSR
r16, MR_DATA_ACK
r16, TWDR
r16, (1<<TWINT) | (1<<TWEA) | (1<<TWEN)
TWCR, r16
r16,TWCR
r16, TWSR
r16, MR_DATA_ACK
r16, TWDR
r16, (1<<TWINT) | (1<<TWEN)
TWCR, r16
r16,TWCR
r16, TWSR
r16, MR_DATA_NACK
; Check value of TWI Status Register. If status
; different from MR_SLA_ACK, go to ERROR
; Clear TWINT bit in TWCR to start reception of
; data. Setting TWEA causes ACK to be returned
; after reception of data byte
; Wait for TWINT Flag set. This indicates that
; data has been received and ACK returned
; Check value of TWI Status Register. If status
; different from MR_DATA_ACK, go to ERROR
; Input received data from TWDR.
;<do something with received data>
; Clear TWINT bit in TWCR to start reception of
; data. Setting TWEA causes ACK to be returned
;after reception of data byte
; Wait for TWINT Flag set. This indicates that
; data has been received and ACK returned
; Check value of TWI Status Register. If status
; different from MR_DATA_ACK, go to ERROR
; Input received data from TWDR.
;<do something with received data>
; Clear TWINT bit in TWCR to start reception of
; data. Not setting TWEA causes NACK to be
; returned after reception of next data byte
; receive last data byte. Signal this to Slave
; by returning NACK
; Wait for TWINT Flag set. This indicates that
; data has been received and NACK returned
; Check value of TWI Status Register. If status
; different from MR_DATA_NACK, go to ERROR
1457G–AVR–09/03

Related parts for ATMEGA323-8PI