MITSUBISHI MICROCOMPUTERS
M37281MAH–XXXSP,M37281MFH–XXXSP
M37281MKH–XXXSP,M37281EKSP
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER with CLOSED CAPTION DECODER
and ON-SCREEN DISPLAY CONTROLLER
1. DESCRIPTION
The M37281MAH–XXXSP, M37281MFH–XXXSP and M37281MKH-
XXXSP are single-chip microcomputers designed with CMOS silicon
gate technology. They have a OSD function and a data slicer func-
tion, so it is useful for a channel selection system for TV with a closed
caption decoder.
The feautures of the M37281EKSP is similar to those of the
M37281MKH-XXXSP except that the chip has a built-in PROM which
can be written electrically. The difference between M37281MAH–
XXXSP, M37281MKH-XXXSP and M37281MFH-XXXSP are the ROM
size and RAM size. Accordingly, the following descriptions will be for
the M37281MKH-XXXSP.
2. FEATURES
qNumber
of basic instructions .................................................... 71
qMemory
size
ROM .................. 40K bytes (M37281MAH-XXXSP)
60K bytes (M37281MFH-XXXSP)
80K bytes (M37281MKH-XXXSP,
M37281EKSP)
RAM ................... 1088 bytes (M37281MAH-XXXSP,
M37281MFH-XXXSP)
1536 bytes (M37281MKH-XXXSP,
M37281EKSP)
(*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
....................................................... 19 types, 16 vectors
q8-bit
timers .................................................................................. 6
qProgrammable
I/O ports (Ports P0, P1, P2, P3
0
, P3
1
) ............. 26
qInput
ports (Ports P4
0
–P4
6
, P6
3
, P6
4
, P7
0
–P7
2
) ...................... 12
qOutput
ports (Ports P5
2
–P5
5
) ..................................................... 4
qLED
drive ports ........................................................................... 2
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 ......................................................... 8-bit
✕
8
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
✕
16 lines + RAM font (1 character)
(CC/OSD mode)(CDOSD mode)(RAM font)
Kinds of characters ......... 510 kinds
+ 62 kinds + 1 kind
(Coloring unit)
(a character)
(a dot)
(a dot)
Triple layer function .......................................................................
2 layers selected from CC/CDOSD/OSD mode + RAM font layer
Character display area .............. CC/CDOSD mode: 16
✕
26 dots
OSD mode/RAM font: 16
✕
20 dots
Kinds of character sizes .................... CC mode/RAM font: 4 kinds
OSD/CDOSD mode: 14 kinds
Kinds of character colors ..............................................................
64 colors (4 adjustment levels for each R, G, B)
Coloring unit ............ dot, character, character background, raster
Blanking output OUT1, OUT2
Display position
Horizontal: 256 levels
Vertical :1024 levels
(RAM font can be set independently)
Attribute ........................................................................................
CC mode: smooth italic, underline, flash, automatic solid space
OSD mode: border, shadow
Window/Blank function
3. APPLICATION
TV with a closed caption decoder
Rev. 1.0
MITSUBISHI MICROCOMPUTERS
M37281MAH–XXXSP,M37281MFH–XXXSP
M37281MKH–XXXSP,M37281EKSP
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 .................................................................... 21
8.4 TIMERS ............................................................................. 26
8.5 SERIAL I/O ........................................................................ 30
8.6 MULTI-MASTER I2C-BUS INTERFACE ........................... 33
8.7 PWM OUTPUT CIRCUIT .................................................. 46
8.8 A-D CONVERTER ............................................................. 50
8.9 ROM CORRECTION FUNCTION ..................................... 54
8.10 DATA SLICER .................................................................. 55
8.11 OSD FUNCTIONS ........................................................... 66
8.11.1 Triple Layer OSD ................................................... 71
8.11.2 Display Position ..................................................... 74
8.11.3 Dot Size ................................................................. 78
8.11.4 Clock for OSD ....................................................... 79
8.11.5 Field Determination Display .................................. 81
8.11.6 Memory for OSD ................................................... 83
8.11.7 Character Color ..................................................... 91
8.11.8 Character Background Color ................................. 91
8.11.9 OUT1, OUT2 Signals ............................................ 95
8.11.10 Attribute ............................................................... 96
8.11.11 Automatic Solid Space Function ........................ 101
8.11.12 Multiline Display ................................................ 102
8.11.13 SPRITE OSD Function ...................................... 103
8.11.14 Window Function ............................................... 107
8.11.15 Blank Function ................................................. 108
8.11.16 Raster Coloring Function .................................. 113
8.11.17 Scan Mode ........................................................ 115
8.11.18 OSD Output Pin Control .................................... 116
8.12. SOFTWARE RUNAWAY DETECT FUNC-TION .......... 117
8.13. RESET CIRCUIT .......................................................... 118
8.14 CLOCK GENERATING CIRCUIT .................................. 119
8.15. DISPLAY OSCILLATION CIRCUIT ............................... 122
8.16. AUTO-CLEAR CIRCUIT ............................................... 122
8.17. ADDRESSING MODE .................................................. 122
8.18. MACHINE INSTRUCTIONS ......................................... 122
9. PROGRAMMING NOTES ...................................................... 122
10. ABSOLUTE MAXIMUM RATINGS ....................................... 123
11. RECOMMENDED OPERATING CONDITIONS ................... 123
12. ELECTRIC CHARACTERISTICS ........................................ 124
13. ANALOG R, G, B OUTPUT CHARACTERISTICS ............... 126
14. A-D CONVERTER CHARACTERISTICS ............................. 126
15. MULTI-MASTER I2C-BUS BUS LINE CHARACTERISTICS ......... 127
16. PROM PROGRAMMING METHOD ..................................... 128
17. DATA REQUIRED FOR MASK ORDERS ............................ 129
18. APPENDIX ........................................................................... 130
19. PACKAGE OUTLINE ........................................................... 170
Rev. 1.0
2
MITSUBISHI MICROCOMPUTERS
M37281MAH–XXXSP,M37281MFH–XXXSP
M37281MKH–XXXSP,M37281EKSP
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER with CLOSED CAPTION DECODER
and ON-SCREEN DISPLAY CONTROLLER
4. PIN CONFIGURATION
H
SYNC
V
SYNC
P4
0
/AD4
P4
1
/INT2
P4
2
/TIM2
P4
3
/TIM3
P2
4
/AD3
P2
5
/AD2
P2
6
/AD1
P2
7
/AD5
P0
0
/PWM4
P0
1
/PWM5
P0
2
/PWM6
P1
7
/S
IN
/R0
P4
4
/INT1
P4
5
/S
OUT
P4
6
/S
CLK
( )...M37281EKSP (AV
CC
) NC
HLF/AD6
P7
2
/(S
IN
)
P7
1
/V
HOLD
P7
0
/CV
IN
CNV
SS
X
IN
X
OUT
V
SS
1
2
3
4
5
6
52
51
50
49
48
47
P5
2
/R/R1
P5
3
/G/G1
P5
4
/B/B1
P5
5
/OUT1
P0
4
/PWM0
P0
5
/PWM1
P0
6
/PWM2
P0
7
/PWM3
P2
0
P2
1
P2
2
P2
3
P1
0
/OUT2
P1
1
/SCL1
P1
2
/SCL2
P1
3
/SDA1
P1
4
/SDA2
P1
5
/G0
P1
6
/INT3/B0
P0
3
/PWM7
P3
0
/AD7
P3
1
/AD8
RESET
P6
4
/OSC2/X
COUT
P6
3
/OSC1/X
CIN
V
CC
Note:
Only 18th pin is NC pin of M37281MAH/
MFH/MKH-XXXSP. This pin is AVcc pin
of M37281EKSP. But NC pin of
M37281MAH/MFH/MKH-XXXSP is not
connect in the IC. You can apply to Vcc.
M37281MAH-XXXSP, M37281MFH-XXXSP,
M37281MKH-XXXSP, M37281EKSP
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
46
45
44
43
42
41
40
39
38
37
36
35
34
33
32
31
30
29
28
27
Outline 52P4B
Fig. 4.1 Pin Configuration (Top View)
Rev. 1.0
3
S
IN
S
CLK
S
OUT
SDA2
SDA1
SCL2
SCL1
PWM7
PWM6
PWM5
PWM4
PWM3
PWM2
PWM1
PWM0
P3 (2)
P2 (8)
P0 (8)
P1 (8)
P4 (7)
INT1
INT2
Multi-master
2C-BUS interface
I
INT3
31 32
14 34 35 36 37 38 39 40
10 9 8 7 41 42 43 44 45 46 47 48 33 13 12 11
17 16 15 6 5 4 3
OUT1
B
G
R
49 50 51 52
M37281MAH–XXXSP,M37281MFH–XXXSP
M37281MKH–XXXSP,M37281EKSP
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER with CLOSED CAPTION DECODER
and ON-SCREEN DISPLAY CONTROLLER
MITSUBISHI MICROCOMPUTERS
I/O ports
P3
0
, P3
1
I/O port P2
I/O port P1
I/O port P0
Input ports P4
0
–P4
6
Output port
P5
2
–P5
5
Sync
signal input
V
SYNC
H
SYNC
4
Input ports P6
3
, P6
4
( )... M37281EKSP
Clock input for OSD/
sub-clock input
Clock output for OSD/
sub-clock output
OSC2/X
OUT
29
Input ports P7
0 –
P7
2
Clock input Clock output
V
SS
CNV
SS
26
23
22
21
19
28
20
X
IN
X
OUT
30
18
27
Reset input (AV
CC
)
RESET NC V
CC
OSC1/X
CIN
Pins for data slicer
CV
IN
V
HOLD
HLF
24
35
SI/O
P7 (3)
Data slicer
OSD circuit
P6(2)
A-D converter
OSD circuit
Clock
generating
circuit
TIM2
TIM3
Program
counter
Fig. 5.1 Functional Block Diagram of M37281
Timer count source
selection circuit
ROM
Timer 1
T1 (8)
Timer 2
T2 (8)
Timer 3
T3 (8)
PC
L
(8)
Timer 4
T4 (8)
Control signal
Index
register
Index
register
5. FUNCTIONAL BLOCK DIAGRAM
Data bus
RAM
Progam
counter
PC
H
(8)
Address bus
8-bit
arithmetic
and
logical unit
X (8)
Y (8)
Stack
pointer
S (8)
Timer 5
T5 (8)
Timer 6
T6 (8)
Instruction
decoder
Instruction
register (8)
Accumulator
A (8)
Processor
status
register
PS (8)
OSD circuit
A-D
converter
SI/O (8)
8-bit
PWM circuit
P5 (4)
2
1
Rev. 1.0
MITSUBISHI MICROCOMPUTERS
M37281MAH–XXXSP,M37281MFH–XXXSP
M37281MKH–XXXSP,M37281EKSP
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
Functions
71
0.5
µs
(the minimum instruction execution time, at 8 MHz oscillation fre-
quency)
8 MHz (maximum)
40K bytes
60K bytes
80K bytes
1088 bytes (ROM correction memory included)
1536 bytes (ROM correction memory included)
20400 bytes
9672 bytes
120 bytes
1536 bytes
7-bit
✕
1 (N-channel open-drain output structure, can be used as PWM
output pins)
1-bit
✕
1 (CMOS input/output structure, can be used as PWM output pin)
4-bit
✕
1 (CMOS input/output structure, can be used as OSD output pin,
INT input pin, serial input pin)
4-bit
✕
1 (N-channel open-drain output structure, can be used as multi-
master I
2
C-BUS interface)
8-bit
✕
1 (CMOS input/output structure, can be used as A-D input pins)
2-bit
✕
1 (CMOS input/output structure, can be used as A-D input pins)
5-bit
✕
1 (can be used as A-D input pins, INT input pins, external clock input
pins for timer)
2-bit
✕
1 (N-channel open-drain output structure when serial I/O is used,
can be used as serial I/O pins)
4-bit
✕
1 (CMOS output structure, can be used as OSD output pins)
1-bit
✕
1 (can be used as sub-clock input pin, OSD clock input pin)
1-bit
✕
1 (CMOS output structure when LC is oscillating, can be used as
sub-clock output pin, OSD clock output pin)
3-bit
✕
1 (can be used as data slicer input/output, serial input pin)
8-bit
✕
1
1 (2 systems)
8 channels (8-bit resolution)
8-bit
✕
8
8-bit timer
✕
6
2 vectors
128 levels (maximum)
<19 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, SPRITE OSD interrupt
✕
1, V
SYNC
interrupt
✕
1, A-D conversion interrupt
✕
1, BRK instruction inter-
rupt
✕
1, Reset
✕
1
2 built-in circuits (externally connected to a ceramic resonator or a quartz-
crystal oscillator)
Built in
ROM
RAM
M37281MAH-XXXSP
M37281MFH-XXXSP
M37281MKH-XXXSP, M37281EKSP
M37281MAH-XXXSP,M37281MFH-XXXSP
M37281MKH-XXXSP, M37281EKSP
Input/Output
ports
OSD ROM (character font)
OSD ROM (color dot font)
OSD RAM (SPRITE)
OSD RAM (character)
P0
0
–P0
2
, P0
4
–P0
7
P0
3
P1
0
, P1
5
–P1
7
P1
1
–P1
4
P2
P3
0
, P3
1
P4
0
–P4
4
P4
5
, P4
6
P5
2
–P5
5
P6
3
P6
4
P7
0
–P7
2
I/O
I/O
I/O
I/O
I/O
I/O
Input
Input
Output
Input
Input
Input
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
Data slicer
Rev. 1.0
5