MITSUBISHI ELECTRONICS
AMERICA, INC.
PRELIMINARY
M30240
M30240 Group Specification
Description. . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-3
Features...............................................................1-3
Applications......................................................... 1-3
Pin Configuration ................................................ 1-4
Block Diagram..................................................... 1-5
Performance outline............................................ 1-6
Pin Description.................................................... 1-8
Overview ........................................................... 1-10
Operation of Functional Blocks . . . . . . . . . 1-11
Central Processing Unit (CPU) ......................... 1-11
Processor Mode................................................ 1-14
Memory ............................................................. 1-15
SFR MAP .......................................................... 1-16
Reset................................................................. 1-22
Software Reset ................................................. 1-23
Clock-Generating Circuit................................... 1-23
Clock Control .................................................... 1-24
Stop Mode......................................................... 1-26
Wait Mode......................................................... 1-26
Status Transition Of the Internal Clock
Φ
......... 1-26
Power Control ................................................... 1-27
Protection.......................................................... 1-28
Interrupts........................................................... 1-29
NMI Interrupt ..................................................... 1-35
Key-Input Interrupt ............................................ 1-36
Address Match Interrupt.................................... 1-38
Watchdog Timer................................................ 1-39
Frequency Synthesizer Circuit .......................... 1-41
Universal Serial Bus.......................................... 1-44
DMAC ............................................................... 1-63
Timers ............................................................... 1-68
Timer A ............................................................. 1-69
Timer B ............................................................. 1-80
UART0 through UART2 .................................... 1-83
A-D Converter ................................................. 1-106
CRC Calculation Circuit .................................. 1-116
Programmable I/O Ports ................................. 1-117
Usage. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-124
Usage Precautions.......................................... 1-124
Specifications . . . . . . . . . . . . . . . . . . . . . . 1-128
Electrical ......................................................... 1-128
Timing ............................................................. 1-130
Timing Diagrams- Peripheral/interrupt ............ 1-133
Applications . . . . . . . . . . . . . . . . . . . . . . . 1-134
Frequency Synthesizer Interface
and DC-DC Converter..................................... 1-134
Attach/Detach Function................................... 1-138
Low Pass Filter Network ................................. 1-139
USB Transceiver............................................. 1-140
Programming Notes ........................................ 1-141
MITSUBISHI ELECTRONICS
AMERICA, INC.
1-2
Preliminary Specifications REV. E
Specifications in this manual are tentative and subject to change
Mitsubishi microcomputers
M30240 Group
Features
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
1.0 Description
The M30240 group is a 16-bit microcomputer based on the M16C family core technology. They are
single-chip USB peripheral microcontrollers based on the Universal Serial Bus (USB) Version 1.1
specification. They are packaged in an 80-pin, molded plastic QFP. These single-chip microcontrollers
operate using sophisticated instructions featuring a high level of instruction efficiency, making them
capable of executing instructions at high speed. They also feature a built-in multiplier and DMAC,
making them ideal for controlling office communications, industrial equipment, and other high-speed
processing applications.
1.1 Features
•
•
•
•
CPU .................................................... 16-bit (including a hardware multiplier)
Number of instructions ........................ 91
Shortest instruction execution time ..... 83ns f(X
IN
)=12MHz
USB Features:..................................... Five endpoint pairs (IN/OUT)
FIFO Sizes (endpoints 0-4):32,128, 32, 32, 32
Conforms to USB V1.1 Specification
USB Transceiver ................................. Conforms to USB V1.1 Specification-Internal Vref
Frequency Synthesizer........................ PLL for 48MHz clock
Memory capacity (mask device):......... ROM (40K, 48K) / RAM (3.0 K)
Memory capacity (OTP device):.......... PROM (128K) / RAM (5K)
Supply Voltage .................................... 4.1 to 5.25V f(X
IN
)=12MHz)
Interrupts............................................. 21 internal and 4 external interrupt sources,
4 software interrupt sources; 7 levels (including key input interrupt X 16)
Multifunction timer ............................... 5 X 16-bit, w/integrated 20mA (peak) PWM outputs
General purpose timer ........................ 3 X 16-bit, internal interrupt only
UART................................................... 3 X 7/8/9 bits;
Configurable for synchronous or asynchronous mode
DMAC.................................................. 2 channels (trigger: 18 sources)
A-D Converter ..................................... 10 bits X 8 channels
CRC calculation circuit ........................ 1 circuit (industry standard polynomial)
Watchdog timer ................................... 1 line (15 bit)
Programmable I/O............................... 63 lines
High current and LED Drivers ............. 5 high current and 8 LED drivers
Clock-generating circuit....................... 1 built-in circuit including feedback resistor
Package: ............................................. 80P6N (0.8 mm pitch)
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
1.2 Applications
USB peripherals, such as telephones, audio systems, scanners, and digital cameras.
1-3
Preliminary Specifications REV. E
Specifications in this manual are tentative and subject to change
Mitsubishi microcomputers
M30240 Group
Pin Configuration
1.3 Pin Configuration
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Figure 1.1 shows the pin configuration (top view).
P20/LED0
P21/LED1
P22/LED2
P23/LED3
P24/LED4
P25/LED5
P26/LED6
P27/LED7
P12/KI10
P13/KI11
P14/KI12
P15/KI13
P16/KI14
P17/KI15
P11/KI9
P04/KI4
P05/KI5
P06/KI6
P07/KI7
P10/KI8
Vcc
P30
64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41
P03/KI3 65
P02/KI2 66
P01/KI1 67
P00/KI0 68
40
39
38
37
36
35
34
P32
P33
P34
P35
P36
P37/CLKout
P60/CTS0/RTS0
P61/CLK0
P62/RxD0
P63/TxD0
P64/
CTS1/RTS1/CLKS1
P65/CLK1
P66/RxD1
P67/TxD1
P70/TxD2/TA0OUT
P71/RxD2/TA0IN
P107/AN7
69
P106/AN6
70
P105/AN5
71
P104/AN4 72
P103/AN3 73
P102/AN2 74
P101/AN1 75
P100/AN0 76
AVss 77
LPF 78
Vref 79
AVcc 80
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
M30240Mx/EC
P31
33
32
31
30
29
28
27
26
25
1
2
3
P85/NMI
4
P84/INT1
5
P83/ATTACH
6
7
BYTE
8
CNVss
9
D+
Vss
P73/CTS2/RTS2/TA1IN
Figure 1.1:
Pin Configuration (top view)
1-4
P72/CLK2/TA1OUT
P80/TA4OUT
P76/TA3OUT
P74/TA2OUT
P81/TA4IN
P77/TA3IN
P87/AD
TRG
P75/TA2IN
EXTCAP
P82/INT0
RESET
P86/SOF
Xout
Xin
Vcc
Vss
D-
Preliminary Specifications REV. E
Specifications in this manual are tentative and subject to change
Mitsubishi microcomputers
M30240 Group
Block Diagram
1.4 Block Diagram
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Figure 1.2 is a block diagram of the M30240 group.
8
8
8
8
8
8
7
8
I/O ports
Port P0
Port P1
Port P2
Port P3
Port P6
Port P7
Port P8 0~84
Port P8
5
86, 8 7
Port P10
Internal peripheral functions
Timer
Memory
ROM
RAM
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)
Watchdog timer
(1 line)
System clock generator
X
IN
-X
OUT
A-D converter
10 bits
X
8 channels
M16C series16-bit CPU core
Registers
Program counter
PC
Vector table
INTB
Stack pointer
ISP
USP
R0H
R0L
R0H
R0L
R1L
R1H
R2
R3
A0
A1
FB
SB
USB function
Frequency Synthesizer
UART/clock synchronous SI/O
(8 bits
X
3 channels)
(Note 1)
CRC arithmetic circuit (CCITT)
(Polynomial : X
16
+X
12
+X
5
+1)
DMAC
(2 channels)
Multiplier
FLG
Note 1: One of serial I/O can be used for SIM interface.
Figure 1.2:
Block diagram of M30240 group
1-5