The P80C652/83C652 Single-Chip 8-Bit
Microcontroller is manufactured in an
advanced CMOS process and is a derivative
of the 80C51 microcontroller family. The
80C652/83C652 has the same instruction set
as the 80C51. Three versions of the
derivative exist:
83C652 — 8k bytes mask programmable
80C652 — ROMless version
87C652 — EPROM version (described in a
This device provides architectural
enhancements that make it applicable in a
variety of applications for general control
systems. The 8XC652 contains a non-volatile
8k × 8 read-only program memory, 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, an I
and on-chip oscillator and timing circuits. For
systems that require extra capability, the
8XC652 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(24)MHz crystal, 58% of
the instructions are executed in 0.75(0.5)µs
and 40% in 1.5(1)µs. Multiply and divide
instructions require 3(2)µs.
P0.0–0.739–32 43–3637–30I/OPort 0: Port 0 is an open-drain, bidirectional I/O port. Port 0 pins that have 1s written to
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–3118–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
ALE303327I/OAddress Latch Enable: Output pulse for latching the low byte of the address during an
PSEN293226OProgram Store Enable: Read strobe to external program memory via Port 0 and Port 2. It
EA313529IExternal Access: If during a RESET, EA is held at TTL, level HIGH, the CPU executes out
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
20226, 16,
28, 39
IGround: 0V reference. With the QFP package all VSS pins (V
connected.
SS1
to V
) must be
SS4
404438IPower Supply: This is the power supply voltage for normal, idle, and power-down
operation.
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.
I/OPort 1: Port 1 is an 8-bit bidirectional I/O port with internal pull-ups, except P1.6 and P1.7
1–3
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:
). Alternate functions include:
I
IL
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
address byte during fetches from external program memory and during accesses to
). Port 2 emits the high-order
IL
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
13–195,7–13
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
the 80C51 family , as listed below:
). Port 3 also serves the special features of
IL
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
device. An internal diffused resistor to V
capacitor to V
DD
.
permits a power-on reset using only an external
SS
access to external memory. In normal operation, ALE is emitted at a constant rate of 1/6
the oscillator frequency . Note that one ALE pulse is skipped during each access to external
data memory.
is activated twice each machine cycle during fetches from the external program memory.
When executing out of external program memory two activations of PSEN
during each access to external data memory. PSEN
no fetches from external program memory. PSEN
is not activated (remains HIGH) during
can sink/source 8 LSTTL inputs and can
are skipped
drive CMOS inputs without external pull–ups.
of the internal program memory ROM provided the Program Counter is less than 8192. If
during a RESET, EA
memory. EA
is held a TTL LOW level, the CPU executes out of external program
The 8XC652 has an additional security
feature. ROM code protection may be
selected by setting a mask–programmable
security bit (i.e., user dependent). This
feature may be requested during ROM code
submission. When selected, the ROM code is
protected and cannot be read out at any time
by any test mode or by any instruction in the
external program memory space.
The MOVC instructions are the only
instructions that have access to program
code in the internal or external program
memory. The EA
RESET and is “don’t care” after RESET
(also if the security bit is not set). This
implementation prevents reading internal
program code by switching from external
program memory to internal program memory
during a MOVC instruction or any other
instruction that uses immediate data.
input is latched during
OSCILLA T OR
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,
page 2.
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
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
DD
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
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
Storage temperature range–65 to +150°C
Voltage on any other pin to V
Input, output current on any single pin
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
SS
SS
1, 2, 3
unless otherwise noted.
RATINGUNIT
–0.5 to + 6.0V
±5
1W
mA
DEVICE SPECIFICATIONS
SUPPLY VOLTAGE
TYPE
P8XC652EBx4.55.53.5160 to +70
P8XC652EFx4.55.53.516–40 to +85
P8XC652EHx4.55.53.516–40 to +125
2. The operating supply current is measured with all output pins disconnected; XTAL1 driven with t
= VSS + 0.5V; VIH = V
V
IL
3. The idle mode supply current is measured with all output pins disconnected; XTAL1 driven with t
V
4. The power-down current is measured with all output pins disconnected; XTAL2 not connected; Port 0 = P1.6 = P1.7 = V
EA
5. 2V
6. The input threshold voltage of P1.6 and P1.7 (SIO1) meets the I
= V
IH
–0.5V; XTAL2 not connected; Port 0 = P1.6 = P1.7 = VDD; EA = RST = VSS. See Figure 10.
DD
= RST = VSS. See Figure 11.
≤ V
≤ VDDmax.
PD
logic 0 while an input voltage above 0.7V
7. 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
8. Capacitive loading on ports 0 and 2 may cause spurious noise to be superimposed on the V
IN
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
test conditions.
DD
–0.5V; XTAL2 not connected; EA = RST = Port 0 = P1.6 = P1.7 = VDD. See Figure 9.
DD
2
will be recognized as a logic 1.
DD
C specification, so an input voltage below 0.3VDD will be recognized as a
= tf = 5ns;
r
= tf = 5ns; VIL = VSS + 0.5V;
r
is approximately 2V .
s of ALE and ports 1 and 3. The noise is due
OL
DD
;
worst cases (capacitive loading > 100pF), the noise pulse on the ALE pin may exceed 0.8V . 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.
9. Under steady state (non-transient) conditions, I
I
= 26mA total for Port 0; Maximum IOL = 15mA total for Ports 1, 2, and 3; Maximum IOL = 71mA total for all output pins. If IOL exceeds the
OL
test conditions, V
10.Capacitive loading on ports 0 and 2 may cause the V
may exceed the related specification. Pins are not guaranteed to sink current greater than the listed test conditions.
OL
address bits are stabilizing.
11. I
for other frequencies can be derived from Figure 1, where FREQ is the external oscillator frequency in MHz. I
DDMAX
40
I
DD
(mA)
30
must be externally limited as follows: Maximum IOL = 10mA per port pin; Maximum
OL
on ALE and PSEN to momentarily fall below the 0.9VDD specification when the
OH
is given in mA.
DDMAX
50
I
DD
(mA)
40
(1)
20
10
(2)
0
0481216
(1) MAXIMUM OPERATING MODE: V
(2) MAXIMUM IDLE MODE: VDD = V
These values are valid within the specified
frequency range.
= V
DD
DDmax
DDmax
f
XTAL1
(MHz)
Figure 1. IDD vs. Frequency
30
20
10
0
0
(1) MAXIMUM OPERATING MODE: V
(2) MAXIMUM IDLE MODE: VDD = V
These values are valid within the specified
2Oscillator frequency3.516MHz
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
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, 4RD pulse width2756t
3, 4WR pulse width2756t
3, 4RD low to valid data in1485t
–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
CLCX
t
CHCX
NOTES:
1. Parameters are valid over operating temperature range unless otherwise specified.
2. Load capacitance for port 0, ALE, and PSEN
= 100pF, load capacitance for all other outputs = 80pF.
3. These values are characterized but not 100% production tested.
2Oscillator frequency3.524MHz
2ALE pulse width432t
2Address valid to ALE low17t
2Address hold after ALE low17t
2ALE low to valid instruction in1024t
2ALE low to PSEN low17t
2PSEN pulse width803t
2PSEN low to valid instruction in653t
–40ns
CLCL
–25ns
CLCL
–25ns
CLCL
–65ns
CLCL
–25ns
CLCL
–45ns
CLCL
–60ns
CLCL
2Input instruction hold after PSEN00ns
2Input instruction float after PSEN17t
2Address to valid instruction in1285t
–25ns
CLCL
–80ns
CLCL
2PSEN low to address float1010ns
Data Memory
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, 4RD pulse width1506t
3, 4WR pulse width1506t
3, 4RD low to valid data in1185t
–100ns
CLCL
–100ns
CLCL
–90ns
CLCL
3, 4Data hold after RD00ns
3, 4Data float after RD552t
3, 4ALE low to valid data in1808t
3, 4Address to valid data in2109t
3, 4ALE low to RD or WR low751753t
3, 4Address valid to WR low or RD low924t
3, 4Data valid to WR transition12t
3, 4Data setup time before WR1627t
3, 4Data hold after WR17t
–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 high1767t
–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.512t
28310t
232t
CLCL
–133ns
CLCL
–60ns
CLCL
00ns
28310t
–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
55ns
55ns
CLCL –
CLCL –
t
CLCX
t
CHCX
NOTES:
1. Parameters are valid over operating temperature range unless otherwise specified.
2. Load capacitance for port 0, ALE, and PSEN
= 100pF, load capacitance for all other outputs = 80pF.
3. These values are characterized but not 100% production tested.
STAR T condition hold time≥ 14 t
SCL LOW time≥ 16 t
SCL HIGH time≥ 14 t
CLCL
CLCL
CLCL
SCL rise time≤ 1µs–
SCL fall time≤ 0.3µs< 0.3µs
SDA TIMING CHARACTERISTICS
t
SU;DAT1
t
SU;DAT2
t
SU;DAT3
t
HD;DAT
t
SU;STA
t
SU;STO
t
BUF
t
RD
t
FD
Data set-up time≥ 250ns> 20 t
SDA set-up time (before rep. STAR T cond.)≥ 250ns> 1µs
SDA set-up time (before STOP cond.)≥ 250ns> 8 t
Data hold time≥ 0ns> 8 t
Repeated START set-up time≥ 14 t
STOP condition set-up time≥ 14 t
Bus free time≥ 14 t
CLCL
CLCL
CLCL
SDA rise time≤ 1µs–
SDA fall time≤ 0.3µs< 0.3µs
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 = 400pF.
4. t
= 1/f
CLCL
interface meets the I
= one oscillator clock period at pin XTAL1. For 63ns (42ns) < t
OSC
2
C-bus specification for bit-rates up to 100 kbit/s.
will be filtered out. Maximum capacitance on bus-lines SDA and
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
t
ALE
LHLL
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
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.
(NC)
XTAL2
XTAL1
V
SS
P1.6
P1.7
*
*
Figure 11. IDD 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
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 chages 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.
[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 1998
All rights reserved. Printed in U.S.A.
Date of release: 06-98
Document order number:9397 750 04047
1997 Dec 05
22
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.