Nxp semiconductors – NXP Semiconductors P89LPC9321 UM10310 User Manual

Page 125

Advertising
background image

UM10310

All information provided in this document is subject to legal disclaimers.

© NXP B.V. 2010. All rights reserved.

User manual

Rev. 2 — 1 November 2010

125 of 139

NXP Semiconductors

UM10310

P89LPC9321 User manual

Table 110. IAP function calls

IAP function

IAP call parameters

Program User Code Page
(requires ‘key’)

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= 0h = use IDATA

Return parameter(s):

R7= status

Carry= set on error, clear on no error

Read Version Id

Input parameters:

ACC = 01h

Return parameter(s):

R7=IAP version id

Misc. Write (requires ‘key’) Input parameters:

ACC = 02h

R5= data to write

R7= register address

00= UCFG1

01= UCFG2

02= Boot Vector

03= Status Byte

04 to 07 = reserved

08= Security Byte 0

09= Security Byte 1

0A= Security Byte 2

0B= Security Byte 3

0C= Security Byte 4

0D= Security Byte 5

0E= Security Byte 6

0F= Security Byte 7

10 = Clear Configuration Protection

Return parameter(s):

R7= status

Carry= set on error, clear on no error

Advertising