ATmega88PA Automotive Atmel Corporation, ATmega88PA Automotive Datasheet - Page 173

no-image

ATmega88PA Automotive

Manufacturer Part Number
ATmega88PA Automotive
Description
Manufacturer
Atmel Corporation
21.8.3
21.8.4
7701E–AVR–02/11
Chip Erase
Programming the Flash
The Chip Erase will erase the Flash and EEPROM
bits are not reset until the program memory has been completely erased. The fuse bits are not
changed. A chip erase must be performed before the flash and/or EEPROM are
reprogrammed.
Note:
1. Load "Chip Erase" command (see
2. Wait after Instr. 3 until SDO goes high for the “Chip Erase” cycle to finish.
3. Load "No Operation" command.
The Flash is organized in pages, see
the program data are latched into a page buffer. This allows one page of program data to be
programmed simultaneously. The following procedure describes how to program the entire
flash memory:
1. Load "Write Flash" command (see
2. Load Flash Page Buffer.
3. Load Flash High Address and Program Page. Wait after Instr. 3 until SDO goes high for
4. Repeat 2 and 3 until the entire flash is programmed, or until all data has been
5. End page programming by loading "No Operation" command.
When writing or reading serial data to the Atmel
ing edge of the serial clock. See
22-9 on page 186
Figure 21-4. Addressing the Flash which is Organized in Pages
the “Page Programming” cycle to finish.
programmed.
1. The EEPROM memory is preserved during Chip Erase if the EESAVE Fuse is programmed.
PROGRAM MEMORY
PROGRAM
COUNTER
PAGE
for details.
PAGE ADDRESS
WITHIN THE FLASH
PCMSB
Atmel ATtiny24/44/84 [Preliminary]
PCPAGE
Figure 22-5 on page
“Page Size” on page
Table 21-15 on page
Table 21-15 on page
PAGEMSB
PCWORD
WORD ADDRESS
WITHIN A PAGE
®
ATtiny24/44/84, data are clocked on the ris-
(1)
186,
memories, as well as lock bits. The lock
INSTRUCTION WORD
Figure 21-3 on page 171
166. When programming the flash,
PAGE
175).
175).
PCWORD[PAGEMSB:0]:
00
01
02
PAGEEND
and
Table
173

Related parts for ATmega88PA Automotive