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
Description
M30218 Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Description
The M30218 group of single-chip microcomputers are built using the high-performance silicon gate CMOS
process using a M16C/60 Series CPU core and are packaged in a 100-pin plastic molded QFP. These
single-chip microcomputers operate using sophisticated instructions featuring a high level of instruction
efficiency. With 1M bytes of address space, they are capable of executing instructions at high speed. They
also feature a built-in multiplier and DMAC, making them ideal for controlling musical instruments, house-
hold appliances and other high-speed processing applications.
The M30218 group includes a wide range of products with different internal memory types and sizes and
various package types.
Features
• Basic machine instructions ............. Compatible with the M16C/60 series
• Memory capacity ............................ ROM / RAM (See figure memory expansion)
• Shortest instruction execution time . 100ns (f(X
IN
)=10MHz)
• Supply voltage ................................ 4.0V to 5.5V (f(X
IN
)=10MHz)
2.7V to 5.5V (f(X
IN
)=3.5MHz)(Note)
• Interrupts ........................................ 19 internal and 6 external interrupt sources, 4 software
• Multifunction 16-bit timer ................ Timer A X 5, Timer B X 3
• FLD conrtoller ................................. total 56 pins
(high-breakdown-voltage P-channel open-drain output : 52pins)
• Serial I/O ......................................... 2 channels for UART or clock synchronous,
1 channels for clock synchronous
(max.256 bytes automatic transfer function)
• DMAC ............................................. 2 channels (triggers: 15 sources)
• A-D converter ................................. 10 bits X 8 channels
• D-A converter ................................. 8 bits X 2 channels
• CRC calculation circuit ................... 1 circuit
• Watchdog timer .............................. 1 pin
• Programmable I/O .......................... 48 pins
• High-breakdown-voltage output ...... 52 pins
• Clock generating circuit .................. 2 built-in clock generation circuit
(built-in feedback resistor, and external ceramic or quartz oscillator)
Note: Only mask ROM version.
Applications
Household appliances, office equipment, Audio etc.
------Table of Contents------
Central Processing Unit (CPU) ..................... 10
Reset ............................................................. 14
Clock Generating Circuit ............................... 18
Protection ...................................................... 26
Interrupts ....................................................... 27
Watchdog Timer ............................................ 45
DMAC ........................................................... 47
FLD controller ............................................... 53
Timer ............................................................. 70
Serial I/O ....................................................... 87
A-D Converter ............................................. 114
D-A Converter ............................................. 124
CRC Calculation Circuit .............................. 126
Programmable I/O Ports ............................. 128
Flash memory version ................................. 152
1
Mitsubishi microcomputers
Description
M30218 Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Pin Configuration
Figures AA-1 show the pin configurations (top view).
PIN CONFIGURATION (top view)
P6
7
/FLD7
P6
6
/FLD6
P6
5
/FLD5
P6
4
/FLD4
P6
3
/FLD3
P6
2
/FLD2
P6
1
/FLD1
P6
0
/FLD0
V
EE
P10
7
/AN7
P10
6
/AN6
P10
5
/AN5
P10
4
/AN4
P10
3
/AN3
P10
2
/AN2
P10
1
/AN1
AV
SS
P10
0
/AN0
V
REF
AV
CC
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
P5
0
/FLD8
P5
1
/FLD9
P5
2
/FLD10
P5
3
/FLD11
P5
4
/FLD12
P5
5
/FLD13
P5
6
/FLD14
P5
7
/FLD15
P0
0
/FLD16
P0
1
/FLD17
P0
2
/FLD18
P0
3
/FLD19
P0
4
/FLD20
P0
5
/FLD21
P0
6
/FLD22
V
SS
P0
7
/FLD23
V
CC
P1
0
/FLD24
P1
1
/FLD25
P1
2
/FLD26
P1
3
/FLD27
P1
4
/FLD28
P1
5
/FLD29
P1
6
/FLD30
P1
7
/FLD31
P2
0
/FLD32
P2
1
/FLD33
P2
2
/FLD34
P2
3
/FLD35
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
26
27
28
29
30
50
49
48
47
46
45
44
43
42
41
40
39
38
37
36
35
34
33
32
31
M30218MC-AXXXFP
P2
4
/FLD36
P2
5
/FLD37
P2
6
/FLD38
P2
7
/FLD39
P3
0
/FLD40
P3
1
/FLD41
P3
2
/FLD42
P3
3
/FLD43
P3
4
/FLD44
P3
5
/FLD45
P3
6
/FLD46
P3
7
/FLD47
P4
0
/FLD48
P4
1
/FLD49
P4
2
/FLD50
P4
3
/FLD51
P4
4
/T
X
D0/FLD52
P4
5
/R
X
D0/FLD53
P4
6
/CLK0/FLD54
P47/CTS0/RTS0/FLD55
P9
7
/DA0/CLK
OUT
/DIM
OUT
P9
6
/DA1/SCLK22
P9
5
/SCLK21
P9
4
/S
OUT
2
P9
3
/S
IN2
P9
2
/SSTB2
P9
1
/SBUSY2
P9
0
/SRDY2
CNV
SS
P8
7
/X
CIN
P8
6
/X
COUT
RESET
X
OUT
V
SS
X
IN
V
CC
P8
5
/INT5
P8
4
/INT4
P8
3
/INT3
P8
2
/INT2
P8
1
/INT1
P8
0
/INT0
Package:100P6S-A
FigureAA-1. Pin configuration (top view)
2
P7
7
/TA4
IN
/TA2
OUT
/CTS1/RTS1/CLKS1
P7
6
/TA3
IN
/TA1
OUT
/CLK1
P7
5
/TA2
IN
/TA0
OUT
/R
X
D1
P7
4
/TA1
IN
/TA4
OUT
/T
X
D1
P7
3
/TA0
IN
/TA3
OUT
P7
2
/TB2
IN
P7
1
/TB1
IN
P7
0
/TB0
IN
Mitsubishi microcomputers
Description
M30218 Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Block Diagram
Figure AA-2 is a block diagram of the M30218 group.
Block diagram of the M30218 group
8
8
8
8
8
8
8
I/O ports
Port P0
Port P1
Port P2
Port P3
Port P4
Port P5
Port P6
Port P7
Internal peripheral functions
Timer
A-D converter
bits)
bits)
bits)
bits)
bits)
bits)
bits)
bits)
(10 bits
X
Timer
Timer
Timer
Timer
Timer
Timer
Timer
Timer
TA0
TA1
TA2
TA3
TA4
TB0
TB1
TB2
(16
(16
(16
(16
(16
(16
(16
(16
8 channels
)
System clock generator
X
IN
-X
OUT
X
CIN
-X
COUT
CRC arithmetic circuit (CCITT)
(Polynomial : X
16
+X
12
+X
5
+1)
Fluorescent display function
(56 contorol pins)
(52 high-breakdown-voltage ports)
8
Port P8
Serial I/O
UART/clock synchronous SI/O
8
(8 bits
X
2 channels)
SI/O2 (clock
synchronous
)
(256 bytes automatic transfer)
Port P9
M16C/60 series16-bit CPU core
Registers
Program counter
PC
Memory
ROM
(Note 1)
RAM (Note 2)
(includes FLDC,ASI/O RAM)
8
Watchdog timer
(15 bits)
DMAC
(2 channels)
D-A converter
(8 bits X 2 channels)
R0H
R0L
R0H
R0L
R1
R1L
R1H
R1L
R
H
R2
R
2
R3
A0
3
A0
A1
A1
FB
FB
SB
Vector table
INTB
Port P10
Stack pointer
8
ISP
USP
FLG
Multiplier
Note 1: ROM size depends on MCU type.
Note 2: RAM size depends on MCU type.
FigureAA-2. Block diagram of M30218 group
3
Mitsubishi microcomputers
Description
M30218 Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Performance Outline
Table AA-1 is a performance outline of M30218 group.
Table AA-1. Performance outline of M30218 group
Item
Number of basic instructions
Shortest instruction execution time
Memory
ROM
capacity
RAM
I/O port
P3, P4, P7 to P10
Output port
P0 to P2, P5, P6
Multifunction
timer
Serial I/O
TA0, TA1, TA2, TA3, TA4
TB0, TB1, TB2
UART0, UART1
SI/O2
Performance
91 instructions
100ns(f(X
IN
)=10MHz)
See figure memory expansion
See figure memory expansion
8 bits x 6
8 bit x 5
16 bits x 5
16 bits x 3
(UART or clock synchronous) x 2
(Clock synchronous) x 1 (with automatic transfer function)
56 pins
10 bits x 8 channels
8 bits x 2
2 channels (triggers :15 sources)
1 circuit (polynomial: X
16
+ X
12
+ X
5
+ 1)
15 bits x 1 (with prescaler)
19 internal and 6 external sources, 4 software sources, 7 levels
2 built-in clock generation circuits
(built-in feedback resistor, and external ceramic or quartz oscillator)
4.0 to 5.5V (f(X
IN
)=10MHz)
2.7 to 5.5V (f(X
IN
)=3.5MHz) (Note)
18 mW (V
CC
=3V, f(X
IN
)=5MHz)
V
CC
-48V (output ports : P0 to P2, P5, P6, I/O ports : P3, P4
0
to P4
3
)
0 to V
CC
(I/O ports :P4
4
to P4
7
, P7 to P10)
- 18mA (P0 to P3, P4
0
to P4
3
, P5, P6)
:high-breakdown-voltage, P-channel open-drain
- 5mA (P4
4
to P4
7
, P7 to P10)
5mA (P4
4
to P4
7
, P7 to P10)
–20 to 85
o
C
CMOS silicon gate
100-pin plastic mold QFP
Fluorescent display
A-D converter
D-A converter
DMAC
CRC calculation circuit
Watchdog timer
Interrupt
Clock generating circuit
Supply voltage
Power consumption
I/O withstand voltage
I/O
characteristics
Output current
H
L
Operating ambient temperature
Device configuration
Package
Note: Only mask ROM version.
4