
183
ATmega8515(L)
2512A–AVR–04/02
Figure 76. Programming the Flash Waveforms
Note: “XX”isdon’t care. The letters refer to the programming description above.
Programming the EEPROM The EEPROM is organized in pages, see Table 90onpage 179. When programming
the EEPROM, the program data islatched into a page buffer.This allows one page of
data to be programmedsimultaneously.The programming algorithm for the EEPROM
data memory is asfollows (refer to “Programming the Flash”onpage 181 fordetails on
Command, Address andData loading):
1. A:LoadCommand “0001 0001”.
2. G: Load Address HighByte ($00 -$FF).
3. B: Load Address LowByte ($00 -$FF).
4. C: LoadData ($00 -$FF).
5. E: Latch data (give PAGEL a positive pulse).
K: Repeat 3 through 5until the entire buffer isfilled.
L: Program EEPROM page.
1. Set BS1to“0”.
2. Give WR
a negative pulse. Thisstartsprogramming of the EEPROM page.
RDY/BSY
goeslow.
3. Wait until to RDY/BSY
goeshighbefore programming thenext page.
(See Figure 77 forsignalwaveforms.)
RDY/BSY
WR
OE
RESET +12V
PAGEL
BS2
$10 ADDR. LOW
ADDR. HIGH
DATA
DATA LOW DATA HIGH ADDR. LOW DATA LOW DATA HIGH
XA1
XA0
BS1
XTAL1
XX XX
XX
ABCDEBCDEGH
F
Komentarze do niniejszej Instrukcji