Replaces data sheets 87C652 of 1998 May 01 and 87C654 of 1998 May 01
IC20 Data Handbook
C
1999 Jul 23
Philips SemiconductorsProduct specification
EPROM
TEMPERATURE RANGE C AND PACKAGE
g
80C51 8-bit microcontroller
2
8K/16K, 256 OTP, I
DESCRIPTION
The 87C652/87C654 single-chip 8-Bit
microcontroller is manufactured in an
advanced CMOS process and is a derivative
of the 80C51 microcontroller family. The
87C652/87C654 has the same instruction
set as the 80C51. Three versions of the
derivative exist:
This device provides architectural
enhancements that make it applicable in a
variety of applications for general control
systems. The 87C654 contains a non-volatile
16k × 8 EPROM and the 87C652 contains an
8k x 8 EPROM. Both have a volatile 256 × 8
read/write data memory, four 8-bit I/O ports,
two 16-bit timer/event counters (identical to
the timers of the 80C51), a multi-source,
two-priority-level, nested interrupt structure,
2
an I
C interface, UART and on-chip oscillator
and timing circuits. For systems that require
extra capability, the 87C652/87C654 can be
expanded using standard TTL compatible
memories and logic.
The device also functions as an arithmetic
processor having facilities for both binary and
BCD arithmetic plus bit-handling capabilities.
The instruction set consists of over 100
instructions: 49 one-byte, 45 two-byte and 17
three-byte. With a 16 MHz crystal, 58% of the
instructions are executed in 0.75 µs and 40%
in 1.5 µs. Multiply and divide instructions
require 3 µs.
C
FEATURES
•80C51 central processing unit
•16k × 8 EPROM or 8k x 8 EPROM
expandable externally to 64k bytes
•256 × 8 RAM, expandable externally to
64k bytes
•Two standard 16-bit timer/counters
•Four 8-bit I/O ports
2
•I
C-bus serial I/O port with byte oriented
master and slave functions
•Full-duplex UART facilities
•Power control modes
– Idle mode
– Power-down mode
•Extended temperature range
•OTP package available
•Two speed ranges
– 16 MHz
– 20 MHz
87C652/87C654
PIN CONFIGURATIONS
P1.0
1
P1.1
2
P1.2
3
P1.3
4
P1.4
5
P1.5
6
SCL/P1.6
SDA/P1.7
RxD/P3.0
TxD/P3.1
INT0
INT1
WR
RST
/P3.2
/P3.3
T0/P3.4
T1/P3.5
/P3.6
/P3.7
RD
XTAL2
XTAL1
V
7
8
9
PLASTIC
DUAL
10
IN-LINE
PACKAGE
11
12
13
14
15
16
17
18
19
20
SS
40
V
39
P0.0/AD0
38
P0.1/AD1
37
P0.2/AD2
36
P0.3/AD3
35
P0.4/AD4
34
P0.5/AD5
33
P0.6/AD6
32
P0.7/AD7
31
EA/V
30
ALE/PROG
29
PSEN
28
P2.7/A15
27
P2.6/A14
26
P2.5/A13
25
P2.4/A12
24
P2.3/A11
23
P2.2/A10
22
P2.1/A9
21
P2.0/A8
CC
PP
SU00259
ORDERING INFORMATION
°
S87C654-4N400 to +70, Plastic Dual In-line Package16SOT129-1
S87C654-4A440 to +70, Plastic Leaded Chip Carrier16SOT187-2
S87C654–4B440 to +70, Plastic Quad Flat Pack16SOT307-2
S87C654-5N40–40 to +85, Plastic Dual In-line Package16SOT129-1
S87C654-5A44–40 to +85, Plastic Leaded Chip Carrier16SOT187-2
S87C654-5B44–40 to +85, Plastic Quad Flat Pack16SOT307-2
S87C654–7N400 to +70, Plastic Dual In-line Package20SOT129-1
S87C654–7A440 to +70, Plastic Leaded Chip Carrier20SOT187-2
S87C652-4N400 to +70, Plastic Dual In-line Package16SOT129-1
S87C652-4A440 to +70, Plastic Leaded Chip Carrier16SOT187-2
S87C652-4B440 to +70, Plastic Quad Flat Pack16SOT307-2
S87C652-5A44–40 to +85, Plastic Leaded Chip Carrier16SOT187-2
NOTES:
1. For ROM see 83C654 data sheet and 83C652/80C652 data sheet
P0.0–0.739–32 43–36 37–30I/OPort 0: Port 0 is an open-drain, bidirectional I/O port. Port 0 pins that have 1s written to them
P1.0–P1.71–82–940–44,
P1.6782I/OSCL: I2C-bus serial port clock line.
P1.7893I/OSDA: I2C-bus serial port data line.
P2.0–P2.721–28 24–31 18–25I/OPort 2: Port 2 is an 8-bit bidirectional I/O port with internal pull-ups. Port 2 pins that have 1s
P3.0–P3.710–1711,
RST9104IReset: A high on this pin for two machine cycles while the oscillator is running, resets the
ALE/PROG303327I/OAddress Latch Enable/Program Pulse: Output pulse for latching the low byte of the
PSEN293226OProgram Store Enable: The read strobe to external program memory. When the 87C654 is
EA/V
PP
XTAL1192115ICrystal 1: Input to the inverting oscillator amplifier and input to the internal clock generator
XTAL2182014OCrystal 2: Output from the inverting oscillator amplifier.
NOTE:
To avoid “latch-up” effect at power-on, the voltage on any pin at any time must not be higher than V
202216IGround: 0 V reference.
404438IPower Supply: This is the power supply voltage for normal, idle, and power-down operation.
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. Port 0 also outputs the code
bytes during program verification in the 87C654. External pull-ups are required during
program verification.
1–3
13–195,7–13
10115IRxD (P3.0): Serial input port
11137OTxD (P3.1): Serial output port
12148IINT0 (P3.2): External interrupt
13159IINT1 (P3.3): External interrupt
141610IT0 (P3.4): Timer 0 external input
151711IT1 (P3.5): Timer 1 external input
161812OWR (P3.6): External data memory write strobe
171913ORD (P3.7): External data memory read strobe
313529IExternal Access Enable/Programming Supply Voltage: EA must be externally held low to
I/OPort 1: Port 1 is an 8-bit bidirectional I/O port with internal pull-ups, 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
Port 1 also receives the low-order address byte during program memory verification.
Alternate functions include:
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
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.
I/OPort 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
family, as listed below:
device. An internal diffused resistor to V
capacitor to V
address during an access to external memory. In normal operation, ALE is emitted at a
constant rate of 1/6 the oscillator frequency, and can be used for external timing or clocking.
Note that one ALE pulse is skipped during each access to external data memory. This pin is
also the program pulse input (PROG
executing code from the external program memory, PSEN
cycle, except that two PSEN
memory. PSEN
enable the device to fetch code from external program memory locations 0000H and 1FFFH
for 87C652 and 3FFFH for 87C654. If EA
program memory unless the program counter contains an address greater than 3FFFH. This
pin also receives the 12.75 V programming supply voltage (V
circuits.
.
CC
is not activated during fetches from internal program memory.
activations are skipped during each access to external data
). Port 3 also serves the special features of the 80C51
Data pointer
(2 bytes)
Data pointer high
Data pointer low
DIRECT
ADDRESS
83H
82H
BIT ADDRESS, SYMBOL, OR ALTERNATIVE PORT FUNCTION
MSB LSB
AFAEADACABAAA9A8
BFBEBDBCBBBAB9B8
8786858483828180
9796959493929190
A7A6A5A4A3A2A1A0
B7B6B5B4B3B2B1B0
9F9E9D9C9B9A9998
D7D6D5D4D3D2D1D0
SLAVE ADDRESS
GC00H
RESET
VALUE
00H
00H
S1STA#Serial 1 statusD9HSC4SC3SC2SC1SC0000F8H
DFDEDDDCDBDAD9D8
S1CON*# Serial 1 controlD8HCR2ENS1STASTOSIAACR1CR000000000B
8F8E8D8C8B8A8988
TCON*Timer control88HTF1TR1TF0TR0IE1IT1IE0IT000H
TH1Timer high 18DH00H
TH0Timer high 08CH00H
TL1Timer low 18BH00H
TL0Timer low 08AH00H
TMODTimer mode89HGATEC/TM1M0GATEC/TM1M000H
* SFRs are bit addressable.
# SFRs are modified from or added to the 80C51 SFRs.
1999 Jul 23
6
Philips SemiconductorsProduct specification
80C51 8-bit microcontroller
2
8K/16K, 256 OTP, I
OSCILLATOR
CHARACTERISTICS
XTAL1 and XTAL2 are the input and output,
respectively, of an inverting amplifier. The
pins can be configured for use as an on-chip
oscillator, as shown in the Logic Symbol.
To drive the device from an external clock
source, XTAL1 should be driven while XTAL2
is left unconnected. There are no
requirements on the duty cycle of the
external clock signal, because the input to
the internal clock circuitry is through a
divide-by-two flip-flop. However, minimum
and maximum high and low times specified in
the data sheet must be observed.
Reset
A reset is accomplished by holding the RST
pin high for at least two machine cycles (24
oscillator periods), while the oscillator is
running. To insure a good power-on reset, the
RST pin must be high long enough to allow
the oscillator time to start up (normally a few
C
milliseconds) plus two machine cycles. At
power-on, the voltage on V
come up at the same time for a proper
start-up.
and RST must
CC
Idle Mode
In the idle mode, the CPU puts itself to sleep
while all of the on-chip peripherals stay
active. The instruction to invoke the idle
mode is the last instruction executed in the
normal operating mode before the idle mode
is activated. The CPU contents, the on-chip
RAM, and all of the special function registers
remain intact during this mode. The idle
mode can be terminated either by any
enabled interrupt (at which time the process
is picked up at the interrupt service routine
and continued), or by a hardware reset which
starts the processor in the same manner as a
power-on reset.
Power-Down Mode
In the power-down mode, the oscillator is
stopped and the instruction to invoke
87C652/87C654
power-down is the last instruction executed.
Only the contents of the on-chip RAM are
preserved. A hardware reset is the only way
to terminate the power-down mode. The
control bits for the reduced power modes are
in the special function register PCON. Table 2
shows the state of the I/O ports during low
current operating modes.
I2C SERIAL
COMMUNICATION—SIO1
The I2C serial port is identical to the I2C
serial port on the 8XC552. The operation of
this subsystem is described in detail in the
8XC552 section of this manual.
Note that in both the 8XC652/4 and the
8XC552 the I
to port pins P1.6 and P1.7. Because of this,
P1.6 and P1.7 on these parts do not have a
pull-up structure as found on the 80C51.
Therefore P1.6 and P1.7 have open drain
outputs on the 8XC652/4.
2
C pins are alternate functions
Table 2. External Pin Status During Idle and Power-Down Mode
1. These frequencies exceed the upper limit of 100kHz of the I
6 MHZ12 MHz16 MHz20 MHzf
1
0 to 255
0.5 < 62.5
0 to 254
2
OSC
DIVIDED BY
OSC
1
1
1
1
1
267
0.65 < 55.6
0 to 253
C-bus specification and cannot be used in an I2C-bus application.
1
166
1
334
0.81 < 69.4
0 to 253
96 × (256 – (reload value Timer 1))
(Reload value range: 0 – 254 in mode 2)
224
192
160
120
60
1999 Jul 23
7
Philips SemiconductorsProduct specification
80C51 8-bit microcontroller
2
8K/16K, 256 OTP, I
ABSOLUTE MAXIMUM RATINGS
PARAMETER
Storage temperature range–65 to +150°C
Voltage on EA/VPP to V
Voltage on any other pin to V
Input, output current on any single pin±5mA
Power dissipation (based on package heat transfer
limitations, not device power consumption)
NOTES:
1. Stresses above those listed under Absolute Maximum Ratings may cause permanent
damage to the device. This is a stress rating only and functional operation of the device at
these or any conditions other than those described in the AC and DC Electrical
Characteristics section of this specification is not implied.
2. This product includes circuitry specifically designed for the protection of its internal devices
from the damaging effects of excessive static charge. Nonetheless, it is suggested that
conventional precautions be taken to avoid applying greater than the rated maxima.
3. Parameters are valid over operating temperature range unless otherwise specified. All
voltages are with respect to V
DEVICE SPECIFICATIONS
TYPEMIN.MAX.MIN.MAX. (°C)
S87C652-4 and
S87C654-4
S87C652-5 and
S87C654-5
S87C654–74.55.53.5200 to +70
SS
SUPPLY VOLTAGE
(V)
4.55.53.5160 to +70
4.55.53.516–40 to +85
C
1, 2, 3
SS
unless otherwise noted.
SS
FREQUENCY
(MHz)
RATINGUNIT
–0.5 to + 13V
–0.5 to + 6.5V
1W
TEMPERATURE
RANGE
87C652/87C654
1999 Jul 23
8
Loading...
+ 16 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.