Flash Programming And Erase; Using Flash As Data Storage: Iap-Lite - Philips P89LPC938 User Manual

Single-chip microcontroller
Table of Contents

Advertisement

Philips Semiconductors

19.3 Flash programming and erase

The P89LPC938 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. Five methods of
programming this device are available.

19.4 Using Flash as data storage: IAP-Lite

The Flash code memory array of this device supports IAP-Lite in addition to standard IAP
functions. Any byte in a non-secured sector of the code memory array may be read using
the MOVC instruction and thus is suitable for use as non-volatile data storage. IAP-Lite
provides an erase-program function that makes it easy for one or more bytes within a
page to be erased and programmed in a single operation without the need to erase or
program any other bytes in the page. IAP-Lite is performed in the application under the
control of the microcontroller's firmware using four SFRs and an internal 64-byte 'page
register' to facilitate erasing and programing within unsecured sectors. These SFRs are:
The page register consists of 64 bytes and an update flag for each byte. When a LOAD
command is issued to FMCON the page register contents and all of the update flags will
be cleared. When FMDATA is written, the value written to FMDATA will be stored in the
page register at the location specified by the lower 6 bits of FMADRL. In addition, the
User manual
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
Any flash program operation in 2 ms (4 ms for erase/program)
Programmable security for the code in the Flash for each sector
> 100,000 typical erase/program cycles for each byte
10-year minimum data retention
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).
A factory-provided default serial loader, located in upper end of user program
memory, providing In-System Programming (ISP) via the serial port.
FMCON (Flash Control Register). When read, this is the status register. When written,
this is a command register. Note that the status bits are cleared to logic 0s when the
command is written.
FMADRL, FMADRH (Flash memory address low, Flash memory address high). Used
to specify the byte address within the page register or specify the page within user
code memory
FMDATA (Flash Data Register). Accepts data to be loaded into the page register.
Rev. 03 — 7 June 2005
UM10119
P89LPC938 User manual
© Koninklijke Philips Electronics N.V. 2005. All rights reserved.
116 of 139

Advertisement

Table of Contents
loading

Table of Contents