Replaces data sheets 87C652 of 1998 May 01 and 87C654 of 1998 May 01
IC20 Data Handbook
C
1999 Jul 23
Page 2
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
Page 7
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
Page 8
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
Page 9
Philips SemiconductorsProduct specification
80C51 8-bit microcontroller
2
8K/16K, 256 OTP, I
C
87C652/87C654
DC ELECTRICAL CHARACTERISTICS
VSS = 0 V
TESTLIMITS
SYMBOLPARAMETERPART TYPECONDITIONSMIN.MAX.UNIT
V
IL
V
IL1
V
IL2
V
IH
V
IH1
V
IH2
V
OL
V
OL1
V
OL2
V
OH
V
OH1
I
IL
I
TL
I
L1
I
L2
I
CC
R
RST
C
IO
NOTES:
1. The input threshold voltage of P1.6 and P1.7 (SIO1) meets the I
logic 0 while an input voltage above 0.7V
2. Capacitive loading on ports 0 and 2 may cause spurious noise to be superimposed on the V
to external bus capacitance discharging into the port 0 and port 2 pins when these pins make 1-to-0 transitions during bus operations. In the
worst cases (capacitive loading > 100 pF), the noise pulse on the ALE pin may exceed 0.8 V. In such cases, it may be desirable to qualify
ALE with a Schmitt Trigger, or use an address latch with a Schmitt Trigger STROBE input. I
single output sinks more than 5 mA and no more than two outputs exceed the test conditions.
3. Under steady state (non-transient) conditions, I
I
OL
the test conditions, V
4. Capacitive loading on ports 0 and 2 may cause the V
address bits are stabilizing.
5. Pins of ports 1 , 2, and 3 source a transition current when they are being externally driven from 1 to 0. The transition current reaches its
maximum value when V
6. See Figures 9 through 11 for I
7. The operating supply current is measured with all output pins disconnected; XTAL1 driven with t
V
IL
8. The idle mode supply current is measured with all output pins disconnected; XTAL1 driven with t
V
IH
9. The power-down current is measured with all output pins disconnected; XTAL2 not connected; Port 0 = P1.6 = P1.7 = V
EA
10.2V ≤ V
Input low voltage,
except EA, P1.6/SCL, P1.7/SDA
Input low voltage to EA0 to +70°C
Input low voltage to P1.6/SCL, P1.7/SDA
1
Input high voltage,
except XTAL1, RST, P1.6/SCL, P1.7/SDA
–40 to +85°C
Input leakage current, port 00.45V < V
Input leakage current, P1.6/SCL, P1.7/SDA0V < V
IOH = –60µA
IOH = –25µA
IOH = –400µA
IOH = –150µA
2.4
0.75V
2.4
0.75V
CC
CC
VIN = 0.45V–50
See note 5–650
< V
I
CC
< 6.0V
I
CC
< 6.0V
0V < V
–75
–750
±10µA
±10µA
Power supply current:See note 6
VCC=6.0V
9, 10
9, 10
7
8
25mA
6mA
0 to +70°C50µA
–40 to +85°C135µA
Active mode @ 16 MHz
Idle mode @ 16 MHz
Power down mode
Power down mode
Internal reset pull-down resistor50150kΩ
Pin capacitanceFreq.=1 MHz10pF
2
will be recognized as a logic 1.
CC
must be externally limited as follows: Maximum IOL = 10 mA per port pin; Maximum
= 26 mA total for Port 0; Maximum IOL = 15 mA total for Ports 1, 2, and 3; Maximum IOL = 71 mA total for all output pins. If IOL exceeds
may exceed the related specification. Pins are not guaranteed to sink current greater than the listed test conditions.
OL
is approximately 2 V.
IN
test conditions.
CC
= VSS + 0.5 V; VIH = V
= V
–0.5 V; XTAL2 not connected; Port 0 = P1.6 = P1.7 = VCC; EA = RST = VSS; f
CC
–0.5 V; XTAL2 not connected; EA = RST = Port 0 = P1.6 = P1.7 = VCC; f
CC
OL
on ALE and PSEN to momentarily fall below the 0.9VCC specification when the
OH
= RST = VSS. See Figure 11.
≤ VCCmax.
PD
C specification, so an input voltage below 0.3VCC will be recognized as a
s of ALE and ports 1 and 3. The noise is due
OL
can exceed these conditions provided that no
OL
= tf = 10ns;
r
= tf = 10 ns; VIL = VSS + 0.5 V;
r
= 16 MHz. See Figure 10.
CLK
= 16 MHz. See Figure 9.
CLK
CC
;
V
V
V
V
V
V
V
V
V
µA
µA
µA
µA
µA
1999 Jul 23
9
Page 10
Philips SemiconductorsProduct specification
80C51 8-bit microcontroller
2
8K/16K, 256 OTP, I
AC ELECTRICAL CHARACTERISTICS
C
1, 2
87C652/87C654
16 MHz CLOCKVARIABLE CLOCK
SYMBOLFIGUREPARAMETERMINMAXMINMAXUNIT
1/t
t
LHLL
t
AVLL
t
LLAX
t
LLIV
t
LLPL
t
PLPH
t
PLIV
t
PXIX
t
PXIZ
t
AVIV
t
PLAZ
CLCL
2Oscillator frequency Speed Versions
3.516MHz
87C654 –4, –5
2ALE pulse width852t
2Address valid to ALE low8t
2Address hold after ALE low28t
2ALE low to valid instruction in1504t
2ALE low to PSEN low23t
2PSEN pulse width1433t
2PSEN low to valid instruction in833t
–40ns
CLCL
–55ns
CLCL
–35ns
CLCL
–100ns
CLCL
–40ns
CLCL
–45ns
CLCL
–105ns
CLCL
2Input instruction hold after PSEN00ns
2Input instruction float after PSEN38t
2Address to valid instruction in2085t
–25ns
CLCL
–105ns
CLCL
2PSEN low to address float1010ns
Data Memory
t
AVLL
t
RLRH
t
WLWH
t
RLDV
t
RHDX
t
RHDZ
t
LLDV
t
AVDV
t
LLWL
t
AVWL
t
QVWX
t
DW
t
WHQX
t
RLAZ
t
WHLH
3, 4Address valid to ALE low28t
3, 4RD pulse width2756t
3, 4WR pulse width2756t
3, 4RD low to valid data in1485t
–35ns
CLCL
–100ns
CLCL
–100ns
CLCL
–165ns
CLCL
3, 4Data hold after RD00ns
3, 4Data float after RD552t
3, 4ALE low to valid data in3508t
3, 4Address to valid data in3989t
3, 4ALE low to RD or WR low1382383t
3, 4Address valid to WR low or RD low1204t
3, 4Data valid to WR transition3t
3, 4Data setup time before WR2887t
3, 4Data hold after WR13t
–503t
CLCL
–130ns
CLCL
–60ns
CLCL
–150ns
CLCL
–50ns
CLCL
–70ns
CLCL
–150ns
CLCL
–165ns
CLCL
+50ns
CLCL
3, 4RD low to address float00ns
3, 4RD or WR high to ALE high23103t
–40t
CLCL
+40ns
CLCL
Shift Register
t
XLXL
t
QVXH
t
XHQX
t
XHDX
t
XHDV
5Serial port clock cycle time
5Output data setup to clock rising edge
5Output data hold after clock rising edge
5Input data hold after clock rising edge
5Clock rising edge to input data valid
3
3
3
3
3
0.7512t
49210t
802t
CLCL
–133ns
CLCL
–117ns
CLCL
00ns
49210t
–133ns
CLCL
External Clock
t
CHCX
t
CLCX
t
CLCH
t
CHCL
6High time
6Low time
6Rise time
6Fall time
3
3
3
3
2020t
2020t
2020ns
2020ns
CLCL –
CLCL –
t
t
LOW
HIGH
NOTES:
1. Parameters are valid over operating temperature range unless otherwise specified.
2. Load capacitance for port 0, ALE, and PSEN
= 100 pF, load capacitance for all other outputs = 80 pF.
3. These values are characterized but not 100% production tested.
µs
ns
ns
1999 Jul 23
10
Page 11
Philips SemiconductorsProduct specification
80C51 8-bit microcontroller
2
8K/16K, 256 OTP, I
AC ELECTRICAL CHARACTERISTICS
C
1, 2
87C652/87C654
20 MHz CLOCKVARIABLE CLOCK
SYMBOLFIGUREPARAMETERMINMAXMINMAXUNIT
1/t
t
LHLL
t
AVLL
t
LLAX
t
LLIV
t
LLPL
t
PLPH
t
PLIV
t
PXIX
t
PXIZ
t
AVIV
t
PLAZ
CLCL
2Oscillator frequency: Speed Versions
3.520MHz
87C654 –7, –8
2ALE pulse width602t
2Address valid to ALE low25t
2Address hold after ALE low25t
2ALE low to valid instruction in1354t
2ALE low to PSEN low25t
2PSEN pulse width1053t
2PSEN low to valid instruction in903t
–40ns
CLCL
–25ns
CLCL
–25ns
CLCL
–65ns
CLCL
–25ns
CLCL
–45ns
CLCL
–60ns
CLCL
2Input instruction hold after PSEN00ns
2Input instruction float after PSEN25t
2Address to valid instruction in1705t
–25ns
CLCL
–80ns
CLCL
2PSEN low to address float1010ns
Data Memory
t
AVLL
t
RLRH
t
WLWH
t
RLDV
t
RHDX
t
RHDZ
t
LLDV
t
AVDV
t
LLWL
t
AVWL
t
QVWX
t
DW
t
WHQX
t
RLAZ
t
WHLH
3, 4Address valid to ALE low25t
3, 4RD pulse width2006t
3, 4WR pulse width2006t
3, 4RD low to valid data in1605t
–25ns
CLCL
–100ns
CLCL
–100ns
CLCL
–90ns
CLCL
3, 4Data hold after RD00ns
3, 4Data float after RD722t
3, 4ALE low to valid data in2508t
3, 4Address to valid data in2859t
3, 4ALE low to RD or WR low1002003t
3, 4Address valid to WR low or RD low1254t
3, 4Data valid to WR transition20t
3, 4Data setup time before WR2207t
3, 4Data hold after WR25t
–503t
CLCL
–75ns
CLCL
–30ns
CLCL
–130ns
CLCL
–25ns
CLCL
–28ns
CLCL
–150ns
CLCL
–165ns
CLCL
+50ns
CLCL
3, 4RD low to address float00ns
3, 4RD or WR high to ALE high2575t
–25t
CLCL
+25ns
CLCL
Shift Register
t
XLXL
t
QVXH
t
XHQX
t
XHDX
t
XHDV
5Serial port clock cycle time
5Output data setup to clock rising edge
5Output data hold after clock rising edge
5Input data hold after clock rising edge
5Clock rising edge to input data valid
3
3
3
3
3
0.612t
36710t
402t
CLCL
–133ns
CLCL
–60ns
CLCL
00ns
36710t
–133ns
CLCL
External Clock
t
CHCX
t
CLCX
t
CLCH
t
CHCL
6High time
6Low time
6Rise time
6Fall time
3
3
3
3
1717t
1717t
2020ns
2020ns
CLCL –
CLCL –
t
t
LOW
HIGH
NOTES:
1. Parameters are valid over operating temperature range unless otherwise specified.
2. Load capacitance for port 0, ALE, and PSEN
= 100 pF, load capacitance for all other outputs = 80 pF.
3. These values are characterized but not 100% production tested.
µs
ns
ns
1999 Jul 23
11
Page 12
Philips SemiconductorsProduct specification
80C51 8-bit microcontroller
2
8K/16K, 256 OTP, I
C
87C652/87C654
AC ELECTRICAL CHARACTERISTICS – I2C INTERFACE
SYMBOLPARAMETERINPUTOUTPUT
SCL TIMING CHARACTERISTICS
tHD; STAST ART condition hold time≥ 14 t
t
LOW
t
HIGH
t
RC
t
FC
SCL LOW time≥ 16 t
SCL HIGH time≥ 14 t
SCL rise time≤ 1 µs–
SCL fall time≤ 0.3 µs< 0.3 µs
CLCL
CLCL
CLCL
SDA TIMING CHARACTERISTICS
tSU; DAT1Data set-up time≥ 250 ns> 20 t
tSU; DAT2SDA set-up time (before rep. START cond.)≥ 250 ns> 1 µs
tSU; DAT3SDA set-up time (before STOP cond.)≥ 250 ns> 8 t
tHD; DATData hold time≥ 0 ns> 8 t
tSU; STARepeated START set-up time≥ 14 t
tSU; STOSTOP condition set-up time≥ 14 t
t
BUF
t
RD
t
FD
Bus free time≥ 14 t
SDA rise time≤ 1µs–
SDA fall time≤ 0.3µs< 0.3 µs
CLCL
CLCL
CLCL
NOTES:
1. At 100 kbit/s. At other bit rates this value is inversely proportional to the bit-rate of 100 kbit/s.
2. Determined by the external bus-line capacitance and the external bus-line pull-resistor, this must be < 1 µs.
3. Spikes on the SDA and SCL lines with a duration of less than 3 t
SCL = 400 pF.
4. t
= 1/f
CLCL
2
C-bus specification for bit-rates up to 100 kbit/s.
the I
= one oscillator clock period at pin XTAL1. For 62 ns < t
OSC
will be filtered out. Maximum capacitance on bus-lines SDA and
CLCL
< 285 ns (16 MHz) > f
CLCL
> 3.5 MHz) the SI01 interface meets
OSC
> 4.0 µs
> 4.7 µs
> 4.0 µs
CLCL
CLCL
CLCL
> 4.7 µs
> 4.0 µs
> 4.7 µs
1
1
1
2
3
– t
RD
1
– t
FC
1
1
1
2
3
TIMING SIO1 (I2C) INTERFACE
START or repeated START condition
SDA
(INPUT/OUTPUT)
t
FDtRC
SCL
(INPUT/OUTPUT)
t
HD;STA
t
LOW
t
RD
t
HIGH
t
FC
t
SU;DAT1
t
HD;DAT
repeated START condition
STOP condition
t
SU;DAT2
t
SU;STA
t
SU;STO
0.7 V
0.3 V
t
t
BUF
CC
CC
SU;DAT3
START condition
0.7 V
CC
0.3 V
CC
SU00107A
1999 Jul 23
12
Page 13
Philips SemiconductorsProduct specification
80C51 8-bit microcontroller
2
8K/16K, 256 OTP, I
EXPLANATION OF THE AC SYMBOLS
Each timing symbol has five characters. The
first character is always ‘t’ (= time). The other
characters, depending on their positions,
indicate the name of a signal or the logical
status of that signal. The designations are:
A – Address
C – Clock
D – Input data
H – Logic level high
I – Instruction (program memory contents)
L – Logic level low, or ALE
P – PSEN
ALE
PSEN
PORT 0
C
t
LHLL
t
AVLL
A0–A7A0–A7
Q – Output data
R–RD
signal
t – Time
V – V alid
W– WR
signal
X – No longer a valid logic level
Z – Float
Examples: t
= Time for address valid
AVLL
to ALE low.
t
= Time for ALE low
t
LLPL
t
LLAX
t
LLIV
t
PLIV
LLPL
t
PLPH
t
PLAZ
to PSEN
t
PXIX
INSTR IN
low.
t
PXIZ
87C652/87C654
ALE
PSEN
PORT 0
PORT 2
RD
PORT 2
t
AVLL
t
LLAX
A0–A7
FROM RI OR DPL
t
AVWL
t
AVIV
A0–A15A8–A15
Figure 1. External Program Memory Read Cycle
t
WHLH
t
LLDV
t
LLWL
t
RLAZ
t
AVDV
P2.0–P2.7 OR A8–A15 FROM DPHA8–A15 FROM PCH
t
RLDV
t
RLRH
t
RHDZ
t
RHDX
DATA INA0–A7 FROM PCLINSTR IN
SU00006
1999 Jul 23
SU00177
Figure 2. External Data Memory Read Cycle
13
Page 14
Philips SemiconductorsProduct specification
80C51 8-bit microcontroller
2
t
A0–A7
LLAX
t
AVWL
C
t
LLWL
P2.0–P2.7 OR A8–A15 FROM DPHA8–A15 FROM PCH
8K/16K, 256 OTP, I
ALE
PSEN
WR
t
AVLL
PORT 0
PORT 2
FROM RI OR DPL
87C652/87C654
t
WHLH
t
WLWH
t
t
QVWX
t
DW
DATA OUTA0–A7 FROM PCLINSTR IN
WHQX
INSTRUCTION
ALE
CLOCK
OUTPUT DATA
WRITE TO SBUF
INPUT DATA
CLEAR RI
SU00213
Figure 3. External Data Memory Write Cycle
012345678
t
XLXL
t
t
QVXH
t
XHDV
VALIDVALIDVALIDVALIDVALIDVALIDVALIDVALID
XHQX
12304567
t
XHDX
SET TI
SET RI
SU00027
Figure 4. Shift Register Mode Timing
VCC–0.5
0.45V
0.7V
CC
0.2VCC–0.1
t
CHCL
t
CLCX
t
CLCL
t
CHCX
t
CLCH
SU00009
Figure 5. External Clock Drive
1999 Jul 23
14
Page 15
Philips SemiconductorsProduct specification
80C51 8-bit microcontroller
2
8K/16K, 256 OTP, I
C
VCC–0.5
0.45V
NOTE:
AC inputs during testing are driven at VCC –0.5 for a logic ‘1’ and 0.45V for a logic ‘0’.
Timing measurements are made at VIH min for a logic ‘1’ and VIL max for a logic ‘0’.
V
+0.1V
LOAD
LOAD
V
LOAD
–0.1V
V
NOTE:
For timing purposes, a port is no longer floating when a 100mV change from load voltage occurs,
and begins to float when a 100mV change from the loaded V
0.2V
+0.9
CC
–0.1
0.2V
CC
Figure 6. AC Testing Input/Output
TIMING
REFERENCE
POINTS
level occurs. IOH/IOL ≥±20mA.
OH/VOL
Figure 7. Float Waveform
V
V
OH
OL
87C652/87C654
SU00010
–0.1V
+0.1V
SU00011
CLOCK SIGNAL
NOTE:
* Ports 1.6 and 1.7 should be connected to V
exceed the I
specification.
OL1
V
CC
I
CC
V
CC
EA
P1.6
P1.7
V
CC
P0
*
*
SU00272
(NC)
V
CC
RST
87C652/4
XTAL2
XTAL1
V
SS
Figure 8. ICC Test Condition, Active Mode
All other pins are disconnected
through resistors of sufficiently high value such that the sink current into these pins does not
CC
1999 Jul 23
15
Page 16
Philips SemiconductorsProduct specification
80C51 8-bit microcontroller
2
8K/16K, 256 OTP, I
C
(NC)
CLOCK SIGNAL
VCC–0.5
0.45V
Figure 10. Clock Signal Waveform for ICC Tests in Active and Idle Modes
V
CC
I
CC
V
RST
EA
CC
V
CC
P0
87C652/4
XTAL2
XTAL1
V
SS
P1.6
P1.7
SU00273
Figure 9. ICC Test Condition, Idle Mode
All other pins are disconnected
0.7V
CC
0.2VCC–0.1
t
CHCL
t
CLCH
= t
t
CHCL
CLCX
= 10 ns
t
CLCL
t
CHCX
t
CLCH
87C652/87C654
*
*
SU00009
NOTE:
* Ports 1.6 and 1.7 should be connected to V
exceed the I
specification.
OL1
V
CC
I
CC
V
RST
EA
CC
V
CC
P0
87C652/4
(NC)
XTAL2
XTAL1
V
SS
P1.6
P1.7
*
*
SU00274
Figure 11. ICC Test Condition, Power Down Mode
All other pins are disconnected. V
through resistors of sufficiently high value such that the sink current into these pins does not
CC
= 2 V to 5.5 V
CC
1999 Jul 23
16
Page 17
Philips SemiconductorsProduct specification
80C51 8-bit microcontroller
2
8K/16K, 256 OTP, I
EPROM CHARACTERISTICS
The 87C652/87C654 is programmed by using
a modified Quick-Pulse Programming
algorithm. It differs from older methods in the
value used for V
voltage) and in the width and number of the
ALE/PROG
The 87C652/87C654 contains two signature
bytes that can be read and used by an
EPROM programming system to identify the
device. The signature bytes identify the device
as an 87C652/87C654 manufactured by
Philips Components.
Table 4 shows the logic levels for reading the
signature byte, and for programming the
program memory , the encryption table, and
the lock bits. The circuit configuration and
waveforms for quick-pulse programming are
shown in Figures 12 and 13. Figure 14 shows
the circuit configuration for normal program
memory verification.
Quick-Pulse Programming
The setup for microcontroller quick-pulse
programming is shown in Figure 12. Note
that the 87C652/87C654 is running with a
4 to 6 MHz oscillator. The reason the
oscillator needs to be running is that the
device is executing internal address and
program data transfers.
The address of the EPROM location to be
programmed is applied to ports 1 and 2, as
(programming supply
PP
pulses.
C
shown in Figure 12. The code byte to be
programmed into that location is applied to
port 0. RST, PSEN
specified in Table 4 are held at the ‘Program
Code Data’ levels indicated in Table 4. The
ALE/PROG
in Figure 13.
To program the encryption table, repeat the 25
pulse programming sequence for addresses 0
through 1FH, using the ‘Pgm Encryption Table’
levels. Do not forget that after the encryption
table is programmed, verification cycles will
produce only encrypted data.
To program the lock bits, repeat the 25 pulse
programming sequence using the ‘Pgm Lock
Bit’ levels. After one lock bit is programmed,
further programming of the code memory and
encryption table is disabled. However, the
other lock bit can still be programmed.
Note that the EA
to go above the maximum specified V
for any amount of time. Even a narrow glitch
above that voltage can cause permanent
damage to the device. The V
should be well regulated and free of glitches
and overshoot.
Program Verification
If lock bit 2 has not been programmed, the
on-chip program memory can be read out for
and pins of ports 2 and 3
is pulsed low 25 times as shown
/VPP pin must not be allowed
level
PP
source
PP
87C652/87C654
program verification. The address of the
program memory locations to be read is
applied to ports 1 and 2 as shown in
Figure 14. The other pins are held at the
‘Verify Code Data’ levels indicated in Table 4.
The contents of the address location will be
emitted on port 0. External pull-ups are
required on port 0 for this operation.
If the encryption table has been programmed,
the data presented at port 0 will be the
exclusive NOR of the program byte with one
of the encryption bytes. The user will have to
know the encryption table contents in order to
correctly decode the verification data. The
encryption table itself cannot be read out.
Reading the Signature Bytes
The signature bytes are read by the same
procedure as a normal verification of
locations 030H and 031H, except that P3.6
and P3.7 need to be pulled to a logic low. The
values are:
(030H) = 15H indicates manufactured by
Philips
(031H) = 99H
Program/Verify Algorithms
Any algorithm in agreement with the
conditions listed in Table 4, and which
satisfies the timing specifications, is suitable.
Table 4. EPROM Programming Modes
MODERSTPSENALE/PROGEA/V
Read signature10110000
Program code data100*V
Verify code data10110011
Pgm encryption table100*V
Pgm lock bit 1100*V
Pgm lock bit 2100*V
NOTES:
1. ‘0’ = Valid low for that pin, ‘1’ = valid high for that pin.
= 12.75 V ±0.25 V .
2. V
PP
3. V
= 5 V±10% during programming and verification.
CC
* ALE/PROG
minimum of 10 µs.
Trademark phrase of Intel Corporation.
receives 25 programming pulses while VPP is held at 12.75 V. Each programming pulse is low for 100 µs (±10 µs) and high for a
PP
PP
PP
PP
PP
P2.7P2.6P3.7P3.6
1011
1010
1111
1100
1999 Jul 23
17
Page 18
Philips SemiconductorsProduct specification
80C51 8-bit microcontroller
2
8K/16K, 256 OTP, I
4–6MHz
C
A0–A7
1
1
1
V
CC
/V
EA
PP
ALE/PROG
PSEN
P2.7
P2.6
P2.0–P2.5
P0
P1
RST
P3.6
P3.7
XTAL2
XTAL1
V
SS
87C652/4
Figure 12. Programming Configuration
87C652/87C654
+5V
PGM DATA
+12.75V
25 100µs PULSES TO GROUND
0
1
0
A8–A13
SU00275
ALE/PROG:
ALE/PROG:
1
0
4–6MHz
25 PULSES
1
0
100µs+1010µs MIN
SU00018
Figure 13. PROG Waveform
+5V
V
CC
EA/V
PP
ALE/PROG
PSEN
P2.7
P2.6
P2.0–P2.5
P0
PGM DATA
1
1
0
0 ENABLE
0
A8–A13
A0–A7
P1
1
1
1
RST
P3.6
P3.7
XTAL2
XTAL1
87C652/4
1999 Jul 23
V
SS
Figure 14. Program Verification
18
SU00276
Page 19
Philips SemiconductorsProduct specification
80C51 8-bit microcontroller
2
8K/16K, 256 OTP, I
EPROM PROGRAMMING AND VERIFICATION CHARACTERISTICS
T
= 21°C to +27°C, VCC = 5V±10%, VSS = 0V (See Figure 15)
amb
SYMBOL
V
PP
I
PP
1/t
CLCL
t
AVGL
t
GHAX
t
DVGL
t
GHDX
t
EHSH
t
SHGL
t
GHSL
t
GLGH
t
AVQV
t
ELQZ
t
EHQZ
t
GHGL
Programming supply voltage12.513.0V
Programming supply current50mA
Oscillator frequency46MHz
Address setup to PROG low48t
Address hold after PROG48t
Data setup to PROG low48t
Data hold after PROG48t
P2.7 (ENABLE) high to V
VPP setup to PROG low10µs
VPP hold after PROG10µs
PROG width90110µs
Address to data valid48t
ENABLE low to data valid48t
Data float after ENABLE048t
PROG high to PROG low10µs
C
PARAMETERMINMAXUNIT
PP
48t
87C652/87C654
CLCL
CLCL
CLCL
CLCL
CLCL
CLCL
CLCL
CLCL
PROGRAMMING*VERIFICATION*
P1.0–P1.7
P2.0–P2.3
PORT 0
t
DVGL
t
ALE/PROG
EA/V
PP
P2.7
ENABLE
* FOR PROGRAMMING VERIFICATION SEE FIGURE 12.
FOR VERIFICATION CONDITIONS SEE FIGURE 14.
AVGL
t
GLGH
t
SHGL
t
EHSH
ADDRESSADDRESS
t
AVQV
DATA INDATA OUT
t
GHDX
t
GHAX
t
GHGL
t
GHSL
LOGIC 1LOGIC 1
LOGIC 0
t
ELQV
Figure 15. EPROM Programming and Verification
t
EHQZ
SU00270
1999 Jul 23
Purchase of Philips I2C components conveys a license under the Philips’ I2C patent
to use the components in the I2C system provided the system conforms to the
I2C specifications defined by Philips. This specification can be ordered using the
code 9398 393 40011.
QFP44: plastic quad flat package; 44 leads (lead length 1.3 mm); body 10 x 10 x 1.75 mmSOT307-2
C
87C652/87C654
1999 Jul 23
22
Page 23
Philips SemiconductorsProduct specification
80C51 8-bit microcontroller
2
8K/16K, 256 OTP, I
C
87C652/87C654
NOTES
1999 Jul 23
23
Page 24
Philips SemiconductorsProduct specification
80C51 8-bit microcontroller
2
8K/16K, 256 OTP, I
Data sheet status
Data sheet
status
Objective
specification
Preliminary
specification
Product
specification
Product
status
Development
Qualification
Production
C
Definition
This data sheet contains the design target or goal specifications for product development.
Specification may change in any manner without notice.
This data sheet contains preliminary data, and supplementary data will be published at a later date.
Philips Semiconductors reserves the right to make changes at any time without notice in order to
improve design and supply the best possible product.
This data sheet contains final specifications. Philips Semiconductors reserves the right to make
changes at any time without notice in order to improve design and supply the best possible product.
87C652/87C654
[1]
[1] Please consult the most recently issued datasheet before initiating or completing a design.
Definitions
Short-form specification — The data in a short-form specification is extracted from a full data sheet with the same type number and title. For
detailed information see the relevant data sheet or data handbook.
Limiting values definition — Limiting values given are in accordance with the Absolute Maximum Rating System (IEC 134). Stress above one
or more of the limiting values may cause permanent damage to the device. These are stress ratings only and operation of the device at these or
at any other conditions above those given in the Characteristics sections of the specification is not implied. Exposure to limiting values for extended
periods may affect device reliability.
Application information — Applications that are described herein for any of these products are for illustrative purposes only. Philips
Semiconductors make no representation or warranty that such applications will be suitable for the specified use without further testing or
modification.
Disclaimers
Life support — These products are not designed for use in life support appliances, devices or systems where malfunction of these products can
reasonably be expected to result in personal injury . Philips Semiconductors customers using or selling these products for use in such applications
do so at their own risk and agree to fully indemnify Philips Semiconductors for any damages resulting from such application.
Right to make changes — Philips Semiconductors reserves the right to make changes, without notice, in the products, including circuits, standard
cells, and/or software, described or contained herein in order to improve design and/or performance. Philips Semiconductors assumes no
responsibility or liability for the use of any of these products, conveys no license or title under any patent, copyright, or mask work right to these
products, and makes no representations or warranties that these products are free from patent, copyright, or mask work right infringement, unless
otherwise specified.
Philips Semiconductors
811 East Arques Avenue
P.O. Box 3409
Sunnyvale, California 94088–3409
Telephone 800-234-7381
Copyright Philips Electronics North America Corporation 1999
All rights reserved. Printed in U.S.A.
Date of release: 07-99
Document order number:9397-750-06607
1999 Jul 23
24
Loading...
+ 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.