English
Language : 

MEGA128CAN Datasheet, PDF (333/413 Pages) ATMEL Corporation – Microcontroller WITH 128K BYTES OF ISP FLASH AND CAN CONTROLLER
AT90CAN128
Figure 157. Addressing the Flash Which is Organized in Pages(1)
PROGRAM
COUNTER
PCMSB
15
PCPAGE
PAGE address
within the FLASH
PROGRAM MEMORY
PAGE
PAGEMSB
PCWORD
0
WORD address
within a PAGE
PAGE
INSTRUCTION WORD
PCWORD [PAGEMSB:0]:
00
01
02
PAGEEND
DATA
XA1
XA0
BS1
XTAL1
WR
RDY/BSY
RESET +12V
OE
PAGEL
BS2
Programming the EEPROM
Note: 1. PCPAGE and PCWORD are listed in Table 131 on page 330.
Figure 158. Programming the Flash Waveforms(1)
F
A
0x10
B
ADDR. LOW
C
DATA LOW
D
DATA HIGH
E
B
C
D
XX
ADDR. LOW DATA LOW DATA HIGH
E
G
H
XX
ADDR. HIGH
XX
Note: 1. “XX” is don’t care. The letters refer to the programming description above.
The EEPROM is organized in pages, see Table 132 on page 330. 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 “Programming the Flash” on page 331 for details on
Command, Address and Data loading):
1. A: Load Command “0001 0001”.
2. G: Load Address High Byte (0x00 - 0xFF).
4250E–CAN–12/04
333