ATmega88PA Automotive Atmel Corporation, ATmega88PA Automotive Datasheet - Page 305

no-image

ATmega88PA Automotive

Manufacturer Part Number
ATmega88PA Automotive
Description
Manufacturer
Atmel Corporation
28.7.5
Figure 28-4. Programming the EEPROM Waveforms
9223B–AVR–09/11
Programming the EEPROM
RESET +12V
RDY/BSY
PAGEL
DATA
XTAL1
BS2
WR
XA1
XA0
BS1
OE
0x11
A
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):
K: Repeat 3 through 5 until the entire buffer is filled.
L: Program EEPROM page
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).
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 (See
Atmel ATmega48PA/88PA/168PA [Preliminary]
ADDR. HIGH
goes low.
for signal waveforms).
G
ADDR. LOW
B
“Programming the Flash” on page 302
DATA
C
XX
E
ADDR. LOW
B
Table 28-12 on page
DATA
C
K
XX
E
for details on Command, Address and
L
299. When programming the
Figure 28-4
305

Related parts for ATmega88PA Automotive