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
3886 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
DESCRIPTION
The 3886 group is the 8-bit microcomputer based on the 740 fam-
ily core technology.
The 3886 group is designed for controlling systems that require
analog signal processing and include two serial I/O functions, A-D
converters, D-A converters, system data bus interface function,
watchdog timer, and comparator circuit.
The multi-master I
2
C bus interface can be added by option.
qPower
dissipation
In high-speed mode .......................................................... 40 mW
(at 10 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)
qMemory
expansion possible (only for M38867M8A/E8A)
qOperating
temperature range .................................... –20 to 85°C
<Flash memory mode>
qSupply
voltage ................................................. V
CC
= 5 V ± 10 %
qProgram/Erase
voltage ............................... V
PP
= 11.7 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
qOperating
temperature range (at programming/erasing)
..................................................................... Normal temperature
FEATURES
<Microcomputer mode>
qBasic
machine-language instructions ...................................... 71
qMinimum
instruction execution time .................................. 0.4
µs
(at 10 MHz oscillation frequency)
qMemory
size
ROM ................................................................. 32K to 60K bytes
RAM ............................................................... 1024 to 2048 bytes
qProgrammable
input/output ports ............................................ 72
qSoftware
pull-up resistors ................................................. Built-in
qInterrupts
................................................. 21 sources, 16 vectors
(Included key input interrupt)
qTimers
............................................................................. 8-bit
!
4
qSerial
I/O1 .................... 8-bit
!
1(UART or Clock-synchronized)
qSerial
I/O2 ................................... 8-bit
!
1(Clock-synchronized)
qPWM
output circuit ....................................................... 14-bit
!
2
qBus
interface .................................................................... 2 bytes
qI
2
C bus interface (option) ............................................. 1 channel
qA-D
converter ............................................... 10-bit
!
8 channels
qD-A
converter ................................................. 8-bit
!
2 channels
qComparator
circuit ...................................................... 8 channels
qWatchdog
timer ............................................................ 16-bit
!
1
qClock
generating circuit ..................................... Built-in 2 circuits
(connect to external ceramic resonator or quartz-crystal oscillator)
qPower
source voltage
In high-speed mode .................................................. 4.0 to 5.5 V
(at 10 MHz oscillation frequency)
In middle-speed mode ........................................... 2.7 to 5.5 V(*)
(at 10 MHz oscillation frequency)
In low-speed mode ............................................... 2.7 to 5.5 V (*)
(at 32 kHz oscillation frequency)
(*: 4.0 to 5.5 V for Flash memory version)
sNotes
1. The flash memory version cannot be used for application em-
bedded in the MCU card.
2. Power source voltage Vcc of the flash memory version is 4.0
to 5.5 V.
APPLICATION
Household product, consumer electronics, communications, note
book PC, etc.
MITSUBISHI MICROCOMPUTERS
3886 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
PIN CONFIGURATION (TOP VIEW)
P3
2
/ONW
P3
3
/RESET
OUT
P3
4
/φ
P3
5
/SYNC
P3
6
/WR
P3
7
/RD
P0
0
/P3
REF
/AD
0
P0
1
/AD
1
P0
2
/AD
2
P0
3
/AD
3
P0
4
/AD
4
P0
5
/AD
5
P0
6
/AD
6
P0
7
/AD
7
P1
0
/AD
8
P1
1
/AD
9
P1
2
/AD
10
P1
3
/AD
11
P1
4
/AD
12
P1
5
/AD
13
42
41
60
59
58
57
56
55
54
53
52
51
50
49
48
47
46
45
44
43
P3
1
/PWM
10
P3
0
/PWM
00
P8
7
/DQ
7
P8
6
/DQ
6
P8
5
/DQ
5
P8
4
/DQ
4
P8
3
/DQ
3
P8
2
/DQ
2
P8
1
/DQ
1
P8
0
/DQ
0
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
11
12
13
15
16
17
18
7
8
9
10
14
19
20
1
2
3
4
5
6
40
39
38
37
36
35
34
33
M38867M8A-XXXHP
M38867E8AHP
32
31
30
29
28
27
26
25
24
23
22
21
P1
6
/AD
14
P1
7
/AD
15
P2
0
/DB
0
P2
1
/DB
1
P2
2
/DB
2
P2
3
/DB
3
P2
4
/DB
4
P2
5
/DB
5
P2
6
/DB
6
P2
7
/DB
7
V
SS
X
OUT
X
IN
P4
0
/X
COUT
P4
1
/X
CIN
RESET
V
PP
CNV
SS
P4
2
/INT
0
/OBF
00
P4
3
/INT
1
/OBF
01
P4
4
/R
X
D
P6
0
/AN
0
P7
7
/S
CL
P7
6
/S
DA
P7
5
/INT
41
P7
4
/INT
31
P7
3
/S
RDY2
/INT
21
P7
2
/S
CLK2
P7
1
/S
OUT2
P7
0
/S
IN2
P5
7
/DA
2
/PWM
11
P5
6
/DA
1
/PWM
01
P5
5
/CNTR
1
P5
4
/CNTR
0
P5
3
/INT
40
/W
P5
2
/INT
30
/R
P5
1
/INT
20
/S
0
P5
0
/A
0
P4
7
/S
RDY1
/S
1
P4
6
/S
CLK1
/OBF
10
P4
5
/T
X
D
: PROM version
Note:
The pin number and the position of the
function pin may change by the kind of
package.
Package type : 80P6Q-A
Fig. 1 M38867M8A-XXXHP, M38867E8AHP pin configuration
PIN CONFIGURATION (TOP VIEW)
P3
0
/PWM
00
P3
1
/PWM
10
P3
2
/ONW
P3
3
/RESET
OUT
P3
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OBF
01
24
1
2
3
4
5
6
7
Package type : 80D0
Fig. 2 M38867E8AFS pin configuration
Note:
The pin number and the position of
the function pin may change by the
kind of package.
2
MITSUBISHI MICROCOMPUTERS
3886 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
PIN CONFIGURATION (TOP VIEW)
P3
2
P3
3
P3
4
P3
5
P3
6
P3
7
P0
0
/P3
REF
P0
1
P0
2
P0
3
P0
4
P0
5
P0
6
P0
7
P1
0
P1
1
P1
2
P1
3
P1
4
P1
5
46
45
44
43
42
60
59
58
50
49
48
47
57
56
55
54
53
52
51
41
40
39
38
37
36
35
34
33
P3
1
/PWM
10
P3
0
/PWM
00
P8
7
/DQ
7
P8
6
/DQ
6
P8
5
/DQ
5
P8
4
/DQ
4
P8
3
/DQ
3
P8
2
/DQ
2
P8
1
/DQ
1
P8
0
/DQ
0
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
M38869MFA-XXXGP/HP
M38869FFAGP/HP
32
31
30
29
28
27
26
25
24
23
22
21
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
P4
0
/X
COUT
P4
1
/X
CIN
RESET
CNV
SS
V
PP
P4
2
/INT
0
/OBF
00
P4
3
/INT
1
/OBF
01
P4
4
/R
X
D
12
13
14
15
16
17
11
P6
0
/AN
0
P7
7
/S
CL
P7
6
/S
DA
P7
5
/INT
41
P7
4
/INT
31
P7
3
/S
RDY2
/INT
21
P7
2
/S
CLK2
P7
1
/S
OUT2
P7
0
/S
IN2
P5
7
/DA
2
/PWM
11
P5
6
/DA
1
/PWM
01
P5
5
/CNTR
1
P5
4
/CNTR
0
P5
3
/INT
40
/W
P5
2
/INT
30
/R
P5
1
/INT
20
/S
0
P5
0
/A
0
P4
7
/S
RDY1
/S
1
P4
6
/S
CLK1
/OBF
10
P4
5
/T
X
D
9
10
18
19
20
1
2
3
7
8
4
5
6
: Flash memory version
Note:
The pin number and the position of the
function pin may change by the kind of
package.
Package type : 80P6S-A/80P6Q-A
Fig. 3 M38869MFA-XXXGP/HP, M38869FFAGP/HP pin configuration
3
4
Reset input
V
SS
V
CC
RESET
25
24
71
30
FUNCTIONAL BLOCK DIAGRAM (Package : 80P6Q-A, 80P6S-A)
Main-clock
input
X
IN
CNV
SS
Main-clock
output
X
OUT
28
29
Sub-clock Sub-clock
input
output
FUNCTIONAL BLOCK
Fig. 4 Functional block diagram
C P U
X
CIN
X
COUT
Clock generating circuit
RAM
ROM
X
Prescaler 12(8)
A
Timer 2( 8 )
Timer X( 8 )
Timer Y( 8 )
Timer 1( 8 )
Y
Prescaler X(8)
S
PC
H
PS
CNTR
0
CNTR
1
PC
L
Prescaler Y(8)
Watchdog
timer
Reset
I C
D-A
converter 2
(8)
D-A
converter
1(8)
2
SI/O2(8)
SI/O1(8)
Comparator
A-D
converter
(10)
PWM0(14)
PWM1(14)
S
CL
S
DA
X
COUT
X
CIN
INT
0,
INT
1
Bus interface
D Q
0
INT
20,
INT
30,
INT
40
Key-on
wake-up
PWM
00
,
PWM
01
PWM
10
,
PWM
11
to
D Q
7
INT
21,
INT
31,
INT
41
P8(8)
P6(8)
P5(8)
P4(8)
P7(8)
P3(8)
P2(8)
P1(8)
P0(8)
P3
REF
63 64 65 66 67 68 69 70
2 3 4 5 6 7 8 9
10 11 12 13 14 15 16 17
72 73
74 75 76 77 78 79 80 1
18 19 20 21 22 23 26 27
55 56 57 58 59 60 61 62
31 32 33 34 35 36 37 38
39 40 41 42 43 44 45 46
47 48 49 50 51 52 53 54
I/O port P8
I/O port P7
I/O port P6
I/O port P5
I/O port P4
I/O port P3
I/O port P2
I/O port P1
I/O port P0
V
REF
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
MITSUBISHI MICROCOMPUTERS
3886 Group
AV
SS