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/
Output
I/O
Functions
P4
0
/S
OUT(/IN)
/
I/O port P4
A-D7,
P4
1
/S
CLK
/
A-D6,
Ports P4
0
, P4
1
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 P4
0
is also used as serial I/O data input/output pin S
OUT(/IN)
. The output structure is N-
channel open-drain output.
Pin P4
1
is also used as serial I/O synchronizing clock input/output pin S
CLK
. The output
structure is N-channel open-drain output.
Pin P4
0
, P4
1
are also used as analog input pins A-D7, A-D6 respectively.
Port P4
2
is a 1-bit input port and has basically the same functions as port P0.
Pin P4
2
is also used as serial I/O data input pin S
IN
.
Serial I/O data
input/output
Serial I/O synchronizing
clock input/output
Analog input pin
Input port P4
Serial I/O data
input
Analog input
Output port P5
I/O
I/O
Input
Input
Input
P4
2
/S
IN
/
A-D5,
Input
Output
Pin P4
2
is also used as analog input pin A-D5.
Ports P5
2
–P5
5
are a 4-bit output port and has basically the same functions as port P0. The
output structure is CMOS output.
Pins P5
2
–P5
5
are also used as OSD output pins R, G, B, OUT1 respectively. The output
structure is CMOS output.
Ports P6
0
–P6
3
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 P6
0
–P6
3
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 OSD.
This is a vertical synchronizing signal input for OSD.
This is a 14-bit PWM output pin.
P5
2
/R,
P5
3
/G,
P5
4
/B,
P5
5
/OUT1
P6
0
PWM0–
Output port P6
P6
3
/PWM3
PWM output
OSD output
Output
Output
Output
H
SYNC
V
SYNC
DA
H
SYNC
input
V
SYNC
input
DA output
Input
Input
Output
Table 7.2 Pin Description (continued)