W77IC32 DATA SHEET
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
MEMORY ORGANIZATION ....................................................................................................... 8
INSTRUCTION.......................................................................................................................... 27
POWER MANAGEMENT.......................................................................................................... 43
8.1
8.2
8.3
Idle Mode ...................................................................................................................... 43
Economy Mode ............................................................................................................. 43
Power Down Mode ....................................................................................................... 44
External Reset .............................................................................................................. 46
Watchdog Timer Reset ................................................................................................. 46
Reset State ................................................................................................................... 46
Interrupt Sources .......................................................................................................... 48
Priority Level Structure ................................................................................................. 49
Interrupt Response Time .............................................................................................. 50
Timer/Counters 0 & 1.................................................................................................... 51
Time-base Selection ..................................................................................................... 51
11.2.1
Mode 0 .........................................................................................................................52
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-
Publication Release Date: October 2, 2006
Revision A5
W77IC32
11.2.2
11.2.3
11.2.4
Mode 1 .........................................................................................................................52
Mode 2 .........................................................................................................................52
Mode 3 .........................................................................................................................53
Auto-reload Mode, Counting Up ...................................................................................54
Auto-reload Mode, Counting Up/Down .........................................................................55
Programmable Clock-out ..............................................................................................56
11.3
Timer/Counter 2............................................................................................................ 54
11.3.1
11.3.2
11.4
11.5
11.6
Baud Rate Generator Mode ......................................................................................... 56
11.4.1
Watchdog Timer ........................................................................................................... 57
Serial Port ..................................................................................................................... 59
11.6.1
11.6.2
11.6.3
11.6.4
11.6.5
Mode 0 .........................................................................................................................59
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
15.
TIMING WAVEFORMS ............................................................................................................. 71
15.1
15.2
15.3
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 ......................................................... 74
40-pin DIP ..................................................................................................................... 75
44-pin PLCC ................................................................................................................. 75
16.
TYPICAL APPLICATION CIRCUITS ........................................................................................ 73
16.1
16.2
17.
PACKAGE DIMENSIONS ......................................................................................................... 75
17.1
17.2
18.
VERSION HISTORY ................................................................................................................. 76
-2-
W77IC32
1. GENERAL DESCRIPTION
The W77IC32 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 W77IC32 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
W77IC32 is a fully static CMOS design; it can also be operated at a lower crystal clock. W77IC32
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 25MHz
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:
−
−
−
−
DIP 40:
PLCC 44:
W77IC32-25
W77IC32P-25
W77IC32A25DL
Lead Free (RoHS) DIP 40:
Lead Free (RoHS) PLCC 44: W77IC32A25PL
-3-
Publication Release Date: October 2, 2006
Revision A5
W77IC32
3. PIN CONFIGURATIONS
40-Pin DIP (W77IC32)
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 (W77IC32P)
I
N
T
2
,
P
1
.
4
T R
X X
D D
1 1
, ,
P P
1 1
.
.
3 2
T
2
E
X
,
P
1
.
1
T
2
,
P
1
.
0
P
4
.
2
V
D
D
A
D
0
,
P
0
.
0
A
D
1
,
P
0
.
1
A
D
2
,
P
0
.
2
A
D
3
,
P
0
.
3
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
17
29
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
T
A
L
1
V
S
S
P
4
.
0
,
/
W
A
I
T
P
2
.
0
,
A
8
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-
W77IC32
4. PIN DESCRIPTION
SYMBOL
TYPE
DESCRIPTIONS
EA
PSEN
I
O
O
I
I
O
I
I
I/O
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
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
INT0
(P3.2) : External Interrupt 0
INT1
(P3.3) : External Interrupt 1
T0(P3.4) : Timer 0 External Input
T1(P3.5) : Timer 1 External Input
P3.0−P3.7
I/O
WR
(P3.6) : External Data Memory Write Strobe
RD
(P3.7) : External Data Memory Read Strobe
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.
P4.0−P4.3
I/O
* Note: TYPE
I: input, O: output, I/O: bi-directional.
-5-
Publication Release Date: October 2, 2006
Revision A5