UM10147_2
© NXP B.V. 2008. All rights reserved.
User manual
Rev. 02 — 28 April 2008
107 of 134
NXP Semiconductors
UM10147
P89LPC952/954 User manual
17. Flash memory
17.1 General description
The P89LPC952/954 Flash memory provides in-circuit electrical erasure and
programming. The Flash can be read and written as bytes. The Sector and Page Erase
functions can erase any Flash sector (1 kB) or page (64 bytes). The Chip Erase operation
will erase the entire program memory. Five Flash programming methods are available.
On-chip erase and write timing generation contribute to a user-friendly programming
interface. The P89LPC952/954 Flash reliably stores memory contents even after 400,000
erase and program cycles. The cell is designed to optimize the erase and programming
mechanisms. P89LPC952/954 uses V
DD
as the supply voltage to perform the
Program/Erase algorithms
17.2 Features
•
Parallel programming with industry-standard commercial programmers
•
In-Circuit serial Programming (ICP) with industry-standard commercial programmers.
•
IAP-Lite allows individual and multiple bytes of code memory to be used for data
storage and programmed under control of the end application.
•
Internal fixed boot ROM, containing low-level In-Application Programming (IAP)
routines that can be called from the end application (in addition to IAP-Lite).
•
Default serial loader providing In-System Programming (ISP) via the serial port,
located in upper end of user program memory.
•
Boot vector allows user provided Flash loader code to reside anywhere in the Flash
memory space, providing flexibility to the user.
•
Programming and erase over the full operating voltage range
•
Read/Programming/Erase using ISP, IAP, IAP-Lite, ICP, and two-wire serial debugger
•
Any flash program operation in 2 ms (4 ms for erase/program)
•
Programmable security for the code in the Flash for each sector
•
> 400,000 typical erase/program cycles for each byte
•
20-year minimum data retention
17.3 Flash programming and erase
The P89LPC952/954 program memory consists 1 kB sectors. Each sector can be further
divided into 64-byte pages. In addition to sector erase and page erase, a 64-byte page
register is included which allows from 1 to 64 bytes of a given page to be programmed at
the same time, substantially reducing overall programming time. Six methods of
programming this device are available.
•
Parallel programming with industry-standard commercial programmers.
•
In-Circuit serial Programming (ICP) with industry-standard commercial programmers.
•
IAP-Lite allows individual and multiple bytes of code memory to be used for data
storage and programmed under control of the end application.
•
Internal fixed boot ROM, containing low-level In-Application Programming (IAP)
routines that can be called from the end application (in addition to IAP-Lite).