MITSUBISHI MICROCOMPUTERS
M37272M6H/M8H/MAH/MFH–XXXSP/FP
M37272E8SP/FP, M37272EFSP/FP
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER with CLOSED CAPTION DECODER
and ON-SCREEN DISPLAY CONTROLLER
1. DESCRIPTION
The M37272M6H/M8H/MAH/MFH-XXXSP/FP are single-chip micro-
computers designed with CMOS silicon gate technology. They have
a OSD, data slicer, and I
2
C-BUS interface, so it is useful for a chan-
nel selection system for TV with a closed caption decoder.
The features of the M37272E8SP/FP and M37272EFSP/FP are simi-
lar to those of the M37272M6H-XXXSP/FP except that the chip has
a built-in PROM which can be written electrically. The difference be-
tween M37272M6H/M8H/MAH/MFH-XXXSP/FP are the ROM size
and RAM size. Accordingly, the following descriptions will be for the
M37272M6H-XXXSP/FP.
2. FEATURES
qNumber
of basic instructions .................................................... 71
qMemory
size
ROM .............. 24K bytes
(M37272M6H-XXXSP/FP)
32K bytes
(M37272M8H-XXXSP/FP, M37272E8SP/FP)
40K bytes
(M37272MAH-XXXSP/FP)
60K bytes
(M37272MFH-XXXSP/FP, M37272EFSP/FP)
RAM ............... 1024 bytes
(M37272M6H-XXXSP/FP)
1152 bytes
(M37272M8H-XXXSP/FP, M37272E8SP/FP)
1472 bytes
(M37272MAH-XXXSP/FP, M37272MFH- .
XXXSP/FP, M37272EFSP/FP)
(*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
....................................................... 17 types, 16 vectors
q8-bit
timers .................................................................................. 6
qProgrammable
I/O ports (Ports P0, P1, P2, P3
0
, P3
1
) ............. 26
qInput
ports (Ports P5
0
, P5
1
) ........................................................ 2
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
comparator (6-bit resolution) ................................ 6 channels
qPWM
output circuit ......................................................... 8-bit
✕
6
qPower
dissipation
In high-speed mode ......................................................... 165 mW
(at V
CC
= 5.5V, 8 MHz oscillation frequency, OSD on, and Data
slicer on)
In low-speed mode ......................................................... 0.33 mW
(at V
CC
= 5.5V, 32 kHz oscillation frequency)
qROM
correction function ................................................ 2 vectors
qClosed
caption data slicer
qOSD
function
Display characters ................................... 32 characters
✕
2 lines
(It is possible to display 3 lines or more by software)
Kinds of characters ........................................................ 254 kinds
Character display area ............................ CC mode: 16
✕
26 dots
OSD mode: 16
✕
20 dots
Kinds of character sizes ..................................... CC mode: 1 kind
OSD mode: 8 kinds
Kinds of character colors .................................. 8 colors (R, G, B)
Coloring unit ................... character, character background, raster
Display position
Horizontal: 128 levels
Vertical: 512 levels
Attribute ........................................................................................
CC mode: smooth italic, underline, flash, automatic solid space
OSD mode: border
Smoth roll-up
Window function
3. APPLICATION
TV with a closed caption decoder
Rev. 1.0
1
MITSUBISHI MICROCOMPUTERS
M37272M6H/M8H/MAH/MFH–XXXSP/FP
M37272E8SP/FP, M37272EFSP/FP
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER with CLOSED CAPTION DECODER
and ON-SCREEN DISPLAY CONTROLLER
TABLE OF CONTENTS
1. DESCRIPTION .......................................................................... 1
2. FEATURES ................................................................................ 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 ........................................................... 18
8.4 TIMERS ..................................................................... 23
8.5 SERIAL I/O ................................................................ 26
8.6 MULTI-MASTER I2C-BUS INTERFACE ................... 29
8.7 PWM OUTPUT FUNCTION ...................................... 42
8.8 A-D COMPARATOR .................................................. 46
8.9 ROM CORRECTION FUNCTION ............................. 48
8.10 DATA SLICER ......................................................... 49
8.11 OSD FUNCTIONS ................................................... 60
8.11.1 Display Position ....................................... 65
8.11.2 Dot Size ................................................... 69
8.11.3 Clock for OSD .......................................... 70
8.11.4 Field Determination Display ..................... 71
8.11.5 Memory for OSD ...................................... 73
8.11.6 Character color ........................................ 77
8.11.7 Character background color .................... 77
8.11.8 OUT1, OUT2 signals ............................... 78
8.11.9 Attribute .................................................... 79
8.11.10 Multiline Display ..................................... 84
8.11.11 Automatic Solid Space Function ............ 85
8.11.12 Window Function ................................... 86
8.11.13 OSD Output Pin Control ........................ 88
8.11.14 Raster Coloring Function ....................... 89
8.12 SOFTWARE RUNAWAY DETECT FUNCTION ...... 91
8.13. RESET CIRCUIT .................................................... 92
8.14 CLOCK GENERATING CIRCUIT ............................ 93
8.15 DISPLAY OSCILLATION CIRCUIT ......................... 96
8.16 AUTO-CLEAR CIRCUIT .......................................... 96
8.17 ADDRESSING MODE ............................................. 96
8.18 MACHINE INSTRUCTIONS .................................... 96
9. PROGRAMMING NOTES ........................................................ 96
10. ABSOLUTE MAXIMUM RATINGS ......................................... 97
11. RECOMMENDED OPERATING CONDITIONS ..................... 97
12. ELECTRIC CHARACTERISTICS .......................................... 98
13. A-D CONVERTER CHARACTERISTICS ............................. 100
14. MULTI-MASTER I2C-BUS BUS LINE CHARACTERISTICS ......... 100
15. PROM PROGRAMMING METHOD ..................................... 101
16. DATA REQUIRED FOR MASK ORDERS ............................ 102
17. ONE TIME PROM VERSION M37272E8SP/FP, M37272EFSP/FP MARKING ...... 103
18. APPENDIX .......................................................................... 104
19. PACKAGE OUTLINE ........................................................... 129
Rev. 1.0
2
MITSUBISHI MICROCOMPUTERS
M37272M6H/M8H/MAH/MFH–XXXSP/FP
M37272E8SP/FP, M37272EFSP/FP
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER with CLOSED CAPTION DECODER
and ON-SCREEN DISPLAY CONTROLLER
4. PIN CONFIGURATION
P5
0
/H
SYNC
P5
1
/V
SYNC
P0
0
/PWM0
P0
1
/PWM1
P0
2
/PWM2
P0
3
/PWM3
P0
4
/PWM4
P0
5
/PWM5
P0
6
/INT2/AD4
P0
7
/INT1
P2
3
/TIM3
P2
4
/TIM2
P2
5
1
2
3
4
42
41
40
39
P5
2
/R
P5
3
/G
P5
4
/B
P5
5
/OUT1
P2
0
/S
CLK
P2
1
/S
OUT
P2
2
/S
IN
P1
0
/OUT2
P1
1
/SCL1
P1
2
/SCL2
P1
3
/SDA1
P1
4
/SDA2
P1
5
/AD1/INT3
P1
6
/AD2
P1
7
/AD3
P3
0
/AD5
P3
1
/AD6
RESET
P2
6
/OSC1/X
CIN
P2
7
/OSC2/X
COUT
V
C C
Note:
Only 14th pin is NC pin of M37272M6H/
M37272M6H/M8H/MAH/MFH-XXXSP
M37272E8/EFSP
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
38
37
36
35
34
33
32
31
30
29
28
27
26
25
24
23
22
( )...M37272E8/EFSP
(AV
CC
) NC
HLF
V
HOLD
CV
IN
CNV
SS
X
IN
X
OUT
V
SS
Outline 42P4B
Fig. 4.1 Pin Configuration (1) (Top View)
M8H/MAH/MFH-XXXSP. This pin is
AVcc pin of M37272E8/EFSP. But NC
pin of M37272M6H/M8H/MAH/MFH-
XXX SP is not connect in the IC. You
can apply to Vcc.
P5
0
/H
SYNC
P5
1
/V
SYNC
P0
0
/PWM0
P0
1
/PWM1
P0
2
/PWM2
P0
3
/PWM3
P0
4
/PWM4
P0
5
/PWM5
P0
6
/INT2/AD4
P0
7
/INT1
P2
3
/TIM3
P2
4
/TIM2
P2
5
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
P5
2
/R
P5
3
/G
P5
4
/B
P5
5
/OUT1
P2
0
/S
CLK
P2
1
/S
OUT
P2
2
/S
IN
P1
0
/OUT2
P1
1
/SCL1
P1
2
/SCL2
P1
3
/SDA1
P1
4
/SDA2
P1
5
/AD1/INT3
P1
6
/AD2
P1
7
/AD3
P3
0
/AD5
P3
1
/AD6
RESET
P2
6
/OSC1/X
CIN
P2
7
/OSC2/X
COUT
V
C C
M37272M6H/M8H/MAH/MFH-XXXFP
M37272E8/EFFP
( )...M37272E8/EFFP
(AV
CC
) NC
HLF
V
HOLD
CV
IN
CNV
SS
X
IN
X
OUT
V
SS
Outline 42P2R-A/E
Fig. 4.2 Pin Configuration (2) (Top View)
Note:
Only 14th pin is NC pin of M37272M6H/
M8H/MAH/MFH-XXXFP. This pin is
AVcc pin of M37272E8/EFSP. But NC
pin of M37272M6H/M8H/MAH/MFH-
XXX SP is not connect in the IC. You
can apply to Vcc.
Rev. 1.0
3
INT1
INT2
INT3
SDA2
SDA1
SCL2
SCL1
S
IN
S
CLK
S
OUT
PWM5
PWM4
PWM3
PWM2
PWM1
PWM0
AD1—
6
10 9 8 7 6 5 4 3
13 12 11 36 37 38
26 27
28 29 30 31 32 33 34 35
I/O port P0
I/O port P2
I/O port P1
I/O ports P3
0
, P3
1
Output ports P5
2
— 5
5
P
Output for display Input ports P5
0
, P5
1
Synchronous signal input
OUT1
B
G
R
V
SYNC
H
SYNC
4
*( )... M37272E8SP/FP, M37272EFSP/FP
V
SS
CNV
SS
18
17
16
15
24
23
21
Clock input Clock output
X
IN
X
OUT
25
14
22
Resetinput (AV
CC
*)
RESET NC V
CC
Pins for data slicer
CV
IN
V
HOLD
HLF
V
I/O ports P2
6
, P2
7
Clock input for Clock output for OSD/
OSD/sub-clock input sub-clock output
OSC1/X
CIN
OSC2/X
COUT
19
20
Clock
generating
circuit
Data slicer
Fig. 5.1 Functional Block Diagram of M37272
TIM2
TIM3
Timer count source
selection circuit
Program
counter
Data bus
5. FUNCTIONAL BLOCK DIAGRAM
ROM correction
circuit
ROM
PC
L
(8)
Timer 2
T2 (8)
Timer 3
T3 (8)
RAM
Progam
counter
Timer 1
T1 (8)
PC
H
(8)
Address bus
Timer 4
T4 (8)
Control signal
Index
register
Index
register
8-bit
arithmetic
and
logical unit
X (8)
Y (8)
Instruction
register (8)
Stack
pointer
S (8)
Timer 5
T5 (8)
Timer 6
T6 (8)
Instruction
decoder
Accumulator
A (8)
Processor
status
register
PS (8)
OS D
circuit
A-D
comparator
SI/O
P 2 ( 8)
P 3 ( 2)
Multi-master
I2C-BUS
interface
PWM
P 5 ( 6)
P1
0
OUT2
P 0 ( 8)
P 1 ( 8)
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER with CLOSED CAPTION DECODER
and ON-SCREEN DISPLAY CONTROLLER
MITSUBISHI MICROCOMPUTERS
M37272M6H/M8H/MAH/MFH–XXXSP/FP
M37272E8SP/FP, M37272EFSP/FP
39 40 41 42 2 1
Rev. 1.0
MITSUBISHI MICROCOMPUTERS
M37272M6H/M8H/MAH/MFH–XXXSP/FP
M37272E8SP/FP, M37272EFSP/FP
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER with CLOSED CAPTION DECODER
and ON-SCREEN DISPLAY CONTROLLER
6. PERFORMANCE OVERVIEW
Table 6.1 Performance Overview
Parameter
Number of basic instructions
Instruction execution time
Clock frequency
Memory size
ROM M37272M6H-XXXSP/FP
M37272M8H-XXXSP/FP,M37272E8SP/FP
M37272MAH-XXXSP/FP
M37272MFH-XXXSP/FP, M37272EFSP/FP
RAM M37272M6H-XXXSP/FP
M37272M8H-XXXSP/FP,M37272E8SP/FP
M37272MAH-XXXSP/FP, M37272MFH-XXXSP/FP, M37272EFSP/FP
OSD ROM
OSD RAM
Input/Output
P0
I/O
ports
P1
0
–P1
7
I/O
Functions
71
0.5
µs
(the minimum instruction execution time, at 8 MHz oscillation fre-
quency)
8 MHz (maximum)
24K bytes
32K bytes
40K bytes
60K bytes
1024 bytes (ROM correction memory included)
1152 bytes (ROM correction memory included)
1472 bytes (ROM correction memory included)
10K bytes
128 bytes
8-bit
✕
1 (N-channel open-drain output structure, can be used as PWM
output pins, INT input pins, A-D input pin)
8-bit
✕
1 (CMOS input/output structure, however, N-channel open-drain
output structure, when P1
1
–P1
4
are used as multi-master I
2
C-BUS inter-
face, can be used as OSD output pin, A-D input pins, INT input pin, multi-
master I
2
C-BUS interface)
8-bit
✕
1 (P2 is CMOS input/output structure, however, N-channel open-
drain output structure when P2
0
and 2
1
are used as serial output, can be
used as serial input/output pins, timer external clock input pins, OSD clock
input/output pin, sub-clock input/output pins)
2-bit
✕
1 (CMOS input/output or N-channel open-drain output structure,
can be used as A-D input pins)
2-bit
✕
1 (can be used as OSD input pins)
4-bit
✕
1 (CMOS output structure, can be used as OSD output pins)
8-bit
✕
1
1 (2 systems)
6 channels (6-bit resolution)
8-bit
✕
6
8-bit timer
✕
6
2 vectors
128 levels (maximum)
<17 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, Data
slicer interrupt
✕
1, f(X
IN
)/4096 interrupt
✕
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)
Built-in
P2
0
–P2
7
I/O
P3
0
, P3
1
P5
0
, P5
1
P5
2
–P5
5
Serial I/O
Multi-master I
2
C-BUS interface
A-D comparator
PWM output circuit
Timers
ROM correction function
Subroutine nesting
Interrupt
I/O
Input
Output
Clock generating circuit
Data slicer
Rev. 1.0
5