ATMEGA323-8PC Atmel, ATMEGA323-8PC Datasheet - Page 198

IC AVR MCU 32K 8MHZ COM 40DIP

ATMEGA323-8PC

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

Specifications of ATMEGA323-8PC

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
40-DIP (0.600", 15.24mm)
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Other names
ATMEGA3238PC
Data Polling Flash
Data Polling EEPROM
198
ATmega323(L)
3. The Serial Programming instructions will not work if the communication is out of
4. If a chip erase is performed (must be done to erase the Flash), wait 2•t
5. The Flash is programmed one page at a time. The memory page is loaded one
6. The EEPROM array is programmed one byte at a time by supplying the address
7. Any memory location can be verified by using the Read instruction which returns
8. At the end of the programming session, RESET can be set high to commence
9. Power-off sequence (if needed):
When a page is being programmed into the Flash, reading an address location within
the page being programmed will give the value $FF. At the time the device is ready for a
new page, the programmed value will read correctly. This is used to determine when the
next page can be written. Note that the entire page is written simultaneously and any
address within the page can be used for polling. Data polling of the Flash will not work
for the value $FF, so when programming this value, the user will have to wait for at least
t
all locations, programming of addresses that are meant to contain $FF, can be skipped.
See Table 68 t
When a new byte has been written and is being programmed into EEPROM, reading the
address location being programmed will give the value $FF. At the time the device is
ready for a new byte, the programmed value will read correctly. This is used to deter-
mine when the next byte can be written. This will not work for the value $FF, but the user
should have the following in mind: As a Chip Erased device contains $FF in all locations,
programming of addresses that are meant to contain $FF, can be skipped. This does
not apply if the EEPROM is re-programmed without Chip Erasing the device. In this
case, data polling cannot be used for the value $FF, and the user will have to wait at
least t
WD_FLASH
synchronization. When in sync. the second byte ($53), will echo back when issu-
ing the third byte of the Programming Enable instruction. Whether the echo is
correct or not, all four bytes of the instruction must be transmitted. If the $53 did
not echo back, give SCK a positive pulse and issue a new Programming Enable
command. If the $53 is not seen within 32 attempts, there is no functional device
connected.
after the instruction, give RESET a positive pulse, and start over from Step 2.
See Table 68 for the t
byte at a time by supplying the 6 LSB of the address and data together with the
Load Program memory Page instruction. The Program memory Page is stored
by loading the Write Program memory Page instruction with the 8 MSB of the
address. If polling is not used, the user must wait at least t
ing the next page. (Please refer to Table 68). Accessing the Serial Programming
interface before the Flash write operation completes can result in incorrect
programming.
and data together with the appropriate Write instruction. An EEPROM Memory
location is first automatically erased before new data is written. If polling is not
used, the user must wait at least t
refer to Table 68). In a chip erased device, no $FFs in the data file(s) need to be
programmed.
the content at the selected address at serial output MISO/PB6.
normal operation.
Set XTAL1 to “0” (if a crystal is not used).
Set RESET to “1”.
Turn V
WD_EEPROM
before programming the next page. As a Chip Erased device contains $FF in
CC
power off
WD_FLASH
before programming the next byte. See Table 68 for t
.
WD_FLASH
figure.
WD_EEPROM
before issuing the next byte. (Please
WD_FLASH
WD_EEPROM
before issu-
1457G–AVR–09/03
WD_FLASH
.

Related parts for ATMEGA323-8PC