atmega323l ATMEL Corporation, atmega323l Datasheet - Page 191

no-image

atmega323l

Manufacturer Part Number
atmega323l
Description
Atmega323 8-bit Avr Microcontroller With 32k Bytes Of In-system Programmable Flash
Manufacturer
ATMEL Corporation
Datasheet
1457G–AVR–09/03
C. Load Data Low Byte
D. Load Data High Byte
E. Latch Data High and Low Byte
F. Repeat B through F 64 Times to Fill the Page Buffer.
To address a page in the Flash, 8 bits are needed (256 pages). The 6 most significant
bits are read from address High Byte as described in section “H” below. The two least
significant page address bits however, are the two most significant bits (bit7 and bit6) of
the latest loaded address Low Byte as described in section “B”.
G. Load Address High Byte
H. Program Page
I. End Page Programming
J. Repeat A through I 256 Times or Until All Data Has Been Programmed.
1. Set XA1, XA0 to “01”. This enables data loading.
2. Set DATA = Data Low Byte ($00 - $FF).
3. Give XTAL1 a positive pulse. This loads the data byte.
1. Set BS1 to “1”. This selects high data byte.
2. Set XA1, XA0 to “01”. This enables data loading.
3. Set DATA = Data High Byte ($00 - $FF).
4. Give XTAL1 a positive pulse. This loads the data byte.
1. Set BS1 to “1”.
2. Give PAGEL a positive pulse. See Figure 94 for signal waveforms.
1. 1. Set XA1, XA0 to “00”. This enables address loading.
2. Set BS1 to “1”. This selects high address.
3. Set DATA = Address High Byte ($00 - $3F).
4. Give XTAL1 a positive pulse. This loads the address High Byte.
1. Give WR a negative pulse. This starts programming of the entire page of
2. Wait until RDY/BSY goes high.
1. 1. Set XA1, XA0 to “10”. This enables command loading.
2. Set DATA to “0000 0000”. This is the command for No Operation.
3. Give XTAL1 a positive pulse. This loads the command, and the internal write
data. RDY/BSYgoes low.
(See Figure 95 for signal waveforms)
signals are reset.
ATmega323(L)
191

Related parts for atmega323l