W77L32/W77L032A/W77M032A
8-BIT MICROCONTROLLER
Table of Contents-
1.
2.
3.
4.
5.
GENERAL DESCRIPTION.......................................................................................................... 3
FEATURES ................................................................................................................................. 3
PIN CONFIGURATIONS ............................................................................................................. 4
PIN DESCRIPTION ..................................................................................................................... 5
FUNCTIONAL DESCRIPTION .................................................................................................... 6
5.1
5.2
5.3
5.4
5.5
5.6
5.7
6.
6.1
6.2
6.3
7.
7.1
8.
I/O Ports .......................................................................................................................... 6
Serial I/O ......................................................................................................................... 6
Timers ............................................................................................................................. 7
Interrupts ......................................................................................................................... 7
Data Pointers .................................................................................................................. 7
Power Management ........................................................................................................ 7
On-chip Data SRAM ....................................................................................................... 7
Program Memory ............................................................................................................ 8
Data Memory................................................................................................................... 8
Special Function Registers ........................................................................................... 10
Intruction Timing ........................................................................................................... 35
7.1.1 MOVX Instruction ..........................................................................................................
38
Idle Mode ...................................................................................................................... 43
Economy Mode ............................................................................................................. 44
Power Down Mode ........................................................................................................ 45
External Reset .............................................................................................................. 46
Watchdog Timer Reset ................................................................................................. 46
Reset State ................................................................................................................... 46
Interrupt Sources .......................................................................................................... 48
Priority Level Structure .................................................................................................. 48
Interrupt Response Time .............................................................................................. 50
Timer/Counters 0 & 1 .................................................................................................... 51
Time-base Selection ..................................................................................................... 51
11.2.1 Mode 0 ........................................................................................................................
52
Publication Release Date: April 17, 2007
Revision A6
MEMORY ORGANIZATION ........................................................................................................ 8
INSTRUCTION .......................................................................................................................... 27
POWER MANAGEMENT .......................................................................................................... 43
8.1
8.2
8.3
9.
RESET CONDITIONS ............................................................................................................... 46
9.1
9.2
9.3
10.
INTERRUPTS ........................................................................................................................... 48
10.1
10.2
10.3
11.
PROGRAMMABLE TIMERS/COUNTERS ................................................................................ 51
11.1
11.2
-1-
W77L32/W77L032A/W77M032A
11.2.2 Mode 1 ............................................................................................................. 52
11.2.3
11.2.4
Mode 2 ........................................................................................................................
52
Mode 3 ........................................................................................................................
53
11.3
Timer/Counter 2 ............................................................................................................ 54
11.3.1 Capture Mode ..............................................................................................................
54
11.3.2
11.3.3
Auto-reload Mode, Counting Up ..................................................................................
54
Auto-reload Mode, Counting Up/Down ........................................................................
55
11.4
11.5
11.6
Baud Rate Generator Mode .......................................................................................... 56
11.4.1 Programmable Clock-out ................................................................................. 56
Watchdog Timer ........................................................................................................... 56
Serial Port ..................................................................................................................... 59
11.6.1 Mode 0 ........................................................................................................................
59
11.6.2
11.6.3
11.6.4
11.6.5
Mode 1 ........................................................................................................................
60
Mode 2 ........................................................................................................................
61
Mode 3 ........................................................................................................................
63
Framing Error Detection ..............................................................................................
64
11.7
12.
13.
14.
Timed Access Protection .............................................................................................. 65
ABSOLUTE MAXIMUM RATINGS ............................................................................................ 66
DC ELECTRICAL CHARACTERISTICS ................................................................................... 67
AC CHARACTERISTICS .......................................................................................................... 68
14.1
14.2
External Clock Characteristics ...................................................................................... 68
AC Specification ............................................................................................................ 68
14.2.1 MOVX Characteristics Using Strech Memory Cycles ..................................................
69
Program Memory Read Cycle ....................................................................................... 71
Data Memory Read Cycle ............................................................................................. 71
Data Memory Write Cycle ............................................................................................. 72
Expanded External Program Memory and Crystal ........................................................ 73
Expanded External Data Memory and Oscillator .......................................................... 73
40-pin DIP ..................................................................................................................... 74
44-pin PLCC.................................................................................................................. 74
44-pin QFP .................................................................................................................... 75
15.
TIMING WAVEFORMS ............................................................................................................. 71
15.1
15.2
15.3
16.
TYPICAL APPLICATION CIRCUITS......................................................................................... 73
16.1
16.2
17.
PACKAGE DIMENSIONS ......................................................................................................... 74
17.1
17.2
17.3
18.
REVISION HISTORY ................................................................................................................ 76
-2-
W77L32/W77L032A/W77M032A
1. GENERAL DESCRIPTION
The W77L032 is a fast 8051 compatible microcontroller with a redesigned processor core without
wasted clock and memory cycles. As a result, it executes every 8051 instruction faster than the original
8051 for the same crystal speed. Typically, the instruction executing time of W77L032 is 1.5 to 3 times
faster then that of traditional 8051, depending on the type of instruction. In general, the overall
performance is about 2.5 times better than the original for the same crystal speed. Giving the same
throughput with lower clock speed, power consumption has been improved. Consequently, the
W77L032 is a fully static CMOS design; it can also be operated at a lower crystal clock. W77L032
support on-chip 1KB SRAM without external memory component and glue logic, saving more I/O pins
for users application usage if they use on-chip SRAM instead of external SRAM.
2. FEATURES
8-bit CMOS microcontroller
High speed architecture of 4 clocks/machine cycle runs up to 20MHz
Pin compatible with standard 80C52
Instruction-set compatible with MCS-51
Four 8-bit I/O Ports
One extra 4-bit I/O port and Wait State control signal (available on 44-pin PLCC/QFP package)
Three 16-bit Timers
12 interrupt sources with two levels of priority
On-chip oscillator and clock circuitry
Two enhanced full duplex serial ports
256 bytes scratch-pad RAM
1KB on-chip SRAM for MOVX instruction
Programmable Watchdog Timer
Dual 16-bit Data Pointers
Software programmable access cycle to external RAM/peripherals
Packages:
−
Lead Free (RoHS) DIP 40:
−
Lead Free (RoHS) PLCC 44:
−
Lead Free (RoHS) PQFP 44:
W77L032A25DL, W77M032A25DL
W77L032A25PL, W77M032A25PL
W77L032A25FL, W77M032A25FL
-3-
Publication Release Date: April 17, 2007
Revision A6
W77L32/W77L032A/W77M032A
3. PIN CONFIGURATIONS
40-Pin DIP
T2, P1.0
T2EX, P1.1
RXD1, P1.2
TXD1, P1.3
INT2, P1.4
INT3, P1.5
INT4, P1.6
INT5, P1.7
RST
RXD, P3.0
TXD, P3.1
INT0, P3.2
INT1, P3.3
T0, P3.4
T1, P3.5
WR, P3.6
RD, P3.7
XTAL2
XTAL1
VSS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
25
24
23
22
21
VDD
P0.0, AD0
P0.1, AD1
P0.2, AD2
P0.3, AD3
P0.4, AD4
P0.5, AD5
P0.6, AD6
P0.7, AD7
EA
ALE
PSEN
P2.7, A15
P2.6, A14
P2.5, A13
P2.4, A12
P2.3, A11
P2.2, A10
P2.1, A9
P2.0, A8
44-Pin PLCC
I
N
T
2
,
P
1
.
4
T
X
D
1
,
P
1
.
3
R
X
D
1
,
P
1
.
2
T
2
E
X
,
P
1
.
1
A
T
D
2
0
,
,
P P
P
1 4 V 0
. . D .
0 2 D 0
A
D
1
,
P
0
.
1
A
D
2
,
P
0
.
2
A
D
3
,
P
0
.
3
44-Pin QFP
I
N
T
2
,
P
1
.
4
T
X
D
1
,
P
1
.
3
R
X
D
1
,
P
1
.
2
T
2
E
X
,
P
1
.
1
A
D
0
,
P
P
4 V 0
. D .
2 D 0
A
D
1
,
P
0
.
1
A
D
2
,
P
0
.
2
A
D
3
,
P
0
.
3
T
2
,
P
1
.
0
INT3, P1.5
INT4, P1.6
INT5, P1.7
RST
RXD, P3.0
P4.3
TXD, P3.1
INT0, P3.2
INT1, P3.3
T0, P3.4
T1, P3.5
6 5 4 3 2 1 44 43 42 41 40
7
39
8
38
9
37
10
36
11
35
12
34
13
33
14
32
15
31
16
30
29
17
18 19 20 21 22 23 24 25 26 27 28
P
3
.
6
,
/
W
R
P
3
.
7
,
/
R
D
X
T
A
L
2
X V P P
T S 4 2
A S . .
0 0
L
, ,
1
/ A
W 8
A
I
T
P
2
.
1
,
A
9
P
2
.
2
,
A
1
0
P
2
.
3
,
A
1
1
P
2
.
4
,
A
1
2
P0.4, AD4
P0.5, AD5
P0.6, AD6
P0.7, AD7
EA
P4.1
ALE
PSEN
P2.7, A15
P2.6, A14
P2.5, A13
INT3, P1.5
INT4, P1.6
INT5, P1.7
RST
RXD, P3.0
P4.3
TXD, P3.1
INT0, P3.2
INT1, P3.3
T0, P3.4
T1, P3.5
1
2
44 43 42 41 40 39 38 37 36 35 34
33
32
31
3
30
4
29
5
28
6
27
7
26
8
9
25
10
24
23
11
12 13 14 15 16 17 18 19 20 21 22
P
3
.
6
,
/
W
R
P
3
.
7
,
/
R
D
X
T
A
L
2
X V P P
T S 4 2
A S . .
0 0
L
, ,
1
/ A
W 8
A
I
T
P
2
.
1
,
A
9
P
2
.
2
,
A
1
0
P
2
.
3
,
A
1
1
P
2
.
4
,
A
1
2
P0.4, AD4
P0.5, AD5
P0.6, AD6
P0.7, AD7
EA
P4.1
ALE
PSEN
P2.7, A15
P2.6, A14
P2.5, A13
-4-
W77L32/W77L032A/W77M032A
4. PIN DESCRIPTION
SYMBOL
EA
TYPE
I
O
O
I
I
O
I
I
I/O
DESCRIPTIONS
EXTERNAL ACCESS ENABLE:
It should be kept low.
PROGRAM STORE ENABLE:
PSEN enables the external ROM data onto the Port 0
address/data bus during fetch and MOVC operations.
ADDRESS LATCH ENABLE:
ALE is used to enable the address latch that separates
the address from the data on Port 0.
RESET:
A high on this pin for two machine cycles while the oscillator is running resets
the device.
CRYSTAL1:
This is the crystal oscillator input. This pin may be driven by an external
clock.
CRYSTAL2:
This is the crystal oscillator output. It is the inversion of XTAL1.
GROUND:
Ground potential
POWER SUPPLY:
Supply voltage for operation.
PORT 0:
Port 0 is an open-drain bi-directional I/O port. This port also provides a
multiplexed low order address/data bus during accesses to external memory.
PORT 1:
Port 1 is a bi-directional I/O port with internal pull-ups. The bits have alternate
functions which are described below:
T2(P1.0): Timer/Counter 2 external count input
T2EX(P1.1): Timer/Counter 2 Reload/Capture/Direction control
RXD1(P1.2): Serial port 1 RXD
TXD1(P1.3): Serial port 1 TXD
INT2(P1.4) : External Interrupt 2
INT3 (P1.5): External Interrupt 3
INT4(P1.6) : External Interrupt 4
INT5 (P1.7): External Interrupt 5
PSEN
ALE
RST
XTAL1
XTAL2
V
SS
V
DD
P0.0
−
P0.7
P1.0
−
P1.7
I/O
P2.0
−
P2.7
I/O
PORT 2:
Port 2 is a bi-directional I/O port with internal pull-ups. This port also provides
the upper address bits for accesses to external memory.
PORT 3:
Port 3 is a bi-directional I/O port with internal pull-ups. All bits have alternate
functions, which are described below:
RXD(P3.0) : Serial Port 0 input
TXD(P3.1) : Serial Port 0 output
P3.0
−
P3.7
INT0 (P3.2): External Interrupt 0
I/O
INT1
(P3.3): External Interrupt 1
T0(P3.4) : Timer 0 External Input
T1(P3.5) : Timer 1 External Input
WR
(P3.6) : External Data Memory Write Strobe
RD
(P3.7) : External Data Memory Read Strobe
P4.0
−
P4.3
I/O
PORT 4:
Port 4 is a 4-bit bi-directional I/O port. The P4.0 also provides the alternate
function
WAIT
which is the wait state control signal.
*
Note: TYPE
I: input, O: output, I/O: bi-directional.
-5-
Publication Release Date: April 17, 2007
Revision A6