MITSUBISHI MICROCOMPUTERS
M37212M4-XXXSP, M37212M6-XXXSP/FP
M37212EF-XXXSP/FP, M37212EFSP/FP
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER
and ON-SCREEN DISPLAY CONTROLLER
6
I/O port P4
Serial I/O data
input/output
Serial I/O synchro-
nizing clock input/
output
Analog input pin
Input port P4
Serial I/O data
input
Analog input
Output port P5
CRT output
Output port P6
PWM output
HSYNC input
VSYNC input
DA output
PIN DESCRIPTION (continued)
Ports P40, P41 are a 2-bit I/O port and has basically the same functions as port P0. The
output structure is N-channel open-drain output.
Pin P40 is also used as serial I/O data input/output pin SOUT(/IN). The output structure is N-
channel open-drain output.
Pin P41 is also used as serial I/O synchronizing clock input/output pin SCLK. The output
structure is N-channel open-drain output.
Pin P40, P41 are also used as analog input pins A-D7, A-D6 respectively.
Port P42 is a 1-bit input port and has basically the same functions as port P0.
Pin P42 is also used as serial I/O data input pin SIN.
Pin P42 is also used as analog input pin A-D5.
Ports P52–P55 are a 4-bit output port and has basically the same functions as port P0. The
output structure is CMOS output.
Pins P52–P55 are also used as CRT output pins R, G, B, OUT1 respectively. The output
structure is CMOS output.
Ports P60–P63 are a 4-bit I/O port and has basically the same functions as port P0. The
output structure is N-channel open-drain output.
Pins P60–P63 are also used as PWM output pins PWM0–PWM3 respectively. The output
structure is N-channel open-drain output.
This is a horizontal synchronizing signal input for CRT.
This is a vertical synchronizing signal input for CRT.
This is a 14-bit PWM output pin.
I/O
Input
Output
Input
Output
P40/SOUT(/IN)/
A-D7,
P41/SCLK/
A-D6,
P42/SIN/
A-D5,
P52/R,
P53/G,
P54/B,
P55/OUT1
P60PWM0–
P63/PWM3
HSYNC
VSYNC
D-A
Note : As shown in the memory map (Figure 3), port P0 is accessed as a memory at address 00C016 of zero page. Port P0 has the port P0
direction register (address 00C116 of zero page) 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 “L” 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.