MITSUBISHI ELECTRIC CORPORATION
SPEC.NAME
Prepared by
Checked by
Approved by
DATE
H.Yamazoe
Y.Hayashi
M.Abe
31 May '99
R
E
V
Customer's
Std.Spec
INTEGRATED CIRCUIT
1.
Type No.
M37516M6-XXXHP
2.
Function
Single chip 8-bit microcomputer
3.
Application
Office automation,Household products etc.
4.
Outline
4.1 Name
4.2
Drawing No.
48P6D / 48P6Q (48pin 0.5mm pitch Plastic-molded LQFP)
5.
Circuit
Drawing No.
6.
Pin Configuration
See Page 2
7.
Related Documents
M37516M6-XXXHP
GNOK-M37516M6-XXXHP-50
(MSETSU 2)
PA
GE
1/54
DESCRIPTION
The M37516M6-XXXHP is the 8-bit microcomputer based on the
740 family core technology.
The M37516M6-XXXHP is designed for the household products
and office automation equipment and includes serial I/O functions,
8-bit timer, A-D converter, and I
2
C-bus interface.
FEATURES
qBasic
machine-language instructions ...................................... 71
qMinimum
instruction execution time ................................... 0.5us
(at 8 MHz oscillation frequency)
qMemory
size
ROM ............................................................................. 24 Kbytes
RAM .............................................................................. 640 bytes
qProgrammable
input/output ports ............................................ 40
qInterrupts
................................................. 17 sources, 16 vectors
qTimers
............................................................................. 8-bit
!
4
qSerial
I/O1 .................... 8-bit
!
1(UART or Clock-synchronized)
qSerial
I/O2 ................................... 8-bit
!
1(Clock-synchronized)
qMulti-master
I
2
C-bus interface (option) ....................... 1 channel
qPWM
............................................................................... 8-bit
!
1
qA-D
converter ............................................... 10-bit
!
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 8 MHz oscillation frequency)
In high-speed mode .................................................. 2.7 to 5.5 V
(at 4 MHz oscillation frequency)
In middle-speed mode ............................................... 2.7 to 5.5 V
(at 8 MHz oscillation frequency)
In low-speed mode .................................................... 2.7 to 5.5 V
(at 32 kHz oscillation frequency)
qPower
dissipation
In high-speed mode .......................................................... 34 mW
(at 8 MHz oscillation frequency, at 5 V power source voltage)
In low-speed mode .............................................................. 60uW
(at 32 kHz oscillation frequency, at 3 V power source voltage)
qOperating
temperature range .................................... –20 to 85 C
APPLICATION
Office automation equipment, FA equipment, Household products,
Consumer electronics, etc.
PIN CONFIGURATION (TOP VIEW)
P1
0
(LED
0
)
26
36
35
34
33
32
31
30
29
28
27
P0
7
P3
5
/AN
5
P3
4
/AN
4
P3
3
/AN
3
P3
2
/AN
2
P3
1
/AN
1
P3
0
/AN
0
V
CC
V
REF
AV
SS
P4
7
P4
6
P4
5
37
38
39
40
41
42
43
44
45
46
47
48
25
24
23
22
21
20
P1
1
(LED
1
)
P0
1
/S
OUT2
P0
2
/S
CLK2
P3
6
/AN
6
P3
7
/AN
7
P0
0
/S
IN2
P0
3
/S
RDY2
P0
4
P0
5
P0
6
P1
2
(LED
2
)
P1
3
(LED
3
)
P1
4
(LED
4
)
P1
5
(LED
5
)
P1
6
(LED
6
)
P1
7
(LED
7
)
V
SS
X
OUT
X
IN
RESET
P2
0
/X
COUT
P2
1
/X
CIN
M37516M6-XXXHP
19
18
17
16
15
14
13
10
11
P4
0
/CNTR
1
P2
5
/SCL
2
/T
X
D
P4
4
/INT
3
/PWM
P2
4
/SDA
2
/R
X
D
P2
3
/SCL
1
P4
2
/INT
1
P2
7
/CNTR
0
/S
RDY1
P2
6
/S
CLK
P4
3
/INT
2
/S
CMP2
P2
2
/SDA
1
P4
1
/INT
0
Package type : 48P6D-A / 48P6Q-A (48-pin plastic-molded LQFP)
Fig. 1 M37516M6-XXXHP pin configuration
PA
GE
M37516M6-XXXHP
GNOK-M37516M6-XXXHP-50
CNV
SS
12
1
2
4
5
6
7
8
3
9
(MSETSU 2)
2/54
FUNCTIONAL BLOCK DIAGRAM
Reset input
V
SS
V
CC
RESET
15
12
43
18
Main-clock
input
X
IN
CNV
SS
Main-clock
output
X
OUT
FUNCTIONAL BLOCK
Fig. 2 Functional block diagram
M37516M6-XXXHP
C P U
16
17
Sub-clock Sub-clock
input
output
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
1
PC
L
Prescaler Y(8)
CNTR
0
GNOK-M37516M6-XXXHP-50
SI/O1(8)
I
2
C
X
COUT
X
CIN
INT
0
–
INT
3
Watchdog
timer
Reset
A-D
converter
(10)
PWM
(8)
SI/O2(8)
P4(8)
P3(8)
P2(8)
P1(8)
P0(8)
(MSETSU 2)
35 36 37 38 39 40 41 42
44 45
46 47 48 1 2 3 4 5
6 7 8 9 10 11 13 14
19 20 21 22 23 24 25 26
27 28 29 30 31 32 33 34
I/O port P4
I/O port P3
I/O port P2
I/O port P1
I/O port P0
PA
GE
V
REF
AV
SS
3/54
PIN DESCRIPTION
Table 1 Pin description
Pin
V
CC
, V
SS
CNV
SS
RESET
X
IN
X
OUT
P0
0
/S
IN2
P0
1
/S
OUT2
P0
2
/S
CLK2
P0
3
/S
RDY2
P0
4
–P0
7
P1
0
–P1
7
P2
0
/X
COUT
P2
1
/X
CIN
P2
2
/SDA
1
P2
3
/SCL
1
P2
4
/SDA
2
/RxD
P2
5
/SCL
2
/TxD
P2
6
/S
CLK
P2
7
/CNTR
0
/
S
RDY1
P3
0
/AN
0
–
P3
7
/AN
7
P4
0
/CNTR
1
P4
1
/INT
0
P4
2
/INT
1
P4
3
/INT
2
/S
CMP2
P4
4
/INT
3
/PWM
P4
5
–P4
7
I/O port P4
Name
Power source
CNV
SS
input
Reset input
Clock input
Clock output
Functions
•Apply voltage of 2.7 V – 5.5 V to Vcc, and 0 V to Vss.
•This pin controls the operation mode of the chip.
•Normally connected to V
SS
.
•Reset input pin for active “L.”
•Input and output pins for the clock generating circuit.
•Connect a ceramic resonator or quartz-crystal oscillator between the X
IN
and X
OUT
pins to set
the oscillation frequency.
•When an external clock is used, connect the clock source to the X
IN
pin and leave the X
OUT
pin open.
•8-bit CMOS I/O port.
I/O port P0
•I/O direction register allows each pin to be individually
programmed as either input or output.
•CMOS compatible input level.
•CMOS 3-state output structure.
I/O port P1
•P1
0
to P1
7
(8 bits) are enabled to output large current for LED drive.
•8-bit CMOS I/O port.
•I/O direction register allows each pin to be individually
programmed as either input or output.
•CMOS compatible input level.
I/O port P2
•P2
2
to P2
5
can be switched between CMOS compat-
ible input level or SMBUS input level in the I
2
C-BUS
interface function.
•P2
0
, P2
1
, P2
4
to P2
7
: CMOS3-state output structure.
•P2
4
, P2
5
: N-channel open-drain structure in the I
2
C-
BUS interface function.
•P2
2
, P2
3
: N-channel open-drain structure.
•8-bit CMOS I/O port with the same function as port P0.
I/O port P3
•CMOS compatible input level.
•CMOS 3-state output structure.
•8-bit CMOS I/O port with the same function as port P0.
•CMOS compatible input level.
•CMOS 3-state output structure.
• Timer Y function pin
• Interrupt input pins
• Interrupt input pins
• S
CMP2
output pin
• Interrupt input pin
• PWM output pin
• I
2
C-BUS interface function pin/
Serial I/O1 function pins
• Serial I/O1 function pin
• Serial I/O1 function pin/
Timer X function pin
• Sub-clock generating circuit I/O
pins (connect a resonator)
• I
2
C-BUS interface function pins
• Serial I/O2 function pins
Function except a port function
• A-D converter input pin
M37516M6-XXXHP
GNOK-M37516M6-XXXHP-50
(MSETSU 2)
PA
GE
4/54
FUNCTIONAL DESCRIPTION
CENTRAL PROCESSING UNIT (CPU)
The M37516M6-XXXHP uses the standard 740 Family instruction
set. Refer to the table of 740 Family addressing modes and ma-
chine instructions or the 740 Family Software Manual for details
on the instruction set.
Machine-resident 740 Family instructions are as follows:
The FST and SLW instructions cannot be used.
The STP, WIT, MUL, and DIV instructions can be used.
[CPU Mode Register (CPUM)] 003B
16
The CPU mode register contains the stack page selection bit, etc.
The CPU mode register is allocated at address 003B
16
.
b7
b0
CPU mode register
(
CPUM : address
003B
16
)
Processor mode bits
b1 b0
0 0 : Single-chip mode
0 1 :
1 0 : Not available
1 1 :
Stack page selection bit
0 : 0 page
1 : 1 page
Not used (return “1” when read)
(Do not write “0” to this bit.)
Port X
C
switch bit
0 : I/O port function (stop oscillating)
1 : X
CIN
–X
COUT
oscillating function
Main clock (X
IN
–X
OUT
) stop bit
0 : Oscillating
1 : Stopped
Main clock division ratio selection bits
b7 b6
0 0 :
φ
= f(X
IN
)/2 (high-speed mode)
0 1 :
φ
= f(X
IN
)/8 (middle-speed mode)
1 0 :
φ
= f(X
CIN
)/2 (low-speed mode)
1 1 : Not available
Fig. 3 Structure of CPU mode register
M37516M6-XXXHP
GNOK-M37516M6-XXXHP-50
(MSETSU 2)
PA
GE
5/54