5 programming the eeprom, Figure 31-3 on, Figure 31-5 on – Rainbow Electronics ATmega128RFA1 User Manual
Page 472: Atmega128rfa1

472
8266A-MCU Wireless-12/09
ATmega128RFA1
Figure 31-5. Addressing the Flash which is Organized in Pages
(1)
PROGRAM MEMORY
WORD ADDRESS
WITHIN A PAGE
PAGE ADDRESS
WITHIN THE FLASH
INSTRUCTION WORD
PAGE
PCWORD[PAGEMSB:0]:
00
01
02
PAGEEND
PAGE
PCWORD
PCPAGE
PCMSB
PAGEMSB
PROGRAM
COUNTER
Note:
1. PCPAGE and PCWORD are listed in
Table 31-7 on
page 467.
Figure 31-3. Programming the Flash Waveforms
(1)
Note:
1. “XX” is don’t care. The letters refer to the programming description above.
31.7.5 Programming the EEPROM
The EEPROM is organized in pages; see
page 467. When programming
the 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
page 470 for details on
Command, Address and Data loading):
1. A: Load Command “0001 0001”.
2. G: Load Address High Byte (0x00 - 0xFF).
3. B: Load Address Low Byte (0x00 - 0xFF).
4. C: Load Data (0x00 - 0xFF).
5. E: Latch data (give PAGEL a positive pulse).