Philips
Semiconductors
80C51/87C51/80C52/87C52
80C51 8-bit microcontroller family
4 K/8 K OTP/ROM low voltage (2.7 V–5.5 V), low
power, high speed (33 MHz), 128/256 B RAM
Product specification
Replaces datasheet 80C51/87C51/80C31 of 2000 Jan 20
2000 Aug 07
INTEGRATED CIRCUITS
Philips Semiconductors
Product specification
80C51/87C51/80C52/87C52
80C51 8-bit microcontroller family
4 K/8 K OTP/ROM low voltage (2.7 V–5.5 V),
low power, high speed (33 MHz), 128/256 B RAM
2
2000 Aug 07
853–0169 24291
DESCRIPTION
The Philips 80C51/87C51/80C52/87C52 is a high-performance
static 80C51 design fabricated with Philips high-density CMOS
technology with operation from 2.7 V to 5.5 V.
The 8xC51 and 8xC52 contain a 128
×
8 RAM and 256
×
8 RAM
respectively, 32 I/O lines, three 16-bit counter/timers, a six-source,
four-priority level nested interrupt structure, a serial I/O port for
either multi-processor communications, I/O expansion or full duplex
UART, and on-chip oscillator and clock circuits.
In addition, the device is a low power static design which offers a
wide range of operating frequencies down to zero. Two software
selectable modes of power reduction—idle mode and power-down
mode are available. The idle mode freezes the CPU while allowing
the RAM, timers, serial port, 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. Since the design is static, the clock can be stopped
without loss of user data and then the execution resumed from the
point the clock was stopped.
SELECTION TABLE
For applications requiring more ROM and RAM, see the 8XC54/58
and 8XC51RA+/RB+/RC+/80C51RA+ data sheet.
Note: 80C31/80C32 is specified in separate data sheet.
ROM/EPROM
Memory Size
(X by 8)
RAM Size
(X by 8)
Programmable
Timer Counter
(PCA)
Hardware
Watch Dog
Timer
80C31*/80C51/87C51
0K/4K
128
No
No
80C32*/80C52/87C52
0K/8K/16K/32K
256
No
No
80C51RA+/8XC51RA+/RB+/RC+
0K/8K/16K/32K
512
Yes
Yes
8XC51RD+
64K
1024
Yes
Yes
FEATURES
•
8051 Central Processing Unit
– 4k
×
8 ROM (80C51)
– 8k
×
8 ROM (80C52)
– 128
×
8 RAM (80C51)
– 256
×
8 RAM (80C52)
– Three 16-bit counter/timers
– Boolean processor
– Full static operation
– Low voltage (2.7 V to 5.5 V@ 16 MHz) operation
•
Memory addressing capability
– 64k ROM and 64k RAM
•
Power control modes:
– Clock can be stopped and resumed
– Idle mode
– Power-down mode
•
CMOS and TTL compatible
•
TWO speed ranges at V
CC
= 5 V
– 0 to 16 MHz
– 0 to 33 MHz
•
Three package styles
•
Extended temperature ranges
•
Dual Data Pointers
•
Security bits:
– ROM (2 bits)
– OTP/EPROM (3 bits)
•
Encryption array – 64 bytes
•
4 level priority interrupt
•
6 interrupt sources
•
Four 8-bit I/O ports
•
Full–duplex enhanced UART
– Framing error detection
– Automatic address recognition
•
Programmable clock out
•
Asynchronous port reset
•
Low EMI (inhibit ALE and slew rate controlled outputs)
•
Wake-up from Power Down by an external interrupt
Philips Semiconductors
Product specification
80C51/87C51/80C52/87C52
80C51 8-bit microcontroller family
4 K/8 K OTP/ROM low voltage (2.7 V–5.5 V),
low power, high speed (33 MHz), 128/256 B RAM
2000 Aug 07
3
80C51/87C51 ORDERING INFORMATION
MEMORY SIZE
4K
×
8
TEMPERATURE RANGE
°
C
AND PACKAGE
VOLTAGE
RANGE
FREQ.
(MHz)
DWG. #
ROM
P80C51SBPN
0 to +70 Plastic Dual In line Package
2 7 V to 5 5 V
0 to 16
SOT129 1
OTP
P87C51SBPN
0 to +70, Plastic Dual In-line Package
2.7 V to 5.5 V
0 to 16
SOT129-1
ROM
P80C51SBAA
0 to +70 Plastic Leaded Chip Carrier
2 7 V to 5 5 V
0 to 16
SOT187 2
OTP
P87C51SBAA
0 to +70, Plastic Leaded Chip Carrier
2.7 V to 5.5 V
0 to 16
SOT187-2
ROM
P80C51SBBB
0 to +70 Plastic Quad Flat Pack
2 7 V to 5 5 V
0 to 16
SOT307 2
OTP
P87C51SBBB
0 to +70, Plastic Quad Flat Pack
2.7 V to 5.5 V
0 to 16
SOT307-2
ROM
P80C51SFP N
40 to +85 Plastic Dual In line Package
2 7 V to 5 5 V
0 to 16
SOT129 1
OTP
P87C51SFP N
–40 to +85, Plastic Dual In-line Package
2.7 V to 5.5 V
0 to 16
SOT129-1
ROM
P80C51SFA A
40 to +85 Plastic Leaded Chip Carrier
2 7 V to 5 5 V
0 to 16
SOT187 2
OTP
P87C51SFA A
–40 to +85, Plastic Leaded Chip Carrier
2.7 V to 5.5 V
0 to 16
SOT187-2
ROM
P80C51SFB B
40 to +85 Plastic Quad Flat Pack
2 7 V to 5 5 V
0 to 16
SOT307 2
OTP
P87C51SFB B
–40 to +85, Plastic Quad Flat Pack
2.7 V to 5.5 V
0 to 16
SOT307-2
ROM
P80C51UBAA
0 to +70 Plastic Leaded Chip Carrier
5 V
0 to 33
SOT187 2
OTP
P87C51UBAA
0 to +70, Plastic Leaded Chip Carrier
5 V
0 to 33
SOT187-2
ROM
P80C51UBPN
0 to +70 Plastic Dual In line Package
5 V
0 to 33
SOT129 1
OTP
P87C51UBPN
0 to +70, Plastic Dual In-line Package
5 V
0 to 33
SOT129-1
ROM
P80C51UFA A
40 to +85 Plastic Leaded Chip Carrier
5 V
0 to 33
SOT187 2
OTP
P87C51UFA A
–40 to +85, Plastic Leaded Chip Carrier
5 V
0 to 33
SOT187-2
PART NUMBER DERIVATION
DEVICE
NUMBER
DEVICE
NUMBER
OPERATING FREQUENCY, MAX (S)
TEMPERATURE RANGE (B)
PACKAGE (AA)
ROM
P80C51
S = 16 MHz
B = 0
_
to +70
_
C
AA = PLCC
ROM
P80C52
S = 16 MHz
B = 0
_
to +70
_
C
AA = PLCC
OTP
P87C51
U = 33 MHz
F = –40
_
C to +85
_
C
BB = PQFP
OTP
P87C52
U = 33 MHz
F = –40
_
C to +85
_
C
BB = PQFP
Philips Semiconductors
Product specification
80C51/87C51/80C52/87C52
80C51 8-bit microcontroller family
4 K/8 K OTP/ROM low voltage (2.7 V–5.5 V),
low power, high speed (33 MHz), 128/256 B RAM
2000 Aug 07
4
80C52/87C52 ORDERING INFORMATION
MEMORY SIZE
8K
×
8
TEMPERATURE RANGE
°
C
AND PACKAGE
VOLTAGE
RANGE
FREQ.
(MHz)
DWG. #
ROM
P80C52SBPN
0 to +70 Plastic Dual In line Package
2 7 V to 5 5 V
0 to 16
SOT129 1
OTP
P87C52SBPN
0 to +70, Plastic Dual In-line Package
2.7 V to 5.5 V
0 to 16
SOT129-1
ROM
P80C52SBAA
0 to +70 Plastic Leaded Chip Carrier
2 7 V to 5 5 V
0 to 16
SOT187 2
OTP
P87C52SBAA
0 to +70, Plastic Leaded Chip Carrier
2.7 V to 5.5 V
0 to 16
SOT187-2
ROM
P80C52SBBB
0 to +70 Plastic Quad Flat Pack
2 7 V to 5 5 V
0 to 16
SOT307 2
OTP
P87C52SBBB
0 to +70, Plastic Quad Flat Pack
2.7 V to 5.5 V
0 to 16
SOT307-2
ROM
P80C52SFP N
40 to +85 Plastic Dual In line Package
2 7 V to 5 5 V
0 to 16
SOT129 1
OTP
P87C52SFP N
–40 to +85, Plastic Dual In-line Package
2.7 V to 5.5 V
0 to 16
SOT129-1
ROM
P80C52SFA A
40 to +85 Plastic Leaded Chip Carrier
2 7 V to 5 5 V
0 to 16
SOT187 2
OTP
P87C52SFA A
–40 to +85, Plastic Leaded Chip Carrier
2.7 V to 5.5 V
0 to 16
SOT187-2
ROM
P80C52SFB B
40 to +85 Plastic Quad Flat Pack
2 7 V to 5 5 V
0 to 16
SOT307 2
OTP
P87C52SFB B
–40 to +85, Plastic Quad Flat Pack
2.7 V to 5.5 V
0 to 16
SOT307-2
ROM
P80C52UBAA
0 to +70 Plastic Leaded Chip Carrier
5 V
0 to 33
SOT187 2
OTP
P87C52UBAA
0 to +70, Plastic Leaded Chip Carrier
5 V
0 to 33
SOT187-2
ROM
P80C52UBPN
0 to +70 Plastic Dual In line Package
5 V
0 to 33
SOT129 1
OTP
P87C52UBPN
0 to +70, Plastic Dual In-line Package
5 V
0 to 33
SOT129-1
ROM
P80C52UFA A
40 to +85 Plastic Leaded Chip Carrier
5 V
0 to 33
SOT187 2
OTP
P87C52UFA A
–40 to +85, Plastic Leaded Chip Carrier
5 V
0 to 33
SOT187-2
Philips Semiconductors
Product specification
80C51/87C51/80C52/87C52
80C51 8-bit microcontroller family
4 K/8 K OTP/ROM low voltage (2.7 V–5.5 V),
low power, high speed (33 MHz), 128/256 B RAM
2000 Aug 07
5
BLOCK DIAGRAM
SU00845
PSEN
EAV
PP
ALE/PROG
RST
XTAL1
XTAL2
VCC
VSS
PORT 0
DRIVERS
PORT 2
DRIVERS
RAM ADDR
REGISTER
RAM
PORT 0
LATCH
PORT 2
LATCH
ROM/EPROM
REGISTER
B
ACC
STACK
POINTER
TMP2
TMP1
ALU
TIMING
AND
CONTROL
INSTRUCTION
REGISTER
PD
OSCILLATOR
PSW
PORT 1
LATCH
PORT 3
LATCH
PORT 1
DRIVERS
PORT 3
DRIVERS
PROGRAM
ADDRESS
REGISTER
BUFFER
PC
INCRE-
MENTER
PROGRAM
COUNTER
DPTR’S
MULTIPLE
P1.0–P1.7
P3.0–P3.7
P0.0–P0.7
P2.0–P2.7
SFRs
TIMERS
8
8
16
Philips Semiconductors
Product specification
80C51/87C51/80C52/87C52
80C51 8-bit microcontroller family
4 K/8 K OTP/ROM low voltage (2.7 V–5.5 V),
low power, high speed (33 MHz), 128/256 B RAM
2000 Aug 07
6
LOGIC SYMBOL
POR
T
0
POR
T
1
POR
T
2
POR
T
3
ADDRESS AND
DATA BUS
ADDRESS BUS
T2
T2EX
RxD
TxD
INT0
INT1
T0
T1
WR
RD
SECONDAR
Y
FUNCTIONS
RST
EA/V
PP
PSEN
ALE/PROG
V
SS
V
CC
XTAL1
XTAL2
SU00830
PIN CONFIGURATIONS
SU01063
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
T2/P1.0
T2EX/P1.1
P1.2
P1.3
P1.4
P1.5
P1.6
RST
RxD/P3.0
TxD/P3.1
INT0/P3.2
INT1/P3.3
T0/P3.4
T1/P3.5
P1.7
WR/P3.6
RD/P3.7
XTAL2
XTAL1
V
SS
P2.0/A8
P2.1/A9
P2.2/A10
P2.3/A11
P2.4/A12
P2.5/A13
P2.6/A14
P2.7/A15
PSEN
ALE
EA/V
PP
P0.7/AD7
P0.6/AD6
P0.5/AD5
P0.4/AD4
P0.3/AD3
P0.2/AD2
P0.1/AD1
P0.0/AD0
V
CC
DUAL
IN-LINE
PACKAGE
PLASTIC LEADED CHIP CARRIER PIN FUNCTIONS
SU01062
LCC
6
1
40
7
17
39
29
18
28
Pin
Function
1
NIC*
2
P1.0/T2
3
P1.1/T2EX
4
P1.2
5
P1.3
6
P1.4
7
P1.5
8
P1.6
9
P1.7
10
RST
11
P3.0/RxD
12
NIC*
13
P3.1/TxD
14
P3.2/INT0
15
P3.3/INT1
Pin
Function
16
P3.4/T0
17
P3.5/T1
18
P3.6/WR
19
P3.7/RD
20
XTAL2
21
XTAL1
22
V
SS
23
NIC*
24
P2.0/A8
25
P2.1/A9
26
P2.2/A10
27
P2.3/A11
28
P2.4/A12
29
P2.5/A13
30
P2.6/A14
Pin
Function
31
P2.7/A15
32
PSEN
33
ALE
34
NIC*
35
EA/V
PP
36
P0.7/AD7
37
P0.6/AD6
38
P0.5/AD5
39
P0.4/AD4
40
P0.3/AD3
41
P0.2/AD2
42
P0.1/AD1
43
P0.0/AD0
44
V
CC
* NO INTERNAL CONNECTION
PLASTIC QUAD FLAT PACK
PIN FUNCTIONS
SU01064
PQFP
44
34
1
11
33
23
12
22
Pin
Function
1
P1.5
2
P1.6
3
P1.7
4
RST
5
P3.0/RxD
6
NIC*
7
P3.1/TxD
8
P3.2/INT0
9
P3.3/INT1
10
P3.4/T0
11
P3.5/T1
12
P3.6/WR
13
P3.7/RD
14
XTAL2
15
XTAL1
Pin
Function
16
V
SS
17
NIC*
18
P2.0/A8
19
P2.1/A9
20
P2.2/A10
21
P2.3/A11
22
P2.4/A12
23
P2.5/A13
24
P2.6/A14
25
P2.7/A15
26
PSEN
27
ALE
28
NIC*
29
EA/V
PP
30
P0.7/AD7
Pin
Function
31
P0.6/AD6
32
P0.5/AD5
33
P0.4/AD4
34
P0.3/AD3
35
P0.2/AD2
36
P0.1/AD1
37
P0.0/AD0
38
V
CC
39
NIC*
40
P1.0/T2
41
P1.1/T2EX
42
P1.2
43
P1.3
44
P1.4
* NO INTERNAL CONNECTION
Philips Semiconductors
Product specification
80C51/87C51/80C52/87C52
80C51 8-bit microcontroller family
4 K/8 K OTP/ROM low voltage (2.7 V–5.5 V),
low power, high speed (33 MHz), 128/256 B RAM
2000 Aug 07
7
PIN DESCRIPTIONS
PIN NUMBER
MNEMONIC
DIP
LCC
QFP
TYPE
NAME AND FUNCTION
V
SS
20
22
16
I
Ground: 0 V reference.
V
CC
40
44
38
I
Power Supply: This is the power supply voltage for normal, idle, and power-down operation.
P0.0–0.7
39–32
43–36
37–30
I/O
Port 0: Port 0 is an open-drain, bidirectional I/O port with Schmitt trigger inputs. 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. Port 0
also outputs the code bytes during program verification and received code bytes during
EPROM programming. External pull-ups are required during program verification.
P1.0–P1.7
1–8
2–9
40–44,
1–3
I/O
Port 1: Port 1 is an 8-bit bidirectional I/O port with internal pull-ups and Schmitt trigger
inputs. 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
). Port 1 also
receives the low-order address byte during program memory verification. Alternate functions
for Port 1 include:
1
2
40
I/O
T2 (P1.0): Timer/Counter 2 external count input/clockout (see Programmable Clock-Out)
2
3
41
I
T2EX (P1.1): Timer/Counter 2 Reload/Capture/Direction control
P2.0–P2.7
21–28
24–31
18–25
I/O
Port 2: Port 2 is an 8-bit bidirectional I/O port with internal pull-ups and Schmitt trigger
inputs. 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. Some Port 2 pins receive the high order address bits during
EPROM programming and verification.
P3.0–P3.7
10–17
11,
13–19
5,
7–13
I/O
Port 3: Port 3 is an 8-bit bidirectional I/O port with internal pull-ups and Schmitt trigger
inputs. 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 80C51 family, as listed below:
10
11
5
I
RxD (P3.0): Serial input port
11
13
7
O
TxD (P3.1): Serial output port
12
14
8
I
INT0 (P3.2): External interrupt
13
15
9
I
INT1 (P3.3): External interrupt
14
16
10
I
T0 (P3.4): Timer 0 external input
15
17
11
I
T1 (P3.5): Timer 1 external input
16
18
12
O
WR (P3.6): External data memory write strobe
17
19
13
O
RD (P3.7): External data memory read strobe
RST
9
10
4
I
Reset: A high on this pin for two machine cycles while the oscillator is running, resets the
device. An internal diffused resistor to V
SS
permits a power-on reset using only an external
capacitor to V
CC
.
ALE/PROG
30
33
27
O
Address Latch Enable/Program Pulse: Output pulse for latching the low byte of the
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) during EPROM programming. ALE can be disabled by
setting SFR auxiliary.0. With this bit set, ALE will be active only during a MOVX instruction.
PSEN
29
32
26
O
Program Store Enable: The read strobe to external program memory. When the device is
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.
EA/V
PP
31
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 0000H to
0FFFH. If EA is held high, the device executes from internal program memory unless the
program counter contains an address greater than the on-chip ROM/OTP. This pin also
receives the 12.75 V programming supply voltage (V
PP
) during EPROM programming. If
security bit 1 is programmed, EA will be internally latched on Reset.
XTAL1
19
21
15
I
Crystal 1: Input to the inverting oscillator amplifier and input to the internal clock generator
circuits.
XTAL2
18
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 at any time must not be higher than V
CC
+ 0.5 V or V
SS
– 0.5 V, respectively.
Philips Semiconductors
Product specification
80C51/87C51/80C52/87C52
80C51 8-bit microcontroller family
4 K/8 K OTP/ROM low voltage (2.7 V–5.5 V),
low power, high speed (33 MHz), 128/256 B RAM
2000 Aug 07
8
Table 1.
80C51/87C51/80C52/87C52 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
–
–
–
–
–
–
–
AO
xxxxxxx0B
AUXR1#
Auxiliary 1
A2H
–
–
–
LPEP
2
WUPD
0
–
DPS
xxx000x0B
B*
B register
F0H
F7
F6
F5
F4
F3
F2
F1
F0
00H
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
IE*
Interrupt Enable
A8H
EA
–
ET2
ES
ET1
EX1
ET0
EX0
0x000000B
BF
BE
BD
BC
BB
BA
B9
B8
IP*
Interrupt Priority
B8H
–<