MITSUBISHI MICROCOMPUTERS
3803/3804 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
DESCRIPTION
The 3803/3804 group is the 8-bit microcomputer based on the 740
family core technology.
The 3803/3804 group is designed for household products, office
automation equipment, and controlling systems that require ana-
log signal processing, including the A-D converter and D-A
converters.
The 3804 group is the version of the 3803 group to which an I
2
C-
BUS control function has been added.
FEATURES
qBasic
machine-language instructions ...................................... 71
qMinimum
instruction execution time ................................ 0.24
µs
(at 16.8 MHz oscillation frequency)
qMemory
size
ROM ............................................................... 16 K to 60 K bytes
RAM ................................................................. 640 to 2048 bytes
qProgrammable
input/output ports ............................................ 56
qSoftware
pull-up resistors ................................................. Built-in
qInterrupts
21 sources, 16 vectors ............................................... 3803 group
(external 8, internal 12, software 1)
23 sources, 16 vectors ............................................... 3804 group
(external 9, internal 13, software 1)
qTimers
........................................................................... 16-bit
✕
1
8-bit
✕
4
(with 8-bit prescaler)
qWatchdog
timer ............................................................ 16-bit
✕
1
qSerial
I/O ...................... 8-bit
✕
2 (UART or Clock-synchronized)
8-bit
✕
1 (Clock-synchronized)
qPWM
............................................ 8-bit
✕
1 (with 8-bit prescaler)
qI
2
C-BUS interface (3804 group only) ........................... 1 channel
qA-D
converter ............................................. 10-bit
✕
16 channels
(8-bit reading enabled)
qD-A
converter ................................................. 8-bit
✕
2 channels
qLED
direct drive port .................................................................. 8
qClock
generating circuit ..................................... Built-in 2 circuits
(connect to external ceramic resonator or quartz-crystal oscillator)
qPower
source voltage
In high-, middle-speed mode
At 16.8 MHz oscillation frequency ............................ 4.5 to 5.5 V
At 12.5 MHz oscillation frequency ............................ 4.0 to 5.5 V
At 8.38 MHz oscillation frequency) ........................ 2.7 to 5.5 V
½
In low-speed mode
At 32 kHz oscillation frequency .............................. 2.7 to 5.5 V
½
(½ This value of flash memory version is 4.0 to 5.5 V.)
qPower
dissipation
In high-speed mode ................................................ 60 mW (typ.)
(at 16.8 MHz oscillation frequency, at 5 V power source voltage)
In low-speed mode ................................................... 60
µW
(typ.)
(at 32 kHz oscillation frequency, at 3 V power source voltage)
qOperating
temperature range .................................... –20 to 85°C
qPackages
SP .................................................. 64P4B (64-pin 750 mil SDIP)
FP ....................................... 64P6N-A (64-pin 14
✕
14 mm QFP)
HP ..................................... 64P6Q-A (64-pin 10
✕
10 mm LQFP)
<Flash memory mode>
qSupply
voltage ................................................. V
CC
= 5 V ± 10 %
qProgram/Erase
voltage ........................... V
PP
= 11.7 V to 12.6 V
qProgramming
method ...................... Programming in unit of byte
qErasing
method
Batch erasing ........................................ Parallel/Serial I/O mode
Block erasing .................................... CPU reprogramming mode
qProgram/Erase
control by software command
qNumber
of times for programming/erasing ............................ 100
q
Operating temperature range (at programming/erasing) ...........
........................................................................ Room temperature
sNotes
1. The flash memory version cannot be used for application em-
bedded in the MCU card.
2. Supply voltage Vcc of the flash memory version is 4.0 to 5.5
V.
MITSUBISHI MICROCOMPUTERS
3803/3804 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
PIN CONFIGURATION (TOP VIEW)
P1
0
/INT
41
P0
5
/AN
13
P0
0
/AN
8
P1
1
/INT
01
P0
2
/AN
10
P0
3
/AN
11
P0
4
/AN
12
P0
6
/AN
14
P0
7
/AN
15
P0
1
/AN
9
P1
7
33
P1
2
P1
3
P1
4
36
P1
5
35
P1
6
34
47
44
42
41
48
46
43
38
45
40
39
37
P3
7
/S
RDY3
P3
6
/S
CLK3
P3
5
/T
X
D
3
P3
4
/R
X
D
3
P3
3
P3
2
P3
1
/DA
2
P3
0
/DA
1
V
CC
V
REF
AV
SS
P6
7
/AN
7
P6
6
/AN
6
P6
5
/AN
5
P6
4
/AN
4
P6
3
/AN
3
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
13
14
10
11
15
12
16
2
1
3
5
6
4
7
8
9
32
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
P2
0(
LED
0)
P2
1(
LED
1)
P2
2(
LED
2)
P2
3(
LED
3)
P2
4(
LED
4)
P2
5(
LED
5)
P2
6(
LED
6)
P2
7(
LED
7)
V
SS
X
OUT
X
IN
P4
0
/INT
40
/X
COUT
P4
1
/INT
00
/X
CIN
RESET
CNV
SS
V
PP
P4
2
/INT
1
M38039FFFP/HP
M38037M8-XXXFP/HP
P5
4
/CNTR
0
P5
1
/S
OUT2
P5
5
/CNTR
1
P4
7
/S
RDY1
/CNTR
2
P5
3
/S
RDY2
P5
2
/S
CLK2
P4
6
/S
CLK1
P5
7
/INT
3
P5
6
/PWM
P4
4
/R
X
D
1
P4
5
/T
X
D
1
P4
3
/INT
2
P6
2
/AN
2
P6
0
/AN
0
P6
1
/AN
1
P5
0
/S
IN2
: Flash memory version
Package type : 64P6N-A/64P6Q-A
Fig. 1 3803 group pin configuration
PIN CONFIGURATION (TOP VIEW)
V
CC
V
REF
AV
SS
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
/INT
3
P5
6
/PWM
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
/
CNTR
2
P4
6
/S
CLK1
P4
5
/T
X
D
1
P4
4
/R
X
D
1
P4
3
/INT
2
P4
2
/INT
1
V
PP
CNV
SS
RESET
P4
1
/INT
00
/X
CIN
P4
0
/INT
40
/X
COUT
X
IN
X
OUT
V
SS
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
26
27
28
29
30
31
32
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
36
35
34
33
P3
0
/DA
1
P3
1
/DA
2
P3
2
P3
3
P3
4
/R
X
D
3
P3
5
/T
X
D
3
P3
6
/
S
CLK3
P3
7
/
S
RDY3
P0
0
/AN
8
P0
1
/AN
9
P0
2
/AN
10
P0
3
/AN
11
P0
4
/AN
12
P0
5
/AN
13
P0
6
/AN
14
P0
7
/AN
15
P1
0
/INT
41
P1
1
/INT
01
P1
2
P1
3
P1
4
P1
5
P1
6
P1
7
P2
0
(LED
0
)
P2
1
(LED
1
)
P2
2
(LED
2
)
P2
3
(LED
3
)
P2
4
(LED
4
)
P2
5
(LED
5
)
P2
6
(LED
6
)
P2
7
(LED
7
)
: Flash memory version
Package type : 64P4B
Fig. 2 3803 group pin configuration
M38039FFSP
M38037M8-XXXSP
2
MITSUBISHI MICROCOMPUTERS
3803/3804 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
PIN CONFIGURATION
PIN CONFIGURATION (TOP VIEW)
P1
0
/INT
41
P1
1
/INT
01
P0
4
/AN
12
P0
5
/AN
13
P0
6
/AN
14
P0
2
/AN
10
P0
3
/AN
11
P0
7
/AN
15
P0
0
/AN
8
P0
1
/AN
9
P1
2
P1
3
P1
4
P1
5
35
P1
6
34
P1
7
33
46
45
43
48
47
44
42
41
40
39
38
37
36
P3
7
/S
RDY3
P3
6
/S
CLK3
P3
5
/T
X
D
3
P3
4
/R
X
D
3
P3
3
/SCL
P3
2
/SDA
P3
1
/DA
2
P3
0
/DA
1
V
CC
V
REF
AV
SS
P6
7
/AN
7
P6
6
/AN
6
P6
5
/AN
5
P6
4
/AN
4
P6
3
/AN
3
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
10
11
13
14
12
15
16
1
2
3
4
6
7
5
8
9
32
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
P2
0(
LED
0)
P2
1(
LED
1)
P2
2(
LED
2)
P2
3(
LED
3)
P2
4(
LED
4)
P2
5(
LED
5)
P2
6(
LED
6)
P2
7(
LED
7)
V
SS
X
OUT
X
IN
P4
0
/INT
40
/X
COUT
P4
1
/INT
00
/X
CIN
RESET
CNV
SS
V
PP
P4
2
/INT
1
M38049FFFP/HP
M38047M8-XXXFP/HP
P5
7
/INT
3
P5
5
/CNTR
1
P5
3
/S
RDY2
P6
1
/AN
1
P4
7
/S
RDY1
/CNTR
2
P4
6
/S
CLK1
P4
5
/T
X
D
1
P5
4
/CNTR
0
P5
1
/S
OUT2
P5
0
/S
IN2
P5
2
/S
CLK2
P5
6
/PWM
P4
4
/R
X
D
1
P4
3
/INT
2
P6
2
/AN
2
P6
0
/AN
0
: Flash memory version
Package type : 64P6N-A/64P6Q-A
Fig. 3 3804 group pin configuration
PIN CONFIGURATION (TOP VIEW)
V
CC
V
REF
AV
SS
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
/INT
3
P5
6
/PWM
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
/
CNTR
2
P4
6
/S
CLK1
P4
5
/T
X
D
1
P4
4
/R
X
D
1
P4
3
/INT
2
P4
2
/INT
1
V
PP
CNV
SS
RESET
P4
1
/INT
00
/X
CIN
P4
0
/INT
40
/X
COUT
X
IN
X
OUT
V
SS
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
26
27
28
29
30
31
32
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
36
35
34
33
P3
0
/DA
1
P3
1
/DA
2
P3
2
/SDA
P3
3
/SCL
P3
4
/R
X
D
3
P3
5
/T
X
D
3
P3
6
/
S
CLK3
P3
7
/
S
RDY3
P0
0
/AN
8
P0
1
/AN
9
P0
2
/AN
10
P0
3
/AN
11
P0
4
/AN
12
P0
5
/AN
13
P0
6
/AN
14
P0
7
/AN
15
P1
0
/INT
41
P1
1
/INT
01
P1
2
P1
3
P1
4
P1
5
P1
6
P1
7
P2
0
(LED
0
)
P2
1
(LED
1
)
P2
2
(LED
2
)
P2
3
(LED
3
)
P2
4
(LED
4
)
P2
5
(LED
5
)
P2
6
(LED
6
)
P2
7
(LED
7
)
: Flash memory version
Package type : 64P4B
Fig. 4 3804 group pin configuration
M38049FFSP
M38047M8-XXXSP
3
4
Reset input
FUNCTIONAL BLOCK DIAGRAM (Package: 64P4B)
Clock Clock Sub-clock Sub-clock
input output input
output
X
IN
X
OUT
X
CIN
X
COUT
V
SS
V
CC
RESET
CNV
SS
26
27
1
32
30
31
28
29
FUNCTIONAL BLOCK
Data bus
Clock generating circuit
C P U
Timer 1 (8)
A
X
Prescaler 12 (8)
Fig. 5 3803 group functional block diagram
RAM
ROM
Y
Prescaler X (8)
Timer 2 (8)
Timer X (8)
Timer Y (8)
S
CNTR
0
Prescaler Y (8)
PC
H
PS
CNTR
1
PC
L
Timer Z (16)
CNTR
2
A-D
converter
(10)
PWM(8)
SI/O2(8)
SI/O1(8)
D-A
D-A
converter converter
2 (8)
1 (8)
SI/O3(8)
INT
3
INT
00
INT
1
INT
2
INT
40
INT
01
INT
41
P6(8)
P5(8)
P4(8)
P3(8)
P2(8)
P1(8)
P0(8)
2
3
4 5 6 7 8 9 10 11
12 13 14 15 16 17 18 19
20 21 22 23 24 25 28 29
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
V
REF
AV
SS
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
MITSUBISHI MICROCOMPUTERS
3803/3804 Group
I/O port P6
I/O port P5
I/O port P4
I/O port P3
I/O port P2
(LED drive)
I/O port P1
I/O port P0
FUNCTIONAL BLOCK DIAGRAM (Package: 64P4B)
Clock Clock Sub-clock Sub-clock
input output input
output
Reset input
X
IN
X
OUT
X
CIN
X
COUT
V
SS
V
CC
RESET
CNV
SS
26
27
1
32
30
31
28
29
Data bus
Clock generating circuit
C P U
Timer 1 (8)
A
X
Prescaler 12 (8)
Fig. 6 3804 group functional block diagram
RAM
ROM
Y
Prescaler X (8)
Timer 2 (8)
Timer X (8)
Timer Y (8)
S
CNTR
0
Prescaler Y (8)
PC
H
PS
CNTR
1
PC
L
Timer Z (16)
CNTR
2
A-D
converter
(10)
PWM(8)
SI/O2(8)
SI/O1(8)
D-A
D-A
converter converter
2 (8)
1 (8)
SI/O3(8)
I
2
C
INT
3
INT
00
INT
1
INT
2
INT
40
INT
01
INT
41
P6(8)
P5(8)
P4(8)
P3(8)
P2(8)
P1(8)
P0(8)
2 3
4 5 6 7 8 9 10 11
12 13 14 15 16 17 18 19
20 21 22 23 24 25 28 29
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
V
REF
AV
SS
I/O port P6
I/O port P5
I/O port P4
I/O port P3
I/O port P2
(LED drive)
I/O port P1
I/O port P0
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
MITSUBISHI MICROCOMPUTERS
3803/3804 Group
5