INTEGRATED CIRCUITS
P89C660/P89C662/P89C664/P89C668
80C51 8-bit Flash microcontroller family
16KB/32KB/64KB ISP/IAP FLASH with 512B/1KB/2KB/8KB RAM
Product data
Replaces P89C660/P89C662/P89C664 of 2001 Jul 19
and P89C668 of 2001 Jul 27
2002 Oct 28
Philips
Semiconductors
Philips Semiconductors
Product data
80C51 8-bit Flash microcontroller family
16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM
P89C660/P89C662/P89C664/
P89C668
DESCRIPTION
The P89C660/662/664/668 device contains a non-volatile
16KB/32KB/64KB Flash program memory that is both parallel
programmable and serial In-System and In-Application
Programmable. In-System Programming (ISP) allows the user to
download new code while the microcontroller sits in the application.
In-Application Programming (IAP) means that the microcontroller
fetches new program code and reprograms itself while in the
system. This allows for remote programming over a modem link.
A default serial loader (boot loader) program in ROM allows serial
In-System Programming of the Flash memory via the UART without
the need for a loader in the Flash code. For In-Application
Programming, the user program erases and reprograms the Flash
memory by use of standard routines contained in ROM.
This device executes one instruction in 6 clock cycles, hence
providing twice the speed of a conventional 80C51. An OTP
configuration bit gives the user the option to select conventional
12-clock timing.
This device is a Single-Chip 8-Bit Microcontroller manufactured in
advanced CMOS process and is a derivative of the 80C51
microcontroller family. The instruction set is 100% executing and
timing compatible with the 80C51 instruction set.
The device also has four 8-bit I/O ports, three 16-bit timer/event
counters, a multi-source, four-priority-level, nested interrupt
structure, an enhanced UART and on-chip oscillator and timing
circuits.
The added features of the P89C660/662/664/668 makes it a
powerful microcontroller for applications that require pulse width
modulation, high-speed I/O and up/down counting capabilities such
as motor control.
•
Can be programmed by the end-user application (IAP)
•
Parallel programming with 87C51 compatible hardware interface
to programmer
•
Six clocks per machine cycle operation (standard)
•
12 clocks per machine cycle operation (optional)
•
Speed up to 20 MHz with 6 clock cycles per machine cycle
(40 MHz equivalent performance); up to 33 MHz with 12 clocks
per machine cycle
•
Fully static operation
•
RAM externally expandable to 64 kbytes
•
Four interrupt priority levels
•
Eight interrupt sources
•
Four 8-bit I/O ports
•
Full-duplex enhanced UART
–
Framing error detection
–
Automatic address recognition
•
Power control modes
–
Clock can be stopped and resumed
–
Idle mode
–
Power-Down mode
FEATURES
•
80C51 Central Processing Unit
•
On-chip Flash program memory with In-System Programming
(ISP) and In-Application Programming (IAP) capability
•
Programmable clock out
•
Second DPTR register
•
Asynchronous port reset
•
Low EMI (inhibit ALE)
•
I
2
C serial interface
•
Programmable Counter Array (PCA)
–
PWM
–
Capture/compare
•
Boot ROM contains low level Flash programming routines for
downloading via the UART
•
Well-suited for IPMI applications
2002 Oct 28
2
853-2392 29118
Philips Semiconductors
Product data
80C51 8-bit Flash microcontroller family
16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM
P89C660/P89C662/P89C664/
P89C668
SELECTION TABLE
Type
Memory
# of Timers
Timers
Serial Inter-
faces
Default Clock
Rate
ADC bits/ch.
Reset active
low/high?
Optional
Clock Rate
Interrupts
(External)
Max.
Freq.
at 6-clk
/ 12-clk
(MHz)
20/33
20/33
20/33
20/33
Freq.
Range
at 3V
(MHz)
–
–
–
–
Freq.
Range
at
5V
(MHz)
0-20/33
0-20/33
0-20/33
0-20/33
P89C668
P89C664
P89C662
P89C660
8K
2K
1K
512B
–
–
–
–
–
–
–
–
64K
64K
32K
16K
4
4
4
4
√
√
√
√
√
√
√
√
√
√
√
√
√
√
√
√
√
√
√
√
–
–
–
–
–
–
–
–
–
–
–
–
32
32
32
32
8(2)/4
8(2)/4
8(2)/4
8(2)/4
Program
Security
√
√
√
√
I/O Pins
UART
Flash
PWM
ROM
RAM
CAN
OTP
PCA
WD
I
2
C
SPI
6-clk
6-clk
6-clk
6-clk
12-clk
12-clk
12-clk
12-clk
H
H
H
H
ORDERING INFORMATION
MEMORY
DEVICE
P89C660HBA
P89C660HFA
P89C660HBBD
P89C662HBA
P89C662HFA
P89C662HBBD
P89C662HFBD
P89C664HBA
P89C664HFA
P89C664HBBD
P89C664HFBD
P89C668HBA
P89C668HFA
P89C668HBBD
FLASH
16 KB
16 KB
16 KB
32 KB
32 KB
32 KB
32 KB
64 KB
64 KB
64 KB
64 KB
64 KB
64 KB
64 KB
RAM
512 B
512 B
512 B
1 KB
1 KB
1 KB
1 KB
2 KB
2 KB
2 KB
2 KB
8 KB
8 KB
8 KB
TEMPERATURE RANGE (°C)
AND PACKAGE
0 to +70, PLCC
–40 to +85, PLCC
0 to +70, LQFP
0 to +70, PLCC
–40 to +85, PLCC
0 to +70, LQFP
–40 to +85, LQFP
0 to +70, PLCC
–40 to +85, PLCC
0 to +70, LQFP
–40 to +85, LQFP
0 to +70, PLCC
–40 to +85, PLCC
0 to +70, LQFP
VOLTAGE
RANGE
4.5–5.5 V
4.75–5.25 V
4.5–5.5 V
4.5–5.5 V
4.75–5.25 V
4.5–5.5 V
4.75–5.25 V
4.5–5.5 V
4.75–5.25 V
4.5–5.5 V
4.75–5.25 V
4.5–5.5 V
4.5–5.5 V
4.5–5.5 V
FREQUENCY (MHz)
6 CLOCK MODE
0 to 20 MHz
0 to 20 MHz
0 to 20 MHz
0 to 20 MHz
0 to 20 MHz
0 to 20 MHz
0 to 20 MHz
0 to 20 MHz
0 to 20 MHz
0 to 20 MHz
0 to 20 MHz
0 to 20 MHz
0 to 20 MHz
0 to 20 MHz
12 CLOCK
MODE
0 to 33 MHz
0 to 33 MHz
0 to 33 MHz
0 to 33 MHz
0 to 33 MHz
0 to 33 MHz
0 to 33 MHz
0 to 33 MHz
0 to 33 MHz
0 to 33 MHz
0 to 33 MHz
0 to 33 MHz
0 to 33 MHz
0 to 33 MHz
DWG #
SOT187-2
SOT187-2
SOT389-1
SOT187-2
SOT187-2
SOT389-1
SOT389-1
SOT187-2
SOT187-2
SOT389-1
SOT389-1
SOT187-2
SOT187-2
SOT389-1
2002 Oct 28
3
Philips Semiconductors
Product data
80C51 8-bit Flash microcontroller family
16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM
P89C660/P89C662/P89C664/
P89C668
BLOCK DIAGRAM 1
ACCELERATED 80C51 CPU
6-CLK MODE (DEFAULT)
12-CLK MODE (OPTIONAL)
16K / 32K /
64 KBYTE
CODE FLASH
FULL-DUPLEX
ENHANCED UART
0.5K / 1K / 2K /
8 KBYTE DATA RAM
TIMER 0
TIMER 1
PORT 3
CONFIGURABLE I/Os
TIMER 2
PORT 2
CONFIGURABLE I/Os
PROGRAMMABLE
COUNTER ARRAY
(PCA)
PORT 1
CONFIGURABLE I/Os
WATCHDOG TIMER
PORT 0
CONFIGURABLE I/Os
I
2
C
INTERFACE
CRYSTAL OR
RESONATOR
OSCILLATOR
su01713
2002 Oct 28
4
Philips Semiconductors
Product data
80C51 8-bit Flash microcontroller family
16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM
P89C660/P89C662/P89C664/
P89C668
BLOCK DIAGRAM (CPU-ORIENTED)
P0.0–P0.7
P2.0–P2.7
PORT 0
DRIVERS
V
CC
V
SS
RAM ADDR
REGISTER
RAM
PORT 0
LATCH
PORT 2
DRIVERS
PORT 2
LATCH
FLASH
8
B
REGISTER
STACK
POINTER
ACC
TMP2
TMP1
PROGRAM
ADDRESS
REGISTER
ALU
SFRs
TIMERS
PSW
P.C.A.
8
BUFFER
PC
INCRE-
MENTER
16
PROGRAM
COUNTER
PSEN
ALE
EA/V
PP
RST
PD
TIMING
AND
CONTROL
INSTRUCTION
REGISTER
DPTR’S
MULTIPLE
PORT 1
LATCH
I
2
C
PORT 3
LATCH
OSCILLATOR
PORT 1
DRIVERS
XTAL1
XTAL2
P1.0–P1.7
SCL
SDA
PORT 3
DRIVERS
P3.0–P3.7
su01089
2002 Oct 28
5