MITSUBISHI MICROCOMPUTERS
3820 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
DESCRIPTION
The 3820 group is the 8-bit microcomputer based on the 740 fam-
ily core technology.
The 3820 group has the LCD drive control circuit and the serial I/
O as additional functions.
The various microcomputers in the 3820 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 3820 group, re-
fer to 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 circuit
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)
Watchdog timer ............................................................. 15-bit
!
1
Power source voltage
In high-speed mode .................................................... 4.0 to 5.5 V
(at 8MHz oscillation frequency and high-speed selected)
In middle-speed mode ................................................2.5 to 5.5 V
(at 8MHz oscillation frequency and middle-speed selected)
In low-speed mode ...................................................... 2.5 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)
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 32 K bytes
RAM ................................................................. 192 to 1024 bytes
Programmable input/output ports ............................................. 43
Software pull-up/pull-down resistors (Ports P0-P7 except Port P4
0
)
Interrupts .................................................. 16 sources, 16 vectors
(includes key input interrupt)
Timers ........................................................... 8-bit
!
3, 16-bit
!
2
Serial I/O1 ..................... 8-bit
!
1 (UART or Clock-synchronized)
Serial I/O2 .................................... 8-bit
!
1 (Clock-synchronized)
•
•
APPLICATIONS
Household appliances, consumer electronics, etc.
PIN CONFIGURATION (TOP VIEW)
P3
0
/SEG
16
P3
1
/SEG
17
P3
2
/SEG
18
P3
3
/SEG
19
P3
4
/SEG
20
P3
5
/SEG
21
P3
6
/SEG
22
P3
7
/SEG
23
P0
0
/SEG
24
P0
1
/SEG
25
P0
2
/SEG
26
P0
3
/SEG
27
P0
4
/SEG
28
P0
5
/SEG
29
P0
6
/SEG
30
P0
7
/SEG
31
P1
0
/SEG
32
P1
1
/SEG
33
P1
2
/SEG
34
P1
3
/SEG
35
P1
4
/SEG
36
P1
5
/SEG
37
P1
6
/SEG
38
P1
7
/SEG
39
64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41
SEG
15
SEG
14
SEG
13
SEG
12
SEG
11
SEG
10
SEG
9
SEG
8
V
CC
SEG
7
SEG
6
SEG
5
SEG
4
SEG
3
SEG
2
SEG
1
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
1 2 3 4
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
40
39
38
37
36
35
34
M38203M4-XXXFP
M38203M4-XXXFP
33
32
31
30
29
28
27
26
25
P2
0
P2
1
P2
2
P2
3
P2
4
P2
5
P2
6
P2
7
V
SS
X
OUT
X
IN
P7
0
/X
COUT
P7
1
/X
CIN
RESET
P4
0
P4
1
/φ
SEG
0
COM
3
COM
2
COM
1
COM
0
V
L3
V
L2
V
L1
P6
1
/RTP
1
P6
0
/INT
3
/RTP
0
P5
7
/INT
2
P5
6
/T
OUT
P5
5
/CNTR
1
P5
4
/CNTR
0
P5
3
/S
RDY2
P5
2
/S
CLK2
P5
1
/S
OUT2
P5
0
/S
IN2
P4
7
/S
RDY1
P4
6
/S
CLK1
P4
5
/T
X
D
P4
4
/R
X
D
P4
3
/INT
1
P4
2
/INT
0
Package type : 80P6N-A
80-pin plastic molded QFP
MITSUBISHI MICROCOMPUTERS
3820 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
PIN CONFIGURATION (TOP VIEW)
P3
2
/SEG
18
P3
3
/SEG
19
P3
4
/SEG
20
P3
5
/SEG
21
P3
6
/SEG
22
P3
7
/SEG
23
P0
0
/SEG
24
P0
1
/SEG
25
P0
2
/SEG
26
P0
3
/SEG
27
P0
4
/SEG
28
P0
5
/SEG
29
P0
6
/SEG
30
P0
7
/SEG
31
P1
0
/SEG
32
P1
1
/SEG
33
P1
2
/SEG
34
P1
3
/SEG
35
P1
4
/SEG
36
P1
5
/SEG
37
60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41
P3
1
/SEG
17
P3
0
/SEG
16
SEG
15
SEG
14
SEG
13
SEG
12
SEG
11
SEG
10
SEG
9
SEG
8
V
CC
SEG
7
SEG
6
SEG
5
SEG
4
SEG
3
SEG
2
SEG
1
SEG
0
COM
3
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
1 2
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
40
39
38
37
36
35
34
33
M38203M4-XXXGP
M38203M4-XXXHP
32
31
30
29
28
27
26
25
24
23
22
21
P1
6
/SEG
38
P1
7
/SEG
39
P2
0
P2
1
P2
2
P2
3
P2
4
P2
5
P2
6
P2
7
V
SS
X
OUT
X
IN
P7
0
/X
COUT
P7
1
/X
CIN
RESET
P4
0
P4
1
/φ
P4
2
/INT
0
P4
3
/INT
1
Package type : 80P6S-A/80P6D-A
80-pin plastic-molded QFP
2
COM
2
COM
1
COM
0
V
L3
V
L2
V
L1
P6
1
/RTP
1
P6
0
/INT
3
/RTP
0
P5
7
/INT
2
P5
6
/T
OUT
P5
5
/CNTR
1
P5
4
/CNTR
0
P5
3
/S
RDY2
P5
2
/S
CLK2
P5
1
/S
OUT2
P5
0
/S
IN2
P4
7
/S
RDY1
P4
6
/S
CLK1
P4
5
/T
X
D
P4
4
/R
X
D
FUNCTIONAL BLOCK DIAGRAM (Package : 80P6N-A)
Clock
input
X
IN
Reset input
RESET
V
SS
32
27
73
Clock
output
X
OUT
(5V)
V
CC
(0V)
30
28
31
29
1
Data bus
Clock generating
circuit
CPU
A
ROM
X
Y
S
PC
H
Timer X(16)
Timer Y(16)
Timer 1(8)
Timer 3(8)
Timer 2(8)
PS
PC
L
LCD display
RAM
(20 bytes)
LCD
drive control
circuit
RAM
8
7
6
5
4
3
2
1
80
79
78
77
76
75
74
72
71
70
69
68
67
66
65
V
L1
V
L2
V
L3
COM
0
COM
1
COM
2
COM
3
X
CIN
Sub-
clock
input
X
COUT
Sub-
clock
output
φ
Watchdog timer
RESET
SI/O2(8)
SI/O1(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
X
CIN
INT
0
,INT
1
Real time port function
X
COUT
φ
INT
2
Key-on wake up
P7(2)
P5(8)
P3(8)
P4(8)
P6(2)
P2(8)
P1(8)
P0(8)
P0(8)
28 29
9 10
19 20 21 22 23 24 25 26
11 12 13 14 15 16 17 18
57 58 59 60 61 62 63 64
33 34 35 36 37 38 39 40
41 42 43 44 45 46 47 48
49 50 51 52 53 54 55 56
I/O port P7
I/O port P5
I/O port P4
I/O port P6
Input port P3
I/O port P2
I/O port P1
I/O port P0
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
MITSUBISHI MICROCOMPUTERS
3820 Group
3
MITSUBISHI MICROCOMPUTERS
3820 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
PIN DESCRIPTION
Pin
V
CC
V
SS
RESET
X
IN
X
OUT
Reset input
Clock input
Clock output
• 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
• 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
I/O direction register allows each port to be individually
programmed as either input or 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 port to be individually
programmed as either input or 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.
• 8-bit Input port
• CMOS compatible input level
• Pull-down control is enabled.
• 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.
•
φ
clock output pin
• Interrupt input pins
• Serial I/O1 function pins
•
•
•
•
• Key input (key-on wake up) interrupt
input pins
•
•
•
•
• LCD segment pins
Name
Power source
Function
• Apply voltage of 2.5 V to 5.5 V to V
CC
, and 0 V to V
SS
.
(Extended operating temperature version : 3.0 V to 5.5 V)
Function except a port function
V
L1
– V
L3
COM
0
– COM
3
LCD power source
Common output
SEG
0
– SEG
15
P0
0
/SEG
24
–
P0
7
/SEG
31
Segment output
I/O port P0
P1
0
/SEG
32
–
P1
7
/SEG
39
I/O port P1
P2
0
– P2
7
I/O port P2
P3
0
/SEG
16
–
P3
7
/SEG
23
P4
0
P4
1
/
φ
P4
2
/INT
0
,
P4
3
/INT
1
P4
4
/R
X
D,
P4
5
/T
X
D,
P4
6
/S
CLK1,
P4
7
/S
RDY1
Input port P3
• LCD segment pins
Input port P4
I/O port P4
4
MITSUBISHI MICROCOMPUTERS
3820 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
PIN DESCRIPTION
Pin
P5
0
/S
IN2
,
P5
1
/S
OUT2
,
P5
2
/S
CLK2
,
P5
3
/S
RDY2
P5
4
/CNTR
0
,
P5
5
/CNTR
1
P5
6
/T
OUT
P5
7
/INT
2
P6
0
/INT
3
/RTP
0
P6
1
/RTP
1
I/O port P6
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.
•
•
•
•
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.
•
•
•
•
Name
I/O port P5
•
•
•
•
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.
• Serial I/O2 function pins
• Timer function pins
• Timer output pin
• Interrupt input pin
• Interrupt input pins(P6
0
)
• Real time port function pin
P7
0
/X
COUT,
P7
1
/X
CIN
I/O port P7
• Sub-clock generating circuit input
pins
(Connect a resonator. External clock
cannot be used.)
5