Mitsubishi M37273MF-XXXSP, M37273M8-XXXSP, M37273EFSP, M37273E8SP Datasheet

0 (0)

MITSUBISHI MICROCOMPUTERS

M37273M8–XXXSP, M37273MF–XXXSP M37273E8SP, M37273EFSP

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

1. DESCRIPTION

The M37273M8-XXXSP and M37273MF-XXXSP are single-chip 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 M37273E8SP and M37273EFSP are similar to those of the M37273M8-XXXSP and M37273MF-XXXSP except that the chip has a built-in PROM which can be written electrically. The difference between M37273M8-XXXSP and M37273MF-XXXSP are the ROM size and RAM size. Accordingly, the following descriptions will be for the M37273M8-XXXSP.

2. FEATURES

 

 

 

●Number of basic instructions

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

 

71

●Memory size

 

 

 

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

32K bytes

 

 

 

(M37273M8-XXXSP, M37273E8SP)

 

60K bytes

 

 

 

(M37273MF-XXXSP, M37273EFSP)

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

1152 bytes

 

 

 

(M37273M8-XXXSP, M37273E8SP)

 

1472 bytes

 

 

 

(M37273MF-XXXSP, M37273EFSP)

(*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–P57,P6) ..............................................

 

14

●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.0

MITSUBISHI MICROCOMPUTERS

M37273M8–XXXSP, M37273MF–XXXSP

M37273E8SP, M37273EFSP

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

TABLE OF CONTENTS

1. DESCRIPTION ..........................................................................

1

9. PROGRAMMING NOTES ........................................................

96

2. FEAUTURES .............................................................................

1

10. ABSOLUTE MAXIMUM RATINGS .........................................

97

3. APPLICATION ............................................................................

1

11. RECOMMENDED OPERATING CONDITIONS .....................

97

4. PIN CONFIGURATION ..............................................................

3

12. ELECTRIC CHARACTERISTICS ..........................................

98

5. FUNCTIONAL BLOCK DIAGRAM .............................................

4

13. A-D COMPARISON CHARACTERISTICS ...........................

100

6. PERFORMANCE OVERVIEW ...................................................

5

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

100

7. PIN DESCRIPTION ...................................................................

7

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

101

8. FUNCTIONAL DESCRIPTION .................................................

11

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

102

8.1 CENTRAL PROCESSING UNIT (CPU) ....................

11

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

103

8.2 MEMORY ..................................................................

12

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

109

8.3 INTERRUPTS ...........................................................

18

19. ONE TIME PROM VERSIONS M37272E8SP/FP,

 

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

23

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

110

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

26

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

111

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

29

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

136

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

 

 

Rev. 1.0

2

MITSUBISHI MICROCOMPUTERS

M37273M8–XXXSP, M37273MF–XXXSP

M37273E8SP, M37273EFSP

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

P56 5

P02/PWM2 6

P57 7

P03/PWM3 8

P60 9

P04/PWM410

P05/PWM511

P06/INT2/AD412

P6113

P07/INT114

P6215

P23/TIM316

P24/TIM217

P2518

AVCC 19

HLF 20

VHOLD 21

CVIN 22

CNVSS 23

XIN 24

XOUT 25

VSS 26

XXXSP-XXXSP,M37273MF-M37273M8 M37273E8SP,M37273EFSP

52 P52/R

51 P53/G

50 P54/B

49 P55/OUT1

48 P63

47 P20/SCLK

46 P64

45 P21/SOUT

44 P65

43 P22/SIN

42 P66

41 P10/OUT2

40 P67

39 P11/SCL1

38 P12/SCL2

37 P13/SDA1

36 P14/SDA2

35 P15/AD1/INT3

34 P16/AD2

33 P17/AD3

32 P30/AD5

31 P31/AD6

30 RESET

29 P26/OSC1/XCIN

28 P27/OSC2/XCOUT

27 VCC

Outline 52P4B

Fig. 4.1 Pin Configuration (Top View)

Rev. 1.0

3

Mitsubishi M37273MF-XXXSP, M37273M8-XXXSP, M37273EFSP, M37273E8SP Datasheet

4

Fig

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

.5

 

 

 

 

 

M37273 of Diagram Block Functional 1.5 .

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

I/O ports P26, P27

 

 

 

 

DIAGRAM BLOCK FUNCTIONAL

 

 

 

 

 

 

Clock input

Clock output

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Clock input for OSD/

Clock output for OSD/

 

 

 

 

 

 

 

 

 

Reset input

 

 

 

 

 

 

 

 

 

Pins for data slicer

sub-clock input

sub-clock output

 

 

 

 

 

 

 

 

XIN XOUT

 

 

 

RESET AVCC

 

VCC

VSS

CNVSS

 

 

 

 

 

CVIN

 

VHOLD

HLF

OSC1/XCIN

OSC2/XCOUT

 

 

 

 

 

 

 

 

24

 

25

 

 

 

 

30

19

 

27

26

23

 

 

 

 

 

22

 

21

20

 

29

28

 

 

 

 

 

 

 

 

 

 

 

Clock

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Data slicer

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

generating

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

circuit

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Data bus

 

 

 

 

 

 

 

 

 

Timer count source

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

selection circuit

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ROM

 

 

 

RAM

Progam

Program

 

ROM

 

 

 

Timer 1

 

 

 

 

 

 

 

 

 

 

 

 

SINGLE

 

 

 

 

 

correction

 

1152 bytes

counter

counter

32 K bytes

 

 

 

T1 (8)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

circuit

 

 

 

PCH (8)

PCL (8)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Timer 2

 

 

 

 

 

 

 

 

 

 

 

 

 

-

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

DECODER CAPTION CLOSED with MICROCOMPUTER CMOS BIT-8 CHIP

 

 

 

 

 

 

 

 

Address bus

 

 

 

 

 

 

 

 

 

T2 (8)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

XXXSP–M37273MF XXXSP,–M37273M8

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Timer 3

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

T3 (8)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Timer 4

 

 

 

Control signal

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

T4 (8)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

8-bit

 

 

 

 

 

Processor

 

 

 

 

 

Stack

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Accumulator

Index

 

 

Index

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

arithmetic

status

register

register

 

pointer

 

 

 

Timer 5

 

 

 

Instruction

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

A (8)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

and

 

 

 

register

X (8)

 

 

Y (8)

 

S (8)

 

 

 

 

 

 

decoder

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

T5 (8)

 

 

 

 

 

 

 

 

 

 

 

M37273EFSP M37273E8SP,

 

 

 

 

logical unit

 

 

 

 

 

PS (8)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Timer 6

 

 

 

Instruction

 

CRT

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

register (8)

 

circuit

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

T6 (8)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CONTROLLER DISPLAY SCREEN-ON and

 

 

INT1

 

 

 

 

 

 

 

 

A-D

 

 

 

 

Multi-master

SI/O

 

 

PWM

 

 

 

 

 

 

 

 

MICROCOMPUTERS MITSUBISHI

 

 

 

 

 

 

 

 

 

comparator

 

 

 

 

 

I2C-BUS

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

interface

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P0 (8)

 

 

 

P1 (8)

 

 

P2 (6)

 

P3 (2)

SDA2

SDA1 SCL2

 

 

 

 

 

 

 

P6 (8)

 

OUT2

 

P5 (8)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

P10

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OUT1 B G R VSYNC

 

HSYNC

 

 

14 12 11 10

8

6

4

3

33 34 35 36 37 38 39 41

18 17 16 43 45 47

31 32

 

 

 

 

 

 

 

 

 

40 42 44 46 48 15 13

9

7

5

49 50 51 52

2

1

 

 

I/O port P0

 

 

 

I/O port P1

 

 

I/O port P2

I/O ports P30, P31

 

 

 

 

 

 

 

Output ports P6 Output ports P52–P57

 

 

 

INT2

INT3

 

 

 

 

 

 

AD1–AD6

 

 

 

 

 

 

 

SCL1

INS CLKS

OUTS

PWM5

PWM4

PWM3 PWM2 PWM1

PWM0

 

Output for display

Input ports P50, P51

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Synchronous signal input

0.1 .Rev

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

MITSUBISHI MICROCOMPUTERS

M37273M8–XXXSP, M37273MF–XXXSP

M37273E8SP, M37273EFSP

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

 

M37273M8-XXXSP, M37273E8SP

32K bytes

 

 

 

 

M37273MF-XXXSP, M37273EFSP

60K bytes

 

 

RAM

 

M37273M8-XXXSP, M37273E8SP

1152 bytes (ROM correction memory included)

 

 

 

 

M37273MF-XXXSP, M37273EFSP

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,P6

Output

14-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.0

5

MITSUBISHI MICROCOMPUTERS

M37273M8–XXXSP, M37273MF–XXXSP

M37273E8SP, M37273EFSP

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 20 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

 

 

 

 

52-pin plastic molded DIP

 

 

 

 

 

 

Rev. 1.0

6

MITSUBISHI MICROCOMPUTERS

M37273M8–XXXSP, M37273MF–XXXSP

 

 

 

M37273E8SP, M37273EFSP

 

 

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 input

Input

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

RESET

 

 

 

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.0

7

MITSUBISHI MICROCOMPUTERS

M37273M8–XXXSP, M37273MF–XXXSP

M37273E8SP, M37273EFSP

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–P57 are a 6-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.

P56, P57

 

 

 

P60–P67

Output port P6

Output

Port P6 is an 8-bit output port. The output 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.0

8

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

MITSUBISHI MICROCOMPUTERS

M37273M8–XXXSP, M37273MF–XXXSP

M37273E8SP, M37273EFSP

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.0

9

MITSUBISHI MICROCOMPUTERS

M37273M8–XXXSP, M37273MF–XXXSP M37273E8SP, M37273EFSP

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–P57, P6

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–P57, P6

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.0

10

MITSUBISHI MICROCOMPUTERS

M37273M8–XXXSP, M37273MF–XXXSP M37273E8SP, M37273EFSP

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.0

11

MITSUBISHI MICROCOMPUTERS

M37273M8–XXXSP, M37273MF–XXXSP M37273E8SP, M37273EFSP

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.

¡M37273M8-XXXSP, M37273E8SP

 

000016

 

1000016

 

 

00BF16

 

Zero page

 

 

 

 

 

 

 

 

 

00C016

SFR1 area

 

 

00FF16

 

 

 

 

RAM

010016

 

 

 

 

 

 

(1152 bytes)

01FF16 020016

SFR2 area

020F16

Not used

030016

0320 ROM correction function

16

Vector1: address 030016

Vector2: address 032016

 

05BF16

 

 

 

 

 

 

 

Not used

 

Not used

OSD RAM

080016

 

 

 

(128 bytes)

 

 

 

 

087F16

 

 

 

 

iSee note

j

 

 

 

 

 

 

Not used

 

 

OSD ROM

140016

 

 

 

 

 

 

 

 

(10K bytes)

3BFF16

 

 

 

 

 

 

Not used

 

 

ROM

800016

 

 

 

 

 

 

 

 

 

 

 

 

 

(32K bytes)

FF0016

 

 

 

 

 

 

 

 

 

FFDE16

 

 

Special page

 

 

Interrupt vector area

 

 

 

 

FFFF16

 

1FFFF16

 

 

 

 

 

 

 

 

 

 

Note: Refer to Table 8.11.3 OSD RAM.

Fig. 8.2.1 Memory Map (M37273M8-XXXSP, M37273E8SP)

Rev. 1.0

12

MITSUBISHI MICROCOMPUTERS

M37273M8–XXXSP, M37273MF–XXXSP

M37273E8SP, M37273EFSP

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

¡M37273MF-XXXSP, M37273EFSP

 

 

 

 

000016

 

Zero page

1000016

 

 

 

 

 

 

 

00BF16

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

00C016

SFR1 area

 

 

 

 

 

 

 

 

 

 

00FF16

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

RAM

 

 

010016

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(1472 bytes)

 

 

 

 

01FF16

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

020016

SFR2 area

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

020F16

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Not used

 

 

 

Not used

 

 

 

 

030016

 

 

 

 

 

 

 

 

 

 

ROM correction function

 

 

 

 

 

032016

 

 

 

 

 

 

 

 

 

 

 

 

 

Vector 1: address 0300 16

 

 

 

 

 

 

 

 

 

 

 

Vector 2: address 0320 16

 

 

 

 

 

 

 

 

06FF16

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Not used

 

 

 

 

OSD RAM

080016

 

 

 

 

 

(128 bytes)

 

 

 

 

 

 

 

087F16

 

 

 

 

 

iSee note

 

 

 

 

 

 

 

j

Not used

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

100016

 

 

OSD ROM

1140016

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(10K bytes)

13BFF16

 

 

 

 

 

 

 

 

 

 

 

ROM

 

 

 

 

 

 

 

 

(60K bytes)

 

 

 

 

 

 

 

Not used

 

 

 

 

 

 

FF0016

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

FFDE16

 

Special page

 

 

 

 

 

 

Interrupt vector area

1FFFF16

 

 

 

 

 

 

 

FFFF16

 

 

 

 

 

 

 

 

 

 

 

 

 

Note: Refer to Table 8.11.3 OSD RAM.

Fig. 8.2.2 Memory Map (M37273MF-XXXSP, M37273EFSP)

Rev. 1.0

13

MITSUBISHI MICROCOMPUTERS

M37273M8–XXXSP, M37273MF–XXXSP

M37273E8SP, M37273EFSP

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

■ SFR1 Area (addresses C016 to DF16)

<Bit allocation>

:

Function bit

Name :

: No function bit

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

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

Address

Register

Bit allocation

b7

<State immediately after reset>

0: “0” immediately after reset

1: “1” immediately after reset

?: Indeterminate immediately after reset

State immediately after reset

b0

b7

b0

C016

Port P0 (P0)

 

 

 

 

 

 

 

 

 

 

 

 

 

?

 

 

 

C116

Port P0 direction register (D0)

 

 

 

 

 

 

 

 

 

 

 

 

 

0016

 

 

 

C216

Port P1 (P1)

 

 

 

 

 

 

 

 

 

 

 

 

 

?

 

 

 

C316

Port P1 direction register (D1)

 

 

 

 

 

 

 

 

 

 

 

 

 

0016

 

 

 

C416

Port P2 (P2)

 

 

 

 

 

 

 

 

 

 

 

 

 

?

 

 

 

C516

Port P2 direction register (D2)

 

 

 

 

 

 

 

 

 

 

 

 

 

0016

 

 

 

C616

Port P3 (P3)

 

 

 

 

 

 

 

P31

P30

 

0

0

0

0

0

0

?

?

C716

Port P3 direction register (D3)

 

T3SC

 

 

P31CP30C

P31DP30D

 

 

 

 

0016

 

 

 

C816

 

 

 

 

 

 

 

 

 

 

 

 

 

 

?

 

 

 

C916

 

 

 

 

 

 

 

 

 

 

 

 

 

 

?

 

 

 

CA16

Port P5 (P5)

 

 

 

 

 

 

 

 

 

 

 

 

 

?

 

 

 

CB16

OSD port control register (PF)

PF7

 

PF5

PF4

PF3

PF2

0

0

 

 

 

 

0016

 

 

 

CC16

Port P6 (P6)

 

 

 

 

 

 

 

 

 

 

 

 

 

0016

 

 

 

CD16

 

 

 

 

 

 

 

 

 

 

 

 

 

 

?

 

 

 

CE16

Caption data register 3 (CD3)

 

CDL27CDL26CDL25CDL24CDL23CDL22

 

 

CDL21CDL20

 

 

 

 

?

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CF16

Caption data register 4 (CD4)

 

CDH27CDH26CDH25CDH24CDH23CDH22CDH21CDH20

 

 

 

 

 

 

?

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

D016

OSD control register (OC)

0

OC6

OC5

OC4

OC3

OC2

OC1

OC0

 

 

 

 

0016

 

 

 

D116

Horizontal position register (HP)

 

HP6

HP5

HP4

HP3

HP2

HP1

HP0

 

 

 

 

0016

 

 

 

D216

Block control register 1 (BC1)

 

BC17BC16BC15BC14BC13BC12

 

 

BC11BC10

 

 

 

 

?

 

 

 

D316

Block control register 2 (BC2)

 

BC27BC26BC25BC24BC23BC22

 

 

BC21BC20

 

 

 

 

?

 

 

 

D416

Vertical position register 1 (VP1)

VP17

VP16

VP15

VP14

VP13VP12

VP11

VP10

 

 

 

 

?

 

 

 

D516

Vertical position register 2 (VP2)

VP27

VP26

VP25

VP24

VP23VP22

VP21

VP20

 

 

 

 

?

 

 

 

D616

Window register 1 (WN1)

WN17WN16

 

WN15WN14WN13WN12

 

 

WN11WN10

 

 

 

 

?

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

D716

Window register 2 (WN2)

WN27WN26

 

WN25WN24WN23WN22

 

 

WN21WN20

 

 

 

 

?

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

D816

I/O polarity control register (PC)

0

PC6

PC5

PC4

PC3

 

PC2

PC1

PC0

 

 

 

 

4016

 

 

 

D916

Raster color register (RC)

RC7

0

0

RC4

RC3

 

RC2

RC1

RC0

 

 

 

 

0016

 

 

 

DA16

 

 

 

 

 

 

 

 

 

 

 

 

 

 

?

 

 

 

DB16

 

 

 

 

 

 

 

 

 

 

 

 

 

 

?

 

 

 

DC16

Interrupt input polarity control register (RE)

 

 

 

 

 

 

INT3

INT2

INT1

 

 

 

 

0016

 

 

 

DD16

 

 

 

 

0016

 

 

 

 

 

 

 

 

0016

 

 

 

DE16

 

 

 

 

0016

 

 

 

 

 

 

 

 

0016

 

 

 

DF16

 

 

 

 

0016 (See note 1)

 

 

 

 

0016 (See note 2)

Notes 1: This is only M37273MF-XXXSP and M37273EFSP.

2: As for M37273M8-XXXSP and M37273E8SP, the reset value is ? (indeterminate).

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

Rev. 1.0

14

MITSUBISHI MICROCOMPUTERS

M37273M8–XXXSP, M37273MF–XXXSP

M37273E8SP, M37273EFSP

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.0

15

MITSUBISHI MICROCOMPUTERS

M37273M8–XXXSP, M37273MF–XXXSP

M37273E8SP, M37273EFSP

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.0

16

MITSUBISHI MICROCOMPUTERS

M37273M8–XXXSP, M37273MF–XXXSP M37273E8SP, M37273EFSP

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>

 

<State immediately after reset>

 

 

:

 

 

 

 

: “0” immediately after reset

 

 

 

Function

bit

0

 

 

 

 

 

 

 

 

 

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

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.0

17

 

 

 

 

 

 

MITSUBISHI MICROCOMPUTERS

 

 

M37273M8–XXXSP, M37273MF–XXXSP

 

 

 

 

 

M37273E8SP, M37273EFSP

 

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

 

 

 

 

 

 

and ON-SCREEN DISPLAY CONTROLLER

 

 

 

 

 

 

 

 

8.3 INTERRUPTS

 

 

8.3.1 Interrupt Causes

Interrupts can be caused by 17 different sources consisting of 4 ex-

(1) VSYNC, OSD interrupts

ternal, 11 internal, 1 software, and reset. Interrupts are vectored in-

The VSYNC interrupt is an interrupt request synchronized with

terrupts with priorities as shown in Table 8.3.1. Reset is also included

the vertical sync signal.

in the table because its operation is similar to an interrupt.

 

 

The OSD interrupt occurs after character block display to the

When an interrupt is accepted,

 

 

CRT is completed.

The contents of the program counter and processor status regis-

(2) INT1 to INT3 external interrupts

ter are automatically stored into the stack.

 

 

The interrupt disable flag I is set to “1” and the corresponding

The INT1 to INT3 interrupts are external interrupt inputs, the sys-

interrupt request bit is set to “0.”

 

 

tem detects that the level of a pin changes from LOW to HIGH or

The jump destination address stored in the vector address enters

from HIGH to LOW, and generates an interrupt request. The in-

the program counter.

 

 

put active edge can be selected by bits 3 to 5 of the interrupt

Other interrupts are disabled when the interrupt disable flag is set to

input polarity register (address 00DC16) : when this bit is “0,” a

“1.”

 

 

 

change from LOW to HIGH is detected; when it is “1,” a change

All interrupts except the BRK instruction interrupt have an interrupt

from HIGH to LOW is detected. Note that both bits are cleared to

request bit and an interrupt enable bit. The interrupt request bits are

“0” at reset.

in interrupt request registers 1 and 2 and the interrupt enable bits are

(3) Timers 1 to 4 interrupts

in interrupt control registers 1 and 2. Figures 8.3.2 to 8.3.6 show the

interrupt-related registers.

 

 

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

Interrupts other than the BRK instruction interrupt and reset are ac-

 

 

 

 

 

cepted 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

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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.0

18

MITSUBISHI MICROCOMPUTERS

M37273M8–XXXSP, M37273MF–XXXSP M37273E8SP, M37273EFSP

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.0

19

MITSUBISHI MICROCOMPUTERS

M37273M8–XXXSP, M37273MF–XXXSP

M37273E8SP, M37273EFSP

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.0

20

MITSUBISHI MICROCOMPUTERS

M37273M8–XXXSP, M37273MF–XXXSP

M37273E8SP, M37273EFSP

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.0

21

MITSUBISHI MICROCOMPUTERS

M37273M8–XXXSP, M37273MF–XXXSP

M37273E8SP, M37273EFSP

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.0

22

MITSUBISHI MICROCOMPUTERS

M37273M8–XXXSP, M37273MF–XXXSP M37273E8SP, M37273EFSP

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.0

23

MITSUBISHI MICROCOMPUTERS

M37273M8–XXXSP, M37273MF–XXXSP

M37273E8SP, M37273EFSP

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.0

24

MITSUBISHI MICROCOMPUTERS

M37273M8–XXXSP, M37273MF–XXXSP M37273E8SP, M37273EFSP

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

 

8

 

switch bit (address 00C7

16)

 

 

 

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.0

25

MITSUBISHI MICROCOMPUTERS

M37273M8–XXXSP, M37273MF–XXXSP M37273E8SP, M37273EFSP

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.0

26

MITSUBISHI MICROCOMPUTERS

M37273M8–XXXSP, M37273MF–XXXSP M37273E8SP, M37273EFSP

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.0

27

MITSUBISHI MICROCOMPUTERS

M37273M8–XXXSP, M37273MF–XXXSP

M37273E8SP, M37273EFSP

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.0

28

MITSUBISHI MICROCOMPUTERS

M37273M8–XXXSP, M37273MF–XXXSP M37273E8SP, M37273EFSP

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.0

29

MITSUBISHI MICROCOMPUTERS

M37273M8–XXXSP, M37273MF–XXXSP

M37273E8SP, M37273EFSP

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.0

30

Loading...
+ 108 hidden pages