To all our customers
Regarding the change of names mentioned in the document, such as Mitsubishi
Electric and Mitsubishi XX, to Renesas Technology Corp.
The semiconductor operations of Hitachi and Mitsubishi Electric were transferred to Renesas
Technology Corporation on April 1st 2003. These operations include microcomputer, logic, analog
and discrete devices, and memory chips other than DRAMs (flash memory, SRAMs etc.)
Accordingly, although Mitsubishi Electric, Mitsubishi Electric Corporation, Mitsubishi
Semiconductors, and other Mitsubishi brand names are mentioned in the document, these names
have in fact all been changed to Renesas Technology Corp. Thank you for your understanding.
Except for our corporate trademark, logo and corporate statement, no changes whatsoever have been
made to the contents of the document, and these changes do not constitute any alteration to the
contents of the document itself.
Note : Mitsubishi Electric will continue the business operations of high frequency & optical devices
and power devices.
Renesas Technology Corp.
Customer Support Dept.
April 1, 2003
MITSUBISHI MICROCOMPUTERS
38C8 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
DESCRIPTION
The 38C8 group is the 8-bit microcomputer based on the 740 family
core technology.
The 38C8 group has a LCD drive control circuit (bias control, time
sharing control), a 10-bit A-D converter, and a Serial I/O as additional
functions.
The various microcomputers in the 38C8 group include variations of
internal memory type and packaging. For details, refer to the section
on part numbering.
FEATURES
qBasic
machine-language instructions ....................................... 71
qThe
minimum instruction execution time ............................ 0.5
µs
(at 8 MHz oscillation frequency)
qMemory
size
ROM ............................................................................ 60 K bytes
RAM ............................................................................ 2048 bytes
qProgrammable
input/output ports ............................................. 35
qSoftware
pull-up resistors
.................................................................. Ports P0–P3, P4
1
–P4
7
qInterrupts
................................................... 14 sources, 14 vectors
(includes key input interrupt)
qTimers
............................................................ 8-bit
✕
3, 16-bit
✕
2
qSerial
I/O ........................ 8-bit
✕
1 (UART or Clock-synchronized)
qA-D
converter (32 kHz operating available) ... 10-bit
✕
8 channels
qLCD
drive control circuit
Bias ................................................................................... 1/5, 1/7
Duty .............................................................................. 1/16, 1/32
Common output ............................................................... 16 or 32
Segment output ............................................................... 52 or 68
qMain
clock generating circuit (RC oscillation selectable)
...................... (connect to external ceramic resonator or resistor)
qSub-clock
generating circuit
............................... (connect to external quartz-crystal oscilaltor)
qPower
source voltage
In high-speed mode .................................................... 4.0 to 5.5 V
In middle-speed mode ................................................ 2.2 to 5.5 V
In low-speed mode ..................................................... 2.2 to 5.5 V
qPower
dissipation
In high-speed mode ........................................................... 30 mW
(at 8 MHz oscillation frequency, at 5 V power source voltage)
In low-speed mode ............................................................. 60
µW
(at 32 kHz oscillation frequency, at 3 V power source voltage, at
WIT state, at voltage multiplier operating, LCD drive waveform
generating state)
qOperating
temperature range ................................... – 20 to 85°C
APPLICATIONS
Dot-matrix-type LCD displays
1
MITSUBISHI MICROCOMPUTERS
38C8 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
PIN CONFIGURATION (TOP VIEW)
101
100
99
98
97
96
95
94
93
92
91
90
89
88
87
86
85
84
83
82
81
80
79
78
108
107
106
105
104
103
102
SEG
33
SEG
32
SEG
31
SEG
30
SEG
29
SEG
28
SEG
27
SEG
26
SEG
25
SEG
24
SEG
23
SEG
22
SEG
21
SEG
20
SEG
19
SEG
18
SEG
17
SEG
16
SEG
15
SEG
14
SEG
13
SEG
12
SEG
11
SEG
10
SEG
9
SEG
8
SEG
7
/COM
23
SEG
6
/COM
22
SEG
5
/COM
21
SEG
4
/COM
20
SEG
3
/COM
19
SEG
2
/COM
18
SEG
1
/COM
17
SEG
0
/COM
16
COM
7
COM
6
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
77
76
75
74
73
72
71
70
69
68
67
66
65
64
63
62
61
60
59
58
57
56
55
54
53
52
51
50
49
48
47
46
45
44
43
42
41
40
39
38
37
SEG
34
SEG
35
SEG
36
SEG
37
SEG
38
SEG
39
SEG
40
SEG
41
SEG
42
SEG
43
SEG
44
SEG
45
SEG
46
SEG
47
SEG
48
SEG
49
SEG
50
SEG
51
SEG
52
SEG
53
SEG
54
SEG
55
SEG
56
SEG
57
SEG
58
SEG
59
SEG
60
/COM
31
SEG
61
/COM
30
SEG
62
/COM
29
SEG
63
/COM
28
SEG
64
/COM
27
SEG
65
/COM
26
SEG
66
/COM
25
SEG
67
/COM
24
COM
15
COM
14
M38C89MF-XXXFP
COM
13
COM
12
COM
11
COM
10
COM
9
COM
8
P3
0
/A
IN0
P3
1
/A
IN1
P3
2
/A
IN2
P3
3
/A
IN3
NC
X
IN
NC
V
SS
X
OUT
OSCSEL
V
CC
NC
X
CIN
X
COUT
NC
RESET
P1
0
/A
IN4
P1
1
/A
IN5
P1
2
/A
IN6
P1
3
/A
IN7
P1
4
P1
5
P1
6
P1
7
P0
0
P0
1
P0
2
P0
3
P0
4
P0
5
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
Fig. 1 M38C89MF-XXXFP pin configuration
2
COM
5
COM
4
COM
3
COM
2
COM
1
COM
0
V
L1
V
L2
V
L3
V
L4
V
L5
C
3
C
2
C
1
V
LIN
V
SS
(NC)
NC
V
SS
P2
7
P2
6
P2
5
P2
4
P2
3
P2
2
P2
1
P2
0
P4
7
/S
RDY
P4
6
/S
CLK
P4
5
/T
X
D
P4
4
/R
X
D
P4
3
/CNTR
1
/BEEP-
P4
2
/CNTR
0
/BEEP+
P4
1
/INT
1
/ADT
P4
0
/INT
0
P0
7
P0
6
Package type : 144P6Q-A
26
27
28
29
30
31
32
33
34
35
36
FUNCTIONAL BLOCK DIAGRAM (Package: 144P6Q-A)
Sub-clock
input
RC
Sub-clock
Clock Clock oscillation
output
input output select
Reset input
RESET
V
CC
56
6
59
18
X
IN
V
SS
V
SS
51
X
OUT
OSCSEL X
CIN
X
COUT
61
58
57
54
53
CNTR
0
, CNTR
1
INT
0
, INT
1
P4 (7)
P0 (8)
P1 (8)
P3 (4)
P2 (8)
Key-on wake-up
Fig. 2 Functional block diagram
Data bus
5
Clock generating circuit
A
ROM
X
Y
S
PC
L
Timer X (16)
Timer Y (16)
Timer 1 (8)
Timer 3 (8)
Timer 2 (8)
PS
Timer
LCD RAM
(240 byte)
LCD
controller
RAM
CPU
φ
PC
H
COM
0
COM
1
4
COM
2
3
COM
3
2
COM
4
1
COM
5
144
COM
6
143
COM
7
142
SEG
0
/COM
16
141
SEG
1
/COM
17
140
SEG
2
/COM
18
139
SEG
3
/COM
19
138
SEG
4
/COM
20
137
SEG
5
/COM
21
136
SEG
6
/COM
22
135
SEG
7
/COM
23
134
SEG
8
133
SEG
9
132
SEG
10
131
SEG
11
130
SEG
12
87
SEG
55
86
SEG
56
85
SEG
57
84
SEG
58
83
SEG
59
82
SEG
60
/COM
31
81
80
Serial I/O (8)
A-D converter (10)
27 28 29 30 31 32 33 34
35 36 37 38 39 40 41 42
63 64 65 66
43 44 45 46 47 48 49 50
19 20 21 22 23 24 25 26
15
14
13
12
11
10
9
8
7
SEG
61
/COM
30
SEG
62
/COM
29
79
SEG
63
/COM
28
78
SEG
64
/COM
27
77
SEG
65
/COM
26
76
SEG
66
/COM
25
75
SEG
67
/COM
24
74
COM
15
73
COM
14
72
COM
13
71
COM
12
70
COM
11
69
COM
10
68
COM
9
67
COM
8
V
LIN
C
1
I/O port P2
C
2
C
3
V
L1
V
L2
V
L3
V
L4
V
L5
MITSUBISHI MICROCOMPUTERS
38C8 Group
I/O port P4
I/O port P3
I/O port P0
I/O port P1
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
3
MITSUBISHI MICROCOMPUTERS
38C8 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
PIN DESCRIPTION
Table 1 Pin description
Pin
V
CC
, V
SS
RESET
X
IN
X
OUT
OSCSEL
X
CIN
X
COUT
V
LIN
V
L1
– V
L5
Name
Power source
Reset input
Clock input
Clock output
RC oscillation
select
Sub-clock input
Sub-clock output
Power source
input for LCD
LCD power
source
Common output
Function except a port function
• Apply voltage of 4.0–5.5 V to V
CC
, and 0 V to V
SS
. (at high-speed mode)
• Reset input pin for active “L.”
• Input and output pins for the main clock generating circuit.
• Feedback resistor is built in between X
IN
pin and X
OUT
pin.
• Connect a ceramic resonator or a quartz-crystal oscillator between the X
IN
and X
OUT
pins to set the
oscillation frequency.
• If an external clock is used, connect the clock source to the X
IN
pin and leave the X
OUT
pin open.
• This pin determines the oscillation between X
IN
and X
OUT
. The oscillation method can be selected from
either by an oscillator or by a resistor.
• Input and output pins for sub-clock generating circuit. (Connect a quartz-crystal oscillator between the
X
CIN
and X
COUT
pins to set the oscillation frequency. The clock generated the externals cannot be input
directly.)
• Reference voltage input pin for LCD.
• The input voltage to this pin is boosted threefold by voltage multiplier.
• LCD drive power source pins.
• LCD common output pins.
• LCD segment/common output pins.
Function
COM
0
–
COM
15
SEG
0
/COM
16
– Segment output/
SEG
7
/COM
23
, Common output
SEG
60
COM
31
–
SEG
67
/COM
24
SEG
8
–SEG
59
Segment output
P0
0
–P0
7
I/O port P0
P1
4
–P1
7
P1
0
/A
IN4
–
P1
3
/A
IN7
P2
0
–P2
7
P3
0
/A
IN0
–
P3
3
/A
IN3
P4
0
/INT
0
I/O port P1
• LCD segment output pins.
• 8-bit I/O port.
• CMOS compatible input level.
• CMOS 3-state output structure.
• A-D converter analog input pin
• Key-on wake-up interrupt input pin
I/O port P2
I/O port P3
• 4-bit I/O port.
• CMOS compatible input level.
• CMOS 3-state output structure.
• 1-bit input port.
• CMOS compatible input level.
• 7-bit I/O port.
• CMOS compatible input level.
• CMOS 3-state output structure.
• I/O direction register allows each pin to be individually
programmed as either input or output.
• A-D converter analog input pin
Input port P4
• External interrupt pin
• External interrupt pin
• A-D trigger input pin
•Timer function I/O pin
P4
1
/INT
1
/ADT I/O port P4
P4
2
/CNTR
0
/
BEEP+,
P4
3
/CNTR
1
/
BEEP-
P4
4
/RxD,
P4
5
/TxD,
P4
6
/S
CLK,
P4
7
/S
RDY
Voltage multiplier
C
1
,
C
2
,
C
3
V
SS
(NC), NC
• Serial I/O I/O pin
• External capacitor connect pins for a voltage multiplier of LCD.
• Non-function pins.
• Leave the V
SS
(NC) pin open.
4