![](http://datasheet.mmic.net.cn/390000/M37225ECSP_datasheet_16817037/M37225ECSP_8.png)
8
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER
with ON-SCREEN DISPLAY CONTROLLER
M37225M6–XXXSP, M37225M8–XXXSP
M37225ECSP
MITSUBISHI MICROCOMPUTERS
Rev. 1.0
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 structures, set by the following bits.
P3
0
: bit 6 of port P3 direction register
P3
1
: bit 7 of port P3 direction register
P3
5
: bit 5 of port P3
5
output mode control register
When “0,” CMOS output; when “1,” N-channel open-drain output.
Pin
Name
Input/
Output
Input
Input
Input
Output
Functions
H
SYNC
/P5
0
,
Input port P5
V
SYNC
/P5
1
H
SYNC
input
V
SYNC
input
R/P5
2
,
Output port P5
Ports P5
0
and P5
1
are a 2-bit input port.
This is a horizontal synchronizing signal input for OSD.
This is a vertical synchronizing signal input for OSD.
Ports P5
2
–P5
5
are a 4-bit output port. The output structure is CMOS output.
G/P5
3
,
B/P5
4
,
OUT1/P5
5
OSD output
Output
Pins P5
2
–P5
5
are also used as OSD output pins R, G, B, OUT1 respectively. The output
structure is CMOS output. At reset, output is LOW.
Table 7.2 Pin Description (continued)