Philips Semiconductors Preliminary data
P89C51RA2/RB2/RC2/RD2xx80C51 8-bit Flash microcontroller family
8KB/16KB/32KB/64KB ISP/IAP Flash with 512B/512B/512B/1KB RAM
2002 Jul 18
52
IAP CALL PARAMETER
PROGRAM SECURITY BITS Input Parameter:
R0 = osc freq (integer)
R1 = 05h or R1 = 85h (WDT feed)
DPH = 00h
DPL = 00h , security bit #1
DPL = 01h , security bit #2
DPL = 02h , security bit #3
Return Parameter:
ACC = 00 if pass , !=0 if fail
PROGRAM STATUS BYTE Input Parameter:
R0 = osc freq (integer)
R1 = 06h or R1 = 86h (WDT feed)
DPH = 00h
DPL = 00H - program status byte
ACC = status byte
Return Parameter:
ACC = 00 if pass , !=0 if fail
PROGRAM BOOT VECTOR Input Parameter:
R0 = osc freq (integer)
R1 = 06h or R1 = 86h (WDT feed)
DPH = 00h
DPL = 01H - program boot vector
ACC = boot vector
Return Parameter:
ACC = 00 if pass , !=0 if fail
PROGRAM 6–CLK/12–CLK
CONFIGURATION BIT
(New function)
Input Parameter:
R0 = osc freq (integer)
R1 = 06h or R1 = 86h (WDT feed)
DPH = 00h
DPL = 02H - program config bit
ACC = 80H (MSB = 6clk/12clk bit)
Return Parameter:
ACC = 00 if pass , !=0 if fail
PROGRAM DATA BLOCK
(New function)
Input Parameter:
R0 = osc freq (integer)
R1 = 0Dh or R1 = 8Dh (WDT feed)
DPTR = address of byte to program
(valid addresses = 0001h~0FFFh)
ACC = data
Return Parameter:
ACC = 00 if pass , !=0 if fail
READ DEVICE DATA Input Parameter:
R0 = osc freq (integer)
R1 = 03h or R1 = 83h (WDT feed)
DPTR = address of byte to read
Return Parameter:
ACC = value of byte read
READ DATA BLOCK
(New function)
Input Parameter:
R0 = osc freq (integer)
R1 = 0Eh or R1 = 8Eh (WDT feed)
DPTR = address of byte to read
(valid addresses = 0001h~0FFFh)
Return Parameter:
ACC = value of byte read
READ MANUFACTURER ID Input Parameter:
R0 = osc freq (integer)
R1 = 00h or R1 = 80h (WDT feed)
DPH = 00h
DPL = 00h - read manufacturer ID
Return Parameter:
ACC = value of byte read