© Koninklijke Philips Electronics N.V. 2005. All rights reserved.
User manual
Rev. 03 — 7 June 2005
125 of 139
Philips Semiconductors
UM10119
P89LPC938 User manual
19.12 In-application programming (IAP)
Several In-Application Programming (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. All calls are made through a common interface,
PGM_MTP. The programming functions are selected by setting up the microcontroller’s
registers before making a call to PGM_MTP at FF03H. The IAP calls are shown in
.
05
Read Sector CRC
:01xxxx05aacc
Where:
xxxx = required field but value is a ‘don’t care’
aa= sector address high byte
cc= checksum
Example:
:0100000504F6cc
06
Read Global CRC
:00xxxx06cc
Where:
xxxx = required field but value is a ‘don’t care’
cc= checksum
Example:
:00000006FA
07
Direct Load of Baud Rate
:02xxxx07HHLLcc
Where:
xxxx = required field but value is a ‘don’t care’
HH= high byte of timer
LL = low byte of timer
cc = checksum
Example:
:02000007FFFFcc
08
Reset MCU
:00xxxx08cc
Where:
xxxx = required field but value is a ‘don’t care’
cc = checksum
Example:
:00000008F8
Table 112: In-system Programming (ISP) hex record formats
…continued
Record type
Command/data function