MITSUBISHI MICROCOMPUTERS
3825 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
DESCRIPTION
The 3825 group is the 8-bit microcomputer based on the 740 fam-
ily core technology.
The 3825 group has the LCD drive control circuit, an 8-channel A-
D converter, and a Serial I/O as additional functions.
The various microcomputers in the 3825 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 3825 group, re-
fer the section on group expansion.
•
LCD drive control circuit
Bias ................................................................................... 1/2, 1/3
Duty ............................................................................ 1/2, 1/3, 1/4
Common output .......................................................................... 4
Segment output ......................................................................... 40
2 Clock generating circuits
Clock (X
IN
-X
OUT
) .................................. Internal feedback resistor
Sub-clock (X
CIN
-X
COUT
) .......... Without internal feedback resistor
(connect to external ceramic resonator or quartz-crystal oscillator)
Power source voltage
In high-speed mode ................................................... 4.0 to 5.5 V
In middle-speed mode ............................................... 2.5 to 5.5 V
(Low power source version: 2.2 V to 5.5 V)
(Extended operating temperature version: 3.0 V to 5.5 V)
In low-speed mode ..................................................... 2.5 to 5.5 V
(Low power source version: 2.2 V to 5.5 V)
(Extended operating temperature version: 3.0 V to 5.5 V)
Power dissipation
In high-speed mode ........................................................... 32 mW
(at 8 MHz oscillation frequency, at 5 V power source voltage)
In low-speed mode .............................................................. 45 µW
(at 32 kHz oscillation frequency, at 3 V power source voltage)
Operating temperature range ................................... – 20 to 85°C
(Extended operating temperature version: –40 to 85°C)
•
•
FEATURES
•
Basic machine-language instructions ....................................... 71
•
The minimum instruction execution time ............................ 0.5 µs
(at 8MHz oscillation frequency)
•
Memory size
•
•
•
•
•
•
ROM .................................................................. 4 K to 60 K bytes
RAM ................................................................. 192 to 2048 bytes
Programmable input/output ports ............................................. 43
Software pull-up/pull-down resistors (Ports P0–P8)
Interrupts .................................................. 17 sources, 16 vectors
(includes key input interrupt)
Timers ........................................................... 8-bit
!
3, 16-bit
!
2
Serial I/O ...................... 8-bit
!
1 (UART or Clock-synchronized)
A-D converter .................................................. 8-bit
!
8 channels
•
•
APPLICATIONS
Camera, household appliances, consumer electronics, etc.
PIN CONFIGURATION (TOP VIEW)
SEG
10
SEG
11
SEG
12
SEG
13
SEG
14
SEG
15
SEG
16
SEG
17
P3
0
/SEG
18
P3
1
/SEG
19
P3
2
/SEG
20
P3
3
/SEG
21
P3
4
/SEG
22
P3
5
/SEG
23
P3
6
/SEG
24
P3
7
/SEG
25
P0
0
/SEG
26
P0
1
/SEG
27
P0
2
/SEG
28
P0
3
/SEG
29
P0
4
/SEG
30
P0
5
/SEG
31
P0
6
/SEG
32
P0
7
/SEG
33
P1
0
/SEG
34
P1
1
/SEG
35
P1
2
/SEG
36
P1
3
/SEG
37
P1
4
/SEG
38
P1
5
/SEG
39
80
79
77
74
71
68
65
62
59
56
78
75
72
69
66
63
60
57
54
53
76
73
70
67
64
61
58
55
SEG
9
SEG
8
SEG
7
SEG
6
SEG
5
SEG
4
SEG
3
SEG
2
SEG
1
SEG
0
V
CC
V
REF
AV
SS
COM
3
COM
2
COM
1
COM
0
V
L3
V
L2
C
2
52
51
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
21
25
26
23
24
17
10
13
16
20
18
12
11
14
15
19
22
27
28
29
30
3
6
2
5
1
4
7
8
9
50
49
48
47
46
45
44
43
42
M38258MCMXXXFP
41
40
39
38
37
36
35
34
33
32
31
P1
6
P1
7
P2
0
P2
1
P2
2
P2
3
P2
4
P2
5
P2
6
P2
7
V
SS
X
OUT
X
IN
P8
0
/X
COUT
P8
1
/X
CIN
RESET
P7
0
P7
1
P7
2
P7
3
Package type : 100P6S-A (100-pin plastic-molded QFP)
Fig. 1 Pin configuration of M38258MCMXXXFP
C
1
V
L1
P6
7
/AN
7
P6
6
/AN
6
P6
5
/AN
5
P6
4
/AN
4
P6
3
/AN
3
P6
2
/AN
2
P6
1
/AN
1
P6
0
/AN
0
P5
7
/ADT
P5
6
/T
OUT
P5
5
/CNTR
1
P5
4
/CNTR
0
P5
3
/RTP
1
P5
2
/RTP
0
P5
1
/INT
3
P5
0
/INT
2
P4
7
/S
RDY
P4
6
/S
CLK
P4
5
/ T
X
D
P4
4
/R
X
D
P4
3
/INT
1
P4
2
/INT
0
P4
1
/ f(X
IN
)/5 / f(X
IN
)/10
P4
0
/ f(X
IN
) / f(X
IN
)/2
P7
7
P7
6
P7
5
P7
4
MITSUBISHI MICROCOMPUTERS
3825 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
PIN CONFIGURATION (TOP VIEW)
SEG
13
SEG
14
SEG
15
SEG
16
SEG
17
P3
0
/SEG
18
P3
1
/SEG
19
P3
2
/SEG
20
P3
3
/SEG
21
P3
4
/SEG
22
P3
5
/SEG
23
P3
6
/SEG
24
P3
7
/SEG
25
P0
0
/SEG
26
P0
1
/SEG
27
P0
2
/SEG
28
P0
3
/SEG
29
P0
4
/SEG
30
P0
5
/SEG
31
P0
6
/SEG
32
P0
7
/SEG
33
P1
0
/SEG
34
P1
1
/SEG
35
P1
2
/SEG
36
P1
3
/SEG
37
73
70
67
64
61
58
55
74
71
68
65
62
59
56
75
72
69
66
63
60
57
54
53
52
SEG
12
SEG
11
SEG
10
SEG
9
SEG
8
SEG
7
SEG
6
SEG
5
SEG
4
SEG
3
SEG
2
SEG
1
SEG
0
V
CC
V
REF
AV
SS
COM
3
COM
2
COM
1
COM
0
V
L3
V
L2
C
2
C
1
V
L1
51
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
21
23
24
16
17
10
11
13
18
20
12
14
15
19
22
25
3
6
2
5
1
4
7
8
9
50
49
48
47
46
45
1111
M38258MCMXXXGP
M38258MCMXXXHP
44
43
42
41
40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
P1
4
/SEG
38
P1
5
/SEG
39
P1
6
P1
7
P2
0
P2
1
P2
2
P2
3
P2
4
P2
5
P2
6
P2
7
V
SS
X
OUT
X
IN
P8
0
/X
COUT
P8
1
/X
CIN
RESET
P7
0
P7
1
P7
2
P7
3
P7
4
P7
5
P7
6
Package type : GP ........................... 100P6Q-A (100-pin plastic-molded LQFP)
Package type : HP ........................... 100PFB-A (100-pin plastic-molded TQFP)
Fig. 2 Pin configuration of M38258MCMXXXGP, M38258MCMXXXHP
2
P6
7
/AN
7
P6
6
/AN
6
P6
5
/AN
5
P6
4
/AN
4
P6
3
/AN
3
P6
2
/AN
2
P6
1
/AN
1
P6
0
/AN
0
P5
7
/ADT
P5
6
/ T
OUT
P5
5
/CNTR
1
P5
4
/CNTR
0
P5
3
/RTP
1
P5
2
/RTP
0
P5
1
/INT
3
P5
0
/INT
2
P4
7
/S
RDY
P4
6
/S
CLK
P4
5
/ T
X
D
P4
4
/R
X
D
P4
3
/INT
1
P4
2
/INT
0
P4
1
/ f(X
IN
)/5 / f(X
IN
)/10
P4
0
/ f(X
IN
) / f(X
IN
)/2
P7
7
FUNCTIONAL BLOCK DIAGRAM (Package : 100P6S-A)
Clock
input
X
IN
Reset input
RESET
(5 V)
V
CC
(0 V)
V
SS
40
91
35
Clock
output
X
OUT
38
39
X
CIN
ADT
INT
2
,
INT
3
INT
0
, INT
1
36 37
92 93
27 28 29 30 31 32 33 34
3 4 5 6 7 8 9 10
11 12 13 14 15 16 17 18
19 20 21 22 23 24 25 26
65 66 67 68 69 70 71 72
41 42 43 44 45 46 47 48
Key-on wake up
P8 (2)
P5 (8)
P4 (8)
Real time port function
Fig. 3 Functional block diagram.
Data bus
CPU
A
ROM
LCD display
RAM
(20 bytes)
2
1
Clock generating
circuit
RAM
X
Y
S
PC
H
PS
Timer X (16)
Timer Y (16)
Timer 1 (8) Timer 2 (8)
Timer 3 (8)
PC
L
100
99
98
97
96
V
L1
C
1
C
2
V
L2
V
L3
φ
X
CIN
Sub-
clock
input
X
COUT
Sub-
clock
output
LCD
drive control
circuit
95
94
90
89
88
87
86
85
84
83
82
81
80
79
78
77
76
75
74
73
COM
0
COM
1
COM
2
COM
3
A-D converter (8)
SI/O (8)
T
OUT
CNTR
0
, CNTR
1
RTP
0
, RTP
1
SEG
0
SEG
1
SEG
2
SEG
3
SEG
4
SEG
5
SEG
6
SEG
7
SEG
8
SEG
9
SEG
10
SEG
11
SEG
12
SEG
13
SEG
14
SEG
15
SEG
16
SEG
17
X
COUT
P7 (8)
P6 (8)
P3 (8)
P2 (8)
P1 (8)
P0 (8)
49 50 51 52 53 54 55 56
57 58 59 60 61 62 63 64
I/O port P8
I/O port P7
I/O port P6
V
REF
AV
SS
(0 V)
I/O port P5
I/O port P4
Output port P3
I/O port P2
Output port P1
Output port P0
MITSUBISHI MICROCOMPUTERS
3825 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
3
MITSUBISHI MICROCOMPUTERS
3825 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
PIN DESCRIPTION
Table 1. Pin description (1)
Pin
V
CC
, V
SS
V
REF
Name
Power source
Analog reference
voltage
Analog power
source
Reset input
Clock input
Function
• Apply voltage of 2.2 V to 5.5 V to V
CC
, and 0 V to V
SS
.
• Reference voltage input pin for A-D converter.
Function except a port function
AV
SS
• 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.
• This clock is used as the oscillating source of system clock.
• Input 0
≤
V
L1
≤
V
L2
≤
V
L3
≤
V
CC
voltage
• Input 0 – V
L3
voltage to LCD
• External capacitor pins for a voltage multiplier (3 times) of LCD contorl.
• LCD common output pins
• COM
2
and COM
3
are not used at 1/2 duty ratio.
• COM
3
is not used at 1/3 duty ratio.
• LCD segment output pins
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
8-bit output port
CMOS 3-state output structure
Pull-down control is enabled.
Port output control is enabled.
6-bit output port
CMOS 3-state output structure
Pull-down control is enabled.
Port output 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.
• Key input (key-on wake up) interrupt
input pins
• LCD segment pins
RESET
X
IN
X
OUT
Clock output
V
L1
– V
L3
C
1
, C
2
LCD power source
Charge-pump
capacitor pin
Common output
COM
0
– COM
3
SEG
0
– SEG
17
P0
0
/SEG
26
–
P0
7
/SEG
33
Segment output
Output port P0
P1
0
/SEG
34
–
P1
5
/SEG
39
Output port P1
P1
6
, P1
7
I/O port P1
P2
0
– P2
7
I/O port P2
8-bit Input 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 output port
CMOS 3-state output structure
Pull-down control is enabled.
Port output control is enabled.
P3
0
/SEG
18
–
P3
7
/SEG
25
Output port P3
• LCD segment pins
4
MITSUBISHI MICROCOMPUTERS
3825 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
Table 2. Pin description (2)
Pin
P4
0
/f(X
IN
)/
f(X
IN
)/2,
P4
1
/f(X
IN
)/5/
f(X
IN
)/10
P4
2
/INT
0
,
P4
3
/INT
1
P4
4
/R
X
D,
P4
5
/T
X
D,
P4
6
/S
CLK
,
P4
7
/S
RDY
P5
0
/INT
2
,
P5
1
/INT
3
P5
2
/RTP
0
,
P5
3
/RTP
1
P5
4
/CNTR
0
,
P5
5
/CNTR
1
P5
6
/T
OUT
P5
7
/ADT
P6
0
/AN
0–
P6
7
/AN
7
I/O port P6
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.
• 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.
Pull-up control is enabled.
•Sub-clock generating circuit I/O pins
(Connect a resonator. External clock
cannot be used.)
•
•
•
•
I/O port P5
•
•
•
•
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.
Name
I/O port P4
•
•
•
•
Function
Function except a port function
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.
• Clock output pins
• Interrupt input pins
• Serial I/O function pins
• Interrupt input pins
• Real time port function pins
• Timers X, Y functions pins
• Timer 2 output pin
• A-D trigger input pin
• A-D conversion input pins
P7
0
P7
1
–P7
7
Input port P7
I/O port P7
P8
0
/X
COUT
,
P8
1
/X
CIN
I/O port P8
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.
5