Mitsubishi microcomputers
M16C / 62 Group (80-pin)
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Description
1
------Table of Contents------
Description
The M16C/62 (80-pin version) 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 80-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 office, communi-
cations, industrial equipment, and other high-speed processing applications.
The M16C/62 (80-pin version) group includes a wide range of products with different internal memory types
and sizes and various package types.
Features
• Memory capacity .................................. ROM (See Figure 1.1.4. ROM Expansion)
RAM 3K to 20K bytes
• Shortest instruction execution time ...... 62.5ns (f(X
IN
)=16MH
Z
, V
CC
=5V)
100ns (f(X
IN
)=10MH
Z
, V
CC
=3V, with software one-wait) : Mask ROM, flash memory 5V version
142.9ns (f(X
IN
)=7MH
Z
, V
CC
=3V, with software one-wait) : One-time PROM version
• Supply voltage ..................................... 4.2 to 5.5V (f(X
IN
)=16MH
Z
, without software wait) : Mask ROM, flash memory 5V version
4.5 to 5.5V (f(X
IN
)=16MH
Z
, without software wait) : One-time PROM version
2.7 to 5.5V (f(X
IN
)=10MH
Z
with software one-wait) : Mask ROM, flash memory 5V version
2.7 to 5.5V (f(X
IN
)=7MH
Z
with software one-wait) : One-time PROM version
• Low power consumption ...................... 25.5mW ( f(X
IN
)=10MH
Z
, with software one-wait, V
CC
= 3V)
• Interrupts .............................................. 25 internal and 5 external interrupt sources, 4 software
interrupt sources; 7 levels (including key input interrupt)
• Multifunction 16-bit timer ...................... 5 output timers + 6 input timers (3 for timer function only)
• Serial I/O .............................................. 5 channels (2 for UART or clock synchronous, 1 for UART, 2 for clock synchronous)
• DMAC .................................................. 2 channels (trigger: 24 sources)
• A-D converter ....................................... 10 bits X 8 channels (Expandable up to 10 channels)
• D-A converter ....................................... 8 bits X 2 channels
• CRC calculation circuit ......................... 1 circuit
• Watchdog timer .................................... 1 line
• Programmable I/O ............................... 70 lines
• Input port ..............................................
_______
1 line (P8
5
shared with NMI pin)
• Clock generating circuit ....................... 2 built-in clock generation circuits
(built-in feedback resistor, and external ceramic or quartz oscillator)
Note: Memory expansion mode and microprocessor mode are not supported.
Applications
Audio, cameras, office equipment, communications equipment, portable equipment
Timer ............................................................. 68
Serial I/O ....................................................... 86
A-D Converter ............................................. 126
D-A Converter ............................................. 136
CRC Calculation Circuit .............................. 138
Programmable I/O Ports ............................. 140
Electric Characteristics ............................... 154
Flash memory version ................................. 192
About the M16C/62 (80-pin version) group ..... 7
Central Processing Unit (CPU) ..................... 11
Reset ............................................................. 14
Processor Mode ............................................ 21
Clock Generating Circuit ............................... 26
Protection ...................................................... 35
Interrupts ....................................................... 36
Watchdog Timer ............................................ 56
DMAC ........................................................... 58
Description
Mitsubishi microcomputers
M16C / 62 Group (80-pin)
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
56
P4
2
P4
3
P5
6
P5
5
P5
4
P5
3
P5
2
P5
7
/CLK
OUT
P6
3
/T
X
D
0
P6
5
/CLK
1
P6
6
/RxD
1
P6
7
/T
X
D
1
P6
1
/CLK
0
P6
2
/RxD
0
P6
0
/CTS
0
/RTS
0
P6
4
/CTS
1
/RTS
1
/CTS
0
/CLKS
1
P7
1
/RxD
2
/SCL/TA0
IN
/TB5
IN
P5
0
P5
1
P7
0
/TxD
2
/SDA/TA0
OUT
P2
0
P2
1
P2
2
P2
3
P2
4
P2
5
P2
6
P2
7
P3
0
P3
1
P3
2
P3
3
P3
4
P3
5
P3
6
P3
7
P4
0
P4
1
V
CC
X
IN
X
OUT
V
SS
RESET
CNVss(BYTE)
P8
7
/X
CIN
P8
6
/X
COUT
P7
6
/TA3
OUT
P7
7
/TA3
IN
P9
3
/DA
0
/TB3
IN
P9
4
/DA
1
/TB4
IN
P9
5
/ANEX0/CLK4
P9
2
/TB2
IN
/S
OUT
3
P8
2
/INT
0
P8
3
/INT
1
P8
1
/TA4
IN
P8
4
/INT
2
P8
0
/TA4
OUT
P8
5/
NMI
P0
0
P0
1
P0
2
P0
3
P0
4
P0
5
P0
6
P0
7
V
REF
AV
SS
AVcc
P10
0
/AN
0
P10
1
/AN
1
P10
2
/AN
2
P10
3
/AN
3
P10
4
/AN
4/
KI0
P10
5
/AN
5
/KI1
P10
6
/AN
6
/KI2
P10
7
/AN
7
/KI3
P9
6
/ANEX1/S
OUT
4
P9
7
/AD
TRG
/S
IN
4
P9
0
/TB0
IN
/CLK3
Pin Configuration
Figures 1.1.1 show the pin configurations (top view).
PIN CONFIGURATION (top view)
Package: 80P6S-A
Figure 1.1.1. Pin configuration (top view)
M16C/62 Group (80-pin version)
Mitsubishi microcomputers
M16C / 62 Group (80-pin)
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Description
3
Block Diagram
Figure 1.1.2 is a block diagram of the M16C/62 (80-pin version) group.
Block diagram of the M16C/62 (80-pin version) group
Timer
Timer TA0 (16 bits)
Timer TA1 (16 bits)
Timer TA2 (16 bits)
Timer TA3 (16 bits)
Timer TA4 (16 bits)
Timer TB0 (16 bits)
Timer TB1 (16 bits)
Timer TB2 (16 bits)
Timer TB3 (16 bits)
Timer TB4 (16 bits)
Timer TB5 (16 bits)
Internal peripheral functions
Watchdog timer
(15 bits)
DMAC
(2 channels)
D-A converter
(8 bits X 2 channels)
A-D converter
(10 bits
X
8 channels
Expandable up to 10 channels)
UART/clock synchronous SI/O
(8 bits
X
3 channels)(Note 3)
System clock generator
X
IN
-X
OUT
X
CIN
-X
COUT
M16C/60 series16-bit CPU core
I/O ports
Port P0
8
Port P2
8
Port P3
8
Port P4
4
Port P5
8
Port P6
8
4
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
CRC arithmetic circuit (CCITT )
(Polynomial : X
16
+X
12
+X
5
+1)
Multiplier
7
7
8
Port P10
Port P9
Port P8
Port P7
Memory
Port P8
5
ROM
(Note 1)
RAM
(Note 2)
Note 1: ROM size depends on MCU type.
Note 2: RAM size depends on MCU type.
Note 3: One of three channels is used for UART and IIC mode only.
SB
FLG
PC
Program counter
Clock synchronous SI/O
(8 bits
X
2 channels)
Flag register
Figure 1.1.2. Block diagram of M16C/62 (80-pin version) group
Description
Mitsubishi microcomputers
M16C / 62 Group (80-pin)
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
4
Item
Performance
Number of basic instructions
91 instructions
Shortest instruction execution time
62.5ns(f(X
IN
)=16MH
Z
, V
CC
=5V)
100ns (f(X
IN
)=10MH
Z
, V
CC
=3V, with software one-wait)
: Mask ROM, flash memory 5V version
142.9ns (f(X
IN
)=7MH
Z
, V
CC
=3V, with software one-wait)
: One-time PROM version
Memory
ROM
(See the figure 1.1.3. ROM Expansion)
capacity
RAM
3K to 20K bytes
I/O port
P0 to P10 (except P8
5
)
8 bits x 10, 7 bits x 1
Input port
P8
5
1 bit x 1
Multifunction
TA0, TA3, TA4
16 bits x 3 (timer mode, internal/external event count,
timer
one-shot timer mode and pulse width measurement mode)
TB0, TB2, TB3, TB4, TB5
16 bits x 5 (timer mode, internal/external event count
and pulse period/pulse width measurement mode)
TA1, TA2
16 bits x 2 (timer mode, internal event count and
a trigger through one-shot timer mode occurs.)
TB1
16 bits x 1 (timer mode and internal event count)
Serial I/O
UART0, UART1, UART2
(UART or clock synchronous) x 2, UART x 1(UART2)
SI/O3, SI/O4
(Clock synchronous) x 2 (SI/O3 is output only)
A-D converter
10 bits x (8 + 2) channels
D-A converter
8 bits x 2
DMAC
2 channels (trigger: 24 sources)
CRC calculation circuit
CRC-CCITT
Watchdog timer
15 bits x 1 (with prescaler)
Interrupt
25 internal and 5 external sources, 4 software sources, 7 levels
Clock generating circuit
2 built-in clock generation circuits
(built-in feedback resistor, and external ceramic or quartz oscillator)
Supply voltage
4.2 to 5.5V (f(X
IN
)=16MH
Z
, without software wait)
: Mask ROM, flash memory 5V version
4.5 to 5.5V (f(X
IN
)=16MH
Z
, without software wait)
: One-time PROM version
2.7 to 5.5V (f(X
IN
)=10MH
Z
with software one-wait)
: Mask ROM, flash memory 5V version
2.7 to 5.5V (f(X
IN
)=7MH
Z
with software one-wait)
: One-time PROM version
Power consumption
25.5mW (f(X
IN
) = 10MH
Z
, V
CC
=3V with software one-wait)
I/O
I/O withstand voltage
5V
characteristics Output current
5mA
Device configuration
CMOS high performance silicon gate
Package
100-pin plastic mold QFP
Note : M16C/62 (80-pin version) group does not support memory expansion or microprocessor mode.
Table 1.1.1. Performance outline of M16C/62 (80-pin version) group
Performance Outline
Table 1.1.1 is a performance outline of M16C/62 (80-pin version) group.
Mitsubishi microcomputers
M16C / 62 Group (80-pin)
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Description
5
Mitsubishi plans to release the following products in the M16C/62 (80-pin version) group:
(1) Support for mask ROM version, one-time PROM version and flash memory version
(2) ROM capacity
(3) Package
80P6S-A
: Plastic molded QFP (mask ROM, one-time PROM, and flash memory versions)
The M16C/62 (80-pin version) group products currently supported are listed in Table 1.1.2.
ROM Size
(Byte)
External
ROM
128K
96K
64K
32K
Mask ROM version
One-time PROM version
Flash memory version
256K
External ROM version
M30623M8-XXXGP
M30623MA-XXXGP
M30623MC-XXXGP
M30621MC-XXXGP
M30621M8-XXXGP
M30621ECGP
M30623M4-XXXGP
M30621MA-XXXGP
M30625MG-XXXGP
M30625FGGP
M30625FGLGP
80K
RAM capacity
ROM capacity
Package type
Remarks
Type No
As of December 1999
mask ROM version
One-time PROM version
Flash memory 5V version
Flash memory 3V version
M30623M8-XXXGP
64 Kbytes
4 Kbytes
80P6S-A
128 Kbytes
M30621M8-XXXGP
M30625MG-XXXGP
96 Kbytes
5 Kbytes
M30623MA-XXXGP
M30623MC-XXXGP
80P6S-A
80P6S-A
80P6S-A
80P6S-A
5 Kbytes
256 Kbytes
64 Kbytes
10 Kbytes
20 Kbytes
80P6S-A
10 Kbytes
128 Kbytes
M30621ECGP
M30623M4-XXXGP
32 Kbytes
3 Kbytes
80P6S-A
96 Kbytes
10 Kbytes
M30621MA-XXXGP
80P6S-A
M30621MC-XXXGP
80P6S-A
128 Kbytes
10 Kbytes
M30625FGGP
80P6S-A
256 Kbytes
20 Kbytes
M30625FGLGP
80P6S-A
256 Kbytes
20 Kbytes
Table 1.1.2. M16C/62 (80-pin version) group
Figure 1.1.3. ROM expansion
Description
Mitsubishi microcomputers
M16C / 62 Group (80-pin)
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
6
Package type:
GP : Package
80P6S-A
ROM No.
Omitted for blank one-time PROM version,
EPROM version and flash memory version
ROM capacity:
4 : 32K bytes
8 : 64K bytes
A : 96K bytes
C : 128K bytes
G: 256K bytes
Memory type:
M : Mask ROM version
E : EPROM or one-time PROM version
S : External ROM version
F : Flash memory version
Type No. M 3 0 6 2 3 M 8 – X X X F P
M16C/62 Group
M16C Family
Shows RAM capacity, pin count, etc
(The value itself has no specific meaning)
Figure 1.1.4. Type No., memory size, and package
Mitsubishi microcomputers
M16C / 62 Group (80-pin)
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Description
7
About the M16C/62 (80-pin version) group
The M16C/62 (80-pin version) group is packaged in a 80-pin plastic mold package. The number of pins in
comparison with the 100-pin package products is decreased. So be careful about the following.
(a) The M16C/62 (80-pin version) group supports single chip mode alone. It supports neither memory
expansion mode nor microprocessor mode.
(b) The input/output ports given below are absent from the M16C/62 (80-pin version) group. To stabi-
lize the internal state, set to output mode the direction register of each input/output port. Failing in
setting to output mode involves an increase in current consumption.
<Pins absent from the 80-pin version>
P1
0
to P1
7
, P4
4
to P4
7
, P7
2
to P7
5
, P9
1
(c) INT3 to INT5 allocated to P1
5
to P1
7
cannot be used. Keep the INT3 interrupt control register
disabled for interrupts. The INT4 interrupt control register and the INT5 interrupt control register
are shared with SI/O3 and SI/O4. When the user don’t use them as SI/O3 and SI/4, set them
disabled for interrupts.
(d) The output pins of timers A1 and A2 - TA1
IN
, TA1
OUT
, TA2
IN
and TA2
OUT
- allocated to P7
2
to P7
5
cannot be used. In connection with this, the gate function and pulse outputting function of timers A1
and A2 cannot be used. Use timer mode and internal event count, or use as trigger signal genera-
tion in one-shot timer mode.
______
______
(e) The UART2 input/output pins - CLK2 and CTS/RTS - allocated to P7
2
and P7
3
cannot be used. In
connection with this, UART2 solely as UART of the internal clock can be used.
(f) The input pin TB1
IN
of timer B1 allocated to P9
1
cannot be used. With timer B1 under this state, use
only timer mode or the internal event count.
(g) The input pin S
IN3
of serial I/O3 allocated to P9
1
cannot be used. In connection with this, use serial
I/O3 as a serial I/O exclusive to transmission.
(h) The output pins for three-phase motor control allocated to P7
2
to P7
5
cannot be used. So set to 0
(ordinary mode) the mode select bit (bit 2) of three-phase PWM control register 0.
Pin Description
Mitsubishi microcomputers
M16C / 62 Group (80-pin)
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
8
V
CC
, V
SS
CNV
SS
X
IN
X
OUT
(BYTE)
AV
CC
AV
SS
V
REF
P0
0
to P0
7
P2
0
to P2
7
P3
0
to P3
7
P4
0
to P4
3
Signal name
Power supply
input
CNV
SS
Reset input
Clock input
Clock output
External data
bus width
select input
Analog power
supply input
Reference
voltage input
I/O port P0
I/O port P2
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
This pin switches between processor modes. 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 connected to CNVss in microcomputer. Connect this pin to
V
SS
.
This pin is a power supply input for the A-D converter. Connect this
pin to V
CC
.
This pin is a power supply input for the A-D converter. Connect this
pin 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 an 8-bit I/O port equivalent to P0.
This is an 4-bit I/O port equivalent to P0.
Pin name
I
I
I
O
I
I
I/O
I/O
I/O
Analog power
supply input
I/O
I/O
RESET
I/O port P5
I/O
I/O
I/O
I/O
I/O
I
I/O port P6
I/O port P7
I/O port P8
I/O port P8
5
P5
0
to P5
7
P6
0
to P6
7
P7
0
, P7
1
,
P7
6
, P7
7
P8
0
to P8
4
,
P8
6
,P8
7
,
P8
5
This is an 8-bit I/O port equivalent to P0. In single-chip mode, P5
7
in
this port outputs a divide-by-8 or divide-by-32 clock of X
IN
or a clock of
the same frequency as X
CIN
as selected by software.
This is an 8-bit I/O port equivalent to P0. Pins in this port also function
as UART0 and UART1 I/O pins as selected by software.
This is an 4-bit I/O port equivalent to P0 (P7
0
and P7
1
are N channel
open-drain output). Pins in this port also function as timer A
0
–A
3
,
timer B5 or UART2 I/O pins as selected by software.
P8
0
to P8
4
, P8
6
, and P8
7
are I/O ports with the same functions as P0.
Using software, they can be made to function as the I/O pins for timer
A4 and the input pins for external interrupts.
P8
6
and P8
7
can be set using software to function as the I/O pins for a
sub clock generation circuit. In this case, connect a quartz oscillator
between P8
6
(X
COUT
pin) and P8
7
(X
CIN
pin).
P8
5
is an input-only port that also functions for NMI. The NMI interrupt
is generated when the input at this pin changes from “H” to “L”. The
NMI function cannot be cancelled using software. The pull-up cannot be
set for this pin.
Pin Description
Pin Description
Mitsubishi microcomputers
M16C / 62 Group (80-pin)
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
9
Pin Description
Signal name
Function
Pin name
I/O
I/O
I/O
I/O port P9
I/O port P10
P9
0
,
P9
2
to P9
7
P10
0
to P10
7
This is an 7-bit I/O port equivalent to P0. Pins in this port also function
as SI/O3, 4 I/O pins, Timer B0–B4 input pins, D-A converter output
pins, A-D converter extended input pins, or A-D trigger input pins as
selected by software.
This is an 8-bit I/O port equivalent to P0. Pins in this port also function
as A-D converter input pins. Furthermore, P10
4
–P10
7
also function as
input pins for the key input interrupt function.
Note: Memory expansion mode and microprocessor mode are not be supported.
Memory
Mitsubishi microcomputers
M16C / 62 Group (80-pin)
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
10
Operation of Functional Blocks
The M16C/62(80-pin version) group 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, D-A converter, DMAC, CRC calcu-
lation circuit, A-D converter, and I/O ports.
The following explains each unit.
Memory
Figure 1.4.1 is a memory map of the M16C/62 group. The address space extends the 1M bytes from
address 00000
16
to FFFFF
16
. From FFFFF
16
down is ROM. For example, in the M30623MC-XXXFP, there
is 128K bytes of internal ROM from E0000
16
to FFFFF
16
. The vector table for fixed interrupts such as the
_______
reset and NMI 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.