P89LPC938 NXP Semiconductors, P89LPC938 Datasheet - Page 44

no-image

P89LPC938

Manufacturer Part Number
P89LPC938
Description
The P89LPC938 is a single-chip microcontroller, available in low cost packages, based ona high performance processor architecture that executes instructions in two to four clocks,six times the rate of standard 80C51 devices
Manufacturer
NXP Semiconductors
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
P89LPC9381FA,112
Manufacturer:
NXP Semiconductors
Quantity:
10 000
Part Number:
P89LPC9381FDH,512
Manufacturer:
LT
Quantity:
2 340
Part Number:
P89LPC9381FDHЈ¬512
Manufacturer:
PH3
Quantity:
1 122
Part Number:
P89LPC938FA
Manufacturer:
ST
Quantity:
760
Part Number:
P89LPC938FA
Manufacturer:
NXP/恩智浦
Quantity:
20 000
Part Number:
P89LPC938FA,129
Manufacturer:
NXP Semiconductors
Quantity:
10 000
Part Number:
P89LPC938FAЈ¬129
Manufacturer:
NXP
Quantity:
1 503
Part Number:
P89LPC938FDH
Manufacturer:
IR
Quantity:
21 000
Part Number:
P89LPC938FDH
Manufacturer:
NXP/恩智浦
Quantity:
20 000
Company:
Part Number:
P89LPC938FDH
Quantity:
8 158
Philips Semiconductors
9397 750 14051
Product data sheet
7.28.3 Flash organization
7.28.4 Using Flash as data storage
7.28.5 Flash programming and erasing
7.28.6 ICP
7.28.7 IAP
The program memory consists of eight 1 kB sectors on the P89LPC938 devices. Each
sector can be further divided into 64-byte pages. In addition to sector erase, page erase,
and byte 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.
The Flash code memory array of this device supports individual byte erasing and
programming. Any byte in the code memory array may be read using the MOVC
instruction, provided that the sector containing the byte has not been secured (a MOVC
instruction is not allowed to read code memory contents of a secured sector). Thus any
byte in a non-secured sector may be used for non-volatile data storage.
Four different methods of erasing or programming of the Flash are available. The Flash
may be programmed or erased in the end-user application (IAP) under control of the
application’s firmware. Another option is to use the ICP mechanism. This ICP system
provides for programming through a serial clock/serial data interface. As shipped from the
factory, the upper 512 bytes of user code space contains a serial ISP routine allowing for
the device to be programmed in circuit through the serial port. The Flash may also be
programmed or erased using a commercially available EPROM programmer which
supports this device. This device does not provide for direct verification of code memory
contents. Instead, this device provides a 32-bit CRC result on either a sector or the entire
user code space.
In-Circuit Programming is performed without removing the microcontroller from the
system. The In-Circuit Programming facility consists of internal hardware resources to
facilitate remote programming of the P89LPC938 through a two-wire serial interface. The
Philips In-Circuit Programming facility has made in-circuit programming in an embedded
application—using commercially available programmers—possible with a minimum of
additional expense in components and circuit board area. The ICP function uses five pins.
Only a small connector needs to be available to interface your application to a commercial
programmer in order to use this feature. Additional details may be found in the
P89LPC938 User’s Manual .
In-Application Programming is performed in the application under the control of the
microcontroller’s firmware. The IAP facility consists of internal hardware resources to
facilitate programming and erasing. The Philips In-Application Programming has made
in-application programming in an embedded application possible without additional
components. Two methods are available to accomplish IAP. A set of predefined IAP
functions are provided in a Boot ROM and can be called through a common interface,
PGM_MTP. Several IAP calls are available for use by an application program to permit
selective erasing and programming of Flash sectors, pages, security bits, configuration
bytes, and device ID. These functions are selected by setting up the microcontroller’s
registers before making a call to PGM_MTP at FF03H. The Boot ROM occupies the
program memory space at the top of the address space from FF00 to FEFF hex, thereby
not conflicting with the user program memory space.
Rev. 01 — 25 February 2005
8-bit microcontroller with 10-bit A/D converter
© Koninklijke Philips Electronics N.V. 2005. All rights reserved.
P89LPC938
44 of 68

Related parts for P89LPC938