MITSUBISHI MICROCOMPUTERS
M37210M3-XXXSP/FP, M37210M4-XXXSP, M37211M2-XXXSP
M37210E4-XXXSP/FP, M37210E4SP/FP
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER
with ON-SCREEN DISPLAY CONTROLLER
DESCRIPTION
The M37210M3-XXXSP/FP is a single-chip microcomputer designed
with CMOS silicon gate technology. It is housed in a 52-pin shrink
plastic molded DIP or a 64-pin plastic molded QFP. This single-chip
microcomputer is useful for the channel selection system for TVs
because it provides PWM function, OSD display function and so on.
In addition to their simple instruction sets, the ROM, RAM, and I/O
addresses are placed on the same memory map to enable easy pro-
gramming.
The features of the M37210E4-XXXSP/FP and the M37210E4SP/FP
are similar to those of the M37210M4-XXXSP except that these
chips have a built-in PROM which can be written electrically.
The differences between the M37210M3-XXXSP/FP, the M37210
M4-XXXSP, and the M37211M2-XXXSP are the ROM size, the RAM
size, and the PWM outputs as shown below. Accordingly, the follow-
ing descriptions will be for the M37210M3-XXXSP/FP unless other-
wise noted.
Type name
M37210M3-XXXSP/FP
M37210M4-XXXSP
M37211M2-XXXSP
ROM size
12 K bytes
16 K bytes
8 K bytes
RAM size
256 bytes
320 bytes
192 bytes
6-bit PWM outputs
8
8
6
PIN CONFIGURATION (TOP VIEW)
H
SYNC
→
1
V
SYNC
→
2
P6
0
/PWM0
←
3
P6
1
/PWM1
←
4
P6
2
/PWM2
←
5
P6
3
/PWM3
←
6
P0
0
/PWM4
↔
7
P0
1
/PWM5
↔
8
P0
2
/PWM6
↔
9
P0
3
/PWM7
↔
10
P4
2
/S
IN
/A-D5
→
11
P4
1
/S
CLK
↔
12
P4
0
/S
OUT
(/
IN
)
↔
13
D-A
←
14
P3
5
/INT2/A-D4
→
15
P3
4
/INT1
→
16
P3
3
/TIM3
→
17
P3
2
/TIM2
→
18
P2
4
↔
19
P2
5
↔
20
P2
6
↔
21
P2
7
↔
22
CNV
SS
→
23
X
IN
→
24
X
OUT
←
25
V
SS
26
52
→
P5
2
/R
51
→
P5
3
/G
50
→
P5
4
/B
49
→
P5
5
/OUT
48
↔
P2
0
47
↔
P2
1
46
↔
P2
2
45
↔
P2
3
44
↔
P0
4
43
↔
P0
5
42
↔
P0
6
41
↔
P0
7
40
↔
P1
0
39
↔
P1
1
38
↔
P1
2
37
↔
P1
3
36
↔
P1
4
35
←
P1
5
/A-D1
34
←
P1
6
/A-D2
33
←
P1
7
/A-D3
32
↔
P3
0
31
↔
P3
1
30
←
RESET
29
←
OSC1
28
→
OSC2
27
M37210M3-XXXSP
M37210M4-XXXSP
M37211M2-XXXSP
Note :
After the reset, set the stack page selection bit which is set “1”
to “0” because the internal RAM of the M37211M2-XXXSP is
in only the zero page.
FEATURES
V
CC
•
Number of basic instructions ..................................................... 69
•
Memory size ROM ................ 12 K bytes (M37210M3-XXXSP/FP)
16 K bytes (M37210M4-XXXSP)
8 K bytes (M37211M2-XXXSP)
RAM ................. 256 bytes (M37210M3-XXXSP/FP)
320 bytes (M37210M4-XXXSP)
192 bytes (M37211M2-XXXSP)
ROM for display......................................... 3 K bytes
RAM for display .......................................... 72 bytes
The minimum instruction execution time
........................................... 0.5µs (at 8MHz oscillation frequency)
Power source voltage ..................................................... 5V ± 10%
Power dissipation .............................................................. 110mW
(at 4MHz oscillation frequency, V
CC
= 5.5V, at CRT display)
Subroutine nesting ............................................... 96 levels (Max.)
Interrupts ....................................................... 12 types, 12 vectors
8-bit timers .................................................................................. 4
Programmable I/O ports
(Ports P0, P1, P2, P3, P4) ......................................................... 25
Output ports (ports P5, P6) .......................................................... 8
Output ports (ports P5
2
, P5
6
) ..................................................... 12
12 V withstand ports ....................................................................4
Serial I/O ............................................................ 8-bit
!
1 channel
PWM output circuit ............... (14-bit
!
1, 6-bit
!
8) ... M37210M3
M37210M4
(14-bit
!
1, 6-bit
!
6) .... M37211M2
Outline 52P4B
Note : The M37211M2-XXXSP does not have the PWM6 and the PWM7.
•
•
•
•
•
•
•
•
•
•
•
•
•
A-D comparator (5-bit resolution) ................................ 5 channels
•
CRT display function
Display characters ..................................... 18 characters
!
2 lines
(16 lines max.)
Character kinds ................................................................ 96 kinds
Dot structure ............................................................. 12
!
16 dots
Character size .................................................................... 3 kinds
Character color kinds (It can be specified by the character)
max. 7 kinds (R, G, B)
Raster color (max. 7 kinds)
Display layout
Horizontal ..................................................................... 64 levels
Vertical ....................................................................... 128 levels
Bordering (horizontal and vertical)
APPLICATION
TV
1
MITSUBISHI MICROCOMPUTERS
M37210M3-XXXSP/FP, M37210M4-XXXSP, M37211M2-XXXSP
M37210E4-XXXSP/FP, M37210E4SP/FP
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER
with ON-SCREEN DISPLAY CONTROLLER
PIN CONFIGURATION (TOP VIEW)
P2
2
P2
3
P0
4
P0
5
P0
6
P0
7
P1
0
NC
P1
1
P1
2
P1
3
P1
4
NC
P1
5
/A-D1
P1
6
/A-D2
P1
7
/A-D3
48
47
46
45
44
43
42
41
40
39
38
37
36
35
34
33
P2
1
NC
P2
0
P5
5
/OUT
P5
4
/B
P5
3
/G
P5
2
/R
NC
NC
H
SYNC
V
SYNC
P6
0
/PWM0
P6
1
/PWM1
P6
2
/PWM2
NC
P6
3
/PWM3
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
10
11
12
13
14
15
16
1
2
3
4
5
6
7
8
9
32
31
30
29
28
27
26
25
M37210M3-XXXFP
24
23
22
21
20
19
18
17
P3
0
NC
P3
1
RESET
OSC1
OSC2
Vcc
NC
NC
V
SS
X
OUT
X
IN
CNV
SS
P2
7
NC
NC
P0
0
/PWM4
P0
1
/PWM5
P0
2
/PWM6
P0
3
/PWM7
NC
P4
2
/S
IN
/A-D5
P4
1
/S
CLK
P4
0
/S
OUT
/(/
IN
)
D-A
P3
5
/INT2/A-D4
P3
4
/INT1
P3
3
/TIM3
P3
2
/TIM2
P2
4
P2
5
P2
6
Outline 64P6N-A
NC : No connection
2
FUNCTIONAL BLOCK DIAGRAM of M37210M3-XXXSP
(5V) (0V) (0V)
V
CC
V
SS
CNV
SS
D-A
14
1
2
29
28
Clock
input
X
IN
H
SYNC
Y
SYNC
OSC1 OSC2
30
27
26
23
Clock
output
X
OUT
Reset input
RESET
24
25
Clock
generating
circuit
Data bus
Timer count
source selection
circuit
14-bit PWM circuit
Program
counter
PC
H
(8)
Program
counter
PC
L
(8)
ROM
12 K bytes
(Note 3)
RAM
256bytes
(Note 2)
Timer 1
T1 (8)
6-bit PWM circuit
PWM7
PWM6
PWM5
PWM4
PWM3
PWM2
PWM1
TIM2
Timer 3
T3 (8)
TIM3
Timer 4
T4 (8)
Control signal
Instruction decoder
8-bit
arithmetic
and logical
unit
Index
register X
(8)
Index
register Y
(8)
Stack
pointer
(8)
Accumulator
A(8)
Processor
status
register
PS(8)
PWM0
Address bus
Timer 2
T2 (8)
Instruction
register
CRT circuit
A-D
compa-
rator
INT1
Interrupt interval
determination
circuit
INT2
SI/O(8)
S
IN
P0(8)
5
3
22 21 20 19 45 46 47 48
A-D4
P1(8)
P2(8)
P3(6)
S
CLK
S
OUT
INT1, INT2
P4(3)
P6(4)
OUT
P5(4)
B
G
A-D5
R
A-D1
A-D2
41 42 43 44 10 9
8
7
33 34 35 36 37 38 39 40
A-D3
15 16 17 18 31 32
11 12 13
6
5
4
3
49 50 51 52
I/O port P0
I/O port P1
I/O port P2
I/O port P3
I/O port P4
Output port P6
Video signal output
Notes 1 : The M37211M2-XXXSP does not have PWM outputs of pins 9 and 10.
2 : 320 bytes for M37210M4-XXXSP and 192 bytes for M37211M2-XXXSP
3 : 16 K bytes for M37210M4-XXXSP and 8 K bytes for M37211M2-XXXSP
M37210M3-XXXSP/FP, M37210M4-XXXSP, M37211M2-XXXSP
M37210E4-XXXSP/FP, M37210E4SP/FP
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER
with ON-SCREEN DISPLAY CONTROLLER
MITSUBISHI MICROCOMPUTERS
3
MITSUBISHI MICROCOMPUTERS
M37210M3-XXXSP/FP, M37210M4-XXXSP, M37211M2-XXXSP
M37210E4-XXXSP/FP, M37210E4SP/FP
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER
with ON-SCREEN DISPLAY CONTROLLER
FUNCTIONS
Parameter
Number of basic instructions
Instruction execution time
Clock frequency
M37210M3-XXXSP/FP
Memory size
M37210M4-XXXSP
M37211M2-XXXSP
P0
P1
0
– P1
4
P1
5
– P1
7
P2
P3
0
, P3
1
P3
2
, P3
5
P4
0
, P4
1
P4
2
P5
P6
ROM
RAM
ROM
RAM
ROM
RAM
I/O
I/O
Input
I/O
I/O
Input
I/O
Input
Output
Output
Functions
69
0.5µs (the minimum instruction execution time, at 8MHz oscillation frequency)
8MHz
12 K bytes
256 bytes
16 K bytes
320 bytes
8 K bytes
192 bytes
8-bit
!
1 (can be used as N-channel open-drain output and PWM4-PWM7)(Note)
5-bit
!
1 (CMOS 3-state output)
3-bit
!
1 (can be used as A-D input)
8-bit
!
1 (CMOS 3-state output)
2-bit
!
1 (CMOS 3-state input/output)
4-bit
!
1 (can be used as timer input pins, INT input pins and A-D input pins)
2-bit
!
1 (can be used as N-channel open-drain output and serial I/O function pins)
1-bit
!
1 (can be used as serial I/O and A-D input)
4-bit
!
1 (can be used as R, G, B, OUT pins)
4-bit
!
1 (can be used as N-channel open-drain output and PWM0-PWM3 output pins)
8-bit
!
1
8-bit timer
!
4
96 levels (max.)
Two external interrupts, four internal timer interrupts,
one serial I/O interrupt, one CRT interrupt, one f(X
IN
)/4096
interrupt, one V
SYNC
interrupt, BRK instruction
Built-in circuit (externally connected a ceramic resonator or a quartz-crystal oscillator)
5V ± 10%
110mW (at 4MHz oscillation frequency, V
CC
= 5.5V, Typ.)
55mW (at 4MHz oscillation frequency, V
CC
= 5.5V, Typ.)
1.65mW (Max.)
−10
to 70°C
CMOS silicon gate process
52-pin shrink plastic molded DIP
64-pin plastic molded QFP
18 characters
!
2 lines : maximum 16 lines (by software)
12
!
16 dots
96 kinds
3 kinds
7 kinds max, (R, G, B) : can be specified by character unit
64 levels (horizontal)
!
128 levels (vertical)
Input/Output ports
Serial I/O
Timers
Subroutine nesting
Interrupt
Clock generating circuit
Power source voltage
at CRT display ON
Power dissipation
Operating temperature range
Device structure
Package
M37210M3-XXXSP, M37210M4-XXXSP, M37211M2-XXXSP
M37210M3-XXXFP
Number of character
Character dot construction
Kinds of characters
Character size
Kinds of color
Display position (horizontal, vertical)
at CRT display OFF
at stop mode
CRT display function
Note : The M37211M2-XXXSP can be also used as PWM4 and PWM5.
4
MITSUBISHI MICROCOMPUTERS
M37210M3-XXXSP/FP, M37210M4-XXXSP, M37211M2-XXXSP
M37210E4-XXXSP/FP, M37210E4SP/FP
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER
with ON-SCREEN DISPLAY CONTROLLER
PIN DESCRIPTION
Pin
V
CC
,
V
SS
CNV
SS
RESET
Name
Power source voltage
CNV
SS
Reset input
Input /
Output
Functions
Apply voltage of 5V ± 10% to V
CC
, and 0V to V
SS
.
This is connected to V
SS
.
To enter the reset state, the reset input pin must be kept at a “L” for 2µs or more (under nor-
mal V
CC
conditions).
If more time is needed for the crystal oscillator to stabilize, this “L” condition should be main-
tained for the required time.
This chip has an internal clock generating circuit. To control generating frequency, an exter-
nal ceramic resonator or a quartz-crystal oscillator is connected between the X
IN
and
X
OUT
pins. If an external clock is used, the clock source should be connected the X
IN
pin and
the X
OUT
pin should be left open.
This is the timing output pin.
Port P0 is an 8-bit I/O port with directional registers allowing each I/O bit to be individually
programmed as input or output. At reset, this port is set to input mode. The output structure
is CMOS output.
The output structure is N-channel open-drain output. When PWM4, PWM5, PWM6 and
PWM7 are used, P0
0
, P0
1
, P0
2
and P0
3
are in common with PWM output pins of PWM4,
PWM5, PWM6 and PWM7.
Ports P1
0
, P1
1
, P1
2
, P1
3
and P1
4
are 5-bit I/O ports and have basically the same functions
as port P0. The output structure is CMOS output.
Ports P1
5
, P1
6
and P1
7
are 3-bit input ports and they are in common with input pins of A-D
comparator (A-D1, A-D2 and A-D3).
Port P2 is an 8-bit I/O port and has basically the same functions as port P0.
The output structure is CMOS output.
Ports P3
0
and P3
1
are 2-bit I/O ports and have basically the same functions as port P0.
The output structure is CMOS output.
Ports P3
2
, P3
3
, P3
4
and P3
5
are 4-bit input ports and ports P3
2
and P3
3
are in common
with external clock input pins of timers 2 and 3. Ports P3
4
and P3
5
are in common with
external interrupt input pins INT1 and INT2. Port P3
5
is in common with an input pin of A-D
comparator (A-D4).
Ports P4
0
and P4
1
are 2-bit I/O ports and have basically the same functions as port P0.
When serial I/O is used, ports P4
0
and P4
1
are in common with S
OUT
pin and S
CLK
pin, re-
spectively.
Port P4
2
is an 1-bit Input port, and it is common with an input pin of A-D comparator (A-D5)
and serial input pin (S
IN
).
Port P6 is an 4-bit output port. The output structure is N-channel open-drain. This port is in
common with 6-bit PWM output pins PWM0-PWM3.
This is the I/O pins of the clock generating circuit for the CRT display function.
Input
X
IN
X
OUT
φ
P0
0
– P0
7
Clock input
Clock output
Timing output
I/O port P0
Input
Output
Output
I/O
P1
1
– P1
4
P1
5
– P1
7
P2
0
– P2
7
P3
0
, P3
1
P3
2
– P3
5
I/O port P1
Input port P1
I/O port P2
I/O port P3
Input port P3
I/O
Input
I/O
I/O
Input
P4
0
, P4
1
I/O port P4
I/O
P4
2
P6
0
– P6
3
OSC1,
OSC2
Input port P4
Output port P6
Clock input for CRT
display
Clock output for CRT
display
H
SYNC
input
V
SYNC
input
CRT output
DA Output
Input
Output
Input
Output
H
SYNC
V
SYNC
R, G, B,
OUT
D-A
Input
Input
Output
Output
This is the horizontal synchronizing signal input for CRT display.
This is the vertical synchronizing signal input for CRT display.
This is a 4-bit output pin for CRT display. The output structure is CMOS output. This is in
common with port P5
2
– P5
5
.
This is an output pin for 14-bit PWM.
5