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
38C3 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
DESCRIPTION
The 38C3 group is the 8-bit microcomputer based on the 740 family
core technology.
The 38C3 group has a LCD drive control circuit, a 10-channel A-D
converter, and a Serial I/O as additional functions.
The various microcomputers in the 38C3 group include variations of
internal memory size and packaging. For details, refer to the section
on part numbering.
For details on availability of microcomputers in the 38C3 group, refer
to the section on group expansion.
FEATURES
qBasic
machine-language instructions ....................................... 71
qThe
minimum instruction execution time ............................. 0.5
µs
(at 8MHz oscillation frequency)
qMemory
size
ROM .................................................................. 4 K to 48 K bytes
RAM ................................................................. 192 to 1024 bytes
qProgrammable
input/output ports ............................................. 57
qSoftware
pull-up/pull-down resistors
..................................................... (Ports P0–P8 except Port P5
1
)
qInterrupts
................................................... 16 sources, 16 vectors
(includes key input interrupt)
qTimers
............................................................ 8-bit
!
6, 16-bit
!
1
qA-D
converter ................................................. 10-bit
!
8 channels
qSerial
I/O ....................................... 8-bit
!
1 (Clock-synchronized)
qLCD
drive control circuit
Bias ............................................................................ 1/1, 1/2, 1/3
Duty .................................................................... 1/1, 1/2, 1/3, 1/4
Common output .......................................................................... 4
Segment output ........................................................................ 32
q2
Clock generating circuit
(connect to external ceramic resonator or quartz-crystal oscillator)
qPower
source voltage
In high-speed mode .................................................... 4.0 to 5.5 V
In middle-speed mode ................................................ 2.5 to 5.5 V
In low-speed mode ...................................................... 2.5 to 5.5 V
qPower
dissipation
In high-speed mode ........................................................... 32 mW
(at 8 MHz oscillation frequency)
In low-speed mode .............................................................. 45
µW
(at 32 kHz oscillation frequency, at 3 V power source voltage)
qOperating
temperature range .................................... – 20 to 85°C
APPLICATIONS
Camera, household appliances, consumer electronics, etc.
PIN CONFIGURATION (TOP VIEW)
P2
0
/SEG
0
P2
1
/SEG
1
P2
2
/SEG
2
P2
3
/SEG
3
P2
4
/SEG
4
P2
5
/SEG
5
P2
6
/SEG
6
P2
7
/SEG
7
P0
0
/SEG
8
P0
1
/SEG
9
P0
2
/SEG
10
P0
3
/SEG
11
P0
4
/SEG
12
P0
5
/SEG
13
P0
6
/SEG
14
P0
7
/SEG
15
P1
0
/SEG
16
P1
1
/SEG
17
P1
2
/SEG
18
P1
3
/SEG
19
P1
4
/SEG
20
P1
5
/SEG
21
P1
6
/SEG
22
P1
7
/SEG
23
54
50
45
62
53
49
44
64
63
61
56
52
43
58
60
55
51
48
46
42
59
57
P4
7
/S
RDY
P4
6
/S
CLK1
P4
5
/S
OUT
P4
4
/S
IN
P4
3
/
φ
P4
2
/T3
OUT
P4
1
/T1
OUT
P4
0
/S
CLK2
AV
SS
V
REF
P6
7
/AN
7
P6
6
/AN
6
P6
5
/AN
5
P6
4
/AN
4
P6
3
/AN
3
P6
2
/AN
2
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
12
16
22
13
18
19
21
10
11
14
15
17
20
23
24
4
2
1
3
8
5
6
7
9
47
41
40
39
38
37
36
35
34
M38C34M6AXXXFP
33
32
31
30
29
28
27
26
25
P3
0
/SEG
24
P3
1
/SEG
25
P3
2
/SEG
26
P3
3
/SEG
27
P3
4
/SEG
28
P3
5
/SEG
29
P3
6
/SEG
30
P3
7
/SEG
31
COM
0
COM
1
COM
2
COM
3
VL
1
VL
2
VL
3
P8
0
Fig. 1 M38C34M6AXXXFP pin configuration
P6
1
/AN
1
P6
0
/AN
0
P5
7
/INT
2
P5
6
/INT
1
P5
5
/INT
0
P5
4
/CNTR
1
P5
3
/CNTR
0
P5
2
/PWM
1
P5
1
RESET
P7
1
/Xc
OUT
P7
0
/Xc
IN
V
SS
X
IN
X
OUT
V
CC
P5
0
/TA
OUT
P8
7
P8
6
P8
5
P8
4
P8
3
P8
2
P8
1
Package type : 80P6N-A
80-pin plastic-molded QFP
ROM
corrective
circuit
RAM
ROM corrective
RAM
(8 bytes)
LCD display
RAM
(16 bytes)
Key-on wake-up
φ
INT
0
–INT
2
12 11
1
2 75 76 77 78 79 80
74 73
3
4
5
6
7
8
9 17
65 66 67 68 69 70 71 72
T1
OUT,
T3
OUT
2
(5V)
V
CC
(0V)
V
SS
FUNCTIONAL BLOCK DIAGRAM
Main
clock
input
X
IN
Main
clock
output
X
OUT
Reset input
RESET
I/O port P8
18 19 20 21 22 23 24 25
Fig. 2 Functional block diagram
10
13
16
14
15
Data bus
P8(8)
Clock generating
circuit
ROM
C P U
28
27
26
32
A
V
L1
V
L2
V
L3
31
X
φ
LCD
drive control
circuit
Y
X
CIN
Sub-
clock
input
X
COUT
Sub-
clock
output
S
Timer 1(8)
Timer 3(8)
Timer 5(8)
Timer A(16)
Timer 6(8)
Timer 4(8)
Timer 2(8)
COM
0
COM
1
30
COM
2
29
COM
3
PC
H
PC
L
PS
A-D converter(10)
SI/O(8)
CNTR
0
,CNTR
1
PWM
0,
PWM
1
P4(8)
X
COUT
X
CIN
P5(8)
P7(2)
P6(8)
P3(8)
P2(8)
P1(8)
P0(8)
33 34 35 36 37 38 39 40
57 58 59 60 61 62 63 64
41 42 43 44 45 46 47 48
49 50 51 52 53 54 55 56
I/O port P7
I/O port P6
I/O port P5
V
REF
AV
SS
I/O port P4
Output port P3
I/O port P2
I/O port P1
I/O port P0
MITSUBISHI MICROCOMPUTERS
38C3 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
(0V)
MITSUBISHI MICROCOMPUTERS
38C3 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
PIN DESCRIPTION
Table 1 Pin description (1)
Pin
V
CC
, V
SS
V
REF
AV
SS
RESET
X
IN
X
OUT
V
L1
– V
L3
COM
0
–
COM
3
Name
Power source
Analog reference
voltage
Analog power
source
Reset input
Clock input
Clock output
LCD power
source
Common output
Function
• Apply voltage of 2.5 V to 5.5 V to V
CC
, and 0 V to V
SS
.
• Reference voltage input pin for A-D converter.
GND input pin for A-D converter.
Connect to V
SS
.
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.
• Input 0
≤
V
L1
≤
V
L2
≤
V
L3
≤
V
CC
voltage.
• Input 0 – V
L3
voltage to LCD.
• LCD common output pins.
• COM
1
, COM
2
, and COM
3
are not used at 1/1 duty ratio.
• COM
2
and COM
3
are not used at 1/2 duty ratio.
• COM
3
is not used at 1/3 duty ratio.
• 8-bit I/O port.
• LCD segment pins
• CMOS compatible input level.
• CMOS 3-state output structure.
• I/O direction register allows each port to be individually
programmed as either input or output.
• Pull-down control is enabled.
•
•
•
•
•
•
Function except a port function
P0
0
/SEG
9
–
P0
7
/SEG
15
I/O port P0
P1
0
/SEG
16
– I/O port P1
P1
7
/SEG
23
P2
0
/SEG
0
–
P2
7
/SEG
7
I/O port P2
P3
0
/SEG
24
– Output port P3
P3
7
/SEG
31
P4
0
/S
CLK2
P4
1
/T
1OUT
P4
2
/T
3OUT
P4
3
/φ
P4
4
/S
IN
,
P4
5
/S
OUT
,
P4
6
/S
CLK1,
P4
7
/S
RDY
I/O port P4
• 8-bit output port.
• CMOS state output.
• Pull-down control is enabled.
•
•
•
•
8-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.
• Pull-up control is enabled.
• Serial I/O function pin
• Timer output pin
• Timer output pin
•
φ
output pin
• Serial I/O function pins
3
MITSUBISHI MICROCOMPUTERS
38C3 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
Table 2 Pin description (2)
Pin
P5
1
P5
0
/TA
OUT
P5
2
/PWM
1
P5
3
/CNTR
0
,
P5
4
/CNTR
1
P5
5
/INT
0
,
P5
6
/INT
1
,
P5
7
/INT
2
P6
0
/AN
0
–
P6
7
/AN
7
Name
Input port P5
I/O port P5
•
•
•
•
•
•
Function
1-bit input pin.
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.
• Pull-up control is enabled.
Function except a port function
• Timer A output pin
• PWM
1
output (timer output) pin
• External count I/O pins
• External interrupt input pins
I/O port P6
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
P7
0
/X
COUT,
P7
1
/X
CIN
I/O port P7
P8
0
– P8
7
I/O port P8
8-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.
Pull-up control is enabled.
2-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.
Pull-up control is enabled.
8-bit I/O port.
TTL input level.
CMOS 3-state output structure.
I/O direction register allows each pin to be individually
programmed as either input or output.
Pull-up control is enabled.
• A-D conversion input pins
• Sub-clock generating circuit I/O pins
• Key input (Key-on wake-up) interrupt
input pins
4