Mitsubishi M37272MA-XXXSP, M37272M8-XXXSP, M37272M8-XXXFP, M37272M6-XXXSP, M37272M6-XXXFP Datasheet

...
0 (0)

MITSUBISHI MICROCOMPUTERS

M37272M6/M8–XXXSP/FP, M37272MA–XXXSP M37272E8SP/FP, M37272EFSP

SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER with CLOSED CAPTION DECODER and ON-SCREEN DISPLAY CONTROLLER

1. DESCRIPTION

The M37272M6/M8-XXXSP/FP and M37272MA-XXXSP are singlechip microcomputers designed with CMOS silicon gate technology. They have a OSD, data slicer, and I2C-BUS interface, so it is useful for a channel selection system for TV with a closed caption decoder. The features of the M37272E8SP/FP and M37272EFSP are similar to those of the M37272M6-XXXSP except that the chip has a built-in PROM which can be written electrically. The difference between M37272M6-XXXSP/FP, M37272M8-XXXSP/FP and M37272MAXXXSP are the ROM size and RAM size. Accordingly, the following descriptions will be for the M37272M6-XXXSP/FP.

2. FEATURES

 

 

 

●Number of basic instructions

....................................................

 

71

●Memory size

 

 

 

ROM ..............

24K bytes

 

 

 

(M37272M6-XXXSP/FP)

 

 

32K bytes

 

 

 

(M37272M8-XXXSP/FP, M37272E8SP/FP)

 

40K bytes

 

 

 

(M37272MA-XXXSP)

 

 

60K bytes

 

 

 

(M37272EFSP)

 

 

RAM ...............

1024 bytes

 

 

 

(M37272M6-XXXSP/FP)

 

 

1152 bytes

 

 

 

(M37272M8-XXXSP/FP, M37272E8SP/FP)

 

1472 bytes

 

 

 

(M37272MA-XXXSP, M37272EFSP)

(*ROM correction memory included)

●Minimum instruction execution time

 

 

......................................... 0.5 μs (at 8 MHz oscillation frequency)

●Power source voltage .................................................

 

 

5 V ± 10 %

●Subroutine nesting .............................................

 

128 levels (Max.)

●Interrupts .......................................................

 

17 types, 16 vectors

●8-bit timers ..................................................................................

 

 

6

●Programmable I/O ports (Ports P0, P1, P2, P30, P31)

............. 26

●Input ports (Ports P50, P51) ........................................................

 

 

2

●Output ports (Ports P52–P55) .....................................................

 

4

●12 V withstand ports ...................................................................

 

 

6

●LED drive ports ...........................................................................

 

 

4

●Serial I/O ............................................................

 

8-bit 1 channel

●Multi-master I2C-BUS interface ..............................

1 (2 systems)

●A-D comparator (6-bit resolution) ................................

 

6 channels

●PWM output circuit .........................................................

 

 

8-bit 6

●Power dissipation

 

 

 

In high-speed mode .........................................................

 

 

165 mW

(at VCC = 5.5V, 8 MHz oscillation frequency, OSD on, and Data

slicer on)

 

 

 

In low-speed mode .........................................................

 

 

0.33 mW

(at VCC = 5.5V, 32 kHz oscillation frequency)

 

 

●ROM correction function ................................................

 

 

2 vectors

●Closed caption data slicer

 

 

 

●OSD 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.5

MITSUBISHI MICROCOMPUTERS

M37272M6/M8–XXXSP/FP, M37272MA–XXXSP

M37272E8SP/FP, M37272EFSP

SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER with CLOSED CAPTION DECODER and 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 ...........................................................

18

8.4 TIMERS .....................................................................

23

8.5 SERIAL I/O ................................................................

26

8.6 MULTI-MASTER I2C-BUS INTERFACE ....................

29

8.7 PWM OUTPUT CIRCUIT ..........................................

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 Multiple 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 COMPARISON CHARACTERISTICS ...........................

100

14. MULTI-MASTER I2C-BUS BUS LINE CHARACTERISTICS .........

100

15. PROM PROGRAMMING METHOD .....................................

101

16. DATA REQUIRED FOR MASK ORDERS ............................

102

17. MASK CONFIRMATION FORM ...........................................

103

18. MARK SPECIFICATION FORM ...........................................

112

19. ONE TIME PROM VERSIONS M37272E8SP/FP,

 

M37272EFSP MARKING .....................................................

114

20. APPENDIX ...........................................................................

115

21. PACKAGE OUTLINE ...........................................................

140

Rev. 1.3

2

MITSUBISHI MICROCOMPUTERS

M37272M6/M8–XXXSP/FP, M37272MA–XXXSP

M37272E8SP/FP, M37272EFSP

SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER with CLOSED CAPTION DECODER and ON-SCREEN DISPLAY CONTROLLER

4. PIN CONFIGURATION

P50/HSYNC 1

P51/VSYNC 2

P00/PWM0 3

P01/PWM1 4

P02/PWM2 5

P03/PWM3 6

P04/PWM4 7

P05/PWM5 8

P06/INT2/AD4 9 P07/INT1 10

P23/TIM3 11 P24/TIM2 12

P25 13

AVCC 14

HLF 15

VHOLD 16

CVIN 17

CNVSS 18 XIN 19

XOUT 20

VSS 21

XXXSP-37272M6/M8/MAM M37272E8/EFSP

42 P52/R

41 P53/G

40 P54/B

39 P55/OUT1

38 P20/SCLK

37 P21/SOUT 36 P22/SIN

35 P10/OUT2

34 P11/SCL1

33 P12/SCL2

32 P13/SDA1

31 P14/SDA2

30 P15/AD1/INT3 29 P16/AD2

28 P17/AD3

27 P30/AD5

26 P31/AD6

25 RESET

24 P26/OSC1/XCIN

23 P27/OSC2/XCOUT

22 VCC

Outline 42P4B

Fig. 4.1 Pin Configuration (1) (Top View)

P50/HSYNC

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P52/R

 

 

 

 

 

 

1

 

 

42

 

 

 

 

 

 

P51/VSYNC

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P53/G

 

 

 

 

 

 

2

 

 

41

 

 

 

 

 

 

P00/PWM0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P54/B

 

 

 

 

 

3

 

 

40

 

 

 

 

 

 

P01/PWM1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P55/OUT1

 

 

 

 

 

4

 

 

39

 

 

 

 

 

 

P02/PWM2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P20/SCLK

 

 

5

 

 

38

 

 

 

 

 

 

P03/PWM3

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P21/SOUT

 

 

6

M37272E8FP

XXXFP-37272M6/M8M

37

 

 

 

 

 

 

 

 

 

 

 

P04/PWM4

 

 

 

 

 

 

 

 

 

 

 

 

 

P22/SIN

 

 

 

 

 

7

 

 

36

 

 

 

 

 

 

P05/PWM5

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P10/OUT2

 

 

 

 

 

8

 

 

35

 

 

 

 

 

 

P06/INT2/AD4

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P11/SCL1

 

 

 

 

 

9

 

 

34

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P07/INT1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P12/SCL2

 

 

 

 

 

10

 

 

33

 

 

P23/TIM3

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P13/SDA1

 

 

11

 

 

32

 

 

P24/TIM2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P14/SDA2

 

 

 

 

 

12

 

 

31

 

 

 

 

 

 

 

 

 

 

 

 

P25

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P15/AD1/INT3

 

 

 

 

 

13

 

 

30

 

 

 

 

 

 

AVCC

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P16/AD2

 

 

 

 

14

 

 

29

 

 

HLF

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P17/AD3

 

 

 

 

 

15

 

 

28

 

 

VHOLD

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P30/AD5

 

 

 

 

16

 

 

27

 

 

CVIN

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P31/AD6

 

 

 

 

17

 

 

26

 

 

CNVSS

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

18

 

 

25

 

 

 

 

 

 

RESET

 

XIN

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P26/OSC1/XCIN

 

 

 

 

19

 

 

24

 

 

 

 

 

 

XOUT

 

 

 

 

 

 

 

 

 

 

 

 

 

P27/OSC2/XCOUT

 

 

 

 

 

20

 

 

23

 

 

 

 

 

 

 

 

 

 

 

 

 

VSS

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

VCC

 

 

 

21

 

 

22

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Outline 42P2R-A/E

Fig. 4.2 Pin Configuration (2) (Top View)

Rev. 1.4

3

Mitsubishi M37272MA-XXXSP, M37272M8-XXXSP, M37272M8-XXXFP, M37272M6-XXXSP, M37272M6-XXXFP Datasheet

MITSUBISHI MICROCOMPUTERS

M37272M6/M8–XXXSP/FP, M37272MA–XXXSP

M37272E8SP/FP, M37272EFSP

SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER with CLOSED CAPTION DECODER and ON-SCREEN DISPLAY CONTROLLER

5. FUNCTIONAL BLOCK DIAGRAM

P26, P27

Clock output for OSD/

sub-clock output

OSC2/XCOUT

23

I/O ports

Clock input for

OSD/sub-clock input

OSC1/XCIN

24

 

P5 (6)

OSD circuit

OUT2

 

P10

HYNCS

VYNCS R G

B UT1O

1

 

P50, P51

signal input

39 40 41 42 2

P52–P55

Input ports

Synchronous

display

 

Output ports

Output for

 

forPinsdata slicer

HLF

17 16 15

Dataslicer

sourcecountTimer circuitselection

1Timer (8)T1

2Timer (8)T2

CVIN

 

HOLDV

 

 

 

 

 

 

CNVSS

18

 

ROM

 

 

VSS

21

 

 

inputReset

VCC

22

bus

ProgamProgram

counter

(8)PCHPCL (8)

RESETAVCC

25 14

 

 

 

 

 

counter

 

 

 

 

Data

RAM

Address bus

input Clock output

XIN XOUT

19 20

Clock generating circuit

ROM correction

circuit

Clock

 

 

 

 

 

 

 

Controlsignal

Instruction

decoder

Instruction

register(8)

PWM

WM0P

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

WM1P

 

 

 

 

 

 

 

 

 

WM2P

 

 

 

 

 

 

 

 

 

WM3P

 

 

 

 

 

 

 

 

 

WM4P

 

 

 

 

 

 

 

 

 

WM5P

 

 

Timer3 (8)T3

Timer4 (8)T4

Timer5 (8)T5

Timer6 (8)T6

SI/O

SUTO

 

 

SLKC

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

master-Multi

I interface

SNI

 

10P3,P3

 

 

 

 

 

CL1S

 

 

 

 

 

 

 

BUS

 

 

 

 

 

 

 

 

CL2S

 

 

 

 

 

 

 

 

C-

DA1S

 

 

 

 

 

 

 

 

2

 

 

 

 

 

 

 

 

 

DA2S

 

 

 

Stack

pointer

S (8)

 

 

 

P3 (2)

26 27

I/O ports

 

Index

register

Y (8)

 

A-D comparator

P2 (8)

12 11 36 37 38

I/O port P2

 

Index

gisreter

X(8)

 

6–D1A

35 13

 

 

Processor

status

register

PS (8)

 

 

P1 (8)

29 30 31 32 33 34

I/O port P1

 

Accumulator A (8)

 

 

 

 

4 3 28

I/O port P0

 

8-bit

arithmetic

and

logical unit

NT3I

P0 (8)

10 9 8 7 65

 

 

 

 

 

 

 

 

 

 

 

 

 

NT2I

 

 

 

 

 

 

 

 

NT1I

 

 

 

Fig. 5.1 Functional Block Diagram of M37272

Rev. 1.3

4

MITSUBISHI MICROCOMPUTERS

M37272M6/M8–XXXSP/FP, M37272MA–XXXSP

M37272E8SP/FP, M37272EFSP

SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER with CLOSED CAPTION DECODER and ON-SCREEN DISPLAY CONTROLLER

6. PERFORMANCE OVERVIEW

Table 6.1 Performance Overview

 

 

 

Parameter

 

Functions

Number of basic instructions

 

71

Instruction execution time

 

μ

 

 

 

 

 

 

 

0.5 s (the minimum instruction execution time, at 8 MHz oscillation fre-

 

 

 

 

 

 

 

quency)

Clock frequency

 

 

 

 

 

8 MHz (maximum)

Memory size

 

ROM

 

M37272M6-XXXSP/FP

24K bytes

 

 

 

 

M37272M8-XXXSP/FP,M37272E8SP/FP

32K bytes

 

 

 

 

 

 

 

 

 

 

 

M37272MA-XXXSP

 

40K bytes

 

 

 

 

M37272EFSP

 

60K bytes

 

 

RAM

 

M37272M6-XXXSP/FP

1024 bytes (ROM correction memory included)

 

 

 

 

M37272M8-XXXSP/FP,M37272E8SP/FP

1152 bytes (ROM correction memory included)

 

 

 

 

M37272MA-XXXSP, M37272EFSP

1472 bytes (ROM correction memory included)

 

 

OSD ROM

 

10K bytes

 

 

OSD RAM

 

128 bytes

Input/Output

 

P0

 

 

 

I/O

8-bit 1 (N-channel open-drain output structure, can be used as PWM

ports

 

 

 

 

 

 

output pins, INT input pins, A-D input pin)

 

 

P10–P17

 

I/O

8-bit 1 (CMOS input/output structure, however, N-channel open-drain

 

 

 

 

 

 

 

output structure, when P11–P14 are used as multi-master I2C-BUS inter-

 

 

 

 

 

 

 

face, can be used as OSD output pin, A-D input pins, INT input pin, multi-

 

 

 

 

 

 

 

master I2C-BUS interface)

 

 

P20–P27

 

I/O

8-bit 1 (P2 is CMOS input/output structure, however, N-channel open-

 

 

 

 

 

 

 

drain output structure when P20 and 21 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)

 

 

 

 

 

 

 

 

 

P30, P31

 

I/O

2-bit 1 (CMOS input/output or N-channel open-drain output structure,

 

 

 

 

 

 

 

can be used as A-D input pins)

 

 

P50, P51

 

Input

2-bit 1 (can be used as OSD input pins)

 

 

P52–P55

 

Output

4-bit 1 (CMOS output structure, can be used as OSD output pins)

 

 

 

 

 

 

 

 

Serial I/O

 

 

 

 

 

8-bit 1

Multi-master I2C-BUS interface

 

1 (2 systems)

A-D comparator

 

 

 

 

 

6 channels (6-bit resolution)

PWM output circuit

 

 

 

 

 

8-bit 6

Timers

 

 

 

 

 

8-bit timer 6

ROM correction function

 

 

 

 

2 vectors

Subroutine nesting

 

 

 

 

 

128 levels (maximum)

Interrupt

 

 

 

 

 

<17 types>

 

 

 

 

 

 

 

INT external interrupt 3, Internal timer interrupt 6, Serial I/O interrupt

 

 

 

 

 

 

 

1, OSD interrupt 1, Multi-master I2C-BUS interface interrupt 1, Data

 

 

 

 

 

 

 

slicer interrupt 1, f(XIN)/4096 interrupt 1, VSYNC interrupt 1, BRK

 

 

 

 

 

 

 

instruction interrupt 1, reset 1

 

 

 

 

 

 

Clock generating circuit

 

 

 

 

2 built-in circuits (externally connected to a ceramic resonator or a quartz-

 

 

 

 

 

 

 

crystal oscillator)

Data slicer

 

 

 

 

 

Built-in

 

 

 

 

 

 

 

 

Rev. 1.3

5

MITSUBISHI MICROCOMPUTERS

M37272M6/M8–XXXSP/FP, M37272MA–XXXSP

M37272E8SP/FP, M37272EFSP

SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER with CLOSED CAPTION DECODER and ON-SCREEN DISPLAY CONTROLLER

Table 6.2 Performance Overview (Continued)

 

Parameter

 

Functions

 

 

 

 

 

OSD function

Number of display characters

32 characters 2 lines

 

 

 

 

Dot structure

CC mode: 16 26 dots (character display area : 16 20 dots)

 

 

 

 

 

 

 

OSD mode: 16 20 dots

 

 

 

 

 

 

 

Kinds of characters

254 kinds

 

 

Kinds of character sizes

CC mode: 1 kinds

 

 

1 screen : 8

 

OSD mode: 8 kinds

 

 

Character font coloring

1 screen: 8 kinds (per character unit)

 

 

Display position

Horizontal: 128 levels, Vertical: 512 levels

 

 

 

 

 

 

Power source voltage

 

 

 

5V ± 10%

 

 

 

 

 

 

Power

In high-speed

OSD ON

 

Data slicer ON

165 mW typ. ( at oscillation frequency f(XIN) = 8 MHz, fOSC = 27 MHz)

dissipation

mode

OSD OFF

 

Data slicer OFF

82.5 mW typ. ( at oscillation frequency f(XIN) = 8 MHz)

 

In low-speed

OSD OFF

 

Data slicer OFF

0.33 mW typ. ( at oscillation frequency f(XCIN) = 32 kHz, f(XIN) = stopped)

 

mode

 

 

 

 

 

 

 

 

 

 

 

In stop mode

 

 

 

0.055 mW ( maximum )

Operating temperature range

 

 

 

–10 °C to 70 °C

Device structure

 

 

 

CMOS silicon gate process

Package

 

 

 

 

42-pin plastic molded DIP

 

 

 

 

 

42-pin plastic molded SSOP

 

 

 

 

 

 

Rev. 1.3

6

MITSUBISHI MICROCOMPUTERS

M37272M6/M8–XXXSP/FP, M37272MA–XXXSP

 

 

 

M37272E8SP/FP, M37272EFSP

 

 

SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER with CLOSED CAPTION DECODER

 

 

 

and ON-SCREEN DISPLAY CONTROLLER

 

 

 

7. PIN DESCRIPTION

 

 

Table 7.1 Pin Description

 

 

 

 

 

 

Pin

Name

Input/

Functions

Output

 

 

 

VCC, AVCC,

Power source

 

Apply voltage of 5 V ± 10 % to (typical) VCC and AVCC, and 0 V to VSS.

VSS

 

 

 

CNVSS

CNVSS

 

This is connected to VSS.

RESET

Reset input

Input

To enter the reset state, the reset input pin must be kept at a LOW for 2 μs or more (under

 

 

 

normal VCC conditions).

 

 

 

If more time is needed for the quartz-crystal oscillator to stabilize, this LOW condition should

 

 

 

be maintained for the required time.

 

 

 

 

XIN

Clock input

Input

This chip has an internal clock generating circuit. To control generating frequency, an

 

 

 

external ceramic resonator or a quartz-crystal oscillator is connected between pins XIN and

XOUT

Clock output

Output

XOUT. If an external clock is used, the clock source should be connected to the XIN pin and

 

 

 

the XOUT pin should be left open.

 

 

 

 

P00/PWM0–

I/O port P0

I/O

Port P0 is an 8-bit I/O port with direction register allowing each I/O bit to be individually

P05/PWM5,

 

 

programmed as input or output. At reset, this port is set to input mode. The output structure

P06/INT2/AD4,

 

 

is N-channel open-drain output. (See note 1)

P07/INT1

PWM output

Output

Pins P00–P05 are also used as PWM output pins PWM0–PWM5 respectively. The output

 

 

 

 

structure is N-channel open-drain output.

 

 

 

 

 

External interrupt

Input

Pins P06 and P07 are also used as INT external interrupt input pins INT2 and INT1 respectively.

 

input

 

 

 

Analog input

Input

P06 pin is also used as analog input pin AD4.

P10/OUT2,

I/O port P1

I/O

Port P1 is an 8-bit I/O port and has basically the same functions as port P0. The output

P11/SCL1,

 

 

structure is CMOS output. (See note 1)

P12/SCL2,

OSD output

Output

Pins P10 is also used as OSD output pin OUT2. The output structure is CMOS output.

 

 

 

 

P13/SDA1,

Multi-master

I/O

Pins P11–P14 are used as SCL1, SCL2, SDA1 and SDA2 respectively, when multi-master

P14/SDA2,

I2C-BUS interface

 

I2C-BUS interface is used. The output structure is N-channel open-drain output.

P15/AD1/INT3,

Analog input

Input

Pins P10, P15–P17 are also used as analog input pin AD8, AD1–AD3 respectively.

P16/AD2,

 

 

 

External interrupt

Input

P15 pin is also used as INT external interrupt input pin INT3.

P17/AD3

input

 

 

P20/SCLK,

I/O port P2

I/O

Port P2 is an 8-bit I/O port and has basically the same functions as port P0. The output

P21/SOUT,

 

 

structure is CMOS output. (See note 1)

P22/SIN,

Serial I/O synchronous

I/O

P20 pin is also used as serial I/O synchronous clock input/output pin SCLK. The output

P23/TIM3,

clock input/output port

 

structure is N-channel open-drain output.

P24/TIM2,

Serial I/O data

I/O

P21 pin is also used as serial I/O data output pin SOUT. The output structure is open-drain

P25,

output

 

output.

P26/OSC1/

Serial I/O data input

Input

P22 pin is also used as serial I/O data input pin SIN.

XCIN,

External clock

Input

Pins P23 and P24 are also used as timer external clock input pins TIM3 and TIM2

P27/OSC2/

input for timer

 

respectively.

XCOUT

 

 

 

Clock input for OSD

Input

P26 pin is also used as OSD clock input pin OSC1. (See note 2)

 

 

 

 

 

Clock output for OSD

Output

P27 pin is also used as OSD clock input pin OSC2. The output structure is CMOS output.

 

 

 

(See note 2)

 

Sub-clock input

Input

P26 pin is also used as sub-clock input pin XCIN.

 

Sub-clock output

Output

P27 pin is also used as sub-clock output pin XCOUT.

 

 

 

 

Rev. 1.4

7

MITSUBISHI MICROCOMPUTERS

M37272M6/M8–XXXSP/FP, M37272MA–XXXSP

M37272E8SP/FP, M37272EFSP

SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER with CLOSED CAPTION DECODER and ON-SCREEN DISPLAY CONTROLLER

Table 7.2 Pin Description (continued)

Pin

Name

Input/

Functions

Output

 

 

 

P30/AD5,

I/O port P3

I/O

Ports P30 and P31 are a 2-bit I/O port and has basically the same functions as port 0.

P31/AD6

 

 

The output structure can be selected either CMOS output or N-channel open-drain output

 

 

 

structure. (See notes 1, 3)

 

 

 

 

 

Analog input

Input

Pins P30 and P31 are also used as analog input pins AD5 and AD6 respectively.

 

 

 

 

P50/HSYNC,

Input port P5

Input

Pin P50 and P51 are 2-bit input ports.

 

 

 

 

P51/VSYNC

HSYNC input

Input

Pin P50 is also used as HSYNC input. This is a horizontal synchronous signal input for OSD.

 

VSYNC input

Input

Pin P51 is also used as VSYNC input. This is a vertical synchronous signal input for OSD.

P52/R,

Output port P5

Output

Ports P52–P55 are a 4-bit output port. The output structure is CMOS output.

P53/G,

 

 

 

P54/B,

 

 

 

OSD output

Output

Pins P52–P55 are also used as OSD output pins R, G, B, OUT1 respectively. The output

P55/OUT1

 

 

structure is CMOS output.

 

 

 

 

CVIN

I/O for data slicer

Input

Input composite video signal through a capacitor.

 

 

 

 

VHOLD

 

Input

Connect a capacitor between VHOLD and Vss.

HLF

 

I/O

Connect a filter using of a capacitor and a resistor between HLF and Vss.

Notes 1: Port Pi (i = 0 to 3) has the port Pi direction register which can be used to program each bit as an input (“0”) or an output (“1”). The pins programmed as “1” in the direction register are output pins. When pins are programmed as “0,” they are input pins. When pins are programmed as output pins, the output data are written into the port latch and then output. When data is read from the output pins, the output pin level is not read but the data of the port latch is read. This allows a previously-output value to be read correctly even if the output LOW voltage has risen, for example, because a light emitting diode was directly driven. The input pins are in the floating state, so the values of the pins can be read. When data is written into the input pin, it is written only into the port latch, while the pin remains in the floating state.

2:To switch output functions, set the raster color register and OSD control register. When pins P26 and P27 are used as the OSD clock input/output pins, set the corresponding bits of the port P2 direction register to “0” (input mode).

3:To switch output structures, set bits 2 and 3 of the port P3 direction register, When “0,” CMOS output ; when “1,” N-channel open-drain output.

Rev. 1.4

8

P20 : SCLK
P21 : SOUT
P22 : SIN
P23 : TIM3
P24 : TIM2
P30 : AD5
P31 : AD6

MITSUBISHI MICROCOMPUTERS

M37272M6/M8–XXXSP/FP, M37272MA–XXXSP

M37272E8SP/FP, M37272EFSP

SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER with CLOSED CAPTION DECODER and ON-SCREEN DISPLAY CONTROLLER

Ports P00–P05

 

 

N-channel open-drain output

 

Direction register

 

 

 

Ports P00–P05

Data bus

Port latch

Note : Each port is also used as follows :

 

 

P00–P05 : PWM0–PWM5

Ports P1, P2, P30, P31

Direction register

CMOS output

Data bus

Port latch

Ports P1, P2, P30, P31

Notes 1: Each port is also used as follows :

P10 : OUT2

P11 : SCL1

P12 : SCL2

P13 : SDA15

P14 : SDA2

P15 : AD1/INT3

P16 : AD2

P17 : AD3

2:The output structure of ports P30 and P31 can be selected either CMOS output or N-channel opendrain output structure (when selecting N-channel open-drain, it is the same with P06 and P07).

3:The output structure of ports P11–P14 is N-channel open-drain output when using as multi-master

I2C-BUS interface (it is the same with P06 and P07).

4:The output structure of ports P20 and P21 is N-channel open-drain output when using as serial output (it is the same as P06 and P07).

Fig. 7.1 I/O Pin Block Diagram (1)

Rev. 1.3

9

MITSUBISHI MICROCOMPUTERS

M37272M6/M8–XXXSP/FP, M37272MA–XXXSP M37272E8SP/FP, M37272EFSP

SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER with CLOSED CAPTION DECODER and ON-SCREEN DISPLAY CONTROLLER

Ports P06, P07

Data bus

P50, P51

Internal circuit

Direction register

Port latch

P52–P55

CMOS input

Ports P50, P51

Internal circuit

Note : Each pin is also used as follows :

P50 : HSYNC

P51 : VSYNC

N-channel open-drain output

Ports P06, P07

Note : Each port is also used as follows :

P06 : INT2/AD4

P07 : INT1

CMOS output

Ports P52–P55

Note : Each pin is also used as follows :

P52 : R

P53 : G

P54 : B

P55 : OUT1

Fig. 7.2 I/O Pin Block Diagram (2)

Rev. 1.4

10

MITSUBISHI MICROCOMPUTERS

M37272M6/M8–XXXSP/FP, M37272MA–XXXSP M37272E8SP/FP, M37272EFSP

SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER with CLOSED CAPTION DECODER and ON-SCREEN DISPLAY CONTROLLER

8. FUNCTIONAL DESCRIPTION

8.1 CENTRAL PROCESSING UNIT (CPU)

This microcomputer uses the standard 740 Family instruction set. Refer to the table of 740 Family addressing modes and machine instructions or the SERIES 740 <Software> User’s Manual for details on the instruction set.

Machine-resident 740 Family instructions are as follows: The FST, SLW instruction cannot be used.

The MUL, DIV, WIT and STP instructions can be used.

8.1.1 CPU Mode Register

The CPU mode register contains the stack page selection bit and internal system clock selection bit. The CPU mode register is allocated at address 00FB16.

CPU Mode Register

b7b6 b5b4b3 b2b1b0

 

 

 

 

 

 

 

 

 

1

1

 

0

 

0

 

 

 

 

 

 

 

 

 

 

 

CPU mode register (CM) [Address 00FB16]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

B

Name

 

Functions

After reset

R W

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0, 1

Processor mode bits

b1 b0

0

R W

 

 

 

 

 

 

 

 

 

 

 

(CM0, CM1)

0 0: Single-chip mode

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

1:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

0: Not available

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

1:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

2

Stack page selection

0:

0 page

1

R W

 

 

 

 

 

 

 

 

 

 

 

bit (CM2) (See note)

1:

1 page

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

3, 4

Fix these bits to “1.”

 

 

 

1

R W

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

5

XCOUT drivability

0: LOW drive

1

R W

 

 

 

 

 

 

 

 

 

 

 

selection bit (CM5)

1: HIGH drive

 

 

 

 

 

 

 

 

 

 

 

6

Main Clock (XIN–XOUT)

0: Oscillating

0

R W

 

 

 

 

 

 

 

 

 

 

 

stop bit

1: Stopped

 

 

 

 

 

 

 

 

 

 

 

 

 

(CM6)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

7

Internal system clock

0: XIN–XOUT selected

0

R W

 

 

 

 

 

 

 

 

 

 

 

selection bit

 

(high-speed mode)

 

 

 

 

 

 

 

 

 

 

 

 

 

(CM7)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1: XCIN–XCOUT selected

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(high-speed mode)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Note: This bit is set to “1” after the reset release.

 

 

Fig. 8.1.1 CPU Mode Register

Rev. 1.3

11

MITSUBISHI MICROCOMPUTERS

M37272M6/M8–XXXSP/FP, M37272MA–XXXSP M37272E8SP/FP, M37272EFSP

SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER with CLOSED CAPTION DECODER and ON-SCREEN DISPLAY CONTROLLER

8.2 MEMORY

8.2.1 Special Function Register (SFR) Area

The special function register (SFR) area in the zero page contains control registers such as I/O ports and timers.

8.2.2 RAM

RAM is used for data storage and for stack area of subroutine calls and interrupts.

8.2.3 ROM

ROM is used for storing user programs as well as the interrupt vector area.

8.2.4 OSD RAM

RAM for display is used for specifying the character codes and colors to display.

8.2.6 Interrupt Vector Area

The interrupt vector area contains reset and interrupt vectors.

8.2.7 Zero Page

The 256 bytes from addresses 000016 to 00FF16 are called the zero page area. The internal RAM and the special function registers (SFR) are allocated to this area.

The zero page addressing mode can be used to specify memory and register addresses in the zero page area. Access to this area with only 2 bytes is possible in the zero page addressing mode.

8.2.8 Special Page

The 256 bytes from addresses FF0016 to FFFF16 are called the special page area. The special page addressing mode can be used to specify memory addresses in the special page area. Access to this area with only 2 bytes is possible in the special page addressing mode.

8.2.5 OSD ROM

ROM for display is used for storing character data.

8.2.9 ROM Correction Memory (RAM)

 

This is used as the program area for ROM correction.

■ M37272M6/M8-XXXSP/FP, M37272E8SP/FP

 

 

 

 

 

 

 

000016

 

1000016

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

00BF16

 

Zero page

 

 

 

 

 

 

 

 

00C016

SFR1 area

 

 

 

 

 

 

 

 

M37272M8-

00FF16

 

 

 

 

 

M37272M6-

 

 

 

 

 

 

 

XXXSP/FP

 

XXXSP/FP,

010016

 

 

 

 

 

 

 

 

 

 

 

RAM

 

M37272E8SP/FP

 

 

 

 

 

 

 

 

RAM

01FF16

 

 

 

 

 

 

(1024 bytes)

 

 

 

 

 

 

 

 

 

 

(1152 bytes)

020016

SFR2 area

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

020F16

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

030016

Not used

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

032016

 

 

ROM correction function

 

 

 

 

 

 

 

 

 

053F16

 

 

Vector 1: address 030016

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

05BF16

 

 

Vector 2: address 032016

 

 

 

 

 

 

OSD RAM

080016

Not used

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(128 bytes)

 

 

 

 

 

 

 

 

 

087F16

 

 

 

 

 

 

 

 

 

(See note)

 

 

 

 

 

 

 

 

 

 

Not used

 

 

 

Not used

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OSD ROM

140016

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(10K bytes)

3BFF16

 

 

 

 

 

 

M37272M8-

 

 

 

 

Not used

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

XXXSP/FP,

 

 

 

 

 

 

 

 

 

M37272E8SP/FP

 

 

 

 

 

 

 

 

 

 

ROM

 

 

 

 

 

 

 

 

 

 

(32K bytes)

 

 

 

 

 

800016

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

M37272M6-

A00016

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

XXXSP/FP

FF0016

 

 

 

 

 

 

 

 

 

ROM

 

 

 

 

 

 

 

 

 

FFDE16

 

Special page

 

 

 

 

 

(24K bytes)

Interrupt vector area

 

 

 

 

 

 

 

 

 

 

 

 

 

 

FFFF16

 

 

1FFFF16

 

 

 

 

 

 

 

 

 

 

 

 

Note: Refer to Table 8.11.3 OSD RAM.

Fig. 8.2.1 Memory Map (M37272M6/M8-XXXSP/FP, M37272E8SP/FP)

Rev. 1.4

12

MITSUBISHI MICROCOMPUTERS

M37272M6/M8–XXXSP/FP, M37272MA–XXXSP

M37272E8SP/FP, M37272EFSP

SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER with CLOSED CAPTION DECODER and ON-SCREEN DISPLAY CONTROLLER

■ M37272MA-XXXSP, M37272EFSP

 

 

 

 

000016

 

Zero page

1000016

 

 

 

 

 

 

 

 

 

 

 

00BF16

 

 

 

 

 

 

 

 

 

 

 

 

 

 

00C016

SFR1 area

 

 

 

 

 

 

 

 

00FF16

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

010016

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

01FF16

 

 

 

 

 

 

 

 

 

020016

 

 

 

 

 

 

 

 

 

SFR2 area

 

 

 

 

 

RAM

 

020F16

 

 

 

 

 

(1472 bytes)

 

 

 

 

 

 

 

 

 

 

030016

Not used

 

 

 

Not used

 

 

 

 

 

 

 

 

 

 

 

 

 

ROM correction functrion

 

 

 

 

 

032016

 

 

 

 

 

 

 

 

 

 

 

Vector 1: address 030016

 

 

 

 

 

 

06FF16

 

 

Vector 2: address 032016

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OSD RAM

 

Not used

 

 

 

 

 

080016

 

 

 

 

 

 

(128 bytes)

 

 

 

 

 

 

087F16

 

 

 

 

 

 

(See note)

 

 

 

 

 

 

 

Not used

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

100016

 

 

OSD ROM

1140016

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(10K bytes)

13BFF16

 

M37272EFSP

 

 

 

 

 

 

 

ROM

 

 

 

 

 

 

(60K bytes)

 

 

 

 

 

 

 

 

 

 

600016

 

 

 

 

Not used

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

M37272MA-XXXSP

 

 

 

 

 

 

ROM

FF0016

 

 

 

 

 

(40K bytes)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

FFDE16

 

Special page

 

 

 

 

 

 

Interrupt vector area

 

 

 

 

 

 

 

 

 

 

 

 

 

FFFF16

 

 

1FFFF16

 

 

 

 

 

 

 

 

 

Note: Refer to Table 8.11.3 OSD RAM.

Fig. 8.2.2 Memory Map (M37272MA-XXXSP, M37272EFSP)

Rev. 1.3

13

MITSUBISHI MICROCOMPUTERS

M37272M6/M8–XXXSP/FP, M37272MA–XXXSP

M37272E8SP/FP, M37272EFSP

SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER with CLOSED CAPTION DECODER and ON-SCREEN DISPLAY CONTROLLER

■ SFR1 Area (addresses C016 to DF16)

<Bit allocation>

 

<State immediately after reset>

 

 

:

 

 

 

 

 

: “0” immediately after reset

 

 

Function

bit

 

0

 

 

 

 

 

 

 

 

:

 

 

 

 

Name

 

 

 

 

 

 

 

 

 

 

1

: “1” immediately after reset

 

 

 

 

 

 

 

 

 

: No function bit

 

 

: Indeterminate immediately

 

 

 

 

 

 

 

 

 

?

 

 

 

 

 

 

 

 

 

: Fix this bit to “0”

 

 

after reset

 

 

 

 

0

 

 

 

 

 

 

 

 

 

(do not write “1”)

 

 

 

 

 

 

 

1

: Fix this bit to “1”

 

 

 

 

 

(do not write “0”)

 

 

 

Address

Register

C016

Port P0 (P0)

C116

Port P0 direction register (D0)

C216

Port P1 (P1)

C316

Port P1 direction register (D1)

C416

Port P2 (P2)

C516

Port P2 direction register (D2)

C616

Port P3 (P3)

C716

Port P3 direction register (D3)

C816

 

 

C916

 

 

CA16

Port P5 (P5)

CB16

OSD port control register (PF)

CC16

 

 

CD16

 

 

CE16

Caption data register 3 (CD3)

CF16

Caption data register 4 (CD4)

D016

OSD control register (OC)

D116

Horizontal position register (HP)

D216

Block control register 1 (BC1)

D316

Block control register 2 (BC2)

D416

Vertical position register 1 (VP1)

D516

Vertical position register 2 (VP2)

D616

Window register 1 (WN1)

D716

Window register 2 (WN2)

D816

I/O polarity control register (PC)

D916

Raster color register (RC)

DA16

 

 

DB16

 

 

DC16

Interrupt input polarity control register (RE)

DD16

 

 

DE16

 

 

DF16

 

 

b7

 

Bit allocation

 

b0

 

State immediately after reset

 

 

 

 

 

 

 

 

b7

 

b0

 

 

 

 

 

 

 

 

 

 

?

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0016

 

 

 

 

 

 

 

 

 

 

 

 

 

 

?

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0016

 

 

 

 

 

 

 

 

 

 

 

 

 

 

?

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0016

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P31

P30

 

0

0

0

0

0

0

?

 

?

 

T3SC

 

 

P31CP30C

P31DP30D

 

 

0016

 

 

 

 

 

 

 

 

 

 

 

 

 

 

?

 

 

 

 

 

 

 

 

 

 

 

 

 

 

?

 

 

 

 

 

 

 

 

 

 

 

 

 

 

?

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PF7

 

PF5

PF4

PF3

PF2

0

0

 

0016

 

 

 

 

 

 

 

0016

 

 

 

 

 

0016

 

 

 

 

 

 

 

 

 

 

 

 

 

 

?

 

 

 

 

 

CDL27CDL26CDL25CDL24CDL23CDL22

 

 

CDL21CDL20

 

?

 

 

 

 

 

CDH27CDH26CDH25CDH24CDH23CDH22CDH21CDH20

 

 

 

?

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

OC6

OC5

OC4

OC3

OC2

OC1

OC0

 

0016

 

 

 

 

 

HP6

HP5

HP4

HP3

HP2

HP1

HP0

 

0016

 

 

 

 

 

 

 

 

 

 

 

BC11BC10

 

?

 

 

 

 

 

BC17BC16BC15BC14BC13BC12

 

 

 

 

 

 

 

 

BC27BC26BC25BC24BC23BC22

 

 

BC21BC20

 

?

 

 

 

 

VP17

VP16

VP15

VP14

VP13VP12

VP11

VP10

 

?

 

 

 

 

VP27

VP26

VP25

VP24

VP23VP22

VP21

VP20

 

?

 

 

 

 

WN17WN16

 

WN15WN14WN13WN12

 

 

WN11WN10

 

?

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

WN27WN26

 

WN25WN24WN23WN22

 

 

WN21WN20

 

?

 

 

 

 

0

PC6

PC5

PC4

PC3

PC2

PC1

PC0

 

4016

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

RC7

0

0

RC4

RC3

 

RC2

RC1

RC0

 

0016

 

 

 

 

 

 

 

 

 

 

 

 

 

 

?

 

 

 

 

 

 

 

 

 

 

 

 

 

 

?

 

 

 

 

 

 

 

 

 

 

INT3

INT2

INT1

 

0016

 

 

 

 

 

 

 

0016

 

 

 

 

 

0016

 

 

 

 

 

 

 

0016

 

 

 

 

 

0016

 

 

 

 

 

 

 

0016 (See note

1)

 

 

 

 

0016 (See note

2)

Notes 1: This is only M37272MA-XXXSP and M37272EFSP.

2: As for M37272M6/M8-XXXSP/FP and M37272E8SP/FP, the reset value is ? (indeterminate).

Fig. 8.2.3 Memory Map of Special Function Register 1 (SFR1) (1)

Rev. 1.4

14

MITSUBISHI MICROCOMPUTERS

M37272M6/M8–XXXSP/FP, M37272MA–XXXSP

M37272E8SP/FP, M37272EFSP

SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER with CLOSED CAPTION DECODER and ON-SCREEN DISPLAY CONTROLLER

■ SFR1 Area (addresses E016 to FF16)

<Bit allocation>

 

<State immediately after reset>

 

 

:

 

 

 

 

 

: “0” immediately after reset

 

 

Function

bit

 

0

 

 

 

 

 

 

 

 

:

 

 

 

 

Name

 

 

 

 

 

: “1” immediately after reset

 

 

 

 

1

 

 

 

 

 

 

 

 

 

: No function bit

 

 

: Indeterminate immediately

 

 

 

 

 

 

 

 

 

?

 

 

 

 

 

 

 

 

 

: Fix this bit to “0”

 

 

after reset

 

 

 

 

0

 

 

 

 

 

 

 

 

 

(do not write “1”)

 

 

 

 

 

 

 

1

: Fix this bit to “1”

 

 

 

 

 

(do not write “0”)

 

 

 

Address

Register

b7

 

Bit allocation

 

 

b0

State immediately after reset

 

 

 

 

 

 

 

 

 

 

b7

 

 

 

 

 

 

 

b0

E016

Data slicer control register 1 (DSC1)

0

1

1

0

0

DSC12DSC11DSC10

 

 

 

 

0016

 

 

 

E116

Data slicer control register 2 (DSC2)

 

0

DSC25DSC24

DSC23

 

1

 

DSC20

 

?

0

?

0

 

?

?

0

?

E216

Caption data register 1 (CD1)

CDL17CDL16CDL15

CDL14

 

CDL13CDL12CDL11CDL10

 

 

 

 

 

0016

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

E316

Caption data register 2 (CD2)

 

CDH17CDH16CDH15CDH14CDH13CDH12CDH11CDH10

 

 

 

 

 

 

 

0016

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

E416

Clock run-in detect register (CRD)

CRD7

CRD6

CRD5

CRD4

CRD3

 

 

 

 

 

 

 

 

0016

 

 

 

E516

Data clock position register (DPS)

DPS7

DPS6

DPS5

DPS4

DPS3

0

1

 

0

 

 

 

 

0916

 

 

 

E616

Caption position register (CPS)

CPS7

CPS6

CPS5

CPS4

CPS3

CPS2

CPS1

 

CPS0

 

0

0

?

0

 

0

0

0

0

E716

Data slicer test register 2

 

 

 

 

 

 

 

 

 

 

 

 

 

0016

 

 

 

E816

Data slicer test register 1

 

 

 

 

 

 

 

 

 

 

 

 

 

0016

 

 

 

E916

Synchronous signal counter register

(HC)

 

HC5

HC4

HC3

HC2

HC1

 

HC0

 

 

 

 

0016

 

 

 

EA16

Serial I/O register (SIO)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

?

 

 

 

EB16

Serial I/O mode register (SM)

0

SM6

SM5

0

SM3

SM2

SM1

SM0

 

 

 

 

0016

 

 

 

EC16

A-D control register 1 (AD1)

 

 

 

ADC14

 

ADC12

ADC11

ADC10

 

0

0

0

?

 

0

0

0

0

 

 

 

 

 

 

 

 

 

 

 

ED16

A-D control register 2 (AD2)

 

 

 

 

 

 

 

 

 

 

 

 

 

0016

 

 

 

 

 

ADC25

ADC24

ADC23

ADC22ADC21

ADC20

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

EE16

Timer 5 (T5)

 

 

 

 

 

 

 

 

 

 

 

 

 

0716

 

 

 

EF16

Timer 6 (T6)

 

 

 

 

 

 

 

 

 

 

 

 

 

FF16

 

 

 

F016

Timer 1 (T1)

 

 

 

 

 

 

 

 

 

 

 

 

 

FF16

 

 

 

F116

Timer 2 (T2)

 

 

 

 

 

 

 

 

 

 

 

 

 

0716

 

 

 

F216

Timer 3 (T3)

 

 

 

 

 

 

 

 

 

 

 

 

 

FF16

 

 

 

F316

Timer 4 (T4)

 

 

 

 

 

 

 

 

 

 

 

 

 

0716

 

 

 

F416

Timer mode register 1 (TM1)

TM17

TM16

TM15

TM14

TM13

TM12

TM11

TM10

 

 

 

 

0016

 

 

 

F516

Timer mode register 2 (TM2)

TM27

TM26

TM25

TM24

TM23

TM22

TM21

TM20

 

 

 

 

0016

 

 

 

F616

I2C data shift register (S0)

D7

D6

D5

D4

D3

D2

D1

 

D0

 

 

 

 

 

?

 

 

 

F716

I2C address register (S0D)

SAD6

SAD5

SAD4

SAD3

SAD2

SAD1

SAD0

RBW

 

 

 

 

0016

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

F816

I2C status register (S1)

MST

TRX

BB

PIN

AL

AAS

AD0

LRB

 

0

0

0

1

 

0

0

0

?

F916

I2C control register (S1D)

BSEL1

BSEL0

10BITSAD

ALS

ESO

BC2

BC1

 

BC0

 

 

 

 

0016

 

 

 

FA16

I2C clock control register (S2)

ACK

ACK

FAST

CCR4CCR3

CCR2

CCR1

CCR0

 

 

 

 

0016

 

 

 

BIT

MODE

 

 

 

 

 

 

 

FB16

CPU mode register (CPUM)

CM7

CM6

CM5

1

1

CM2

0

 

0

 

 

 

 

3C16

 

 

 

FC16

Interrupt request register 1 (IREQ1)

 

IN3R

VSCR

OSDRTM4R

TM3R

TM2R

TM1R

 

 

 

 

0016

 

 

 

FD16

Interrupt request register 2 (IREQ2)

0

TM56R

IICR

CK0

CKR

S1R

DSR

 

IN1R

 

 

 

 

0016

 

 

 

 

IN2R

 

 

 

 

 

 

 

 

 

 

FE16

Interrupt control register 1 (ICON1)

 

IN3E

VSCEOSDE

TM4E

TM3E

TM2E

TM1E

 

 

 

 

0016

 

 

 

FF16

Interrupt control register 2 (ICON2)

TM56CTM56E

IICE

IN2E

CKE

S1E

DSE

IN1E

 

 

 

 

0016

 

 

 

Fig. 8.2.4 Memory Map of Special Function Register 1 (SFR1) (2)

Rev. 1.3

15

MITSUBISHI MICROCOMPUTERS

M37272M6/M8–XXXSP/FP, M37272MA–XXXSP

M37272E8SP/FP, M37272EFSP

SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER with CLOSED CAPTION DECODER and ON-SCREEN DISPLAY CONTROLLER

■ SFR2 Area (addresses 20016 to 20F16)

<Bit allocation>

 

<State immediately after reset>

 

 

:

 

 

 

: “0” immediately after reset

 

 

Function

bit

0

 

 

 

 

 

 

:

 

 

Name

 

 

1

: “1” immediately after reset

 

 

 

 

 

 

 

: No function bit

 

: Indeterminate immediately

 

 

 

 

 

 

?

 

 

 

 

 

 

 

: Fix this bit to “0”

 

after reset

 

 

 

0

 

 

 

 

 

 

 

(do not write “1”)

 

 

 

 

 

1

: Fix this bit to “1”

 

 

 

 

(do not write “0”)

 

 

Address

Register

b7

 

Bit allocation

 

b0

 

State immediately after reset

b0

 

 

 

 

 

 

 

 

 

b7

20016

PWM0 register (PWM0)

 

 

 

 

 

 

 

 

 

?

 

 

 

 

20116

PWM1 register (PWM1)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

?

 

 

 

 

20216

PWM2 register (PWM2)

 

 

 

 

 

 

 

 

 

?

 

 

 

 

20316

PWM3 register (PWM3)

 

 

 

 

 

 

 

 

 

?

 

 

 

 

20416

PWM4 register (PWM4)

 

 

 

 

 

 

 

 

 

?

 

 

 

 

20516

PWM5 register (PWM5)

 

 

 

 

 

 

 

 

 

?

 

 

 

 

20616

 

 

 

0016

 

 

 

 

?

 

 

 

 

20716

 

 

 

0016

 

 

 

 

?

 

 

 

 

20816

PWM mode register 1 (PM1)

 

 

 

 

PM13

 

 

PM10

 

?

?

?

?

0

?

?

 

0

20916

PWM mode register 2 (PM2)

0

0

PM25

PM24

PM23

PM22

PM21

PM20

 

0016

 

 

 

 

20A16

ROM correction address 1 (high-order)

 

 

 

 

 

 

 

 

 

0016

 

 

 

 

20B16

ROM correction address 1 (low-order)

 

 

 

 

 

 

 

 

 

0016

 

 

 

 

20C16

ROM correction address 2 (high-order)

 

 

 

 

 

 

 

 

 

0016

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

20D16

ROM correction address 2 (low-order)

 

 

 

 

 

 

 

 

 

0016

 

 

 

 

20E16

ROM correction enable register (RCR)

 

 

 

 

 

 

RC1

RC0

 

0016

 

 

 

 

20F16

 

 

 

 

 

 

 

 

 

 

 

?

 

 

 

 

Fig. 8.2.5 Memory Map of Special Function Register 2 (SFR2)

Rev. 1.3

16

MITSUBISHI MICROCOMPUTERS

M37272M6/M8–XXXSP/FP, M37272MA–XXXSP M37272E8SP/FP, M37272EFSP

SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER with CLOSED CAPTION DECODER and ON-SCREEN DISPLAY CONTROLLER

Register

Processor status register (PS) Program counter (PCH)

Program counter (PCL)

<Bit allocation>

:

Function bit

Name :

: No function bit

0: Fix to this bit to “0” (do not write to “1”)

1: Fix to this bit to “1” (do not write to “0”)

Bit allocation

<State immediately after reset>

0: “0” immediately after reset

1: “1” immediately after reset

?: Indeterminate immediately after reset

State immediately after reset

b7

 

 

 

 

 

 

b0

b7

 

 

 

b0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

N

V

T

B

D

I

Z

C

 

?

?

?

?

?

1

?

 

 

?

 

 

 

 

 

 

 

 

 

 

Contents of address FFFF

 

 

 

 

 

 

 

 

 

 

 

 

 

 

16

 

 

 

 

 

 

 

 

 

 

 

Contents of address FFFE16

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Fig. 8.2.6 Internal State of Processor Status Register and Program Counter at Reset

Rev. 1.3

17

MITSUBISHI MICROCOMPUTERS

M37272M6/M8–XXXSP/FP, M37272MA–XXXSP M37272E8SP/FP, M37272EFSP

SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER with CLOSED CAPTION DECODER and ON-SCREEN DISPLAY CONTROLLER

8.3 INTERRUPTS

Interrupts can be caused by 17 different sources consisting of 4 external, 11 internal, 1 software, and reset. Interrupts are vectored interrupts with priorities as shown in Table 8.3.1. Reset is also included in the table because its operation is similar to an interrupt.

When an interrupt is accepted,

The contents of the program counter and processor status register are automatically stored into the stack.

The interrupt disable flag I is set to “1” and the corresponding interrupt request bit is set to “0.”

The jump destination address stored in the vector address enters the program counter.

Other interrupts are disabled when the interrupt disable flag is set to “1.”

All interrupts except the BRK instruction interrupt have an interrupt request bit and an interrupt enable bit. The interrupt request bits are in interrupt request registers 1 and 2 and the interrupt enable bits are in interrupt control registers 1 and 2. Figures 8.3.2 to 8.3.6 show the interrupt-related registers.

Interrupts other than the BRK instruction interrupt and reset are accepted when the interrupt enable bit is “1,” interrupt request bit is “1,” and the interrupt disable flag is “0.” The interrupt request bit can be set to “0” by a program, but not set to “1.” The interrupt enable bit can be set to “0” and “1” by a program.

Reset is treated as a non-maskable interrupt with the highest priority. Figure 8.3.1 shows interrupt control.

Table 8.3.1 Interrupt Vector Addresses and Priority

8.3.1 Interrupt Causes

(1) VSYNC, OSD interrupts

The VSYNC interrupt is an interrupt request synchronized with the vertical sync signal.

The OSD interrupt occurs after character block display to the CRT is completed.

(2) INT1 to INT3 external interrupts

The INT1 to INT3 interrupts are external interrupt inputs, the system detects that the level of a pin changes from LOW to HIGH or from HIGH to LOW, and generates an interrupt request. The input active edge can be selected by bits 3 to 5 of the interrupt input polarity register (address 00DC16) : when this bit is “0,” a change from LOW to HIGH is detected; when it is “1,” a change from HIGH to LOW is detected. Note that both bits are cleared to “0” at reset.

(3) Timers 1 to 4 interrupts

An interrupt is generated by an overflow of timers 1 to 4.

Priority

Interrupt Source

Vector Addresses

Remarks

 

 

 

 

1

Reset

FFFF16, FFFE16

Non-maskable

 

 

 

 

2

OSD interrupt

FFFD16, FFFC16

 

 

 

 

 

3

INT1 external interrupt

FFFB16, FFFA16

Active edge selectable

 

 

 

 

4

Data slicer interrupt

FFF916, FFF816

 

 

 

 

 

5

Serial I/O interrupt

FFF716, FFF616

 

 

 

 

 

6

Timer 4 interrupt

FFF516, FFF416

 

 

 

 

 

7

f(XIN)/4096 interrupt

FFF316, FFF216

 

 

 

 

 

8

VSYNC interrupt

FFF116, FFF016

 

 

 

 

 

9

Timer 3 interrupt

FFEF16, FFEE16

 

 

 

 

 

10

Timer 2 interrupt

FFED16, FFEC16

 

 

 

 

 

11

Timer 1 interrupt

FFEB16, FFEA16

 

 

 

 

 

12

INT3 external interrupt

FFE916, FFE816

Active edge selectable

 

 

 

 

13

INT2 external interrupt

FFE716, FFE616

Active edge selectable

 

 

 

 

14

Multi-master I2C-BUS interface interrupt

FFE516, FFE416

 

15

Timer 5 • 6 interrupt

FFE316, FFE216

Source switch by software (see note)

 

 

 

 

16

BRK instruction interrupt

FFDF16, FFDE16

Non-maskable

 

 

 

 

Note: Switching a source during a program causes an unnecessary interrupt. Therefore, set a source at initializing of program.

Rev. 1.3

18

MITSUBISHI MICROCOMPUTERS

M37272M6/M8–XXXSP/FP, M37272MA–XXXSP M37272E8SP/FP, M37272EFSP

SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER with CLOSED CAPTION DECODER and ON-SCREEN DISPLAY CONTROLLER

(4) Serial I/O interrupt

This is an interrupt request from the clock synchronous serial I/O function.

(5) f(XIN)/4096 interrupt

The f (XIN)/4096 interrupt occurs regularly with a f(XIN)/4096 period. Set bit 0 of the PWM mode register 1 to “0.”

(6) Data slicer interrupt

An interrupt occurs when slicing data is completed.

(7) Multi-master I2C-BUS interface interrupt

This is an interrupt request related to the multi-master I2C-BUS interface.

(8) Timer 5 • 6 interrupt

An interrupt is generated by an overflow of timer 5 or 6. Their priorities are same, and can be switched by software.

Interrupt request bit

Interrupt enable bit

Interrupt disable flag I

BRK instruction

Interrupt

request

Reset

 

Fig. 8.3.1 Interrupt Control

(9) BRK instruction interrupt

This software interrupt has the least significant priority. It does not have a corresponding interrupt enable bit, and it is not affected by the interrupt disable flag I (non-maskable).

Rev. 1.3

19

MITSUBISHI MICROCOMPUTERS

M37272M6/M8–XXXSP/FP, M37272MA–XXXSP

M37272E8SP/FP, M37272EFSP

SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER with CLOSED CAPTION DECODER and ON-SCREEN DISPLAY CONTROLLER

Interrupt Request Register 1

b7b6 b5b4b3 b2b1b0

Interrupt request register 1 (IREQ1) [Address 00FC16]

B

Name

 

 

Functions

After reset

R W

 

 

 

 

 

 

 

0

Timer 1 interrupt

0

: No interrupt request issued

0

R

 

 

request bit

(TM1R)

1

: Interrupt request issued

 

 

 

1

Timer 2 interrupt

0

: No interrupt request issued

0

R

 

 

request bit

(TM2R)

1

: Interrupt request issued

 

 

 

 

 

 

 

 

 

 

2

Timer 3 interrupt

0

: No interrupt request issued

0

R

 

 

request bit

(TM3R)

1

: Interrupt request issued

 

 

 

 

 

 

 

 

 

 

3

Timer 4 interrupt

0

: No interrupt request issued

0

R

 

 

request bit

(TM4R)

1

: Interrupt request issued

 

 

 

 

 

 

 

 

 

 

4

OSD interrupt request

0

: No interrupt request issued

0

R

 

 

bit (OSDR)

 

1

: Interrupt request issued

 

 

 

 

 

 

 

 

 

 

5

VSYNC interrupt

0

: No interrupt request issued

0

R

 

 

request bit

(VSCR)

1

: Interrupt request issued

 

 

 

6

INT3 external interrupt

0

: No interrupt request issued

0

R

 

 

request bit

(VSCR)

1

: Interrupt request issued

 

 

 

7

Nothing is assigned. This bit is a write disable bit.

0

R —

 

When this bit is read out, the value is “0.”

 

 

 

 

 

 

 

 

 

 

 

: “0” can be set by software, but “1” cannot be set.

Fig. 8.3.2 Interrupt Request Register 1

Interrupt Request Register 2

b7 b6b5b4b3 b2b1b0

 

 

 

 

 

 

 

0

 

 

 

 

 

 

 

Interrupt request register 2 (IREQ2) [Address 00FD16]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

B

Name

 

Functions

After reset

R W

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

INT1 external interrupt

0

: No interrupt request issued

0

R

 

 

 

 

 

 

 

 

 

 

request bit (INIR)

1

: Interrupt request issued

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

Data slicer interrupt

0

: No interrupt request issued

0

R

 

 

 

 

 

 

 

 

 

 

request bit (DSR)

1

: Interrupt request issued

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

2

Serial I/O interrupt

0

: No interrupt request issued

0

R

 

 

 

 

 

 

 

 

 

 

request bit (S1R)

1

: Interrupt request issued

 

 

 

 

 

 

 

 

 

 

 

3

f(XIN)/4096 interrupt

0

: No interrupt request issued

0

R

 

 

 

 

 

 

 

 

 

 

request bit (CKR)

1

: Interrupt request issued

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

4

INT2 external interrupt

0

: No interrupt request issued

0

R

 

 

 

 

 

 

 

 

 

 

request bit (IN2R)

1

: Interrupt request issued

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

5

Multi-master I2C-BUS

0

: No interrupt request issued

0

R

 

 

 

 

 

 

 

 

 

 

interrupt request bit (IICR)

1

: Interrupt request issued

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

6

Timer 5 • 6 interrupt

0

: No interrupt request issued

0

R

 

 

 

 

 

 

 

 

 

 

request bit (TM56R)

1

: Interrupt request issued

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

7

Fix this bit to “0.”

 

 

0

R

W

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

: “0” can be set by software, but “1” cannot be set.

Fig. 8.3.3 Interrupt Request Register 2

Rev. 1.3

20

MITSUBISHI MICROCOMPUTERS

M37272M6/M8–XXXSP/FP, M37272MA–XXXSP

M37272E8SP/FP, M37272EFSP

SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER with CLOSED CAPTION DECODER and ON-SCREEN DISPLAY CONTROLLER

Interrupt Control Register 1

b7b6 b5b4b3 b2b1b0

Interrupt control register 1 (ICON1) [Address 00FE16]

B

Name

 

Functions

After reset

R W

 

 

 

 

 

 

0

Timer 1 interrupt

0

: Interrupt disabled

0

R W

 

enable bit

(TM1E)

1

: Interrupt enabled

 

 

1

Timer 2 interrupt

0

: Interrupt disabled

0

R W

 

enable bit

(TM2E)

1

: Interrupt enabled

 

 

2

Timer 3 interrupt

0

: Interrupt disabled

0

R W

 

enable bit

(TM3E)

1

: Interrupt enabled

 

 

3

Timer 4 interrupt

0

: Interrupt disabled

0

R W

 

enable bit

(TM4E)

1

: Interrupt enabled

 

 

4

OSD interrupt enable bit

0

: Interrupt disabled

0

R W

 

(OSDE)

 

1

: Interrupt enabled

 

 

 

 

 

 

 

 

5

VSYNC interrupt enable

0

: Interrupt disabled

0

R W

 

bit (VSCE)

1

: Interrupt enabled

 

 

6

INT3 external interrupt

0

: Interrupt disabled

0

R W

 

enable bit

(IN3E)

1

: Interrupt enabled

 

 

 

 

 

 

 

7

Nothing is assigned. This

bit is a write disable

0

R —

 

bit. When this bit is read out, the value is “0.”

 

 

 

 

 

 

 

 

 

Fig. 8.3.4 Interrupt Control Register 1

Interrupt Control Register 2

b7b6 b5b4b3 b2b1b0

Interrupt control register 2 (ICON2) [Address 00FF16]

B

Name

 

Functions

After reset

R W

 

 

 

 

 

 

0

INT1 external interrupt

0

: Interrupt disabled

0

R W

 

enable bit (IN1E)

1

: Interrupt enabled

 

 

1

Data slicer interrupt

0

: Interrupt disabled

0

R W

 

enable bit (DSE)

1

: Interrupt enabled

 

 

2

Serial I/O interrupt

0

: Interrupt disabled

0

R W

 

enable bit (S1E)

1

: Interrupt enabled

 

 

3

f(XIN)/4096 interrupt

0

: Interrupt disabled

0

R W

 

enable bit (CKE)

1

: Interrupt enabled

 

 

 

 

 

 

 

 

4

INT2 external interrupt

0

: Interrupt disabled

0

R W

 

enable bit (IN2E)

1

: Interrupt enabled

 

 

 

 

 

 

 

 

5

Multi-master I2C-BUS

0

: Interrupt disabled

0

R W

 

interface interrupt enable

1

: Interrupt enabled

 

 

 

bit (IICE)

 

 

 

 

6

Timer 5 • 6 interrupt

0

: Interrupt disabled

0

R W

 

enable bit (TM56E)

1

: Interrupt enabled

 

 

 

 

 

 

 

 

7

Timer 5 • 6 interrupt

0

: Timer 5

0

R W

 

switch bit (TM56C)

1

: Timer 6

 

 

 

 

 

 

 

 

Fig. 8.3.5 Interrupt Control Register 2

Rev. 1.3

21

MITSUBISHI MICROCOMPUTERS

M37272M6/M8–XXXSP/FP, M37272MA–XXXSP

M37272E8SP/FP, M37272EFSP

SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER with CLOSED CAPTION DECODER and ON-SCREEN DISPLAY CONTROLLER

Interrupt Input Polarity Register

b7 b6 b5 b4 b3 b2 b1 b0

Interrupt input polarity register (RE) [Address 00DC 16]

B

Name

 

Functions

After reset

R

W

 

 

 

 

 

 

 

0

INT1 polarity switch bit

0

: Positive polarity

0

R

W

 

(INT1)

1

: Negative polarity

 

 

 

 

 

 

 

 

 

 

4

INT2 polarity switch bit

0

: Positive polarity

0

R

W

 

(INT2)

1

: Negative polarity

 

 

 

 

 

 

 

 

 

 

5

INT3 polarity switch bit

0

: Positive polarity

0

R

W

 

(INT3)

1

: Negative polarity

 

 

 

 

 

 

 

 

 

 

4

Nothing is assigned. These bits are write disable bits.

0

R

to

When these bits are read out, the values are “0.”

 

 

 

7

 

 

 

 

 

 

 

 

 

Fig. 8.3.6 Interrupt Input Polarity Register

Rev. 1.3

22

MITSUBISHI MICROCOMPUTERS

M37272M6/M8–XXXSP/FP, M37272MA–XXXSP M37272E8SP/FP, M37272EFSP

SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER with CLOSED CAPTION DECODER and ON-SCREEN DISPLAY CONTROLLER

8.4 TIMERS

This microcomputer has 6 timers: timer 1, timer 2, timer 3, timer 4, timer 5, and timer 6. All timers are 8-bit timers with the 8-bit timer latch. The timer block diagram is shown in Figure 8.4.3.

All of the timers count down and their divide ratio is 1/(n+1), where n is the value of timer latch. By writing a count value to the corresponding timer latch (addresses 00F016 to 00F316 : timers 1 to 4, addresses

00EE16 and 00EF16 : timers 5 and 6), the value is also set to a timer, simultaneously.

The count value is decremented by 1. The timer interrupt request bit is set to “1” by a timer overflow at the next count pulse, after the count value reaches “0016”.

8.4.5 Timer 5

Timer 5 can select one of the following count sources:

f(XIN)/16 or f(XCIN)/16

Timer 2 overflow signal

Timer 4 overflow signal

The count source of timer 3 is selected by setting bit 6 of timer mode register 1 (address 00F416) and bit 7 of the timer mode register 2

(address 00F516). When overflow of timer 2 or 4 is a count source for timer 5, either timer 2 or 4 functions as an 8-bit prescaler. Either f(XIN) or f(XCIN) is selected by bit 7 of the CPU mode register.

Timer 5 interrupt request occurs at timer 5 overflow.

8.4.1 Timer 1

Timer 1 can select one of the following count sources:

f(XIN)/16 or f(XCIN)/16

f(XIN)/4096 or f(XCIN)/4096

External clock from the TIM2 pin

The count source of timer 1 is selected by setting bits 5 and 0 of timer mode register 1 (address 00F416). Either f(XIN) or f(XCIN) is selected by bit 7 of the CPU mode register.

Timer 1 interrupt request occurs at timer 1 overflow.

8.4.2 Timer 2

Timer 2 can select one of the following count sources:

f(XIN)/16 or f(XCIN)/16

Timer 1 overflow signal

External clock from the TIM2 pin

The count source of timer 2 is selected by setting bits 4 and 1 of timer mode register 1 (address 00F416). Either f(XIN) or f(XCIN) is selected by bit 7 of the CPU mode register. When timer 1 overflow signal is a count source for the timer 2, the timer 1 functions as an 8- bit prescaler.

Timer 2 interrupt request occurs at timer 2 overflow.

8.4.3 Timer 3

Timer 3 can select one of the following count sources:

f(XIN)/16 or f(XCIN)/16

f(XCIN)

External clock from the TIM3 pin

The count source of timer 3 is selected by setting bit 0 of timer mode register 2 (address 00F516) and bit 6 at address 00C716. Either f(XIN) or f(XCIN) is selected by bit 7 of the CPU mode register.

Timer 3 interrupt request occurs at timer 3 overflow.

8.4.6 Timer 6

Timer 6 can select one of the following count sources:

f(XIN)/16 or f(XCIN)/16

Timer 5 overflow signal

The count source of timer 6 is selected by setting bit 7 of the timer mode register 1 (address 00F416). Either f(XIN) or f(XCIN) is selected by bit 7 of the CPU mode register. When timer 5 overflow signal is a count source for timer 6, the timer 5 functions as an 8-bit prescaler.

Timer 6 interrupt request occurs at timer 6 overflow.

At reset, timers 3 and 4 are connected by hardware and “FF16” is automatically set in timer 3; “0716” in timer 4. The f(XIN) /16 is selected as the timer 3 count source. The internal reset is released by timer 4 overflow in this state and the internal clock is connected.

At execution of the STP instruction, timers 3 and 4 are connected by hardware and “FF16” is automatically set in timer 3; “0716” in timer 4.

However, the f(XIN) /16 is not selected as the timer 3 count source.

So set both bit 0 of timer mode register 2 (address 00F516) and bit 6 at address 00C716 to “0” before the execution of the STP instruction

(f(XIN) /16 is selected as timer 3 count source). The internal STP state is released by timer 4 overflow in this state and the internal clock is connected.

As a result of the above procedure, the program can start under a stable clock.

: When bit 7 of the CPU mode register (CM7) is “1,” f(XIN) becomes f(XCIN).

The timer-related registers is shown in Figures 8.4.1 and 8.4.2.

8.4.4 Timer 4

Timer 4 can select one of the following count sources:

f(XIN)/16 or f(XCIN)/16

f(XIN)/2 or f(XCIN)/2

f(XCIN)

The count source of timer 3 is selected by setting bits 1 and 4 of the timer mode register 2 (address 00F516). Either f(XIN) or f(XCIN) is selected by bit 7 of the CPU mode register. When timer 3 overflow signal is a count source for the timer 4, the timer 3 functions as an 8- bit prescaler.

Timer 4 interrupt request occurs at timer 4 overflow.

Rev. 1.3

23

MITSUBISHI MICROCOMPUTERS

M37272M6/M8–XXXSP/FP, M37272MA–XXXSP

M37272E8SP/FP, M37272EFSP

SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER with CLOSED CAPTION DECODER and ON-SCREEN DISPLAY CONTROLLER

Timer Mode Register 1

b7 b6 b5b4 b3 b2 b1 b0

Timer mode register 1 (TM1) [Address 00F4 16]

B

Name

Functions

After reset

R

W

0

Timer 1 count source

0: f(XIN)/16 or f(XCIN)/16 (See note)

0

R

W

 

selection bit 1 (TM10)

1: Count source selected by bit 5 of TM1

 

 

 

 

 

 

 

 

 

1

Timer 2 count source

0: Count source selected by bit 4 of TM1

0

R

W

 

selection bit 1 (TM11)

1: External clock from TIM2 pin

 

 

 

 

 

 

 

 

 

2

Timer 1 count

0: Count start

0

R

W

 

stop bit (TM12)

1: Count stop

 

 

 

 

 

 

 

 

 

3

Timer 2 count stop

0: Count start

0

R

W

 

bit (TM13)

1: Count stop

 

 

 

 

 

 

 

 

 

4

Timer 2 count source

0: f(XIN)/16 or f(XCIN)/16 (See note)

0

R

W

 

selection bit 2

1: Timer 1 overflow

 

 

 

 

(TM14)

 

 

 

 

5

Timer 1 count source

0: f(XIN)/4096 or f(XCIN)/4096 (See note)

0

R

W

 

selection bit 2 (TM15)

1: External clock from TIM2 pin

 

 

 

 

 

 

 

 

 

6

Timer 5 count source

0: Timer 2 overflow

0

R

W

 

selection bit 2 (TM16)

1: Timer 4 overflow

 

 

 

 

 

 

 

 

 

7

Timer 6 internal count

0: f(XIN)/16 or f(XCIN)/16 (See note)

0

R

W

 

source selection bit

1: Timer 5 overflow

 

 

 

 

(TM17)

 

 

 

 

 

 

 

 

 

 

Note: Either f(XIN) or f(XCIN) is selected by bit 7 of the CPU mode register.

Fig. 8.4.1 Timer Mode Register 1

Timer Mode Register 2

b7 b6 b5b4 b3 b2 b1 b0

Timer mode register 2 (TM2) [Address 00F5 16]

B

Name

 

 

Functions

After reset

R

W

 

0

Timer 3 count source

(b6 at address 00C7 16)

0

R

W

 

selection bit (TM20)

 

 

b0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0 0 : f(XIN)/16 or f(XCIN)/16 (See note)

 

 

 

 

 

 

0

1 : f(XCIN)

 

 

 

 

 

 

1

0 :

 

 

 

 

 

 

1 1 : External clock from TIM3 pin

 

 

 

 

1, 4

Timer 4 count source

b4

b1

0

R

W

 

selection bits

0

0 : Timer 3 overflow signal

 

 

 

 

 

(TM21, TM24)

0

1 : f(XIN)/16 or f(XCIN)/16 (See note)

 

 

 

 

 

 

1

0 : f(XIN)/2 or f(XCIN)/2 (See note)

 

 

 

 

 

 

1

1 : f(XCIN)

 

 

 

 

 

 

 

 

 

 

 

2

Timer 3 count

0: Count start

0

R

W

 

stop bit (TM22)

1: Count stop

 

 

 

 

 

 

 

 

 

 

 

3

Timer 4 count stop bit

0: Count start

0

R

W

 

(TM23)

1: Count stop

 

 

 

 

 

 

 

 

 

 

 

5

Timer 5 count stop bit

0: Count start

0

R

W

 

(TM25)

1: Count stop

 

 

 

 

 

 

 

 

 

 

 

6

Timer 6 count stop bit

0: Count start

0

R

W

 

(TM26)

1: Count stop

 

 

 

 

 

 

 

 

 

 

 

7

Timer 5 count source

0: f(XIN)/16 or f(XCIN)/16 (See note)

0

R

W

 

selection bit 1

1: Count source selected by bit 6

 

 

 

 

 

(TM27)

 

of TM1

 

 

 

 

 

 

 

 

 

 

 

 

 

Note: Either f(XIN) or f(XCIN) is selected by bit 7 of the CPU mode register.

Fig. 8.4.2 Timer Mode Register 2

Rev. 1.3

24

MITSUBISHI MICROCOMPUTERS

M37272M6/M8–XXXSP/FP, M37272MA–XXXSP M37272E8SP/FP, M37272EFSP

SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER with CLOSED CAPTION DECODER and ON-SCREEN DISPLAY CONTROLLER

Data bus

8

XCIN

CM7

 

 

 

 

 

 

 

 

 

TM15

 

Timer 1 latch (8)

 

 

1/4096

 

 

 

 

8

 

 

 

 

XIN

 

1/2

1/8

Timer 1 (8)

 

 

 

TM10

 

 

 

 

TM12

8

 

 

 

 

 

 

 

TM14

 

 

 

 

 

8

 

 

 

 

Timer 2 latch (8)

 

 

 

 

8

TIM2

 

TM11

Timer 2 (8)

 

 

 

 

 

 

 

TM13

8

 

 

 

 

 

 

 

 

8

 

 

 

 

FF16

 

 

 

T3SC

Timer 3 latch (8)

 

 

 

 

8

TIM3

 

TM20

Timer 3 (8)

 

 

 

 

 

 

 

TM22

8

 

 

 

 

 

 

 

 

8

 

 

 

TM21

0716

 

 

 

Timer 4 latch (8)

 

 

 

 

 

 

 

 

8

 

 

TM21

TM24

Timer 4 (8)

 

 

 

 

 

 

TM23

8

 

 

 

 

 

 

 

TM16

8

 

 

 

 

 

Selection gate:

Connected to

 

Timer 5 latch (8)

 

 

black side at

 

8

 

 

reset

 

 

 

 

 

TM27

Timer 5 (8)

 

TM1 : Timer mode register 1

 

 

TM25

8

 

TM2 : Timer mode register 2

 

 

 

 

 

T3SC : Timer 3 count source

16)

8

 

switch bit (address 00C7

 

 

 

CM : CPU mode register

 

 

 

 

 

 

Timer 6 latch (8)

 

 

 

 

8

 

 

 

TM17

Timer 6 (8)

 

 

 

 

 

 

 

TM26

8

 

 

 

 

Timer 1 interrupt request

Timer 2 interrupt request

Reset

STP instruction

Timer 3 interrupt request

Timer 4 interrupt request

Timer 5 interrupt request

Timer 6 interrupt request

Notes 1: HIGH pulse width of external clock inputs TIM2 and TIM3 needs 4 machine cycles or more.

2:When the external clock source is selected, timers 1, 2, and 3 are counted at a rising edge of input signal.

3:In the stop mode or the wait mode, external clock inputs TIM2 and TIM3 cannot be used.

Fig. 8.4.3 Timer Block Diagram

Rev. 1.3

25

MITSUBISHI MICROCOMPUTERS

M37272M6/M8–XXXSP/FP, M37272MA–XXXSP M37272E8SP/FP, M37272EFSP

SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER with CLOSED CAPTION DECODER and ON-SCREEN DISPLAY CONTROLLER

8.5 SERIAL I/O

This microcomputer has a built-in serial I/O which can either transmit or receive 8-bit data serially in the clock synchronous mode.

The serial I/O block diagram is shown in Figure 8.5.1. The synchronous clock I/O pin (SCLK), and data output pin (SOUT) also function as port P4, data input pin (SIN) also functions as port P20–P22.

Bit 3 of the serial I/O mode register (address 00EB16) selects whether the synchronous clock is supplied internally or externally (from the SCLK pin). When an internal clock is selected, bits 1 and 0 select whether f(XIN) or f(XCIN) is divided by 8, 16, 32, or 64. To use the SIN pin for serial I/O, set the corresponding bit of the port P2 direction register (address 00C516) to “0.”

The operation of the serial I/O is described below. The operation of the serial I/O differs depending on the clock source; external clock or internal clock.

XCIN

 

1/2

 

 

 

Data bus

XIN

1/2

1/2

Frequency divider

 

CM7

 

1/2 1/4

1/8

1/16

 

 

 

 

 

SM1

 

 

Synchronous

SM2

 

SM0

 

 

circuit

 

 

 

 

P20 Latch

 

 

 

 

SCLK

SM3

 

Serial I/O counter (8)

 

 

 

 

 

 

 

P21 Latch

 

 

 

 

SOUT

SM3

SM5 : LSB

MSB

 

 

 

 

 

(See note)

 

 

 

 

SIN

 

Serial I/O shift register (8)

 

 

 

SM6

 

8

 

 

 

 

 

 

 

Selection gate: Connect to black side at reset.

CM : CPU mode register

SM : Serial I/O mode register

Serial I/O interrupt request

Note : When the data is set in the serial I/O register (address 00EA16), the register functions as the serial I/O shift register.

Fig. 8.5.1 Serial I/O Block Diagram

Rev. 1.3

26

MITSUBISHI MICROCOMPUTERS

M37272M6/M8–XXXSP/FP, M37272MA–XXXSP M37272E8SP/FP, M37272EFSP

SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER with CLOSED CAPTION DECODER and ON-SCREEN DISPLAY CONTROLLER

Internal clock : The serial I/O counter is set to “7” during the write cycle into the serial I/O register (address 00EA16), and the transfer clock goes HIGH forcibly. At each falling edge of the transfer clock after the write cycle, serial data is output from the SOUT pin. Transfer direction can be selected by bit 5 of the serial I/O mode register. At each rising edge of the transfer clock, data is input from the SIN pin and data in the serial I/O register is shifted 1 bit.

After the transfer clock has counted 8 times, the serial I/O counter becomes “0” and the transfer clock stops at HIGH. At this time the interrupt request bit is set to “1.”

External clock : The an external clock is selected as the clock source, the interrupt request is set to “1” after the transfer clock has been counted 8 counts. However, transfer operation does not stop, so the clock should be controlled externally. Use the external clock of 1 MHz or less with a duty cycle of 50%.

The serial I/O timing is shown in Figure 8.5.2. When using an external clock for transfer, the external clock must be held at HIGH for initializing the serial I/O counter. When switching between an internal clock and an external clock, do not switch during transfer. Also, be sure to initialize the serial I/O counter after switching.

Notes 1: On programming, note that the serial I/O counter is set by writing to the serial I/O register with the bit managing instructions, such as SEB and CLB.

2:When an external clock is used as the synchronous clock, write transmit data to the serial I/O register when the transfer clock input level is HIGH.

Synchronous clock

Transfer clock

Serial I/O register

write signal

(Note)

Serial I/O output

SOUT

D0 D1 D2 D3 D4 D5 D6 D7

Serial I/O input

SIN

Interrupt request bit is set to “1”

Note : When an internal clock is selected, the SOUT pin is at high-impedance after transfer is completed.

Fig. 8.5.2 Serial I/O Timing (for LSB first)

Rev. 1.3

27

MITSUBISHI MICROCOMPUTERS

M37272M6/M8–XXXSP/FP, M37272MA–XXXSP

M37272E8SP/FP, M37272EFSP

SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER with CLOSED CAPTION DECODER and ON-SCREEN DISPLAY CONTROLLER

Serial I/O Mode Register

b7b6 b5b4b3 b2b1b0

 

 

 

 

 

 

 

0

 

 

0

 

 

 

 

Serial I/O mode register (SM) [Address 00EB16]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

B

Name

 

Functions

After reset

R W

 

 

 

 

 

 

 

 

0, 1 Internal synchronous

b1 b0

0

R W

 

 

 

 

 

 

 

 

 

clock selection bits

0

0: f(XIN)/4 or f(XCIN)/4

 

 

 

 

 

 

 

 

 

 

 

(SM0, SM1)

 

0

1: f(XIN)/16 or f(XCIN)/16

 

 

 

 

 

 

 

 

 

 

 

 

 

1

0: f(XIN)/32 or f(XCIN)/32

 

 

 

 

 

 

 

 

 

 

 

 

 

1

1: f(XIN)/64 or f(XCIN)/64

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

2

Synchronous clock

0: External clock

0

R W

 

 

 

 

 

 

 

 

 

selection bit

(SM2)

1: Internal clock

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

3

Port function

 

0: P20, P21

0

R W

 

 

 

 

 

 

 

 

 

selection bit

(SM3)

1: SCLK, SOUT

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

4

Fix this bit to “0.”

 

 

0

R W

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

5

Transfer direction

0: LSB first

0

R W

 

 

 

 

 

 

 

 

 

selection bit

(SM5)

1: MSB first

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

6

Transfer clock input

0: Input signal from SIN pin

0

R W

 

 

 

 

 

 

 

 

 

pin selection bit (SM6)

1: Input signal from SOUT pin

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

7

Fix this bit to “0.”

 

 

0

R W

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Fig. 8.5.3 Serial I/O Mode Register

Rev. 1.3

28

MITSUBISHI MICROCOMPUTERS

M37272M6/M8–XXXSP/FP, M37272MA–XXXSP M37272E8SP/FP, M37272EFSP

SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER with CLOSED CAPTION DECODER and ON-SCREEN DISPLAY CONTROLLER

8.6 MULTI-MASTER I2C-BUS INTERFACE

The multi-master I2C-BUS interface is a serial communications circuit, conforming to the Philips I2C-BUS data transfer format. This interface, offering both arbitration lost detection and a synchronous functions, is useful for the multi-master serial communications.

Figure 8.6.1 shows a block diagram of the multi-master I2C-BUS interface and Table 8.6.1 shows multi-master I2C-BUS interface functions.

This multi-master I2C-BUS interface consists of the I2C address register, the I2C data shift register, the I2C clock control register, the I2C control register, the I2C status register and other control circuits.

Table 8.6.1 Multi-master I2C-BUS Interface Functions

Item

Function

 

 

 

In conformity with Philips I2C-BUS

 

standard:

 

10-bit addressing format

Format

7-bit addressing format

 

High-speed clock mode

 

Standard clock mode

 

 

 

In conformity with Philips I2C-BUS

 

standard:

 

Master transmission

Communication mode

Master reception

 

Slave transmission

 

Slave reception

 

 

SCL clock frequency

16.1 kHz to 400 kHz (at f = 4 MHz)

f : System clock = f(XIN)/2

Note : We are not responsible for any third party’s infringement of patent rights or other rights attributable to the use of the control function (bits 6 and 7 of the I2C control register at address 00F916) for connections between the I2C-BUS interface and ports (SCL1, SCL2, SDA1, SDA2).

Serial

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Noise

 

 

Data

data

 

 

elimination

 

 

control

 

 

 

(SDA)

 

 

circuit

 

 

circuit

 

 

 

 

 

 

 

AL

circuit

BB circuit

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Serial

 

 

Noise

 

 

Clock

clock

 

 

elimination

 

 

control

 

 

 

(SCL)

 

 

circuit

 

 

circuit

 

 

 

 

 

 

 

b7 I2C address register (S0D) b0

SAD6

SAD5

SAD4

SAD3

SAD2

SAD1

SAD0

RBW

 

 

 

Interrupt

 

Interrupt

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

generating

 

request signal

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

circuit

 

(IICIRQ)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Address comparator

b7

b0

 

 

 

I2C data shift register

 

 

S0

b7

 

b0

 

 

AL AAS AD0 LRB

 

 

 

 

MST TRX

BB

PIN

 

 

 

I 2C status

 

 

 

register (S1)

 

Internal data bus

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

b7

 

 

 

 

 

 

 

 

 

 

 

 

 

 

b0

 

 

b7

 

 

 

 

 

 

 

 

 

 

b0

 

ACK

ACK

FAST

CCR4

CCR3

CCR2

CCR1

CCR0

 

 

BSEL1

BSEL0

10BIT

ALS

ESO

BC2

BC1

BC0

 

 

 

 

BIT

MODE

 

 

 

 

SAD

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

I2C control register (S1D)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

I2C clock control register (S2)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

System clock (φ)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Clock division

 

 

 

 

 

 

 

 

 

Bit counter

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Fig. 8.6.1 Block Diagram of Multi-master I2C-BUS Interface

Rev. 1.3

29

MITSUBISHI MICROCOMPUTERS

M37272M6/M8–XXXSP/FP, M37272MA–XXXSP

M37272E8SP/FP, M37272EFSP

SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER with CLOSED CAPTION DECODER and ON-SCREEN DISPLAY CONTROLLER

8.6.1 I2C Data Shift Register

The I2C data shift register (S0 : address 00F616) is an 8-bit shift register to store receive data and write transmit data.

When transmit data is written into this register, it is transferred to the outside from bit 7 in synchronization with the SCL clock, and each time one-bit data is output, the data of this register are shifted one bit to the left. When data is received, it is input to this register from bit 0 in synchronization with the SCL clock, and each time one-bit data is input, the data of this register are shifted one bit to the left.

The I2C data shift register is in a write enable status only when the ESO bit of the I2C control register (address 00F916) is “1.” The bit counter is reset by a write instruction to the I2C data shift register.

When both the ESO bit and the MST bit of the I2C status register

(address 00F816) are “1,” the SCL is output by a write instruction to the I2C data shift register. Reading data from the I2C data shift register is always enabled regardless of the ESO bit value.

Note: To write data into the I2C data shift register after setting the MST bit to “0” (slave mode), keep an interval of 8 machine cycles or more.

I2C Data Shift Register

b7 b6 b5 b4 b3 b2 b1 b0

I2C data shift register1(S0) [Address 00F616]

B

Name

Functions

After reset

R

W

 

 

 

 

 

 

0

D0 to D7

This is an 8-bit shift register to store

Indeterminate

R

W

to

 

receive data and write transmit data.

 

 

 

7

 

 

 

 

 

Note: To write data into the I2C data shift register after setting the MST bit to “0” (slave mode), keep an interval of 8 machine cycles or more.

Fig. 8.6.2 Data Shift Register

Rev. 1.3

30

Loading...
+ 112 hidden pages