In-Application Programming (Iap) - Philips P89LPC938 User Manual

Single-chip microcontroller
Table of Contents

Advertisement

Philips Semiconductors
Table 112: In-system Programming (ISP) hex record formats
Record type
05
06
07
08

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
Table
User manual
Command/data function
Read Sector CRC
:01xxxx05aacc
Where:
xxxx = required field but value is a 'don't care'
aa= sector address high byte
cc= checksum
Example:
:0100000504F6cc
Read Global CRC
:00xxxx06cc
Where:
xxxx = required field but value is a 'don't care'
cc= checksum
Example:
:00000006FA
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
Reset MCU
:00xxxx08cc
Where:
xxxx = required field but value is a 'don't care'
cc = checksum
Example:
:00000008F8
114.
Rev. 03 — 7 June 2005
UM10119
P89LPC938 User manual
...continued
© Koninklijke Philips Electronics N.V. 2005. All rights reserved.
125 of 139

Advertisement

Table of Contents
loading

Table of Contents