PLEASE SEE THE P87C552 DA TA SHEET FOR NEW DESIGN-INS
87C552
80C51 8-bit microcontroller
8K/256 OTP, 8 channel 10 bit A/D, I2C, PWM,
capture/compare, high I/O
Product specification
Supersedes data of 1998 Jan 19
IC20 Data Handbook
1998 May 01
Philips SemiconductorsProduct specification
80C51 8-bit microcontroller
8K/256 OTP, 8 channel 10 bit A/D, I2C, PWM, capture/compare, high I/O
DESCRIPTION
The 87C552 Single-Chip 8-Bit Microcontroller is manufactured in an
advanced CMOS process and is a derivative of the 80C51
microcontroller family. The 87C552 has the same instruction set as
the 80C51. Three versions of the derivative exist:
•83C552—8k bytes mask programmable ROM
•80C552—ROMless version of the 83C552
•87C552—8k bytes EPROM
The 87C552 contains a 8k × 8 a volatile 256 × 8 read/write data
memory, five 8-bit I/O ports, one 8-bit input port, two 16-bit
timer/event counters (identical to the timers of the 80C51), an
additional 16-bit timer coupled to capture and compare latches, a
15-source, two-priority-level, nested interrupt structure, an 8-input
ADC, a dual DAC pulse width modulated interface, two serial
interfaces (UART and I
oscillator and timing circuits. For systems that require extra
capability , the 87C552 can be expanded using standard TTL
compatible memories and logic.
In addition, the 87C552 has two software selectable modes of power
reduction—idle mode and power-down mode. The idle mode freezes
the CPU while allowing the RAM, timers, serial ports, and interrupt
system to continue functioning. The power-down mode saves the
RAM contents but freezes the oscillator, causing all other chip
functions to be inoperative.
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 16MHz crystal,
58% of the instructions are executed in 0.75µs and 40% in 1.5µs.
Multiply and divide instructions require 3µs.
2
C-bus), a “watchdog” timer and on-chip
FEATURES
•80C51 central processing unit
•8k × 8 EPROM expandable externally to 64k bytes
•An additional 16-bit timer/counter coupled to four capture registers
and three compare registers
•Two standard 16-bit timer/counters
•256 × 8 RAM, expandable externally to 64k bytes
•Capable of producing eight synchronized, timed outputs
•A 10-bit ADC with eight multiplexed analog inputs
8K/256 OTP, 8 channel 10 bit A/D, I2C, PWM, capture/compare, high I/O
PIN DESCRIPTION
PIN NO.
MNEMONICPLCCQFPTYPENAME AND FUNCTION
V
DD
STADC374IStart ADC Operation: Input starting analog to digital conversion (ADC operation can also
PWM0475OPulse Width Modulation: Output 0.
PWM1576OPulse Width Modulation: Output 1.
EW677IEnable Watchdog Timer: Enable for T3 watchdog timer and disable power-down mode.
P0.0-P0.757-5058-51I/OPort 0: Port 0 is an 8-bit open-drain bidirectional I/O port. Port 0 pins that have 1s written
RST159I/OReset: Input to reset the 87C552. It also provides a reset pulse as output when timer T3
XTAL13532ICrystal Input 1: Input to the inverting amplifier that forms the oscillator, and input to the
XTAL23431OCrystal Input 2: Output of the inverting amplifier that forms the oscillator. Left open-circuit
V
SS
PSEN4748OProgram Store Enable: Active-low read strobe to external program memory.
272IDigital Power Supply: +5V power supply pin during normal operation, idle and
16-2110-15I/O(P1.0-P1.5): Quasi-bidirectional port pins.
22-2316-17I/O(P1.6, P1.7): Open drain port pins.
16-1910-13ICT0I-CT3I (P1.0-P1.3): Capture timer input signals for timer T2.
2014IT2 (P1.4): T2 event input.
2115IRT2 (P1.5): T2 timer reset signal. Rising edge triggered.
2216I/OSCL (P1.6): Serial port clock line I2C-bus.
2317I/OSDA (P1.7): Serial port data line I2C-bus.
13, 147, 8OCMT0, CMT1 (P4.6, P4.7): Timer T2 compare and toggle outputs on a match with timer T2.
1ADC0-ADC7 (P5.0-P5.7): Alternate function: Eight input channels to ADC.
36, 3734-36IDigital ground.
power-down mode.
be started by software).
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. Port 0 is also used to input
the code byte during programming and to output the code byte during verification.
Port 1 is also used to input the lower order address byte during EPROM programming and
verification. A0 is on P1.0, etc.
I/OPort 2: 8-bit quasi-bidirectional I/O port.
Alternate function: High-order address byte for external memory (A08-A15). Port 2 is also
used to input the upper order address during EPROM programming and verification. A8 is
on P2.0, A9 on P2.1, through A12 on P2.4.
OCMSR0-CMSR5 (P4.0-P4.5): Timer T2 compare and set/reset outputs on a match with
timer T2.
overflows.
internal clock generator. Receives the external clock signal when an external oscillator is
used.
when an external clock is used.
1998 May 01
5
Philips SemiconductorsProduct specification
80C51 8-bit microcontroller
87C552
8K/256 OTP, 8 channel 10 bit A/D, I2C, PWM, capture/compare, high I/O
PIN DESCRIPTION (Continued)
PIN NO.
MNEMONICPLCCQFPTYPENAME AND FUNCTION
ALE/PROG4849OAddress Latch Enable: Latches the low byte of the address during accesses to external
EA/V
PP
AV
REF–
AV
REF+
AV
SS
AV
DD
NOTE:
1. To avoid “latch-up” effect at power-on, the voltage on any pin at any time must not be higher or lower than V
respectively.
4950IExternal Access: When EA is held at TTL level high, the CPU executes out of the internal
5859IAnalog to Digital Conversion Reference Resistor: Low-end.
5960IAnalog to Digital Conversion Reference Resistor: High-end.
6061IAnalog Ground
6163IAnalog Power Supply
memory. It is activated every six oscillator periods. During an external data memory
access, one ALE pulse is skipped. ALE can drive up to eight LS TTL inputs and handles
CMOS inputs without an external pull-up. This pin is also the program pulse input (PROG
during EPROM programming.
program ROM provided the program counter is less than 8192. When EA
low level, the CPU executes out of external program memory. EA
This pin also receives the 12.75V programming supply voltage (V
programming.
+ 0.5V or VSS – 0.5V,
DD
is held at TTL
is not allowed to float.
) during EPROM
PP
)
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.
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
and RST must come up at the same time for a proper start-up.
DD
IDLE MODE
In the idle mode, the CPU puts itself to sleep while some 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 1 shows the state of the I/O ports during low current
operating modes.
Table 1. External Pin Status During Idle and Power-Down Modes
1. These frequencies exceed the upper limit of 100kHz of the I
2
C-bus specification and cannot be used in an I2C-bus application.
OSC
DIVIDED BY
OSC
1
1
120
60
87C552
ABSOLUTE MAXIMUM RATINGS
Storage temperature range–65 to +150°C
Voltage on EA/VPP to V
Voltage on any other pin to V
Input, output DC current on any single I/O pin5.0mA
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
noted.
SS
SS
1, 2, 3
PARAMETER
RATINGUNIT
–0.5 to +13V
–0.5 to +6.5V
1.0W
unless otherwise
SS
DEVICE SPECIFICATIONS
SUPPLY VOLTAGE (V)FREQUENCY (MHz)
TYPEMINMAXMINMAXTEMPERATURE RANGE (°C)
P87C552-44.55.53.5160 to +70
P87C552-54.55.53.516–40 to +85
1998 May 01
7
Philips SemiconductorsProduct specification
2V
V
V
80C51 8-bit microcontroller
87C552
8K/256 OTP, 8 channel 10 bit A/D, I2C, PWM, capture/compare, high I/O
DC ELECTRICAL CHARACTERISTICS
VSS, AVSS = 0V
TESTLIMITS
SYMBOL PARAMETERCONDITIONSMINMAXUNIT
I
DD
I
ID
I
PD
Inputs
V
IL
V
IL1
V
IL2
V
IH
V
IH1
V
IH2
I
IL
I
TL
±I
IL1
±I
IL2
±I
IL3
Outputs
V
OL
V
OL1
V
OL2
V
OH
V
OH1
V
OH2
R
RST
C
IO
Analog Inputs
AV
DD
AI
DD
AI
ID
AI
PD
Supply current operating:See notes 1 and 2
PCA8XC552-5-16f
= 16MHz40mA
OSC
Idle mode:See notes 1 and 3
87C552f
= 16MHz7mA
OSC
Power-down current:See notes 1 and 4;
<
<
87C552
PD
DD
max
50µA
Input low voltage, except EA, P1.6, P1.7–0.50.2VDD–0.1V
Input low voltage to EA–0.50.2VDD–0.3V
Input low voltage to P1.6/SCL, P1.7/SDA
5
–0.50.3V
DD
Input high voltage, except XTAL1, RST0.2VDD+0.9VDD+0.5V
Input high voltage, XTAL1, RST0.7V
Input high voltage, P1.6/SCL, P1.7/SDA