Philips Semiconductors Product data
P89C660/P89C662/P89C664/
P89C668
80C51 8-bit Flash microcontroller family
16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM
2002 Oct 28
7
PIN DESCRIPTIONS
MNEMONIC
PIN NUMBER
TYPE
NAME AND FUNCTION
MNEMONIC
PLCC LQFP
TYPE
NAME
AND
FUNCTION
V
SS
22 16 I Ground: 0 V reference.
V
CC
44 38 I Power Supply: This is the power supply voltage for normal, idle, and power-down operation.
P0.0–0.7 43–36 37–30 I/O Port 0: Port 0 is an open-drain, bidirectional I/O port. Port 0 pins that have 1s written to them
float and can be used as high-impedance inputs. Port 0 is also the multiplexed low-order
address and data bus during accesses to external program and data memory. In this
application, it uses strong internal pull-ups when emitting 1s.
P1.0–P1.7 2–9 40–44,
1–3
I/O Port 1: Port 1 is an 8-bit bidirectional I/O port with internal pull-ups on all pins except P1.6 and
P1.7 which are open drain. Port 1 pins that have 1s written to them are pulled high by the
internal pull-ups and can be used as inputs. As inputs, port 1 pins that are externally pulled low
will source current because of the internal pull-ups. (See DC Electrical Characteristics: I
IL
).
Alternate functions for P89C660/662/664/668 Port 1 include:
2 40 I/O T2 (P1.0): Timer/Counter 2 external count input/Clockout (see Programmable Clock-Out)
3 41 I T2EX (P1.1): Timer/Counter 2 Reload/Capture/Direction Control
4 42 I ECI (P1.2): External Clock Input to the PCA
5 43 I/O CEX0 (P1.3): Capture/Compare External I/O for PCA module 0
6 44 I/O CEX1 (P1.4): Capture/Compare External I/O for PCA module 1
7 1 I/O CEX2 (P1.5): Capture/Compare External I/O for PCA module 2
8 2 I/O SCL (P1.6): I
2
C bus clock line (open drain)
9 3 I/O SDA (P1.7): I
2
C bus data line (open drain)
P2.0–P2.7 24–31 18–25 I/O Port 2: Port 2 is an 8-bit bidirectional I/O port with internal pull-ups. Port 2 pins that have 1s
written to them are pulled high by the internal pull-ups and can be used as inputs. As inputs,
port 2 pins that are externally being pulled low will source current because of the internal
pull-ups. (See DC Electrical Characteristics: I
IL
). Port 2 emits the high-order address byte
during fetches from external program memory and during accesses to external data memory
that use 16-bit addresses (MOVX @DPTR). In this application, it uses strong internal pull-ups
when emitting 1s. During accesses to external data memory that use 8-bit addresses (MOV
@Ri), port 2 emits the contents of the P2 special function register.
P3.0–P3.7 11,
13–19
5, 7–13 I/O Port 3: Port 3 is an 8-bit bidirectional I/O port with internal pull-ups. Port 3 pins that have 1s
written to them are pulled high by the internal pull-ups and can be used as inputs. As inputs,
port 3 pins that are externally being pulled low will source current because of the pull-ups. (See
DC Electrical Characteristics: I
IL
). Port 3 also serves the special features of the
P89C660/662/664/668, as listed below:
11 5 I RxD (P3.0): Serial input port
13 7 O TxD (P3.1): Serial output port
14 8 I INT0 (P3.2): External interrupt
15 9 I INT1 (P3.3): External interrupt
16 10 I CEX3/T0 (P3.4): Timer 0 external input; Capture/Compare External I/O for PCA module 3
17 11 I CEX4/T1 (P3.5): Timer 1 external input; Capture/Compare External I/O for PCA module 4
18 12 O WR (P3.6): External data memory write strobe
19 13 O RD (P3.7): External data memory read strobe
RST 10 4 I Reset: A high on this pin for two machine cycles while the oscillator is running, resets the
device. An internal resistor to V
SS
permits a power-on reset using only an external capacitor to
V
CC
.
ALE 33 27 O Address Latch Enable: Output pulse for latching the low byte of the address during an access
to external memory. In normal operation, ALE is emitted twice every machine cycle, and can be
used for external timing or clocking. Note that one ALE pulse is skipped during each access to
external data memory. ALE can be disabled by setting SFR auxiliary.0. With this bit set, ALE
will be active only during a MOVX instruction.
PSEN 32 26 O Program Store Enable: The read strobe to external program memory. When executing code
from the external program memory, PSEN
is activated twice each machine cycle, except that
two PSEN
activations are skipped during each access to external data memory. PSEN is not
activated during fetches from internal program memory.
Philips Semiconductors Product data
P89C660/P89C662/P89C664/
P89C668
80C51 8-bit Flash microcontroller family
16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM
2002 Oct 28
8
MNEMONIC NAME AND FUNCTIONTYPE
PIN NUMBER
MNEMONIC NAME AND FUNCTIONTYPE
LQFPPLCC
EA/V
PP
35 29 I External Access Enable/Programming Supply Voltage: EA must be externally held low to
enable the device to fetch code from external program memory locations. If EA
is held high, the
device executes from internal program memory. The value on the EA
pin is latched when RST
is released and any subsequent changes have no effect. This pin also receives the
programming supply voltage (V
PP
) during Flash programming.
XTAL1 21 15 I Crystal 1: Input to the inverting oscillator amplifier and input to the internal clock generator
circuits.
XTAL2 20 14 O Crystal 2: Output from the inverting oscillator amplifier.
NOTE:
To avoid “latch-up” effect at power-on, the voltage on any pin (other than V
PP
) must not be higher than V
CC
+ 0.5 V or less than V
SS
– 0.5 V.
Philips Semiconductors Product data
P89C660/P89C662/P89C664/
P89C668
80C51 8-bit Flash microcontroller family
16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM
2002 Oct 28
9
Table 1. Special Function Registers
SYMBOL DESCRIPTION
DIRECT
ADDRESS
BIT ADDRESS, SYMBOL, OR ALTERNATIVE PORT FUNCTION
MSB LSB
RESET
VALUE
ACC* Accumulator E0H E7 E6 E5 E4 E3 E2 E1 E0 00H
AUXR# Auxiliary 8EH
EXTRAM
AO xxxxxx10B
AUXR1# Auxiliary 1 A2H
ENBOOT
GF2 0 DPS xxxxx0x0B
B* B register F0H F7 F6 F5 F4 F3 F2 F1 F0 00H
CCAP0H# Module 0 Capture High FAH xxxxxxxxB
CCAP1H# Module 1 Capture High FBH xxxxxxxxB
CCAP2H# Module 2 Capture High FCH xxxxxxxxB
CCAP3H# Module 3 Capture High FDH xxxxxxxxB
CCAP4H# Module 4 Capture High FEH xxxxxxxxB
CCAP0L# Module 0 Capture Low EAH xxxxxxxxB
CCAP1L# Module 1 Capture Low EBH xxxxxxxxB
CCAP2L# Module 2 Capture Low ECH xxxxxxxxB
CCAP3L# Module 3 Capture Low EDH xxxxxxxxB
CCAP4L# Module 4 Capture Low EEH xxxxxxxxB
CCAPM0# Module 0 Mode C2H ECOM CAPP CAPN MAT TOG PWM ECCF x0000000B
CCAPM1# Module 1 Mode C3H ECOM CAPP CAPN MAT TOG PWM ECCF x0000000B
CCAPM2# Module 2 Mode C4H ECOM CAPP CAPN MAT TOG PWM ECCF x0000000B
CCAPM3# Module 3 Mode C5H ECOM CAPP CAPN MAT TOG PWM ECCF x0000000B
CCAPM4# Module 4 Mode C6H ECOM CAPP CAPN MAT TOG PWM ECCF x0000000B
C7 C6 C5 C4 C3 C2 C1 C0
CCON*# PCA Counter Control C0H CF CR CCF4 CCF3 CCF2 CCF1 CCF0 00x00000B
CH# PCA Counter High F9H 00H
CL# PCA Counter Low E9H 00H
CMOD# PCA Counter Mode C1H CIDL WDTE CPS1 CPS0 ECF 00xxx000B
DPTR: Data Pointer (2 bytes)
DPH Data Pointer High 83H 00H
DPL Data Pointer Low 82H 00H
AF AE AD AC AB AA A9 A8
IEN0* Interrupt Enable 0 A8H EA EC ES1 ES0 ET1 EX1 ET0 EX0 00H
IEN1* Interrupt Enable 1 E8 ET2 xxxxxxx0B
BF BE BD BC BB BA B9 B8
IP* Interrupt Priority B8H PT2 PPC PS1 PS0 PT1 PX1 PT0 PX0 x0000000B
IPH# Interrupt Priority High B7H PT2H PPCH PS1H PS0H PT1H PX1H PT0H PX0H x0000000B
87 86 85 84 83 82 81 80
P0* Port 0 80H AD7 AD6 AD5 AD4 AD3 AD2 AD1 AD0 FFH
97 96 95 94 93 92 91 90
P1* Port 1 90H SDA SCL CEX2 CEX1 CEX0 ECI T2EX T2 FFH
A7 A6 A5 A4 A3 A2 A1 A0
P2* Port 2 A0H AD15 AD14 AD13 AD12 AD11 AD10 AD9 AD8 FFH
B7 B6 B5 B4 B3 B2 B1 B0
P3* Port 3 B0H RD WR T1/
CEX4
T0/
CEX3
INT1 INT0 TxD RxD FFH
PCON#
1
Power Control 87H SMOD1 SMOD0 POF GF1 GF0 PD IDL 00xxx000B
* SFRs are bit addressable.
# SFRs are modified from or added to the 80C51 SFRs.
Reserved bits.
1. Reset value depends on reset source.

P89C660HBA/00,512

Mfr. #:
Manufacturer:
NXP Semiconductors
Description:
IC MCU 8BIT 16KB FLASH 44PLCC
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union