Under
development
Mitsubishi microcomputers
M30201 Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Description
1
------Table of Contents------
Description
The M30201 group of single-chip microcomputers are built using the high-performance silicon gate CMOS
process using a M16C/60 Series CPU core. M30201 group is packaged in a 52-pin plastic molded SDIP, or
56-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 execut-
ing instructions at high speed.
The M30201 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 1.4. ROM expansion.)
• Shortest instruction execution time ...... 100ns (f(X
IN
)=10MHz)
• Supply voltage ..................................... 4.0 to 5.5V (f(X
IN
)=10MHz) :mask ROM version
2.7 to 5.5V (f(X
IN
)=7MHz with software one-wait):mask ROM
version
4.0 to 5.5V (f(X
IN
)=10MHz) :flash memory version
• Interrupts .............................................. 9 internal and 3 external interrupt sources, 4 software
(including key input interrupt)
• Multifunction 16-bit timer ...................... Timer A x 1, timer B x 2, timer X x 3
• Clock output
• Serial I/O .............................................. 1 channel for UART or clock synchronous, 1 for UART
• A-D converter ....................................... 10 bits X 8 channels (Expandable up to 13 channels)
• Watchdog timer .................................... 1 line
• Programmable I/O ............................... 43 lines
• LED drive ports .................................... 8 ports
• Clock generating circuit ....................... 2 built-in clock generation circuits
(built-in feedback resistor, and external ceramic or quartz oscillator)
Applications
Home appliances, Audio, office equipment, Automobiles
Timer ............................................................. 37
Serial I/O ....................................................... 64
A-D Converter ............................................... 78
Programmable I/O Ports ............................... 88
Electric Characteristics ................................. 95
Flash Memory version ................................. 126
Central Processing Unit (CPU) ..................... 12
Reset ............................................................. 15
Clock Generating Circuit ............................... 19
Protection ...................................................... 26
Interrupts ....................................................... 27
Watchdog Timer ............................................ 35
Specifications written in this manual are believed to
be accurate, but are not guaranteed to be entirely
free of error.
Specifications in this manual may be changed for
functional or performance improvements. Please
make sure your manual is the latest edition.
Under
development
Mitsubishi microcomputers
M30201 Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Description
2
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
52
51
50
49
48
47
46
45
44
43
42
41
40
39
38
37
36
35
34
33
32
31
30
29
28
27
P6
3
/AN
3
P6
2
/AN
2
P6
1
/AN
1
P6
0
/AN
0
V
REF
X
IN
X
OUT
P5
0
/T
X
D
0
/AN
50
P6
7
/AN
7
P6
6
/AN
6
P6
5
/AN
5
P6
4
/AN
4
V
SS
RESET
V
CC
CNV
SS
P5
1
/R
X
D
0
/AN
51
P5
2
/CLK
0
/AN
52
AV
SS
P4
5
/TX2
INOUT
P7
0
/TB0
IN
/X
COUT
P7
1
/TB1
IN
/X
CIN
P5
4
/CK
OUT
/AN
54
P5
3
/CLKS/AN
53
AV
CC
P0
7
/KI
7
P0
6
/KI
6
P0
5
/KI
5
P0
4
/KI
4
P0
3
/KI
3
P0
2
/KI
2
P0
1
/KI
1
P1
0
(LED
0
)
P1
1
(LED
1
)
P1
2
(LED
2
)
P1
3
(LED
3
)
P1
4
(LED
4
)
P1
5
(LED
5
)
P1
6
(LED
6
)
P1
7
(LED
7
)
M30201MX-XXXSP
M30201MXT-XXXSP
M30201F6SP
M30201F6TSP
P0
0
/KI
0
P3
0
P3
1
P3
2
P3
3
P3
4
P3
5
P4
0
/TA0
IN
/T
X
D
1
P4
1
/TA0
OUT
P4
2
/R
X
D
1
P4
4
/INT
1
/TX1
INOUT
P4
3
/INT
0
/TX0
INOUT
Pin Configuration
Figures 1.1 to 1.2 show the pin configurations (top view).
PIN CONFIGURATION (top view)
Package: 52P4B
Figure 1.1. Pin configuration for the M30201 group (shrink DIP product) (top view)
Under
development
Mitsubishi microcomputers
M30201 Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Description
3
X
IN
X
OUT
P5
0
/T
X
D
0
/AN
50
P6
7
/AN
7
V
SS
RESET
V
CC
CNV
SS
P5
1
/R
X
D
0
/AN
51
P5
2
/CLK
0
/AN
52
P4
5
/TX2
INOUT
P7
1
/TB1
IN
/X
CIN
P7
0
/TB0
IN
/X
COUT
P4
1
/TA0
OUT
P4
0
/TA0
IN
/T
X
D
1
P4
2
/R
X
D
1
P5
4
/CK
OUT
/AN
54
P5
3
/CLKS/AN
53
V
REF
P6
0
/AN
0
P6
1
/AN
1
AV
SS
AV
CC
P1
0
(LED
0
)
P1
4
(LED
4
)
M30201MX-XXXFP
M30201MXT-XXXFP
M30201F6FP
M30201F6TFP
N.C.
N.C.
N.C.
N.C.
P0
0
/KI
0
P6
2
/AN
2
P6
3
/AN
3
P6
4
/AN
4
P6
5
/AN
5
P6
6
/AN
6
P0
1
/KI
1
P0
2
/KI
2
P0
3
/KI
3
P0
4
/KI
4
P0
5
/KI
5
P0
6
/KI
6
P0
7
/KI
7
P1
1
(LED
1
)
P1
2
(LED
2
)
P1
3
(LED
3
)
P1
5
(LED
5
)
P1
6
(LED
6
)
P1
7
(LED
7
)
P3
0
P3
1
P3
2
P3
3
P3
4
P3
5
P4
4
/INT
1
/TX1
INOUT
P4
3
/INT
0
/TX0
INOUT
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
52
51
50
49
48
47
46
45
44
43
42
41
40
39
38
37
36
35
34
33
32
31
30
29
56
55
54
53
27
28
Figure 1.2. Pin configuration for the M30201 group (QFP product) (top view)
Package: 56P6S-A
PIN CONFIGURATION (top view)
Under
development
Mitsubishi microcomputers
M30201 Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Description
4
Figure 1.3. Block diagram for the M30201 group
Timer
Timer TA0 (16 bits)
Timer TB0 (16 bits)
Timer TB1 (16 bits)
Timer TX0 (16 bits)
Timer TX1 (16 bits)
Timer TX2 (16 bits)
Internal peripheral functions
Watchdog timer
(15 bits)
A-D converter
(10 bits
X
8 channels
Expandable up to 13 channels)
UART/clock synchronous SI/O
(8 bits
X
1 channel)
System clock generator
X
IN
-X
OUT
X
CIN
-X
COUT
M16C/60 series16-bit CPU core
I/O ports
Port P0
8
Port P1
8
Port P3
6
Port P4
6
Port P5
5
Port P6
8
R0L
R0H
R1H
R1L
R2
R3
A0
A1
FB
R0L
R0H
R1H
R1L
R2
R3
A0
A1
FB
Registers
ISP
USP
Stack pointer
Vector table
INTB
UART
(8 bits
X
1 channel)
Multiplier
2
Port P7
Memory
ROM
(Note 1)
RAM
(Note 2)
SB
FLG
PC
Program counter
Note 1: ROM size depends on MCU type.
Note 2: RAM size depends on MCU type.
Block Diagram
Figure 1.3 is a block diagram of the M30201 group.
Under
development
Mitsubishi microcomputers
M30201 Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Description
5
Table 1.1. Performance outline of M30201 group
Performance Outline
Table 1.1 is performance outline of M30201 group.
Item
Performance
Number of basic instructions
91 instructions
Shortest instruction execution time
100ns (f(X
IN
)=10MHz
Memory
ROM
(See figure 4. ROM expansion.)
capacity
RAM
(See figure 4. ROM expansion.)
I/O port
P0 to P7
43 lines
Multifunction
TA0
16 bits x 1
timer
TB0, TB1
16 bits x 2
TX0, TX1, TX2
16 bits x 3
Serial I/O
UART0
(UART or clock synchronous) x 1
UART1
UART x 1
A-D converter
10 bits x 8 channels (Expandable up to 13 channels)
Watchdog timer
15 bits x 1 (with prescaler)
Interrupt
9 internal and 3 external sources, 4 software sources
Clock generating circuit
2 built-in clock generation circuits
(built-in feedback resistor, and external ceramic or
quartz oscillator)
Supply voltage
4.0 to 5.5V (f(X
IN
)=10MHz) :mask ROM version
2.7 to 5.5V (f(X
IN
)=7MHz with software one-wait) :mask
ROM version
4.0 to 5.5V (f(X
IN
)=10MHz) :flash memory version
Power consumption
18mW (f(X
IN
)=7MHz with software one-wait, Vcc=3V)
:mask ROM version
95mW (f(X
IN
)=10MHz no wait, Vcc=5V) :flash memory version
I/O
I/O withstand voltage
5V
characteristics Output current
5mA (15mA:LED drive port)
Device configuration
CMOS silicon gate
Package
52-pin plastic mold SDIP
56-pin plastic mold QFP
Under
development
Mitsubishi microcomputers
M30201 Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Description
6
Mitsubishi plans to release the following products in the M30201 group:
(1) Support for mask ROM version and flash memory version
(2) ROM capacity
(3) Package
52P4B
: Plastic molded SDIP (mask ROM version and flash memory version)
56P6S-A
: Plastic molded QFP (mask ROM version and flash memory version)
RAM Size
(Byte)
1K
16K
32K
M30201M4-XXXSP/FP
M30201M4T-XXXSP/FP
512
ROM Size
(Byte)
M30201M2-XXXSP/FP
M30201M2T-XXXSP/FP
Under development
Under planning
2K
M30201F6SP/FP
M30201F6TSP/FP
48K
Under development
Figure 1.4. ROM expansion
July 1998
Package type:
SP : Package
52P4B
FP : Package
56P6S-A
ROM No.
Omitted for flash memory version
Shows difference of characteristics
and usage etc:
Nothing : Common
T
: Automobiles
Memory type:
M : Mask ROM version
F : Flash memory version
Type No. M 3 0 2 0 1 M 4 T – X X X S P
M16C/20 Group
M16C Family
Shows pin count, etc
(The value itself has no specific meaning)
ROM capacity:
2 : 16K bytes
4 : 32K bytes
6 : 48K bytes
Figure 1.5. Type No., memory size, and package
Pin Description
Under
development
Mitsubishi microcomputers
M30201 Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
7
V
CC
, V
SS
CNV
SS
X
IN
X
OUT
AV
CC
AV
SS
V
REF
P0
0
to P0
7
P1
0
to P1
7
P3
0
to P3
5
P4
0
to P4
5
Signal name
Power supply
input
CNV
SS
Reset input
Clock input
Clock output
Analog power
supply input
Reference
voltage input
I/O port P0
I/O port P1
I/O port P3
I/O port P4
Supply 2.7 to 5.5 V to the V
CC
pin. Supply 0 V to the V
SS
pin.
Function
Connect it to the V
SS
pin.
A “L” on this input resets the microcomputer.
These pins are provided for the main clock generating circuit.
Connect a ceramic resonator or crystal between the X
IN
and the
X
OUT
pins. To use an externally derived clock, input it to the
X
IN
pin and leave the X
OUT
pin open.
This pin is a power supply input for the A-D converter. Connect
it to V
CC
.
This pin is a power supply input for the A-D converter. Connect
it to V
SS
.
This pin is a reference voltage input for the A-D converter.
This is an 8-bit CMOS I/O port. It has an input/output port
direction register that allows the user to set each pin for input or
output individually. When set for input, the user can specify in
units of four bits via software whether or not they are tied to a
pull-up resistor.
This is an 8-bit I/O port equivalent to P0.
This is a 6-bit I/O port equivalent to P0.
This is a 6-bit I/O port equivalent to P0. The P4
0
pin is shared
with timer A0 input and serial I/O output TxD1. The P4
1
pin is
shared with timer A0 output. The P4
2
pin is shared with serial
I/O input RxD1. The P4
3
pin is shared with external interrupt
INT0 and timer X0 input/output TX0
INOUT
. The P4
4
pin is
shared with external interrupt INT1 and timer X1 input/output
TX1
INOUT
. The P4
5
pin is shared with timer X2 input/output
TX2
INOUT
.
Pin name
Input
Input
Input
Output
Input
Input/output
Input/output
I/O type
Analog power
supply input
Input/output
Input/output
RESET
I/O port P5
Input/output
Input/output
Input/output
I/O port P6
I/O port P7
P5
0
to P5
4
P6
0
to P6
7
P7
0
to P7
1
This is a 5-bit I/O port equivalent to P0. The P5
0
, P5
1
, P5
2
, and
P5
3
pins are shared with serial I/O pins TxD
0
, RxD
0
, CLK
0
,
and CLKS. The P5
4
pin is shared with clock output CLK
OUT
.
Also, these pins are shared with analog input pins AN
50
through AN
54
.
This is an 8-bit I/O port equivalent to P0. These pins are shared
with analog input pins AN
0
through AN
7
.
This is a 2-bit I/O port equivalent to P0 . These pins are used
for input/output to and from the oscillator circuit for the clock.
Connect a crystal oscillator between the X
CIN
and the X
COUT
pins.
Pin Description
Under
development
Mitsubishi microcomputers
M30201 Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Memory
8
Operation of Functional Blocks
The M30201 accommodates certain units in a single chip. These units include ROM and RAM to store
instructions and data and the central processing unit (CPU) to execute arithmetic/logic operations. Also
included are peripheral units such as timers, serial I/O, A-D converter, and I/O ports.
The following explains each unit.
Memory
Figure 1.6 is a memory map of the M30201. The address space extends the 1M bytes from address
00000
16
to FFFFF
16
. From FFFFF
16
down is ROM. For example, in the M30201M4-XXXFP, there is 32K
bytes of internal ROM from F8000
16
to FFFFF
16
. The vector table for fixed interrupts such as the reset are
mapped to FFFDC
16
to FFFFF
16
. The starting address of the interrupt routine is stored here. The address
of the vector table for timer interrupts, etc., can be set as desired using the internal register (INTB). See the
section on interrupts for details.
From 00400
16
up is RAM. For example, in the M30201M4-XXXFP, there is 1K byte of internal RAM from
00400
16
to 007FF
16
. In addition to storing data, the RAM also stores the stack used when calling subrou-
tines and when interrupts are generated.
The SFR area is mapped to 00000
16
to 003FF
16
. This area accommodates the control registers for periph-
eral devices such as I/O ports, A-D converter, serial I/O, and timers, etc. Any part of the SFR area that is not
occupied is reserved and cannot be used for other purposes.
The special page vector table is mapped to FFE00
16
to FFFDB
16
. If the starting addresses of subroutines
or the destination addresses of jumps are stored here, subroutine call instructions and jump instructions
can be used as 2-byte instructions, reducing the number of program steps.
Figure 1.6. Memory map
00000
16
YYYYY
16
FFFFF
16
00400
16
XXXXX
16
Internal ROM area
SFR area
For details, see
Figures 1.7 to 1.8
Internal RAM area
FFE00
16
FFFDC
16
FFFFF
16
Undefined instruction
Overflow
BRK instruction
Address match
Single step
Watchdog timer
Reset
Special page
vector table
DBC
Address
XXXXX
16
007FF
16
F8000
16
005FF
16
FC000
16
M30201M2
M30201M4
Type No.
Address
YYYYY
16
00BFF
16
F4000
16
M30201F6
Under
development
Mitsubishi microcomputers
M30201 Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Memory
9
0000
16
0001
16
0002
16
0003
16
0004
16
0005
16
0006
16
0007
16
0008
16
0009
16
000A
16
000B
16
000C
16
000D
16
000E