P89C660 Philips Semiconductors, P89C660 Datasheet - Page 71

no-image

P89C660

Manufacturer Part Number
P89C660
Description
80C51 8-bit Flash microcontroller family
Manufacturer
Philips Semiconductors
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
P89C660HBA
Manufacturer:
PHI
Quantity:
5 030
Part Number:
P89C660HBA
Manufacturer:
PHILIPS/飞利浦
Quantity:
20 000
Part Number:
P89C660HBA/00,512
Manufacturer:
NXP Semiconductors
Quantity:
10 000
Part Number:
P89C660HBBD
Manufacturer:
PHILIPS
Quantity:
586
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
PROGRAM STATUS BYTE
PROGRAM BOOT VECTOR
READ DEVICE DATA
IAP CALL
Input Parameters:
Return Parameter
Sample routine:
Input Parameters:
Return Parameter
Sample routine:
Input Parameters:
Return Parameter
Sample routine:
R0 = osc freq (integer)
R1 = 06h
R1 = 86h (WDT feed, Rx2, 66x only)
DPH = 00h
DPL = 00h – program status byte
ACC = status byte
ACC = 00 if pass; not 00 if fails
;***** Program Status Byte (SB) *****
;***** DPTR indicates program status byte *****
;***** ACC holds new value of Status Byte to program *****
WRSB:
R0 = osc freq (integer)
R1 = 06h
R1 = 86h (WDT feed, Rx2 & 66x only)
DPH = 00h
DPL = 01h – program boot vector
ACC = boot vector
ACC = 00 if pass; not 00 if fails
;***** Program Boot Vector (BV) *****
;***** DPTR indicates program boot vector *****
;***** ACC holds new value of boot vector to program *****
WRBV:
R1 = 03h
R1 = 83h (WDT feed, Rx2 & 66x only)
DPTR = address of byte to read
ACC = value of byte read
;*****reads the Device Data (DData) *****
;***** DData returned in ACC *****
;***** DPTR holds address of byte to read *****
RDData:
MOV
MOV
MOV
MOV
MOV
CALL
RET
MOV
MOV
MOV
MOV
MOV
CALL
RET
MOV
MOV
MOV
MOV
CALL
RET
AUXR1,#20H
R0,#11
R1,#06H
DPTR,#0000h
A,NEW_SB
PGM_MTP
AUXR1,#20H
R0,#11
R1,#06H
DPTR,#0001h
A,NEW_SB
PGM_MTP
AUXR1,#20H
R0,#11
R1,#03H
DPTR,Address
PGM_MTP
71
PARAMETER
;set the ENBOOT bit
;FOSC
;program status byte or boot vector
;specify status byte
;
;execute the function
;set the ENBOOT bit
;FOSC
;program status byte or boot vector
;specify boot vector
;new value for the boot vector
;execute the function
;set the ENBOOT bit
;FOSC
;read data function
;specify address of byte to read
;execute the function
P89C660/P89C662/P89C664/
P89C668
Product data

Related parts for P89C660