P89C660HFA PHILIPS [NXP Semiconductors], P89C660HFA Datasheet - Page 70

no-image

P89C660HFA

Manufacturer Part Number
P89C660HFA
Description
80C51 8-bit Flash microcontroller family
Manufacturer
PHILIPS [NXP Semiconductors]
Datasheets

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
P89C660HFA
Manufacturer:
NXP
Quantity:
1 832
Part Number:
P89C660HFA/00,512
Manufacturer:
NXP Semiconductors
Quantity:
10 000
Philips Semiconductors
2002 Oct 28
80C51 8-bit Flash microcontroller family
16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM
ERASE BOOT VECTOR &
STATUS BYTE
PROGRAM SECURITY BIT
IAP CALL
Input Parameters:
Return Parameter
Sample routine:
Input Parameters:
Return Parameter
Sample routines:
R0 = osc freq (integer)
R1 = 04h
R1 = 84h (WDT feed, Rx2 & 66x only)
DPH = 00h
DPL = don’t care
none
;***** Erase Boot Vector (BV) & Status Byte (SB) *****
;***** Note: This command erases BOTH the SB & BV
ERSBBV;
R0 = osc freq (integer)
R1 = 05h
R1 = 85h (WDT feed, Rx2 & 66x only)
DPH = 00h
DPL = 00h – security bit # 1 (inhibit writing to Flash)
none
;***** Program Security Bit1 *****
;***** DPTR indicates security bit to program *****
WRSB1:
;***** Program Security Bit2 *****
;***** DPTR indicates security bit to program *****
WRSB2:
;***** Program Security Bit3 *****
;***** DPTR indicates security bit to program *****
WRSB3:
01h – security bit # 2 (inhibit Flash verify)
02h – security bit # 3 (disable external memory)
MOV
MOV
MOV
MOV
CALL
RET
MOV
MOV
MOV
MOV
CALL
RET
MOV
MOV
MOV
MOV
CALL
RET
MOV
MOV
MOV
MOV
CALL
RET
AUXR1,#20H
R0, #11
R1,#04H
DPH,#00h
PGM_MTP
AUXR1,#20H
R0,#11
R1,#05H
DPTR,#0000h
PGM_MTP
AUXR1,#20H
R0,#11
R1,#05H
DPTR,#0001h
PGM_MTP
AUXR1,#20H
R0,#11
R1,#05H
DPTR,#0002h
PGM_MTP
70
PARAMETER
;set the ENBOOT bit
;FOSC
;erase status byte & boot vector
;we don’t care about DPL
;execute the function
;set the ENBOOT bit
;FOSC
;program security bit function
;specify security bit 1
;execute the function
;set the ENBOOT bit
;FOSC
;program security bit function
;specify security bit 2
;execute the function
;set the ENBOOT bit
;FOSC
;program security bit function
;specify security bit 3
;execute the function
P89C660/P89C662/P89C664/
P89C668
Product data

Related parts for P89C660HFA