ATMEGA128-16AU SL383 Atmel, ATMEGA128-16AU SL383 Datasheet - Page 295

no-image

ATMEGA128-16AU SL383

Manufacturer Part Number
ATMEGA128-16AU SL383
Description
Manufacturer
Atmel
Datasheet
Programming the
EEPROM
2467S–AVR–07/09
Figure 137. Programming the Flash Waveforms
Note:
The EEPROM is organized in pages, see
EEPROM, the program data is latched into a page buffer. This allows one page of data to be
programmed simultaneously. The programming algorithm for the EEPROM data memory is as
follows (refer to
Data loading):
1. A: Load Command “0001 0001”.
2. G: Load Address High Byte ($00 - $FF).
3. B: Load Address Low Byte ($00 - $FF).
4. C: Load Data ($00 - $FF).
5. E: Latch data (give PAGEL a positive pulse).
K: Repeat 3 through 5 until the entire buffer is filled.
L: Program EEPROM page:
1. Set BS1 to “0”.
2. Give WR a negative pulse. This starts programming of the EEPROM page. RDY/BSY
3. Wait until to RDY/BSY goes high before programming the next page.
goes low.
(See
RESET +12V
RDY/BSY
“XX” is don’t care. The letters refer to the programming description above.
PAGEL
XTAL1
Figure 138
DATA
XA1
XA0
BS1
BS2
WR
OE
“Programming the Flash” on page 293
0x10
A
for signal waveforms.)
ADDR. LOW
B
DATA LOW
C
DATA HIGH
D
E
XX
ADDR. LOW DATA LOW
Table 124 on page
B
C
F
DATA HIGH
for details on Command, Address and
D
XX
E
292. When programming the
ADDR. HIGH
G
H
ATmega128
XX
295

Related parts for ATMEGA128-16AU SL383