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
3826 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
DESCRIPTION
The 3826 group is the 8-bit microcomputer based on the 740 fam-
ily core technology.
The 3826 group has the LCD drive control circuit, an 8-channel A-
D/D-A converter, UART and PWM as additional functions.
The various microcomputers in the 3826 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 3826 Group,
refer the section on group expansion.
•
Timers ........................................................... 8-bit
✕
3, 16-bit
✕
2
•
Serial I/O1 ..................... 8-bit
✕
1 (UART or Clock-synchronous)
•
Serial I/O2 .................................... 8-bit
✕
1 (Clock-synchronous)
•
PWM output .................................................................... 8-bit
✕
1
•
A-D converter .................................................. 8-bit
✕
8 channels
•
D-A converter .................................................. 8-bit
✕
2 channels
•
.................................... (used as the DTMF and CTCSS function)
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
(connect to external ceramic resonator or quartz-crystal oscillator)
Watchdog timer ............................................................. 14-bit
✕
1
Power source voltage ................................................ 2.5 to 5.5 V
............................................ (2.2 to 5.5 V for low voltage version)
Power dissipation
In high-speed mode ........................................................... 40 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)
Operating temperature range ................................... – 20 to 85°C
FEATURES
•
Basic machine-language instructions ....................................... 71
•
The minimum instruction execution time ............................ 0.5
µs
(at 8 MHz oscillation frequency)
•
•
•
•
•
Memory size
•
•
•
•
•
ROM ................................................................ 32 K to 60 K bytes
RAM ............................................................... 1024 to 2560 bytes
Programmable input/output ports ............................................. 55
Software pull-up resistors .................................................... Built-in
Output ports ................................................................................. 8
Input ports .................................................................................... 1
Interrupts .................................................. 17 sources, 16 vectors
(includes key input interrupt)
•
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 78 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
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
1
M38268MCLXXXFP
50
49
48
47
46
45
44
43
42
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
X
COUT
X
CIN
RESET
P7
0
/INT
0
P7
1
P7
2
P7
3
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
Package type : 100P6S-A
Fig. 1 Pin configuration of M38268MCLXXXFP
C
1
V
L1
P6
7
/AN
7
P6
6
/AN
6
P6
5
/AN
5
P6
4
/AN
4
P6
3
/S
CLK22
/AN
3
P6
2
/S
CLK21
/AN
2
P6
1
/S
OUT2
/AN
1
P6
0
/S
IN2
/AN
0
P5
7
/ADT/DA
2
P5
6
/DA
1
P5
5
/CNTR
1
P5
4
/CNTR
0
P5
3
/RTP
1
P5
2
/RTP
0
P5
1
/PWM
1
P5
0
/PWM
0
P4
7
/S
RDY1
P4
6
/S
CLK1
P4
5
/T
X
D
P4
4
/R
X
D
P4
3
/φ/T
OUT
P4
2
/INT
2
P4
1
/INT
1
P4
0
P7
7
P7
6
P7
5
P7
4
MITSUBISHI MICROCOMPUTERS
3826 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
PIN CONFIGURATION (TOP VIEW)
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
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
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
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
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
50
49
48
47
46
45
44
43
42
41
40
39
M38268MCL
XXX
GP
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
X
COUT
X
CIN
RESET
P7
0
/INT
0
P7
1
P7
2
P7
3
P7
4
P7
5
P7
6
Package type : 100P6Q-A
Fig. 2 Pin configuration of M38268MCLXXXGP
2
P6
7
/AN
7
P6
6
/AN
6
P6
5
/AN
5
P6
4
/AN
4
P6
3
/S
CLK22
/AN
3
P6
2
/S
CLK21
/AN
2
P6
1
/S
OUT2
/AN
1
P6
0
/S
IN2
/AN
0
P5
7
/ADT/DA
2
P5
6
/DA
1
P5
5
/CNTR
1
P5
4
/CNTR
0
P5
3
/RTP
1
P5
2
/RTP
0
P5
1
/PWM
1
P5
0
/PWM
0
P4
7
/S
RDY1
P4
6
/S
CLK1
P4
5
/T
X
D
P4
4
/R
X
D
P4
3
/φ/T
OUT
P4
2
/INT
2
P4
1
/INT
1
P4
0
P7
7
FUNCTIONAL BLOCK DIAGRAM (Package : 100P6S-A)
Reset input
(5V)
(0V)
V
S S
40
Clock
input
RESET
35
91
Clock
output
V
C C
X
IN
X
OUT
38
39
D A
2
D A
1
CNTR
0
,CNTR
1
INT
0
SI/O2(8)
ADT
36 37
27 28 29 30 31 32 33 34
3
4
5
6
7 8
9 10
92 93
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 input (Key-on wake up) interrupt
X
COUT
X
CIN
φ
INT
1,
INT
2
P7(8)
P6(8)
P5(8)
P4(8)
P3(8)
Real time port function
Fig. 3 Functional block diagram
Data bus
2
Clock generating
circuit
C P U
A
ROM
X
Y
S
PC
H
Timer X (16)
Timer Y (16)
D-A2/CTCSS
Timer 1 (8)
Timer 2 (8)
Timer 3 (8)
D-A1/DTMF
PS
PC
L
LCD display
RAM
(20 bytes)
RAM
V
L 1
C
1
100
C
2
99
V
L2
98
V
L3
1
97
96
95
94
X
CIN
XCIN
Sub-
clock
input
φ
XCOUT
Sub-
clock
output
X
COUT
LCD
drive control
circuit
COM
0
COM
1
COM
2
COM
3
90
89
88
87
86
85
84
83
82
81
80
79
78
77
76
75
74
73
Watchdog
timer
Reset
A-D converter (8)
T
OUT
PWM(8)
SI/O1 (8)
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
P2(8)
P1(8)
P0(8)
49 50 51 52 53 54 55 56
57 58 59 60 61 62 63 64
X
CIN
X
COUT
V
R E F
AV
SS
Sub-clock Sub-clock I/O port P7
input output
I/O port P6
I/O port P5
I/O port P4
Output port P3
I/O port P2
I/O port P1
I/O port P0
MITSUBISHI MICROCOMPUTERS
3826 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
3
MITSUBISHI MICROCOMPUTERS
3826 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
PIN DESCRIPTION
Table 1 Pin description (1)
Pin
V
CC
, V
SS
V
REF
AV
SS
Name
Power source
Analog refer-
ence voltage
Analog power
source
Reset input
Clock input
Clock output
Function
Function except a port function
•Apply voltage of 2.5 V to 5.5 V (2.2 V to 5.5 V for low voltage version) 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.
•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. A
feedback resistor is built-in.
RESET
X
IN
X
OUT
V
L1
–V
L3
C
1
, C
2
COM
0
–COM
3
LCD power
source
Charge-pump
capacitor pin
Common output
•Input 0
≤
V
L1
≤
V
L2
≤
V
L3
voltage.
•Input 0 – V
L3
voltage to LCD. (0
≤
V
L1
≤
V
L2
≤
V
L3
when a voltage is multiplied.)
•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 I/O port.
•CMOS compatible input level.
•CMOS 3-state output structure.
•Pull-up control is enabled.
•I/O direction register allows each 8-bit pin to be pro-
grammed as either input or output.
•LCD segment output pins
SEG
0
–SEG
17
P0
0
/SEG
26
–
P0
7
/SEG
33
Segment output
I/O port P0
P1
0
/SEG
34
–
P1
5
/SEG
39
I/O port P1
•6-bit I/O port with same function as port P0.
•CMOS compatible input level.
•CMOS 3-state output structure.
•Pull-up control is enabled.
•I/O direction register allows each 6-bit pin to be pro-
grammed as either input or output.
P1
6
, P1
7
•2-bit I/O port.
•CMOS compatible input level.
•CMOS 3-state output structure.
•I/O direction register allows each pin to be individually programmred as either input or output.
•Pull-up control is enabled.
•8-bit I/O port with same function as P1
6
and P1
7
.
•CMOS compatible input level.
•CMOS 3-state output structure.
•Pull-up control is enabled.
P2
0
– P2
7
I/O port P2
•Key input (key-on wake-up) interrupt
input pins
P3
0
/SEG
18
–
P3
7
/SEG
25
Output port P3
•8-bit output port with same function as port P0.
•CMOS 3-state output structure.
•Port output control is enabled.
•LCD segment output pins
4