4-61
68PLCC
P
(
V
P
(
E
P
(
P
A L E / P RO G
P S E N
P 2 . 7
(
P
X
E A / V P P
N C
(
P
G
( R X D )
P 3 . 0
N C
P0.7
( AD7)
P 2 . 6
P 2 . 5
( A 1 4 )
( A 1 3 )
P0.6
( AD6)
P0.5
( AD5)
P0.4
( AD4)
P
(
P
(
P
P
(
X
( I N T 0 )
( I N T 1 )
( T 0 )
P 3 . 2
P 3 . 3
P 3 . 4
( T X D )
P 3 . 1
( T 1 )
P 3 . 5
( A 1 5 )
(
P
(
P
(
P
(
P
(
P
N
2 3
1
R S T
I N D E X
N
3 4
3 3
3 2
3 1
4 2
4 3
4 0
3 9
3 8
3 7
3 6
3 5
4 1
6
5
4
4 4
3
2
2 6
2 5
2 8
2 7
1 81 92 0
2 4
2 12 2
7
8
9
1 0
1 1
1 2
1 3
1 4
1 5
1 6
1 7
2 9
3 0
P
P 1 . 5
P 1 . 6
P 1 . 7
Features
Compatible with MCS-51 Products
8K Bytes of In-System Reprogrammable Flash Memory
– Endurance: 1,000 Write/Erase Cycles
Fully Static Operation: 0 Hz to 24 MHz
Three-Level Program Memory Lock
256 x 8-Bit Internal RAM
32 Programmable I/O Lines
Three 16-Bit Timer/Counters
Eight Interrupt Sources
Programmable Serial Channel
Low Power Idle and Power Down Modes
Description
The AT89C52 is a low-power, high-performance CMOS 8-bit microcomputer with 8K
bytes of Flash programmable and erasable read only memory (PEROM). The device
is manufactured using Atmel’s high density nonvolatile memory technology and is
compatible with the industry standard 80C51 and 80C52 instruction set and pinout.
The on-chip Flash allows the program memory to be reprogrammed in-system or by a
conventional nonvolatile memory programmer. By combining a versatile 8-bit CPU
with Flash on a monolithic chip, the Atmel AT89C52 is a powerful microcomputer
which provides a highly flexible and cost effective solution to many embedded control
applications.
Pin Configurations
0313F-A–12/97
8-Bit
Microcontroller
with 8K Bytes
Flash
AT89C52
PDIP
( T 2 )
E X )
P 1 . 0
P 1 . 1
P 1 . 2
P 1 . 3
P 1 . 4
P 1 . 5
P 1 . 6
P 1 . 7
V
C C
P0.0
P0.1
(T 2
( AD0)
( AD1)
( I N T 0 )
( I N T 1 )
( T 0 )
P 3 . 2
P 3 . 3
P 3 . 4
A L E / P RO G
P S E N
P 2 . 7
( R D )
P 3 . 7
X TA L 2
X TA L 1
G N D
P 2 . 3
P 2 . 2
P 2 . 1
P 2 . 0
( A 1 1 )
(A 1 0 )
(A 9 )
(A 8 )
( T X D )
P 3 . 1
E A / V P P
( W R )
P 3 . 6
P 2 . 4
( A 1 2 )
( R X D )
P 3 . 0
P0.7
( AD7)
( T 1 )
P 3 . 5
P 2 . 6
P 2 . 5
( A 1 4 )
( A 1 3 )
R S T
P0.6
( AD6)
P0.5
( AD5)
P0.4
( AD4)
P0.3
( AD3)
P0.2
( AD2)
( A 1 5 )
2 0
1 9
1 8
1 7
1 6
1 5
1
2
3
4
5
6
7
8
9
1 0
1 1
1 2
1 3
1 4
2 1
2 2
2 3
2 4
2 5
2 6
4 0
3 9
3 8
3 7
3 6
3 5
3 4
3 3
3 2
3 1
3 0
2 9
2 8
2 7
PQFP/TQFP
23
1
2
I N D E X
34
P
(
V
P
(
E
P
P
N
42
43
40
41
6
7
8
9
1 0
1 1
5
4
44
3
26
25
24
28
27
1819202122
N C
121314151617
29
30
39
3 83 7
3635
33
32
31
N C
A L E / P RO G
P S E N
P 2 . 7
X
G
X
G
P
(
(
P
E A / V P P
(
P
( R X D )
P 3 . 0
P 0 . 7
( AD 7 )
P 2 . 6
P 2 . 5
( A 1 4 )
( A 1 3 )
P 0 . 6
( AD 6 )
P 0 . 5
( AD 5 )
P 0 . 4
( AD 4 )
P
(
P
(
P
(
( I N T 0 )
( I N T 1 )
( T 0 )
P 3 . 2
P 3 . 3
P 3 . 4
( T X D )
P 3 . 1
( T 1 )
P 3 . 5
( A 1 5 )
(
P
(
P
(
P
(
P
(
P
R S T
P
P 1 . 5
P 1 . 6
P 1 . 7
(continued)