P89C660HFA PHILIPS [NXP Semiconductors], P89C660HFA Datasheet - Page 67
![no-image](/images/no-image-200.jpg)
P89C660HFA
Manufacturer Part Number
P89C660HFA
Description
80C51 8-bit Flash microcontroller family
Manufacturer
PHILIPS [NXP Semiconductors]
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
P89C660HFA
Manufacturer:
NXP
Quantity:
1 832
Company:
Part Number:
P89C660HFA/00,512
Manufacturer:
NXP Semiconductors
Quantity:
10 000
Philips Semiconductors
2002 Oct 28
RECORD TYPE
80C51 8-bit Flash microcontroller family
16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM
03
04
Miscellaneous Write Functions
Where:
Subfunction Code = 01 (Erase Blocks)
Subfunction Code = 04 (Erase Boot Vector and Status Byte)
Subfunction Code = 05 (Program Security Bits)
Subfunction Code = 06 (Program Status Byte or Boot Vector)
Subfunction Code = 07 (Full Chip Erase)
Display Device Data or Blank Check – Record type 04 causes the contents of the entire Flash array to be sent out
the serial port in a formatted display. This display consists of an address and the contents of 16 bytes starting with that
address. No display of the device contents will occur if security bit 2 has been programmed. Data to the serial port is
initiated by the reception of any character and terminated by the reception of any character.
General Format of Function 04
Where:
Example:
:nnxxxx03ffssddcc
nn
xxxx
03
ff
ss
dd
cc
ff = 01
ss = block code as shown below:
Example:
ff = 04
ss = don’t care
Example:
ff = 05
ss = 00 program security bit 1
Example:
ff = 06
ss = 00 program status byte
Example:
Erases all blocks, security bits, and sets status and boot vector to default values
ff = 07
ss = don’t care
dd = don’t care
Example:
:05xxxx04sssseeeeffcc
05
xxxx
04
ssss
eeee
ff
cc
:0500000440004FFF0069
:0200000301C03C
:020000030400F7
:020000030501F5
:030000030601FCF7
:0100000307F5 full chip erase
01 program security bit 2
02 program security bit 3
01 program boot vector
block 0,
block 1,
block 2, 16k to 32k, 40H
block 3, 32k to 48k, 80H
block 4, 48k to 64k, C0H
= number of bytes (hex) in record
= required field, but value is a “don’t care”
= Write Function
= subfunction code
= selection code
= data input (as needed)
= checksum
= number of bytes (hex) in record
= required field, but value is a “don’t care”
= “Display Device Data or Blank Check” function code
= starting address
= ending address
= subfunction
= checksum
00 = display data
01 = blank check
0k to
8k to 16k, 20H
erase block 4
erase boot vector and status byte
program security bit 2
program boot vector with 0FCH
display 4000–4FFF
8k, 00H
COMMAND/DATA FUNCTION
(inhibit writing to Flash)
(inhibit Flash verify)
(disable external memory)
67
P89C660/P89C662/P89C664/
P89C668
Product data