SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
MITSUBISHI MICROCOMPUTERS
38C1 Group
14
Fig. No.
(16)
(1)
Related SFRs
Input/Output
Output
Input,
individual bits
Name
Pin
Non-Port Function
I/O Format
Table 5 List of I/O port function
COM
0
–
COM
3
P0
0
/SEG
0
–
P0
7
/SEG
7
SEG
8
–
/SEG
16
P2
0
/SEG
17
–
P2
7
/SEG
24
P3
0
(LED)/KW
0
–
P3
4
(LED)/KW
4
AN
0
/ADKEY
0
–
AN
3
/ADKEY
3
P4
4
/AN
4
–
P4
7
/AN
7
P5
0
/INT
0
,
P5
1
/INT
1
P5
2
/CNTR
0
P5
3
/CNTR
1
P5
4
/S
IN
P5
5
/S
OUT
P5
6
/S
CLK
P5
7
/S
RDY
P6
0
/X
CIN
P6
1
/X
COUT
P6
2
/T
OUT
P6
3
/
φ
OUT
P6
4
Common
Input Port P0
Segment
I/O Port P2
I/O Port P3
A-D
conversion
input
I/O Port P4
I/O Port P5
I/O port P6
Output
Input/output
individual bits
Input/output
individual bits
Input
Input/output
individual bits
Input/output
individual bits
Input/output
individual bits
LCD common output
CMOS compatible
input level
CMOS 3-state output
LCD segment output
CMOS compatible
input level
CMOS 3-state output
CMOS compatible
input level
CMOS 3-state output
Analog input
CMOS 3-state output
CMOS compatible
input level
CMOS 3-state output
CMOS compatible
input level
CMOS compatible
input level
CMOS 3-state output
LCD segment output
LCD segment output
Key input (key-on wake-up)
interrupt input
ADKEY input
A-D conversion input
Interrupt input
Timer X function input/output
Timer Y function input
Serial I/O function output
Sub-clock generating
circuit input/output
Timer 2 output
φ
clock output
LCD mode register
PULL register
Segment output enable register
LCD0
–
LCD3
LCD mode register
LCD4
–
LCD8
PULL register
Segment output enable register
LCD8
–
LCD12
PULL register
Interrupt control register
A-D control register
P4 data latch
(ADKEY selected)
PULL register
A-D control register
PULL register
Interrupt edge selection register
PULL register
Timer X mode register
PULL register
Timer Y mode register
PULL register
Serial I/O control register
PULL register
CPU mode register
PULL register
Timer X mode register
PULL register
φ
output control register
PULL register
(17)
(2)
(3)
(15)
(4)
(3)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
(14)
(18)
Notes 1:
For details of how to use double function ports as function I/O ports,refer to the applicable sections.
2:
When an input level is at an intermediate potential,a current will flow from V
CC
to V
SS
through the input-stage gate.
Especially, power source current may increase during execution of the STP and WIT instructions.
Fix the unused input pins to
“
H
”
or
“
L
”
through a resistor.