P89CV51RB2_RC2_RD2_3 © NXP B.V. 2009. All rights reserved.
Product data sheet Rev. 03 — 25 August 2009 22 of 76
NXP Semiconductors
P89CV51RB2/RC2/RD2
80C51 with 1 kB RAM, SPI
03 (continued) Subfunction code = 01 (erase blocks)
ff=01
ss = block code, as shown below
block 0, 0 kB to 8 kB, 00H
block 1, 8 kB to 16 kB, 20H
block 2, 16 kB to 32 kB, 40H
block 3, 32 kB to 48 kB, 80H
block 4, 48 kB to 64 kB, C0H
Subfunction code = 04 (erase boot vector and status bit)
ff=04
ss = don’t care
Subfunction code = 05 (program security bits)
ff=05
ss = 00 program security bit 1
ss = 01 program security bit 2
ss = 02 program security bit 3
Subfunction code = 06 (program status bit, boot vector, 6×/12× bit)
ff=06
dd = data (for boot vector)
ss = 00 program status bit
ss = 01 program boot vector
ss = 02 program 6×/12× bit
Subfunction code = 07 (chip erase)
Erases code memory and security bits, programs default boot vector and status
bit
ff=07
Subfunction code = 08 (erase page, 128 B)
ff=08
ss = high byte of page address (A[15:8])
dd = low byte of page address (A[7:0])
Example:
:0300000308E000F2 (erase page at E000H)
Table 11. ISP Hex record formats
…continued
Record type Command/data function
P89CV51RB2_RC2_RD2_3 © NXP B.V. 2009. All rights reserved.
Product data sheet Rev. 03 — 25 August 2009 23 of 76
NXP Semiconductors
P89CV51RB2/RC2/RD2
80C51 with 1 kB RAM, SPI
04 Display device data or blank check
:05xxxx04sssseeeeffcc
Where
05 = number of bytes in the record
xxxx = required field but value is a don’t care
04 = function code for display or blank check
ssss = starting address, MSB first
eeee = ending address, MSB first
ff = subfunction
00 = display data
01 = blank check
cc = checksum
Subfunction codes:
Example:
:0500000400001FFF00D9 (display from 0000H to 1FFFH)
05 Miscellaneous read functions
:02xxxx05ffsscc
Where:
02 = number of bytes in the record
xxxx = required field but value is a don’t care
05 = function code for miscellaneous read
ffss = subfunction and selection code
0000 = read manufacturer ID
0001 = read device ID 1
0002 = read device ID 2
0003 = read 6×/12× bit (bit 7 = 1 is 6×, bit 7 = 0 is 12×)
0080 = read boot code version
0700 = read security bits
0701 = read status bit
0702 = read boot vector
cc = checksum
Example:
:020000050000F9 (display manufacturer ID)
06 Direct load of baud rate
:02xxxx06HHLLcc
Where:
02 = number of bytes in the record
xxxx = required field but value is a don’t care
HH = high byte of timer T2
LL = low byte of timer T2
cc = checksum
Example:
:02000006FFFFcc (load T2 = FFFF)
Table 11. ISP Hex record formats
…continued
Record type Command/data function
P89CV51RB2_RC2_RD2_3 © NXP B.V. 2009. All rights reserved.
Product data sheet Rev. 03 — 25 August 2009 24 of 76
NXP Semiconductors
P89CV51RB2/RC2/RD2
80C51 with 1 kB RAM, SPI
6.3.8 IAP method
Several IAP calls are available for use by an application program to permit selective
erasing, reading and programming of flash pages, security bits, status bit, 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 FFF0H. The IAP calls are shown in Table 12.
Table 12. IAP function calls
IAP function IAP call parameters
Read ID Input parameters:
R1 = 00H or 80H (WDT feed)
DPH = 00H
DPL = 00H = manufacturer ID
DPL = 01H = device ID 1
DPL = 02H = device ID 2
DPL = 03H = 6×/12× bit (if bit 7 = 1: 6×)
DPL = 80H = ISP version number
Return parameter(s):
ACC = requested parameter
Erase 4 kB code block (new
function)
Input parameters:
R0 = oscillator frequency (integer)
R1 = 0CH or 8CH (WDT feed)
DPH = address of 4 kB code block
DPH = 00H, 4 kB block 0, 0 kB to 4 kB
DPH = 10H, 4 kB block 1, 4 kB to 8 kB
DPH = 20H, 4 kB block 2, 8 kB to 12 kB
DPH = 30H, 4 kB block 3, 12 kB to 16 kB
DPH = 40H, 4 kB block 4, 16 kB to 20 kB
DPH = 50H, 4 kB block 5, 20 kB to 24 kB
DPH = 60H, 4 kB block 6, 24 kB to 28 kB
DPH = 70H, 4 kB block 7, 28 kB to 32 kB
DPH = 80H, 4 kB block 8, 32 kB to 36 kB
DPH = 90H, 4 kB block 9, 36 kB to 40 kB
DPH = A0H, 4 kB block 10, 40 kB to 44 kB
DPH = B0H, 4 kB block 11, 44 kB to 48 kB
DPH = C0H, 4 kB block 12, 48 kB to 52 kB
DPH = D0H, 4 kB block 13, 52 kB to 56 kB
DPH = E0H, 4 kB block 14, 56 kB to 60 kB
DPH = F0H, 4 kB block 15, 60 kB to 64 kB
DPL = 00H
Return parameter(s):
ACC = 00: pass
ACC is not 00: fail

P89CV51RD2FA,512

Mfr. #:
Manufacturer:
NXP Semiconductors
Description:
IC MCU 8BIT 64KB FLASH 44PLCC
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union