Iap Function Calls - Philips P89LPC920 User Manual

80c51 8-bit microcontroller with two-clock core
Table of Contents

Advertisement

Philips Semiconductors
FLASH MEMORY
Table 15-3: IAP error status
Bit
Flag
Operation Interrupted. Indicates that an operation was aborted due to an interrupt occuring
0
OI
during a program or erase cycle.
Security Violation. Set if program or erase operation fails due to security settings. Cycle is
1
SV
aborted.Memory contents are unchanged. CRC output is invalid.
High Voltage Error. Set if error detected in high voltage generation circuits. Cycle is
2
HVE
aborted. Memory contents may be corrupted.
Verify error. Set during IAP programming of user code if the contents of the programmed
address does not agree with the intended programmed value. IAP uses the MOVC
3
VE
instruction to perform this verify. Attempts to program user code that is MOVC protected
can be programmed but will generate this error after the programming cycle has been
completed.
unused; reads as a '1'
4
-
unused; reads as a '1'
5
-
unused; reads as a '1'
6
-
unused; reads as a '0'
7
-
Table 15-4: IAP function calls
IAP function
Program User Code Page (requires "key")
Read Version Id
2003 Dec 8
Description
IAP call parameters
Input parameters:
ACC
= 00h
R3
= number of bytes to program
R4
= page address (MSB)
R5
= page address (LSB)
R7
= pointer to data buffer in RAM
F1
= 00h
Return parameter(s):
R7
= status
Carry
= set on error, clear on no error
Input parameters:
ACC
= 01h
Return parameter(s):
R7
= IAP code version id
105
User's Manual - Preliminary -
P89LPC920/921/922

Advertisement

Table of Contents
loading

This manual is also suitable for:

P89lpc921P89lpc922

Table of Contents