
M37281MAH–XXXSP,M37281MFH–XXXSP,M37281MKH–XXXSP, M37281EKSP
Rev.1.01 2003.07.16 page 8 of 170
Table 7.2 Pin Description (continued)
Note :
Port Pi (i = 0 to 3) has the port Pi direction register (address 00C1
16
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 float, 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.
Input/
Output
Output
Output
Output port P5
OSD output
Input port P6
Clock input for OSD
Clock output for OSD
Sub-clock input
Sub-clock output
Input port P7
Input for data
slicer
Serial I/O data input
I/O for data slicer
Analog input
H
SYNC
input
V
SYNC
input
Port P5
is
a 4-bit output port. The output structure is CMOS output.
Pins P5
2
–P5
5
are also used as OSD output pins R/R1, G/G1, B/B1, OUT1 respectively. At
R, G, B output, the output structure is analog output. At R1, G1, B1 and OUT1 output, the
output structure is CMOS output.
Ports P6
3
and P6
4
are 2-bit input port.
Pin P6
3
is also used as OSD clock input pin OSC1.
Pin P6
4
is also used as OSD clock output pin OSC2. The output structure is CMOS output.
Pin P6
3
is also used as sub-clock input pin X
CIN
.
Pin P6
4
is also used as sub-clock output pin X
COUT
. The output structure is CMOS output.
Ports P7
0
–P7
2
are 3-bit input port.
Pins P7
0
, P7
1
are also used as data slicer input pins CV
IN
, V
HOLD
respectively. When using
data slicer, input composite video signal through a capacitor. Connect a capacitor between
V
HOLD
and V
SS
.
Pins P7
2
is also used as serial I/O data input pin S
IN
.
When using data slicer, connect a filter using of a capacitor and a resistor between HLF and
V
SS
.
This is an analog input pin AD6 .
This is a horizontal synchronous signal input for OSD.
This is a vertical synchronous signal input for OSD.
Pin
Name
Functions
Input
Input
Output
Input
Output
Input
Input
Input
I/O
Input
Input
Input
P7
0
/CV
IN,
P7
1
/V
HOLD
,
P7
2
/(S
IN
)
HLF/AD6
H
SYNC
V
SYNC
P6
3
/OSC1/
X
CIN
,
P6
4
/OSC2/
X
COUT
P5
2
/R/R1,
P5
3
/G/G1,
P5
4
/B/B1,
P5
5
/OUT1