W78C438C Data Sheet
8-BIT MICROCONTROLLER
Table of Contents-
1.
2.
3.
4.
5.
GENERAL DESCRIPTION.......................................................................................................... 2
FEATURES ................................................................................................................................. 2
PIN CONFIGURATIONS ............................................................................................................. 3
PIN DESCRIPTION ..................................................................................................................... 4
FUNCTIONAL DESCRIPTION .................................................................................................... 6
5.1
5.2
5.3
5.4
5.5
5.6
6.
6.1
6.2
6.3
Dedicated Data and Address Port .................................................................................. 6
Additional I/O Port ........................................................................................................... 8
Additional External Interrupt ............................................................................................ 8
Newly Added Special Function Registers ..................................................................... 10
Power Reduction Function ............................................................................................ 10
Programming Difference ............................................................................................... 11
Absolute Maximum Ratings .......................................................................................... 12
D.C. Characteristics ...................................................................................................... 12
A.C. Characteristics ...................................................................................................... 13
6.3.1
6.3.2
6.3.3
Clock Input Waveform .................................................................................................... 13
Program Fetch Cycle...................................................................................................... 13
Data Memory Read/Write Cycle ..................................................................................... 14
ELECRICAL CHARACTERISTICS ........................................................................................... 12
7.
TIMING WAVEFORMS ............................................................................................................. 15
7.1
7.2
Program Fetch Cycle .................................................................................................... 15
Data Memory Read/Write Cycle ................................................................................... 16
Using 128K
×
8 bit External EPROM (W27E010) ......................................................... 17
100-pin QFP .................................................................................................................. 19
8.
TYPICAL APPLICATION CIRCUITS......................................................................................... 17
8.1
9.
10.
PACKAGE DIMENSIONS ......................................................................................................... 19
9.1
REVISION HISTORY ................................................................................................................ 20
-1-
Publication Release Date: March 10, 2010
Revision A7
W78C438C
1. GENERAL DESCRIPTION
The W78C438C is a high-performance single-chip CMOS 8-bit microcontroller that is a derivative of
the W78C58 microcontroller family. The W78C438C is functionally compatible with the W78C32,
except that it provides either a 64 KB program/1 MB data memory address or memory-mapped chip
select logic, five general I/O ports, and four external interrupts.
In the W78C32, two I/O ports, Port 1 and Port 3, are available for general-purpose use (Port 3 also
supports alternative functions), and Port 2 and Port 0 are used as the address bus and data bus,
respectively. To enable Port 0 and Port 2 to also be used as general purpose I/O ports, the W78C438C
provides two dedicated address ports (AP5 and AP6) that serve as address output for 64 KB of
memory and one address/data port (DP4) that serves as ROM code input and external RAM data
input/output. Unlike the W78C32, this product does not require an external latch device for multiplexing
low byte addresses. The W78C438C also provides four pins (AP7.0−AP7.3) to support either 64 KB
program/1 MB data memory space or memory-mapped chip select logic, one parallel I/O port (Port 8)
without bit addressing mode, and two additional external interrupts (
INT2
,
INT3
) .
The W78C438C is programmed in a manner fully compatible with that used to program the W78C32,
except that the external data RAM is accessed by the "MOVX @Ri" instruction. Address paging is
performed by loading page addresses into the HB (high byte) register, which is not a standard register
in the W78C32, before execution of the "MOVX @Ri" instruction.
2. FEATURES
8-bit CMOS microcontroller
Fully static design
DC to 40 MHz operation
ROM-less operation
256-byte on-chip scratchpad RAM
Either 64 KB program/1 MB data memory address space or 4 memory-mapped chip select pins
One 8-bit data/address port
Two 8-bit and one 4-bit (optional) address ports
Five 8-bit bidirectional I/O ports
−
Four 8-bit bit-addressable I/O ports and one 8-bit parallel I/O port
Eight-source, two-level interrupt capability
Three 16-bit timer/counters
Four external interrupts
One full-duplex serial channel
Built-in power management
−
Idle mode
−
Power-down mode
Packages:
−
Lead Free (RoHS) PQFP 100: W78C438C40FL
-2-
W78C438C
3. PIN CONFIGURATIONS
T
2
E
X
,
P
1
.
4
P
1
.
3
P
1
.
2
P
1
.
1
T
2
,
P
1
.
0
D
P
4
.
7
D
P
4
.
6
D
P
4
.
5
D
P
4
.
4
D
P
4
.
3
D
P
4
.
2
D
P
4
.
1
D
P
4 V
.
D
0 D
P
0
.
0
P
0
.
1
P
0
.
2
P
0
.
3
N
C
N
C
NC
NC
NC
NC
P1.5
P1.6
P1.7
RESET
P8.0
P8.1
P8.2
P8.3
P8.4
P8.5
P8.6
P8.7
INT3
INT2
RXD, P3.0
VDD
TXD, P3.1
INT0, P3.2
INT1, P3.3
T0, P3.4
T1, P3.5
WR, P3.6
NC
NC
NC
NC
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
1
0
0
9
9
9
8
9
7
9
6
9
5
9
4
9
3
9
2
9
1
9
0
8
9
8
8
8
7
8
6
8
5
8
4
8
3
8
2
8
1
80
79
78
77
76
75
74
73
72
71
70
69
68
67
NC
NC
NC
NC
P0.4
P0.5
P0.6
P0.7
EA
AP5.0
AP5.1
AP5.2
AP5.3
AP5.4
AP5.5
AP5.6
AP5.7
V
DD
V
SS
ALE
PSEN
P2.7
P2.6
P2.5
P2.4
NC
NC
NC
NC
P2.3
W78C438CF
100-pin PQFP
66
65
64
63
62
61
60
59
58
57
56
55
54
53
52
51
3
1
3
2
3
3
3
4
3
5
3
6
3
7
3
8
3
9
4
0
4
1
4
2
4
3
4
4
4
5
4
6
4
7
4
8
4
9
5
0
P
3.
7,
/
R
D
X
T
A
L
2
X
T
A
L
1
V
S
S
N
C
A
P
7
.
3
,
/
C
S
3
A
P
7
.
2
,
/
C
S
2
A
P
7
.
1
,
/
C
S
1
A
P
7
.
0
,
/
C
S
0
A
P
6
.
7
A
P
6
.
6
A
P
6
.
5
A
P
6
.
4
A
P
6
.
3
A
P
6
.
2
A
P
6
.
1
A
P
6.
0
P
2
.
0
P
2
.
1
P
2
.
2
-3-
Publication Release Date: March 10, 2010
Revision A7
W78C438C
4. PIN DESCRIPTION
P0.0−P0.7 I/O Port 0
These pins function the same as those in the W78C32, except that a multiplexed address/data bus is
not provided during accesses to external memory.
P1.0−P1.7 I/O Port 1
Functions are the same as in the W78C32.
P2.0−P2.7 I/O Port 2
Functions are the same as in the W78C32, except that an upper address bus is not provided during
accesses to external memory.
P3.0−P3.7 I/O Port 3
Functions are the same as in the W78C32.
DP4.0−DP4.7 Data/Address Bus
DP4 provides multiplexed low-byte address/data during access to external memory.
AP5.0−AP5.7 Address Bus
AP5 outputs the <7:0> address of the external ROM multiplexed with the <7:0> address of the external
data RAM.
AP6.0−AP6.7 Address Bus
AP6 outputs the <15:8> address of the external ROM multiplexed with the <15:8> address of the
external data RAM. During the execution of "MOVX @Ri," the output of AP6 comes from the HB
register, which is the page register for the high byte address, and its address is 0A1H.
AP7.0−AP7.3 Address Bus/Chip Select Pins
Set bit 7 of the EPMA (Extended Program Memory Address) register to determine the functions of port
7. When this bit is "0" (default value), AP7 allows the external memory data to be accessed by
outputting the <19:16> address of the external memory from bits<3:0> of the EPMA register during the
execution of "MOVC A, @A+DPTR" or "MOVX dest, src." At all other times, AP7<3:0> will output 0H.
When this bit is "1," AP7<3:0> (CS3−0) are the chip select pins, which support memory-mapped
peripheral device select, and only one pin is active low at any one time. These pins are decoded by
AP6<7:6>. For details, see the table below.
AP6.7
AP6.6
DESCRIPTION
0
0
1
1
0
1
0
1
AP70: low; others: high
AP71: low; others: high
AP72: low; others: high
AP73: low; others: high
-4-
W78C438C
P8.0−P8.7 I/O Port
Functions are the same as those of Port 1 in the W78C31, except that they are mapped by the P8
register and not bit-addressable. The P8 register is not a standard register in the W78C32. Its address
is at 0A6H.
INT2
,
INT3
External Interrupt, Input
Functions are similar to those of external
INT0
,
INT1
in the W78C32, except that the
functions/status of these interrupts are determined/shown by the bits in the XICON (External Interrupt
Control) register. The XICON register is bit-addressable but is not a standard register in the W78C32.
Its address is at 0C0H. For details, see the Functional Description below.
EA
External Address, Input
Functions same as W78C32.
RST, XTAL1, XTAL2,
PSEN
, ALE
Functions same as W78C32.
-5-
Publication Release Date: March 10, 2010
Revision A7