MITSUBISHI MICROCOMPUTERS
M37225M6-XXXSP, M37225M8-XXXSP
M37225ECSP
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER
with ON-SCREEN DISPLAY CONTROLLER
1. DESCRIPTION
The M37225M6-XXXSP, M37225M8-XXXSP, and M37225ECSP are
single-chip microcomputers designed with CMOS silicon gate tech-
nology. They have a OSD, I
2
C-BUS interface, PWM output, and 12 V
withstand, so it is useful for a channel selection system for TV.
The features of the M37225ECSP are similar to those of the
M37225M6-XXXSP except that the chip has a built-in PROM which
can be written electrically. The difference between M37225M6-XXXSP
and M37225M8-XXXSP are the ROM size. Accordingly, the follow-
ing descriptions will be for the M37225M6-XXXSP.
2. FEATURES
qNumber
of basic instructions .................................................... 71
qMemory
size
ROM ..................... 24K bytes (M37225M6-XXXSP)
32K bytes (M37225M8-XXXSP)
48K bytes (M37225ECSP)
RAM ...................... 1024 bytes (M37225M6-XXXSP,
M37225M8-XXXSP)
2048 bytes (M37225ECSP)
(*ROM correction memory included)
qMinimum
instruction execution time
......................................... 0.5
µs
(at 8 MHz oscillation frequency)
qPower
source voltage ................................................. 5 V
±
10 %
qSubroutine
nesting ............................................. 128 levels (Max.)
qInterrupts
....................................................... 16 types, 16 vectors
q8-bit
timers .................................................................................. 4
qProgrammable
I/O ports (Ports P0, P1, P2, P3
0
–P3
2
, P3
5
) ..... 28
qInput
ports (Ports P3
3
, P3
4
, P5
0
, P5
1
) ........................................ 4
qOutput
ports (Ports P5
2
–P5
5
) ..................................................... 4
q12
V withstand ports ................................................................... 6
qLED
drive ports ........................................................................... 4
qSerial
I/O ............................................................ 8-bit
!
1 channel
qMulti-master
I
2
C-BUS interface .............................. 1 (2 systems)
qA-D
converter (8-bit resolution) .................................... 8 channels
qPWM
output circuit ........................................ 14-bit
!
2, 8-bit
!
6
qPower
dissipation
In operating ...................................................................... 165 mW
(at V
CC
= 5.5V, 8 MHz oscillation frequency, and OSD on)
qROM
correction function ................................................ 3 vectors
qImmediate
return mode from wait state
qOSD
function
Display characters ............................................... 24 characters
!
2 lines
(It is possible to display 3 lines or more by software)
Kinds of characters ......... 381 kinds
Character display area 16
!
20 dots
Kinds of character sizes .............................. Block display: 3 kinds
SPRITE display: 1 kinds
Kinds of character colors. ................................. 8 colors (R, G, B)
Coloring unit ................... character, character background, raster
Display position
Horizontal: 64 levels
Vertical :255 levels
Attribute ........ Border (all-bordered, shadow-bordered), BUTTON
SPRITE display function
Wallpaper function
Window function
Corresponding to bi-scan mode
3. APPLICATION
TV
Rev. 1.1
MITSUBISHI MICROCOMPUTERS
M37225M6–XXXSP, M37225M8–XXXSP
M37225ECSP
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER
with ON-SCREEN DISPLAY CONTROLLER
TABLE OF CONTENTS
1. DESCRIPTION .......................................................................... 1
2. FEAUTURES ............................................................................. 1
3. APPLICATION ............................................................................ 1
4. PIN CONFIGURATION .............................................................. 3
5. FUNCTIONAL BLOCK DIAGRAM ............................................. 4
6. PERFORMANCE OVERVIEW ................................................... 5
7. PIN DESCRIPTION ................................................................... 7
8. FUNCTIONAL DESCRIPTION ................................................. 11
8.1 CENTRAL PROCESSING UNIT (CPU) .................... 11
8.2 MEMORY .................................................................. 12
8.3 INTERRUPTS ........................................................... 19
8.4 TIMERS ..................................................................... 24
8.5 SERIAL I/O ................................................................ 27
8.6 MULTI-MASTER I
2
C-BUS INTERFACE .................... 31
8.7 PWM OUTPUT CIRCUIT .......................................... 44
8.8 A-D COMPARATOR .................................................. 49
8.9 ROM CORRECTION FUNCTION ............................. 53
8.10 OSD FUNCTIONS ................................................... 54
(1) Clock for OSD .................................................... 57
(2) Scan mode ......................................................... 58
(3) OSD input/output pin control .............................. 59
8.10.1 Block Display .................................................... 60
(1) Display position .................................................. 61
(2) Dot size .............................................................. 65
(3) Memory For OSD ............................................... 66
(4) Character Color .................................................. 69
(5) Character Background Color .............................. 69
(6) OUT1, OUT2 Signals ......................................... 69
(7) Attribute .............................................................. 72
(8) Multiple Display .................................................. 76
(9) Window Function ................................................ 77
8.10.2 SPRITE Display ................................................ 80
8.10.3 Raster Display ................................................... 83
8.11. SOFTWARE RUNAWAY DETECT FUNCTION ...... 85
8.12. RESET CIRCUIT .................................................... 86
8.13. CLOCK GENERATING CIRCUIT ........................... 87
8.14. DISPLAY OSCILLATION CIRCUIT ........................ 88
8.15. AUTO-CLEAR CIRCUIT ......................................... 88
8.16. ADDRESSING MODE ............................................ 88
8.17. MACHINE INSTRUCTIONS ................................... 88
9. PROGRAMMING NOTES ........................................................ 88
10. ABSOLUTE MAXIMUM RATINGS ......................................... 89
11. RECOMMENDED OPERATING CONDITIONS ..................... 89
12. ELECTRIC CHARACTERISTICS .......................................... 90
13. A-D COMPARISON CHARACTERISTICS ............................. 92
14. MULTI-MASTER I
2
C-BUS BUS LINE CHARACTERISTICS ........... 92
15. PROM PROGRAMMING METHOD ....................................... 93
16. DATA REQUIRED FOR MASK ORDERS .............................. 94
17. MASK CONFIRMATION FORM ............................................. 95
18. MARK SPECIFICATION FORM ........................................... 101
19. ONE TIME PROM VERSIONS M37225ECSP MARKING ... 102
20. APPENDIX ........................................................................... 103
21. PACKAGE OUTLINE ........................................................... 131
Rev. 1.0
2
MITSUBISHI MICROCOMPUTERS
M37225M6–XXXSP, M37225M8–XXXSP
M37225ECSP
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER
with ON-SCREEN DISPLAY CONTROLLER
4. PIN CONFIGURATION
H
SYNC
/P5
0
V
SYNC
/P5
1
P0
0
/PWM0
P0
1
/PWM1
P0
2
/PWM2
P0
3
/PWM3
P0
4
/PWM4
P0
5
/PWM5
P0
6
/INT2/A-D4
P0
7
/INT1
P2
3
/TIM3
P2
4
/TIM2
P2
5
P2
6
P2
7
DA1/P3
5
P3
2
/A-D7
CNV
SS
X
IN
X
OUT
V
SS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
42
41
40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
25
24
23
22
R/P5
2
G/P5
3
B/P5
4
OUT1/P5
5
P2
0
/S
CLK
P2
1
/S
OUT
(/S
IN
)
P2
2
/S
IN
P1
0
/OUT2/A-D8
P1
1
/SCL1
P1
2
/SCL2
P1
3
/SDA1
P1
4
/SDA2
P1
5
/INT3/A-D1
P1
6
/A-D2
P1
7
/DA2/A-D3
P3
0
/A-D5
P3
1
/A-D6
RESET
OSC1/P3
3
OSC2/P3
4
V
C C
Outline 42P4B
M37225M6-XXXSP
M37225M8-XXXSP
M37225ECSP
Fig. 4.1 Pin Configuration (Top View)
Rev. 1.0
3
INT3
INT2
INT1
S
IN
S
CLK
S
OUT
PWM5
PWM4
PWM3
PWM2
PWM1
SDA2
SDA1
SCL2
SCL1
PWM0
OUT2
OUT1
B
G
R
10 9 8 7 6 5 4 3
28 29 30 31 32 33 34 35
15 14 13 12 11 36 37 38
16
17 26 27
39 40 41 42
I/O port P0
I/O port P2
I/O ports
P3
0
–P3
2
, P3
5
I/O port P1
Output ports P5
2
–P5
5
OSD output
Sync signal input
Input ports P5
0
, P5
1
V
SYNC
H
SYNC
4
Input ports P3
3,
P3
4
Clock input for OSD
Clock output for OSD
OSC2
23
Clock input
Clock output
X
IN
X
OUT
V
C C
OSC1
24
22
21
18
Reset input
RESET
V
SS
CNV
SS
25
19
20
Clock
generating
circuit
TIM2
TIM3
Fig. 5.1 Functional Block Diagram of M37225
Timer count source
selection circuit
Program
counter
Data bus
5. FUNCTIONAL BLOCK DIAGRAM
RAM
ROM
PC
L
(8)
Timer 2
T2 (8)
Timer 3
T3 (8)
Control signal
Instruction
decoder
Instruction
register (8)
OSD circuit
Timer 4
T4 (8)
Index
register
Y (8)
Stack
pointer
S (8)
Program
counter
Timer 1
T1 (8)
PC
H
(8)
Address bus
8-bit
arithmetic
and logical
unit
Accumulator
A (8)
Processor
st a t u s
register
PS (8)
Index
register
X (8)
14-bit PWM
circuit 2
14-bit PWM
circuit 1
P2 (8)
P3 (6)
A-D
converter
Multi-master
I
2
C-BUS interface
SI/O(8)
8-bit
PWM circuit
ROM correction
function
P 5 ( 6)
P0 (8)
P1 (8)
2
1
MITSUBISHI MICROCOMPUTERS
M37225M6–XXXSP, M37225M8–XXXSP
M37225ECSP
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER
with ON-SCREEN DISPLAY CONTROLLER
Rev. 1.0
MITSUBISHI MICROCOMPUTERS
M37225M6–XXXSP, M37225M8–XXXSP
M37225ECSP
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER
with ON-SCREEN DISPLAY CONTROLLER
6. PERFORMANCE OVERVIEW
Table 6.1 Performance Overview
Parameter
Number of basic instructions
Instruction execution time
Clock frequency
Memory size
Functions
71
0.5
µs
(the minimum instruction execution time, at 8 MHz oscillation fre-
quency)
8 MHz (maximum)
24K bytes
32K bytes
48K bytes
1024 bytes (ROM correction memory included)
2048 bytes (ROM correction memory included)
15K bytes
96 bytes
6-bit
!
1 (N-channel open-drain output structure, can be used as PWM
output pins)
2-bit
!
1 (N-channel open-drain output structure, can be used as INT input
pins, A-D input pin)
8-bit
!
1 (CMOS input/output structure, can be used as OSD output pin, INT
input pin, A-D input pins, DA output pin, multi-master I
2
C-BUS interface)
8-bit
!
1 (CMOS input/output structure, can be used as serial I/O pins,
timer external clock input pins)
3-bit
!
1 (CMOS output structure, or N-channel open-drain output struc-
ture, can be used as A-D input pins, DA output pin)
1-bit
!
1 (N-channel open-drain output structure, can be used as A-D input pin)
2-bit
!
1 (Can be used as OSD clock input/output pins)
2-bit
!
1 (N-channel open-drain output structure, can be used as horizonal
• vertical synchronous sibnal input pins)
4-bit
!
1 (CMOS output structure, can be used as OSD output pins)
8-bit
!
1
1 (2 systems)
8 channels (8-bit resolution)
14-bit
!
2, 8-bit
!
6
8-bit timer
!
4
3 vectors
128 levels (maximum)
<16 types>
INT external interrupt
!
3, Internal timer interrupt
!
6, Serial I/O interrupt
!
1, OSD interrupt
!
1, Multi-master I
2
C-BUS interface interrupt
!
1,
f(X
IN
)/4096 interrupt
!
1, SPRITE OSD interrupt
!
1, A-D conversion inter-
rupt
!
1, V
SYNC
interrupt
!
1, BRK instruction interrupt
!
1, reset
!
1
2 built-in circuits (externally connected to a ceramic resonator or a quartz-
crystal oscillator)
ROM M37225M6-XXXSP
M37225M8-XXXSP
M37225ECSP
RAM M37225M6-XXXSP, M37225M8-XXXSP
M37225ECSP
OSD ROM
OSD RAM
I/O
P0
0
–P0
5
P0
6
, P0
7
P1
P2
P3
0
, P3
1
, P3
5
P3
2
P3
3
, P3
4
P5
0
, P5
1
I/O
I/O
I/O
I/O
I/O
Input
Input
Output
Input/Output
ports
P5
2
–P5
5
Serial I/O
Multi-master I
2
C-BUS interface
A-D converter
PWM output circuit
Timers
ROM correction function
Subroutine nesting
Interrupt
Clock generating circuit
Rev. 1.0
5