
P89LPC9381_1
Koninklijke Philips Electronics N.V. 2006. All rights reserved.
Product data sheet
Rev. 01 — 8 September 2006
38 of 60
Philips Semiconductors
P89LPC9381
8-bit microcontroller with 10-bit ADC
provides for programming through a serial clock/serial data interface. As shipped from the
factory, the upper 512 B of user code space contains a serial ISP routine allowing for the
device to be programmed in circuit through the serial port. The ash may also be
programmed or erased using a commercially available EPROM programmer which
supports this device. This device does not provide for direct verication of code memory
contents. Instead, this device provides a 32-bit CRC result on either a sector or the entire
user code space.
7.26.6 ICP
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 P89LPC9381 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 ve 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
P89LPC9381
User’s Manual.
7.26.7 IAP
In-Application Programming is performed in the application under the control of the
microcontroller’s rmware. 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 predened 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 ash sectors, pages, security bits, conguration
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 conicting with the user program memory space.
In addition, IAP operations can be accomplished through the use of four SFRs consisting
of a control/status register, a data register, and two address registers. Additional details
may be found in the P89LPC9381
User’s Manual.
7.26.8 ISP
In-System Programming is performed without removing the microcontroller from the
system. The In-System Programming facility consists of a series of internal hardware
resources coupled with internal rmware to facilitate remote programming of the
P89LPC9381 through the serial port. This rmware is provided by Philips and embedded
within each P89LPC9381 device. The Philips In-System Programming facility has made
in-system programming in an embedded application possible with a minimum of additional
expense in components and circuit board area. The ISP function uses ve pins (VDD,VSS,
TXD, RXD, and RST). Only a small connector needs to be available to interface your
application to an external circuit in order to use this feature.