9
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER
with ON-SCREEN DISPLAY CONTROLLER
M37212M4/M8–XXXSP, M37212M6–XXXSP/FP
M37212EFSP/FP
MITSUBISHI MICROCOMPUTERS
Rev. 1.0
Note : 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 “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.
Pin
Name
Input/
Functions
Output
P40/SOUT(/IN)/ I/O port P4
I/O
Ports P40, P41 are a 2-bit I/O port and has basically the same functions as port P0. The
A-D7,
output structure is N-channel open-drain output.
P41/SCLK/
Serial I/O data
I/O
Pin P40 is also used as serial I/O data input/output pin SOUT(/IN). The output structure is N-
A-D6,
input/output
channel open-drain output.
Serial I/O synchronizing
I/O
Pin P41 is also used as serial I/O synchronizing clock input/output pin SCLK. The output
clock input/output
structure is N-channel open-drain output.
Analog input pin
Input
Pin P40, P41 are also used as analog input pins A-D7, A-D6 respectively.
P42/SIN/
Input port P4
Input
Port P42 is a 1-bit input port and has basically the same functions as port P0.
A-D5,
Serial I/O data
Input
Pin P42 is also used as serial I/O data input pin SIN.
input
Analog input
Input
Pin P42 is also used as analog input pin A-D5.
P52/R,
Output port P5
Output
Ports P52–P55 are a 4-bit output port and has basically the same functions as port P0. The
P53/G,
output structure is CMOS output.
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.
P60PWM0– Output port P6
Output
Ports P60–P63 are a 4-bit I/O port and has basically the same functions as port P0. The
P63/PWM3
output structure is N-channel open-drain output.
PWM output
Output
Pins P60–P63 are also used as PWM output pins PWM0–PWM3 respectively. The output
structure is N-channel open-drain output.
HSYNC
HSYNC input
Input
This is a horizontal synchronizing signal input for OSD.
VSYNC
VSYNC input
Input
This is a vertical synchronizing signal input for OSD.
DA
DA output
Output
This is a 14-bit PWM output pin.
Table 7.2 Pin Description (continued)